/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_params.c | 195 __maybe_unused static void _param_dup_charp(char **valp) in _param_dup_charp() argument 197 *valp = kstrdup(*valp ? *valp : "", GFP_ATOMIC); in _param_dup_charp() 200 __maybe_unused static void _param_nop(void *valp) in _param_nop() argument 204 #define _param_dup(valp) \ argument 205 _Generic(valp, \ 208 (valp) 218 __maybe_unused static void _param_free_charp(char **valp) in _param_free_charp() argument 220 kfree(*valp); in _param_free_charp() 221 *valp = NULL; in _param_free_charp() 224 #define _param_free(valp) \ argument [all …]
|
H A D | intel_display_debugfs_params.c | 142 #define _intel_display_param_create_file(parent, name, mode, valp) \ argument 145 _Generic(valp, \ 151 (name, mode, parent, valp); \
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_params.c | 190 static void _param_dup_charp(char **valp) in _param_dup_charp() argument 192 *valp = kstrdup(*valp, GFP_ATOMIC); in _param_dup_charp() 195 static void _param_nop(void *valp) in _param_nop() argument 199 #define _param_dup(valp) \ argument 200 _Generic(valp, \ 202 default: _param_nop)(valp) 212 static void _param_free_charp(char **valp) in _param_free_charp() argument 214 kfree(*valp); in _param_free_charp() 215 *valp = NULL; in _param_free_charp() 218 #define _param_free(valp) \ argument [all …]
|
H A D | i915_debugfs_params.c | 237 #define _i915_param_create_file(parent, name, mode, valp) \ argument 240 _Generic(valp, \ 245 char **: i915_debugfs_create_charp)(name, mode, parent, valp); \
|
/linux/drivers/cpufreq/ |
H A D | pmac64-cpufreq.c | 346 const u32 *valp; in g5_neo2_cpufreq_init() local 364 valp = of_get_property(cpunode, "cpu-version", NULL); in g5_neo2_cpufreq_init() 365 if (!valp) { in g5_neo2_cpufreq_init() 369 pvr_hi = (*valp) >> 16; in g5_neo2_cpufreq_init() 433 valp = of_get_property(cpunode, "clock-frequency", NULL); in g5_neo2_cpufreq_init() 434 if (!valp) in g5_neo2_cpufreq_init() 436 max_freq = (*valp)/1000; in g5_neo2_cpufreq_init() 483 const u32 *valp; in g5_pm72_cpufreq_init() local 567 valp = of_get_property(cpunode, "clock-frequency", NULL); in g5_pm72_cpufreq_init() 568 if (!valp) { in g5_pm72_cpufreq_init() [all …]
|
/linux/scripts/ |
H A D | unifdef.c | 825 eval_unary(const struct ops *ops, int *valp, const char **cpp) in eval_unary() argument 837 lt = eval_unary(ops, valp, &cp); in eval_unary() 841 *valp = !*valp; in eval_unary() 842 lt = *valp ? LT_TRUE : LT_FALSE; in eval_unary() 847 lt = eval_table(eval_ops, valp, &cp); in eval_unary() 855 *valp = strtol(cp, &ep, 0); in eval_unary() 858 lt = *valp ? LT_TRUE : LT_FALSE; in eval_unary() 873 *valp = (value[sym] != NULL); in eval_unary() 874 lt = *valp ? LT_TRUE : LT_FALSE; in eval_unary() 889 *valp = 0; in eval_unary() [all …]
|
/linux/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | bcm2835-ctl.c | 74 int val, *valp; in snd_bcm2835_ctl_put() local 78 valp = &chip->volume; in snd_bcm2835_ctl_put() 80 valp = &chip->mute; in snd_bcm2835_ctl_put() 82 valp = &chip->dest; in snd_bcm2835_ctl_put() 88 if (val != *valp) { in snd_bcm2835_ctl_put() 89 *valp = val; in snd_bcm2835_ctl_put()
|
/linux/sound/synth/emux/ |
H A D | emux_effect.c | 86 effect_set_byte(unsigned char *valp, struct snd_midi_channel *chan, int type) in effect_set_byte() argument 94 effect += *(char*)valp; in effect_set_byte() 96 effect += *valp; in effect_set_byte() 102 *valp = (unsigned char)effect; in effect_set_byte() 107 effect_set_word(unsigned short *valp, struct snd_midi_channel *chan, int type) in effect_set_word() argument 114 effect += *valp; in effect_set_word() 119 *valp = (unsigned short)effect; in effect_set_word()
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | cphy.h | 102 unsigned int *valp) in cphy_mdio_read() argument 106 *valp = (rc >= 0) ? rc : -1; in cphy_mdio_read() 118 unsigned int *valp) in simple_mdio_read() argument 120 return cphy_mdio_read(cphy, MDIO_DEVAD_NONE, reg, valp); in simple_mdio_read()
|
H A D | espi.c | 336 int t1_espi_get_mon_t204(adapter_t *adapter, u32 *valp, u8 wait) in t1_espi_get_mon_t204() argument 352 for (i = 0 ; i < nport; i++, valp++) { in t1_espi_get_mon_t204() 357 *valp = readl(adapter->regs + A_ESPI_SCH_TOKEN3); in t1_espi_get_mon_t204()
|
/linux/tools/perf/util/ |
H A D | unwind-libunwind-local.c | 571 unw_word_t addr, unw_word_t *valp, in access_mem() argument 583 *valp = 0; in access_mem() 599 ret = access_dso_mem(ui, addr, valp); in access_mem() 604 *valp = 0; in access_mem() 611 *valp = *(unw_word_t *)&stack->data[offset]; in access_mem() 613 (void *) (uintptr_t) addr, (unsigned long)*valp, offset); in access_mem() 618 unw_regnum_t regnum, unw_word_t *valp, in access_reg() argument 632 *valp = 0; in access_reg() 647 *valp = (unw_word_t) val; in access_reg() 648 pr_debug("unwind: reg %d, val %lx\n", regnum, (unsigned long)*valp); in access_reg()
|
H A D | perf_regs.c | 59 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id) in perf_reg_value() argument 82 *valp = regs->cache_regs[id]; in perf_reg_value()
|
/linux/fs/xfs/ |
H A D | xfs_sysctl.c | 20 int ret, *valp = ctl->data; in xfs_stats_clear_proc_handler() local 24 if (!ret && write && *valp) { in xfs_stats_clear_proc_handler() 40 int ret, *valp = ctl->data; in xfs_panic_mask_proc_handler() local 44 xfs_panic_mask = *valp; in xfs_panic_mask_proc_handler()
|
/linux/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 104 fdt32_t *valp, val; in overlay_phandle_add_offset() local 107 valp = fdt_getprop_w(fdt, node, name, &len); in overlay_phandle_add_offset() 108 if (!valp) in overlay_phandle_add_offset() 114 val = fdt32_ld(valp); in overlay_phandle_add_offset() 118 fdt32_st(valp, val + delta); in overlay_phandle_add_offset() 584 uint32_t valp; in overlay_update_node_conflicting_references() local 587 valp = fdt32_ld(refp); in overlay_update_node_conflicting_references() 589 if (valp == fdto_phandle) in overlay_update_node_conflicting_references()
|
/linux/arch/mips/dec/ |
H A D | tc.c | 30 int tc_preadb(u8 *valp, void __iomem *addr) in tc_preadb() argument 32 return get_dbe(*valp, (u8 *)addr); in tc_preadb()
|
/linux/sound/pci/hda/ |
H A D | hda_beep.c | 329 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_switch_put_beep() local 331 enable |= *valp; in snd_hda_mixer_amp_switch_put_beep() 332 valp++; in snd_hda_mixer_amp_switch_put_beep() 335 enable |= *valp; in snd_hda_mixer_amp_switch_put_beep()
|
H A D | patch_ca0132.c | 4262 long *valp = ucontrol->value.integer.value; in tuning_ctl_get() local 4265 *valp = spec->cur_ctl_vals[idx]; in tuning_ctl_get() 4288 long *valp = ucontrol->value.integer.value; in voice_focus_ctl_put() local 4293 if (spec->cur_ctl_vals[idx] == *valp) in voice_focus_ctl_put() 4296 spec->cur_ctl_vals[idx] = *valp; in voice_focus_ctl_put() 4298 idx = *valp - 20; in voice_focus_ctl_put() 4323 long *valp = ucontrol->value.integer.value; in mic_svm_ctl_put() local 4328 if (spec->cur_ctl_vals[idx] == *valp) in mic_svm_ctl_put() 4331 spec->cur_ctl_vals[idx] = *valp; in mic_svm_ctl_put() 4333 idx = *valp; in mic_svm_ctl_put() [all …]
|
H A D | patch_cs8409.c | 496 long *valp = uctrl->value.integer.value; in cs42l42_volume_get() local 501 *valp++ = cs42l42->vol[ofs]; in cs42l42_volume_get() 503 *valp = cs42l42->vol[ofs+1]; in cs42l42_volume_get() 507 *valp = cs42l42->vol[ofs]; in cs42l42_volume_get() 555 long *valp = uctrl->value.integer.value; in cs42l42_volume_put() local 560 cs42l42->vol[ofs] = *valp; in cs42l42_volume_put() 562 valp++; in cs42l42_volume_put() 563 cs42l42->vol[ofs + 1] = *valp; in cs42l42_volume_put() 570 cs42l42->vol[ofs] = *valp; in cs42l42_volume_put()
|
H A D | hda_codec.c | 1521 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_volume_get() local 1524 *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs); in snd_hda_mixer_amp_volume_get() 1526 *valp = read_amp_value(codec, nid, 1, dir, idx, ofs); in snd_hda_mixer_amp_volume_get() 1548 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_volume_put() local 1553 err = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp); in snd_hda_mixer_amp_volume_put() 1557 valp++; in snd_hda_mixer_amp_volume_put() 1560 err = update_amp_value(codec, nid, 1, dir, idx, ofs, *valp); in snd_hda_mixer_amp_volume_put() 2128 long *valp = ucontrol->value.integer.value; in snd_hda_mixer_amp_switch_get() local 2131 *valp++ = (snd_hda_codec_amp_read(codec, nid, 0, dir, idx) & in snd_hda_mixer_amp_switch_get() 2134 *valp = (snd_hda_codec_amp_read(codec, nid, 1, dir, idx) & in snd_hda_mixer_amp_switch_get() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | udpgso_bench_tx.c | 316 uint32_t *valp; in send_ts_cmsg() local 321 valp = (void *)CMSG_DATA(cm); in send_ts_cmsg() 322 *valp = cfg_tx_ts; in send_ts_cmsg() 380 uint16_t *valp; in send_udp_segment_cmsg() local 385 valp = (void *)CMSG_DATA(cm); in send_udp_segment_cmsg() 386 *valp = cfg_gso_size; in send_udp_segment_cmsg()
|
/linux/drivers/media/platform/ti/cal/ |
H A D | cal.h | 306 static inline void cal_set_field(u32 *valp, u32 field, u32 mask) in cal_set_field() argument 308 u32 val = *valp; in cal_set_field() 312 *valp = val; in cal_set_field()
|
/linux/include/linux/ |
H A D | genl_magic_func.h | 57 const char *name, void *valp) in dprint_field() argument 59 __u64 val = valp ? *(__u32 *)valp : 1; in dprint_field() 68 val = *(__u64*)valp; in dprint_field()
|
/linux/drivers/base/regmap/ |
H A D | regmap-mmio.c | 193 const u16 *valp = (const u16 *)val; in regmap_mmio_noinc_write() local 195 writew(swab16(valp[i]), ctx->regs + reg); in regmap_mmio_noinc_write() 200 const u32 *valp = (const u32 *)val; in regmap_mmio_noinc_write() local 202 writel(swab32(valp[i]), ctx->regs + reg); in regmap_mmio_noinc_write()
|
/linux/arch/csky/abiv1/ |
H A D | alignment.c | 32 static int ldb_asm(uint32_t addr, uint32_t *valp) in ldb_asm() argument 54 *valp = val; in ldb_asm()
|
/linux/net/netfilter/ipvs/ |
H A D | ip_vs_ctl.c | 1853 int *valp = table->data; in proc_do_defense_mode() local 1854 int val = *valp; in proc_do_defense_mode() 1864 if (write && (*valp != val)) { in proc_do_defense_mode() 1868 *valp = val; in proc_do_defense_mode() 1880 int *valp = table->data; in proc_do_sync_threshold() local 1890 memcpy(val, valp, sizeof(val)); in proc_do_sync_threshold() 1897 memcpy(valp, val, sizeof(val)); in proc_do_sync_threshold() 1907 int *valp = table->data; in proc_do_sync_ports() local 1908 int val = *valp; in proc_do_sync_ports() 1918 if (write && (*valp != val)) { in proc_do_sync_ports() [all …]
|