/Linux-v5.4/drivers/soundwire/ |
D | mipi_disco.c | 35 int nval, i; in sdw_master_read_prop() local 63 nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported"); in sdw_master_read_prop() 64 if (nval > 0) { in sdw_master_read_prop() 65 prop->num_clk_freq = nval; in sdw_master_read_prop() 89 nval = fwnode_property_count_u32(link, "mipi-sdw-supported-clock-gears"); in sdw_master_read_prop() 90 if (nval > 0) { in sdw_master_read_prop() 91 prop->num_clk_gears = nval; in sdw_master_read_prop() 127 int nval; in sdw_slave_read_dp0() local 135 nval = fwnode_property_count_u32(port, "mipi-sdw-port-wordlength-configs"); in sdw_slave_read_dp0() 136 if (nval > 0) { in sdw_slave_read_dp0() [all …]
|
/Linux-v5.4/include/asm-generic/ |
D | percpu.h | 83 #define raw_cpu_generic_xchg(pcp, nval) \ argument 88 *__p = nval; \ 92 #define raw_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 98 *__p = nval; \ 163 #define this_cpu_generic_xchg(pcp, nval) \ argument 168 __ret = raw_cpu_generic_xchg(pcp, nval); \ 173 #define this_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 178 __ret = raw_cpu_generic_cmpxchg(pcp, oval, nval); \ 273 #define raw_cpu_xchg_1(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument 276 #define raw_cpu_xchg_2(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument [all …]
|
/Linux-v5.4/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-v5.4/drivers/base/ |
D | property.c | 79 u8 *val, size_t nval) in device_property_read_u8_array() argument 81 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 104 u16 *val, size_t nval) in device_property_read_u16_array() argument 106 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 129 u32 *val, size_t nval) in device_property_read_u32_array() argument 131 return fwnode_property_read_u32_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u32_array() 154 u64 *val, size_t nval) in device_property_read_u64_array() argument 156 return fwnode_property_read_u64_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u64_array() 179 const char **val, size_t nval) in device_property_read_string_array() argument 181 return fwnode_property_read_string_array(dev_fwnode(dev), propname, val, nval); in device_property_read_string_array() [all …]
|
D | swnode.c | 192 u8 *values, size_t nval) in property_entry_read_u8_array() argument 195 size_t length = nval * sizeof(*values); in property_entry_read_u8_array() 207 u16 *values, size_t nval) in property_entry_read_u16_array() argument 210 size_t length = nval * sizeof(*values); in property_entry_read_u16_array() 222 u32 *values, size_t nval) in property_entry_read_u32_array() argument 225 size_t length = nval * sizeof(*values); in property_entry_read_u32_array() 237 u64 *values, size_t nval) in property_entry_read_u64_array() argument 240 size_t length = nval * sizeof(*values); in property_entry_read_u64_array() 266 size_t nval) in property_entry_read_int_array() argument 273 return property_entry_read_u8_array(props, name, val, nval); in property_entry_read_int_array() [all …]
|
/Linux-v5.4/arch/x86/include/asm/ |
D | percpu.h | 302 #define percpu_xchg_op(qual, var, nval) \ argument 305 typeof(var) pxo_new__ = (nval); \ 348 #define percpu_cmpxchg_op(qual, var, oval, nval) \ argument 352 typeof(var) pco_new__ = (nval); \ 415 #define raw_percpu_xchg_op(var, nval) \ argument 418 raw_cpu_write(var, (nval)); \ 441 #define this_cpu_xchg_1(pcp, nval) percpu_xchg_op(volatile, pcp, nval) argument 442 #define this_cpu_xchg_2(pcp, nval) percpu_xchg_op(volatile, pcp, nval) argument 443 #define this_cpu_xchg_4(pcp, nval) percpu_xchg_op(volatile, pcp, nval) argument 448 #define raw_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(, pcp, oval, nval) argument [all …]
|
/Linux-v5.4/drivers/scsi/aic94xx/ |
D | aic94xx_reg.h | 233 u16 nval = asd_ddbsite_read_word(asd_ha, ddb_site_no, base); in asd_ddbsite_update_byte() local 235 if ((nval >> 8) != _oldval) in asd_ddbsite_update_byte() 237 nval = (_newval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte() 238 oval = (_oldval << 8) | (nval & 0xFF); in asd_ddbsite_update_byte() 240 if ((nval & 0xFF) != _oldval) in asd_ddbsite_update_byte() 242 nval = (nval & 0xFF00) | _newval; in asd_ddbsite_update_byte() 243 oval = (nval & 0xFF00) | _oldval; in asd_ddbsite_update_byte() 245 return asd_ddbsite_update_word(asd_ha, ddb_site_no, base, oval, nval); in asd_ddbsite_update_byte()
|
/Linux-v5.4/drivers/acpi/ |
D | property.c | 854 size_t nval) in acpi_copy_property_array_u8() argument 858 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u8() 870 u16 *val, size_t nval) in acpi_copy_property_array_u16() argument 874 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u16() 886 u32 *val, size_t nval) in acpi_copy_property_array_u32() argument 890 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u32() 902 u64 *val, size_t nval) in acpi_copy_property_array_u64() argument 906 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u64() 916 char **val, size_t nval) in acpi_copy_property_array_string() argument 920 for (i = 0; i < nval; i++) { in acpi_copy_property_array_string() [all …]
|
/Linux-v5.4/include/linux/ |
D | percpu-defs.h | 427 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) argument 428 #define raw_cpu_cmpxchg(pcp, oval, nval) \ argument 429 __pcpu_size_call_return2(raw_cpu_cmpxchg_, pcp, oval, nval) 480 #define __this_cpu_xchg(pcp, nval) \ argument 483 raw_cpu_xchg(pcp, nval); \ 486 #define __this_cpu_cmpxchg(pcp, oval, nval) \ argument 489 raw_cpu_cmpxchg(pcp, oval, nval); \ 514 #define this_cpu_xchg(pcp, nval) __pcpu_size_call_return2(this_cpu_xchg_, pcp, nval) argument 515 #define this_cpu_cmpxchg(pcp, oval, nval) \ argument 516 __pcpu_size_call_return2(this_cpu_cmpxchg_, pcp, oval, nval)
|
D | property.h | 38 u8 *val, size_t nval); 40 u16 *val, size_t nval); 42 u32 *val, size_t nval); 44 u64 *val, size_t nval); 46 const char **val, size_t nval); 57 size_t nval); 60 size_t nval); 63 size_t nval); 66 size_t nval); 69 size_t nval);
|
/Linux-v5.4/sound/isa/gus/ |
D | gus_mixer.c | 44 unsigned char oval, nval; in snd_gf1_put_single() local 46 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() 48 nval ^= 1; in snd_gf1_put_single() 49 nval <<= shift; in snd_gf1_put_single() 52 nval = (oval & ~(1 << shift)) | nval; in snd_gf1_put_single() 53 change = nval != oval; in snd_gf1_put_single() 54 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
|
/Linux-v5.4/drivers/usb/typec/ |
D | mux.c | 190 int nval; in typec_mux_match() local 218 nval = fwnode_property_count_u16(con->fwnode, "svid"); in typec_mux_match() 219 if (nval <= 0) in typec_mux_match() 222 val = kcalloc(nval, sizeof(*val), GFP_KERNEL); in typec_mux_match() 226 nval = fwnode_property_read_u16_array(con->fwnode, "svid", val, nval); in typec_mux_match() 227 if (nval < 0) { in typec_mux_match() 229 return ERR_PTR(nval); in typec_mux_match() 232 for (i = 0; i < nval; i++) { in typec_mux_match()
|
/Linux-v5.4/sound/pci/ice1712/ |
D | pontis.c | 128 unsigned short oval, nval; in wm_dac_vol_put() local 133 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put() 134 nval = (nval ? (nval + DAC_MIN) : 0) & 0xff; in wm_dac_vol_put() 137 if (oval != nval) { in wm_dac_vol_put() 138 wm_put(ice, idx, nval); in wm_dac_vol_put() 139 wm_put_nocache(ice, idx, nval | 0x100); in wm_dac_vol_put() 221 unsigned short oval, nval; in wm_adc_mux_put() local 225 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 227 nval |= (1 << bit); in wm_adc_mux_put() 229 nval &= ~(1 << bit); in wm_adc_mux_put() [all …]
|
D | ice1712.c | 256 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local 260 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 262 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put() 263 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put() 265 return val != nval; in snd_ice1712_digmix_route_ac97_put() 326 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local 338 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock() 340 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock() 342 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock() 343 if (val != nval) { in snd_ice1712_cs8427_set_input_clock() [all …]
|
D | aureon.c | 211 unsigned char oval, nval; in aureon_universe_inmux_put() local 214 nval = ucontrol->value.enumerated.item[0]; in aureon_universe_inmux_put() 215 if (nval >= 3) in aureon_universe_inmux_put() 219 change = (oval != nval); in aureon_universe_inmux_put() 221 aureon_pca9554_write(ice, PCA9554_OUT, nval); in aureon_universe_inmux_put() 222 spec->pca9554_out = nval; in aureon_universe_inmux_put() 716 unsigned short nval, oval; in wm_pcm_mute_put() local 721 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put() 722 change = (oval != nval); in wm_pcm_mute_put() 724 wm_put(ice, WM_MUTE, nval); in wm_pcm_mute_put() [all …]
|
D | ice1724.c | 1177 unsigned int val, nval; in update_spdif_rate() local 1181 nval = val = inw(ICEMT1724(ice, SPDIF_CTRL)); in update_spdif_rate() 1182 nval &= ~(7 << 12); in update_spdif_rate() 1185 case 48000: nval |= 2 << 12; break; in update_spdif_rate() 1186 case 32000: nval |= 3 << 12; break; in update_spdif_rate() 1187 case 88200: nval |= 4 << 12; break; in update_spdif_rate() 1188 case 96000: nval |= 5 << 12; break; in update_spdif_rate() 1189 case 192000: nval |= 6 << 12; break; in update_spdif_rate() 1190 case 176400: nval |= 7 << 12; break; in update_spdif_rate() 1192 if (val != nval) in update_spdif_rate() [all …]
|
/Linux-v5.4/sound/isa/sb/ |
D | sb_mixer.c | 218 unsigned char nval, oval; in snd_dt019x_input_sw_put() local 224 nval = SB_DT019X_CAP_CD; in snd_dt019x_input_sw_put() 227 nval = SB_DT019X_CAP_MIC; in snd_dt019x_input_sw_put() 230 nval = SB_DT019X_CAP_LINE; in snd_dt019x_input_sw_put() 233 nval = SB_DT019X_CAP_SYNTH; in snd_dt019x_input_sw_put() 236 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put() 239 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put() 243 change = nval != oval; in snd_dt019x_input_sw_put() 245 snd_sbmixer_write(sb, SB_DT019X_CAPTURE_SW, nval); in snd_dt019x_input_sw_put() 288 unsigned char nval, oval; in snd_als4k_mono_capture_route_put() local [all …]
|
/Linux-v5.4/net/netfilter/ |
D | xt_statistic.c | 33 int nval, oval; in statistic_mt() local 43 nval = (oval == info->u.nth.every) ? 0 : oval + 1; in statistic_mt() 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt() 45 if (nval == 0) in statistic_mt()
|
D | nft_numgen.c | 27 u32 nval, oval; in nft_ng_inc_gen() local 31 nval = (oval + 1 < priv->modulus) ? oval + 1 : 0; in nft_ng_inc_gen() 32 } while (atomic_cmpxchg(&priv->counter, oval, nval) != oval); in nft_ng_inc_gen() 34 return nval + priv->offset; in nft_ng_inc_gen()
|
/Linux-v5.4/kernel/time/ |
D | itimer.c | 147 u64 oval, nval, ointerval, ninterval; in set_cpu_itimer() local 154 nval = ktime_to_ns(timeval_to_ktime(value->it_value)); in set_cpu_itimer() 161 if (oval || nval) { in set_cpu_itimer() 162 if (nval > 0) in set_cpu_itimer() 163 nval += TICK_NSEC; in set_cpu_itimer() 164 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer() 166 it->expires = nval; in set_cpu_itimer() 169 ITIMER_VIRTUAL : ITIMER_PROF, value, nval); in set_cpu_itimer()
|
/Linux-v5.4/sound/i2c/other/ |
D | ak4xxx-adda.c | 376 unsigned char nval) in put_ak_reg() argument 382 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) in put_ak_reg() 385 snd_akm4xxx_set_vol(ak, chip, addr, nval); in put_ak_reg() 386 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg() 387 nval = vol_cvt_datt[nval]; in put_ak_reg() 388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg() 389 nval++; /* need to correct + 1 since both 127 and 128 are 0dB */ in put_ak_reg() 391 nval = mask - nval; in put_ak_reg() 393 nval |= 0x80; in put_ak_reg() 396 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg() [all …]
|
/Linux-v5.4/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_pcm.c | 111 u16 val, nval, aval; in pdacf_pcm_prepare() local 131 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_pcm_prepare() 132 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); in pdacf_pcm_prepare() 138 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; in pdacf_pcm_prepare() 161 if (val != nval) { in pdacf_pcm_prepare() 163 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval); in pdacf_pcm_prepare()
|
/Linux-v5.4/lib/ |
D | genalloc.c | 45 unsigned long val, nval; in set_bits_ll() local 47 nval = *addr; in set_bits_ll() 49 val = nval; in set_bits_ll() 53 } while ((nval = cmpxchg(addr, val, val | mask_to_set)) != val); in set_bits_ll() 60 unsigned long val, nval; in clear_bits_ll() local 62 nval = *addr; in clear_bits_ll() 64 val = nval; in clear_bits_ll() 68 } while ((nval = cmpxchg(addr, val, val & ~mask_to_clear)) != val); in clear_bits_ll()
|
/Linux-v5.4/sound/ppc/ |
D | beep.c | 185 unsigned int oval, nval; in snd_pmac_put_beep() local 189 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep() 190 if (nval > 100) in snd_pmac_put_beep() 192 chip->beep->volume = nval; in snd_pmac_put_beep()
|
/Linux-v5.4/sound/isa/es1688/ |
D | es1688_lib.c | 762 unsigned char oval, nval; in snd_es1688_put_mux() local 769 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 770 change = nval != oval; in snd_es1688_put_mux() 772 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux() 820 unsigned char oval, nval; in snd_es1688_put_single() local 822 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() 824 nval = mask - nval; in snd_es1688_put_single() 825 nval <<= shift; in snd_es1688_put_single() 828 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single() 829 change = nval != oval; in snd_es1688_put_single() [all …]
|