Home
last modified time | relevance | path

Searched refs:nval (Results 1 – 25 of 89) sorted by relevance

1234

/linux/include/asm-generic/
H A Dpercpu.h96 #define raw_cpu_generic_xchg(pcp, nval) \ argument
101 *__p = nval; \
105 #define __cpu_fallback_try_cmpxchg(pcp, ovalp, nval, _cmpxchg) \ argument
108 __val = _cmpxchg(pcp, __old, nval); \
114 #define raw_cpu_generic_try_cmpxchg(pcp, ovalp, nval) \ argument
120 *__p = nval; \
129 #define raw_cpu_generic_cmpxchg(pcp, oval, nval) \ argument
132 raw_cpu_generic_try_cmpxchg(pcp, &__old, nval); \
184 #define this_cpu_generic_xchg(pcp, nval) \ argument
189 __ret = raw_cpu_generic_xchg(pcp, nval); \
[all …]
/linux/arch/x86/include/asm/
H A Dpercpu.h297 : [nval] __pcpu_reg_##size(, pco_new__) \
315 : [nval] __pcpu_reg_##size(, pco_new__) \
349 #define raw_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg64_op(8, , pcp, oval, nval) argument
350 #define this_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg64_op(8, volatile, pcp, oval, nval) argument
381 #define raw_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg64_op(8, , pcp, ovalp, n… argument
382 #define this_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg64_op(8, volatile, pcp, ovalp, n… argument
387 #define raw_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg_op(8, , pcp, oval, nval); argument
388 #define this_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg_op(8, volatile, pcp, oval, nval); argument
390 #define raw_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg_op(8, , pcp, ovalp, nva… argument
391 #define this_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg_op(8, volatile, pcp, ovalp, nva… argument
[all …]
/linux/drivers/soundwire/
H A Dmipi_disco.c56 int nval; in sdw_master_read_prop() local
86 nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported"); in sdw_master_read_prop()
87 if (nval > 0) { in sdw_master_read_prop()
88 prop->num_clk_freq = nval; in sdw_master_read_prop()
117 nval = fwnode_property_count_u32(link, scales_prop); in sdw_master_read_prop()
118 if (nval == 0) { in sdw_master_read_prop()
120 nval = fwnode_property_count_u32(link, scales_prop); in sdw_master_read_prop()
122 if (nval > 0) { in sdw_master_read_prop()
123 prop->num_clk_gears = nval; in sdw_master_read_prop()
165 int nval; in sdw_slave_read_dp0() local
[all …]
/linux/arch/s390/include/asm/
H A Dpercpu.h134 #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
153 #define this_cpu_cmpxchg128(pcp, oval, nval) \ argument
159 new__ = nval; \
167 #define arch_this_cpu_xchg(pcp, nval) \ argument
173 ret__ = xchg(ptr__, nval); \
[all …]
/linux/drivers/phy/microchip/
H A Dsparx5_serdes.h117 u32 nval; in sdx5_rmw() local
122 nval = readl(addr); in sdx5_rmw()
123 nval = (nval & ~mask) | (val & mask); in sdx5_rmw()
124 writel(nval, addr); in sdx5_rmw()
132 u32 nval; in sdx5_inst_rmw() local
137 nval = readl(addr); in sdx5_inst_rmw()
138 nval = (nval & ~mask) | (val & mask); in sdx5_inst_rmw()
139 writel(nval, addr); in sdx5_inst_rmw()
144 u32 nval; in sdx5_rmw_addr() local
146 nval = readl(addr); in sdx5_rmw_addr()
[all …]
/linux/drivers/base/
H A Dproperty.c133 u8 *val, size_t nval) in device_property_read_u8_array() argument
135 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array()
161 u16 *val, size_t nval) in device_property_read_u16_array() argument
163 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array()
189 u32 *val, size_t nval) in device_property_read_u32_array() argument
191 return fwnode_property_read_u32_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u32_array()
217 u64 *val, size_t nval) in device_property_read_u64_array() argument
219 return fwnode_property_read_u64_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u64_array()
245 const char **val, size_t nval) in device_property_read_string_array() argument
247 return fwnode_property_read_string_array(dev_fwnode(dev), propname, val, nval); in device_property_read_string_array()
[all …]
H A Dswnode.c174 size_t nval) in property_entry_read_int_array() argument
186 length = nval * elem_size; in property_entry_read_int_array()
198 const char **strings, size_t nval) in property_entry_read_string_array() argument
214 array_len = min_t(size_t, nval, array_len); in property_entry_read_string_array()
229 size_t i, nval; in property_entry_free_data() local
233 nval = p->length / sizeof(*src_str); in property_entry_free_data()
234 for (i = 0; i < nval; i++) in property_entry_free_data()
246 size_t nval) in property_copy_string_array() argument
250 for (i = 0; i < nval; i++) { in property_copy_string_array()
267 size_t nval; in property_entry_copy_data() local
[all …]
/linux/include/linux/
H A Dpercpu-defs.h418 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) argument
419 #define raw_cpu_cmpxchg(pcp, oval, nval) \ argument
420 __pcpu_size_call_return2(raw_cpu_cmpxchg_, pcp, oval, nval)
421 #define raw_cpu_try_cmpxchg(pcp, ovalp, nval) \ argument
422 __pcpu_size_call_return2bool(raw_cpu_try_cmpxchg_, pcp, ovalp, nval)
470 #define __this_cpu_xchg(pcp, nval) \ argument
473 raw_cpu_xchg(pcp, nval); \
476 #define __this_cpu_cmpxchg(pcp, oval, nval) \ argument
479 raw_cpu_cmpxchg(pcp, oval, nval); \
482 #define __this_cpu_try_cmpxchg(pcp, ovalp, nval) \ argument
[all …]
H A Dproperty.h43 u8 *val, size_t nval);
45 u16 *val, size_t nval);
47 u32 *val, size_t nval);
49 u64 *val, size_t nval);
51 const char **val, size_t nval);
63 size_t nval);
66 size_t nval);
69 size_t nval);
72 size_t nval);
75 size_t nval);
/linux/sound/isa/sb/
H A Dsb_mixer.c209 unsigned char nval, oval; in snd_dt019x_input_sw_put() local
215 nval = SB_DT019X_CAP_CD; in snd_dt019x_input_sw_put()
218 nval = SB_DT019X_CAP_MIC; in snd_dt019x_input_sw_put()
221 nval = SB_DT019X_CAP_LINE; in snd_dt019x_input_sw_put()
224 nval = SB_DT019X_CAP_SYNTH; in snd_dt019x_input_sw_put()
227 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put()
230 nval = SB_DT019X_CAP_MAIN; in snd_dt019x_input_sw_put()
234 change = nval != oval; in snd_dt019x_input_sw_put()
236 snd_sbmixer_write(sb, SB_DT019X_CAPTURE_SW, nval); in snd_dt019x_input_sw_put()
275 unsigned char nval, oval; in snd_als4k_mono_capture_route_put() local
[all …]
/linux/drivers/scsi/aic94xx/
H A Daic94xx_reg.h233 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/sound/isa/gus/
H A Dgus_mixer.c43 unsigned char oval, nval; in snd_gf1_put_single() local
45 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single()
47 nval ^= 1; in snd_gf1_put_single()
48 nval <<= shift; in snd_gf1_put_single()
51 nval = (oval & ~(1 << shift)) | nval; in snd_gf1_put_single()
52 change = nval != oval; in snd_gf1_put_single()
53 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
/linux/sound/pci/ice1712/
H A Dpontis.c127 unsigned short oval, nval; in wm_dac_vol_put() local
132 nval = ucontrol->value.integer.value[i]; in wm_dac_vol_put()
133 nval = (nval ? (nval + DAC_MIN) : 0) & 0xff; in wm_dac_vol_put()
136 if (oval != nval) { in wm_dac_vol_put()
137 wm_put(ice, idx, nval); in wm_dac_vol_put()
138 wm_put_nocache(ice, idx, nval | 0x100); in wm_dac_vol_put()
216 unsigned short oval, nval; in wm_adc_mux_put() local
220 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put()
222 nval |= (1 << bit); in wm_adc_mux_put()
224 nval &= ~(1 << bit); in wm_adc_mux_put()
[all …]
H A Dice1712.c250 unsigned char val, nval; in snd_ice1712_digmix_route_ac97_put() local
254 nval = val & ~ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
256 nval |= ICE1712_ROUTE_AC97; in snd_ice1712_digmix_route_ac97_put()
257 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); in snd_ice1712_digmix_route_ac97_put()
258 return val != nval; in snd_ice1712_digmix_route_ac97_put()
319 unsigned char val, nval; in snd_ice1712_cs8427_set_input_clock() local
331 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock()
333 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock()
335 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock()
336 if (val != nval) { in snd_ice1712_cs8427_set_input_clock()
[all …]
H A Daureon.c211 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()
711 unsigned short nval, oval; in wm_pcm_mute_put() local
716 nval = (oval & ~0x10) | (ucontrol->value.integer.value[0] ? 0 : 0x10); in wm_pcm_mute_put()
717 change = (oval != nval); in wm_pcm_mute_put()
719 wm_put(ice, WM_MUTE, nval); in wm_pcm_mute_put()
[all …]
/linux/sound/i2c/other/
H A Dak4xxx-adda.c376 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()
394 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg()
[all …]
/linux/net/netfilter/
H A Dxt_statistic.c33 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()
H A Dnft_numgen.c26 u32 nval, oval; in nft_ng_inc_gen() local
30 nval = (oval + 1 < priv->modulus) ? oval + 1 : 0; in nft_ng_inc_gen()
31 } while (atomic_cmpxchg(priv->counter, oval, nval) != oval); in nft_ng_inc_gen()
33 return nval + priv->offset; in nft_ng_inc_gen()
/linux/drivers/acpi/
H A Dproperty.c1163 #define acpi_copy_property_array_uint(items, val, nval) \ argument
1167 typeof(nval) __nval = nval; \
1195 char **val, size_t nval) in acpi_copy_property_array_string() argument
1199 for (i = 0; i < nval; i++) { in acpi_copy_property_array_string()
1205 return nval; in acpi_copy_property_array_string()
1211 void *val, size_t nval) in acpi_data_prop_read() argument
1217 if (nval == 1 || !val) { in acpi_data_prop_read()
1252 if (nval > obj->buffer.length) in acpi_data_prop_read()
1255 if (nval > obj->package.count) in acpi_data_prop_read()
1271 ret = acpi_copy_property_array_uint(items, (u8 *)val, nval); in acpi_data_prop_read()
[all …]
/linux/sound/pcmcia/pdaudiocf/
H A Dpdaudiocf_pcm.c92 u16 val, nval, aval; in pdacf_pcm_prepare() local
112 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_pcm_prepare()
113 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); in pdacf_pcm_prepare()
119 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; in pdacf_pcm_prepare()
142 if (val != nval) { in pdacf_pcm_prepare()
144 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval); in pdacf_pcm_prepare()
/linux/sound/soc/codecs/
H A Dsdw-mockup.c136 int nval; in sdw_mockup_read_prop() local
154 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop()
155 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
172 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop()
173 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
/linux/kernel/time/
H A Ditimer.c191 u64 oval, nval, ointerval, ninterval; in set_cpu_itimer() local
194 nval = timespec64_to_ns(&value->it_value); in set_cpu_itimer()
201 if (oval || nval) { in set_cpu_itimer()
202 if (nval > 0) in set_cpu_itimer()
203 nval += TICK_NSEC; in set_cpu_itimer()
204 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer()
206 it->expires = nval; in set_cpu_itimer()
209 ITIMER_VIRTUAL : ITIMER_PROF, value, nval); in set_cpu_itimer()
/linux/Documentation/translations/zh_CN/core-api/
H A Dthis_cpu_ops.rst52 this_cpu_xchg(pcp, nval)
53 this_cpu_cmpxchg(pcp, oval, nval)
210 __this_cpu_xchg(pcp, nval)
211 __this_cpu_cmpxchg(pcp, oval, nval)
/linux/sound/isa/es1688/
H A Des1688_lib.c731 unsigned char oval, nval; in snd_es1688_put_mux() local
738 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux()
739 change = nval != oval; in snd_es1688_put_mux()
741 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux()
785 unsigned char oval, nval; in snd_es1688_put_single() local
787 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single()
789 nval = mask - nval; in snd_es1688_put_single()
790 nval <<= shift; in snd_es1688_put_single()
793 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single()
794 change = nval != oval; in snd_es1688_put_single()
[all …]
/linux/sound/ppc/
H A Dbeep.c183 unsigned int oval, nval; in snd_pmac_put_beep() local
187 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep()
188 if (nval > 100) in snd_pmac_put_beep()
190 chip->beep->volume = nval; in snd_pmac_put_beep()

1234