/Linux-v4.19/drivers/soundwire/ |
D | mipi_disco.c | 35 int nval, i; in sdw_master_read_prop() local 61 nval = fwnode_property_read_u32_array(link, in sdw_master_read_prop() 63 if (nval > 0) { in sdw_master_read_prop() 65 prop->num_freq = nval; in sdw_master_read_prop() 88 nval = fwnode_property_read_u32_array(link, in sdw_master_read_prop() 90 if (nval > 0) { in sdw_master_read_prop() 92 prop->num_clk_gears = nval; in sdw_master_read_prop() 125 int nval; in sdw_slave_read_dp0() local 133 nval = fwnode_property_read_u32_array(port, in sdw_slave_read_dp0() 135 if (nval > 0) { in sdw_slave_read_dp0() [all …]
|
/Linux-v4.19/include/asm-generic/ |
D | percpu.h | 87 #define raw_cpu_generic_xchg(pcp, nval) \ argument 92 *__p = nval; \ 96 #define raw_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 102 *__p = nval; \ 167 #define this_cpu_generic_xchg(pcp, nval) \ argument 172 __ret = raw_cpu_generic_xchg(pcp, nval); \ 177 #define this_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 182 __ret = raw_cpu_generic_cmpxchg(pcp, oval, nval); \ 277 #define raw_cpu_xchg_1(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument 280 #define raw_cpu_xchg_2(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument [all …]
|
/Linux-v4.19/arch/s390/include/asm/ |
D | percpu.h | 134 #define arch_this_cpu_cmpxchg(pcp, oval, nval) \ argument 141 ret__ = cmpxchg(ptr__, oval, nval); \ 146 #define this_cpu_cmpxchg_1(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 147 #define this_cpu_cmpxchg_2(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 148 #define this_cpu_cmpxchg_4(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 149 #define this_cpu_cmpxchg_8(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 151 #define arch_this_cpu_xchg(pcp, nval) \ argument 157 ret__ = xchg(ptr__, nval); \ 162 #define this_cpu_xchg_1(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument 163 #define this_cpu_xchg_2(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument [all …]
|
/Linux-v4.19/drivers/base/ |
D | property.c | 144 u8 *values, size_t nval) in pset_prop_read_u8_array() argument 147 size_t length = nval * sizeof(*values); in pset_prop_read_u8_array() 159 u16 *values, size_t nval) in pset_prop_read_u16_array() argument 162 size_t length = nval * sizeof(*values); in pset_prop_read_u16_array() 174 u32 *values, size_t nval) in pset_prop_read_u32_array() argument 177 size_t length = nval * sizeof(*values); in pset_prop_read_u32_array() 189 u64 *values, size_t nval) in pset_prop_read_u64_array() argument 192 size_t length = nval * sizeof(*values); in pset_prop_read_u64_array() 216 const char **strings, size_t nval) in pset_prop_read_string_array() argument 239 array_len = min(nval, array_len); in pset_prop_read_string_array() [all …]
|
/Linux-v4.19/arch/x86/include/asm/ |
D | percpu.h | 302 #define percpu_xchg_op(var, nval) \ argument 305 typeof(var) pxo_new__ = (nval); \ 348 #define percpu_cmpxchg_op(var, oval, nval) \ argument 352 typeof(var) pco_new__ = (nval); \ 429 #define this_cpu_xchg_1(pcp, nval) percpu_xchg_op(pcp, nval) argument 430 #define this_cpu_xchg_2(pcp, nval) percpu_xchg_op(pcp, nval) argument 431 #define this_cpu_xchg_4(pcp, nval) percpu_xchg_op(pcp, nval) argument 436 #define raw_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 437 #define raw_cpu_cmpxchg_2(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument 438 #define raw_cpu_cmpxchg_4(pcp, oval, nval) percpu_cmpxchg_op(pcp, oval, nval) argument [all …]
|
/Linux-v4.19/drivers/acpi/ |
D | property.c | 780 size_t nval) in acpi_copy_property_array_u8() argument 784 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u8() 796 u16 *val, size_t nval) in acpi_copy_property_array_u16() argument 800 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u16() 812 u32 *val, size_t nval) in acpi_copy_property_array_u32() argument 816 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u32() 828 u64 *val, size_t nval) in acpi_copy_property_array_u64() argument 832 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u64() 842 char **val, size_t nval) in acpi_copy_property_array_string() argument 846 for (i = 0; i < nval; i++) { in acpi_copy_property_array_string() [all …]
|
/Linux-v4.19/drivers/scsi/aic94xx/ |
D | aic94xx_reg.h | 251 u16 nval = asd_ddbsite_read_word(asd_ha, ddb_site_no, base); in asd_ddbsite_update_byte() local 253 if ((nval >> 8) != _oldval) in asd_ddbsite_update_byte() 255 nval = (_newval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte() 256 oval = (_oldval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte() 258 if ((nval & 0xFF) != _oldval) in asd_ddbsite_update_byte() 260 nval = (nval & 0xFF00) | _newval; in asd_ddbsite_update_byte() 261 oval = (nval & 0xFF00) | _oldval; in asd_ddbsite_update_byte() 263 return asd_ddbsite_update_word(asd_ha, ddb_site_no, base, oval, nval); in asd_ddbsite_update_byte()
|
/Linux-v4.19/include/linux/ |
D | percpu-defs.h | 428 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) argument 429 #define raw_cpu_cmpxchg(pcp, oval, nval) \ argument 430 __pcpu_size_call_return2(raw_cpu_cmpxchg_, pcp, oval, nval) 481 #define __this_cpu_xchg(pcp, nval) \ argument 484 raw_cpu_xchg(pcp, nval); \ 487 #define __this_cpu_cmpxchg(pcp, oval, nval) \ argument 490 raw_cpu_cmpxchg(pcp, oval, nval); \ 515 #define this_cpu_xchg(pcp, nval) __pcpu_size_call_return2(this_cpu_xchg_, pcp, nval) argument 516 #define this_cpu_cmpxchg(pcp, oval, nval) \ argument 517 __pcpu_size_call_return2(this_cpu_cmpxchg_, pcp, oval, nval)
|
D | property.h | 40 u8 *val, size_t nval); 42 u16 *val, size_t nval); 44 u32 *val, size_t nval); 46 u64 *val, size_t nval); 48 const char **val, size_t nval); 59 size_t nval); 62 size_t nval); 65 size_t nval); 68 size_t nval); 71 size_t nval);
|
D | fwnode.h | 83 size_t nval); 87 size_t nval);
|
/Linux-v4.19/sound/isa/gus/ |
D | gus_mixer.c | 59 unsigned char oval, nval; in snd_gf1_put_single() local 61 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() 63 nval ^= 1; in snd_gf1_put_single() 64 nval <<= shift; in snd_gf1_put_single() 67 nval = (oval & ~(1 << shift)) | nval; in snd_gf1_put_single() 68 change = nval != oval; in snd_gf1_put_single() 69 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
|
/Linux-v4.19/sound/isa/sb/ |
D | sb_mixer.c | 233 unsigned char nval, oval; in snd_dt019x_input_sw_put() local 239 nval = SB_DT019X_CAP_CD; in snd_dt019x_input_sw_put() 242 nval = SB_DT019X_CAP_MIC; in snd_dt019x_input_sw_put() 245 nval = SB_DT019X_CAP_LINE; in snd_dt019x_input_sw_put() 248 nval = SB_DT019X_CAP_SYNTH; in snd_dt019x_input_sw_put() 251 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put() 254 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put() 258 change = nval != oval; in snd_dt019x_input_sw_put() 260 snd_sbmixer_write(sb, SB_DT019X_CAPTURE_SW, nval); in snd_dt019x_input_sw_put() 303 unsigned char nval, oval; in snd_als4k_mono_capture_route_put() local [all …]
|
/Linux-v4.19/sound/pci/ice1712/ |
D | pontis.c | 142 unsigned short oval, nval; in wm_dac_vol_put() local 147 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put() 148 nval = (nval ? (nval + DAC_MIN) : 0) & 0xff; in wm_dac_vol_put() 151 if (oval != nval) { in wm_dac_vol_put() 152 wm_put(ice, idx, nval); in wm_dac_vol_put() 153 wm_put_nocache(ice, idx, nval | 0x100); in wm_dac_vol_put() 235 unsigned short oval, nval; in wm_adc_mux_put() local 239 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 241 nval |= (1 << bit); in wm_adc_mux_put() 243 nval &= ~(1 << bit); in wm_adc_mux_put() [all …]
|
D | ice1712.c | 270 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local 274 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 276 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 277 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put() 279 return val != nval; in snd_ice1712_digmix_route_ac97_put() 340 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local 352 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock() 354 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock() 356 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock() 357 if (val != nval) { in snd_ice1712_cs8427_set_input_clock() [all …]
|
D | aureon.c | 225 unsigned char oval, nval; in aureon_universe_inmux_put() local 228 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put() 229 if (nval >= 3) in aureon_universe_inmux_put() 233 change = (oval != nval); in aureon_universe_inmux_put() 235 aureon_pca9554_write(ice, PCA9554_OUT, nval); in aureon_universe_inmux_put() 236 spec->pca9554_out = nval; in aureon_universe_inmux_put() 730 unsigned short nval, oval; in wm_pcm_mute_put() local 735 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 736 change = (oval != nval); in wm_pcm_mute_put() 738 wm_put(ice, WM_MUTE, nval); in wm_pcm_mute_put() [all …]
|
D | ice1724.c | 1191 unsigned int val, nval; in update_spdif_rate() local 1195 nval = val = inw(ICEMT1724(ice, SPDIF_CTRL)); in update_spdif_rate() 1196 nval &= ~(7 << 12); in update_spdif_rate() 1199 case 48000: nval |= 2 << 12; break; in update_spdif_rate() 1200 case 32000: nval |= 3 << 12; break; in update_spdif_rate() 1201 case 88200: nval |= 4 << 12; break; in update_spdif_rate() 1202 case 96000: nval |= 5 << 12; break; in update_spdif_rate() 1203 case 192000: nval |= 6 << 12; break; in update_spdif_rate() 1204 case 176400: nval |= 7 << 12; break; in update_spdif_rate() 1206 if (val != nval) in update_spdif_rate() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | xt_statistic.c | 36 int nval, oval; in statistic_mt() local 46 nval = (oval == info->u.nth.every) ? 0 : oval + 1; in statistic_mt() 47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt() 48 if (nval == 0) in statistic_mt()
|
/Linux-v4.19/kernel/time/ |
D | itimer.c | 154 u64 oval, nval, ointerval, ninterval; in set_cpu_itimer() local 161 nval = ktime_to_ns(timeval_to_ktime(value->it_value)); in set_cpu_itimer() 168 if (oval || nval) { in set_cpu_itimer() 169 if (nval > 0) in set_cpu_itimer() 170 nval += TICK_NSEC; in set_cpu_itimer() 171 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer() 173 it->expires = nval; in set_cpu_itimer() 176 ITIMER_VIRTUAL : ITIMER_PROF, value, nval); in set_cpu_itimer()
|
/Linux-v4.19/sound/i2c/other/ |
D | ak4xxx-adda.c | 390 unsigned char nval) in put_ak_reg() argument 396 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) in put_ak_reg() 399 snd_akm4xxx_set_vol(ak, chip, addr, nval); in put_ak_reg() 400 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg() 401 nval = vol_cvt_datt[nval]; in put_ak_reg() 402 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg() 403 nval++; /* need to correct + 1 since both 127 and 128 are 0dB */ in put_ak_reg() 405 nval = mask - nval; in put_ak_reg() 407 nval |= 0x80; in put_ak_reg() 410 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg() [all …]
|
/Linux-v4.19/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_pcm.c | 124 u16 val, nval, aval; in pdacf_pcm_prepare() local 144 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_pcm_prepare() 145 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); in pdacf_pcm_prepare() 151 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; in pdacf_pcm_prepare() 174 if (val != nval) { in pdacf_pcm_prepare() 176 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval); in pdacf_pcm_prepare()
|
/Linux-v4.19/lib/ |
D | genalloc.c | 46 unsigned long val, nval; in set_bits_ll() local 48 nval = *addr; in set_bits_ll() 50 val = nval; in set_bits_ll() 54 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll() 61 unsigned long val, nval; in clear_bits_ll() local 63 nval = *addr; in clear_bits_ll() 65 val = nval; in clear_bits_ll() 69 } while ((nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val); in clear_bits_ll()
|
/Linux-v4.19/sound/ppc/ |
D | beep.c | 198 unsigned int oval, nval; in snd_pmac_put_beep() local 202 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep() 203 if (nval > 100) in snd_pmac_put_beep() 205 chip->beep->volume = nval; in snd_pmac_put_beep()
|
/Linux-v4.19/sound/isa/es1688/ |
D | es1688_lib.c | 779 unsigned char oval, nval; in snd_es1688_put_mux() local 786 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 787 change = nval != oval; in snd_es1688_put_mux() 789 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux() 837 unsigned char oval, nval; in snd_es1688_put_single() local 839 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() 841 nval = mask - nval; in snd_es1688_put_single() 842 nval <<= shift; in snd_es1688_put_single() 845 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single() 846 change = nval != oval; in snd_es1688_put_single() [all …]
|
/Linux-v4.19/drivers/of/ |
D | property.c | 840 size_t nval) in of_fwnode_property_read_int_array() argument 850 return of_property_read_u8_array(node, propname, val, nval); in of_fwnode_property_read_int_array() 852 return of_property_read_u16_array(node, propname, val, nval); in of_fwnode_property_read_int_array() 854 return of_property_read_u32_array(node, propname, val, nval); in of_fwnode_property_read_int_array() 856 return of_property_read_u64_array(node, propname, val, nval); in of_fwnode_property_read_int_array() 865 size_t nval) in of_fwnode_property_read_string_array() argument 870 of_property_read_string_array(node, propname, val, nval) : in of_fwnode_property_read_string_array()
|
/Linux-v4.19/drivers/iio/accel/ |
D | kxsd9.c | 170 u16 nval; in kxsd9_read_raw() local 180 nval = be16_to_cpu(raw_val); in kxsd9_read_raw() 182 nval >>= 4; in kxsd9_read_raw() 183 *val = nval; in kxsd9_read_raw()
|