Home
last modified time | relevance | path

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

123

/linux/include/asm-generic/
A Dpercpu.h88 *__p = nval; \
98 *__p = 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
279 #define raw_cpu_xchg_4(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument
282 #define raw_cpu_xchg_8(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument
287 raw_cpu_generic_cmpxchg(pcp, oval, nval)
398 #define this_cpu_xchg_1(pcp, nval) this_cpu_generic_xchg(pcp, nval) argument
401 #define this_cpu_xchg_2(pcp, nval) this_cpu_generic_xchg(pcp, nval) argument
404 #define this_cpu_xchg_4(pcp, nval) this_cpu_generic_xchg(pcp, nval) argument
[all …]
/linux/drivers/soundwire/
A Dmipi_disco.c35 int nval, i; in sdw_master_read_prop() local
64 if (nval > 0) { in sdw_master_read_prop()
90 if (nval > 0) { in sdw_master_read_prop()
127 int nval; in sdw_slave_read_dp0() local
136 if (nval > 0) { in sdw_slave_read_dp0()
138 dp0->num_words = nval; in sdw_slave_read_dp0()
168 int nval; in sdw_slave_read_dpn() local
194 if (nval > 0) { in sdw_slave_read_dpn()
233 if (nval > 0) { in sdw_slave_read_dpn()
248 if (nval > 0) { in sdw_slave_read_dpn()
[all …]
/linux/arch/s390/include/asm/
A Dpercpu.h141 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
164 #define this_cpu_xchg_4(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument
[all …]
/linux/drivers/phy/microchip/
A Dsparx5_serdes.h84 u32 nval; in sdx5_rmw() local
89 nval = readl(addr); in sdx5_rmw()
90 nval = (nval & ~mask) | (val & mask); in sdx5_rmw()
91 writel(nval, addr); in sdx5_rmw()
99 u32 nval; in sdx5_inst_rmw() local
104 nval = readl(addr); in sdx5_inst_rmw()
105 nval = (nval & ~mask) | (val & mask); in sdx5_inst_rmw()
106 writel(nval, addr); in sdx5_inst_rmw()
111 u32 nval; in sdx5_rmw_addr() local
113 nval = readl(addr); in sdx5_rmw_addr()
[all …]
/linux/drivers/base/
A Dproperty.c231 size_t nval) in fwnode_property_read_int_array() argument
268 val, nval); in fwnode_property_read_u8_array()
294 val, nval); in fwnode_property_read_u16_array()
320 val, nval); in fwnode_property_read_u32_array()
346 val, nval); in fwnode_property_read_u64_array()
375 val, nval); in fwnode_property_read_string_array()
380 val, nval); in fwnode_property_read_string_array()
428 int nval, ret; in fwnode_property_match_string() local
431 if (nval < 0) in fwnode_property_match_string()
432 return nval; in fwnode_property_match_string()
[all …]
A Dswnode.c163 size_t nval) in property_entry_read_int_array() argument
175 length = nval * elem_size; in property_entry_read_int_array()
218 size_t i, nval; in property_entry_free_data() local
222 nval = p->length / sizeof(*src_str); in property_entry_free_data()
223 for (i = 0; i < nval; i++) in property_entry_free_data()
235 size_t nval) in property_copy_string_array() argument
239 for (i = 0; i < nval; i++) { in property_copy_string_array()
256 size_t nval; in property_entry_copy_data() local
393 size_t nval) in software_node_read_int_array() argument
398 elem_size, val, nval); in software_node_read_int_array()
[all …]
/linux/arch/x86/include/asm/
A Dpercpu.h275 #define this_cpu_xchg_1(pcp, nval) percpu_xchg_op(1, volatile, pcp, nval) argument
276 #define this_cpu_xchg_2(pcp, nval) percpu_xchg_op(2, volatile, pcp, nval) argument
277 #define this_cpu_xchg_4(pcp, nval) percpu_xchg_op(4, volatile, pcp, nval) argument
282 #define raw_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(1, , pcp, oval, nval) argument
283 #define raw_cpu_cmpxchg_2(pcp, oval, nval) percpu_cmpxchg_op(2, , pcp, oval, nval) argument
284 #define raw_cpu_cmpxchg_4(pcp, oval, nval) percpu_cmpxchg_op(4, , pcp, oval, nval) argument
289 #define this_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(1, volatile, pcp, oval, nval) argument
290 #define this_cpu_cmpxchg_2(pcp, oval, nval) percpu_cmpxchg_op(2, volatile, pcp, oval, nval) argument
321 #define raw_cpu_xchg_8(pcp, nval) raw_percpu_xchg_op(pcp, nval) argument
322 #define raw_cpu_cmpxchg_8(pcp, oval, nval) percpu_cmpxchg_op(8, , pcp, oval, nval) argument
[all …]
/linux/drivers/acpi/
A Dproperty.c845 size_t nval) in acpi_copy_property_array_u8() argument
849 for (i = 0; i < nval; i++) { in acpi_copy_property_array_u8()
861 u16 *val, size_t nval) in acpi_copy_property_array_u16() argument
877 u32 *val, size_t nval) in acpi_copy_property_array_u32() argument
893 u64 *val, size_t nval) in acpi_copy_property_array_u64() argument
917 return nval; in acpi_copy_property_array_string()
929 if (nval == 1 || !val) { in acpi_data_prop_read()
954 else if (nval <= 0) in acpi_data_prop_read()
1267 size_t nval) in acpi_fwnode_property_read_int_array() argument
1294 size_t nval) in acpi_fwnode_property_read_string_array() argument
[all …]
/linux/drivers/scsi/aic94xx/
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/include/linux/
A Dpercpu-defs.h426 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) argument
427 #define raw_cpu_cmpxchg(pcp, oval, nval) \ argument
428 __pcpu_size_call_return2(raw_cpu_cmpxchg_, pcp, oval, nval)
479 #define __this_cpu_xchg(pcp, nval) \ argument
482 raw_cpu_xchg(pcp, nval); \
485 #define __this_cpu_cmpxchg(pcp, oval, nval) \ argument
488 raw_cpu_cmpxchg(pcp, oval, nval); \
513 #define this_cpu_xchg(pcp, nval) __pcpu_size_call_return2(this_cpu_xchg_, pcp, nval) argument
514 #define this_cpu_cmpxchg(pcp, oval, nval) \ argument
515 __pcpu_size_call_return2(this_cpu_cmpxchg_, pcp, oval, nval)
A Dproperty.h39 u8 *val, size_t nval);
41 u16 *val, size_t nval);
43 u32 *val, size_t nval);
45 u64 *val, size_t nval);
47 const char **val, size_t nval);
58 size_t nval);
61 size_t nval);
64 size_t nval);
67 size_t nval);
70 size_t nval);
/linux/sound/pci/ice1712/
A Dpontis.c128 unsigned short oval, nval; in wm_dac_vol_put() local
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()
221 unsigned short oval, nval; in wm_adc_mux_put() local
227 nval |= (1 << bit); in wm_adc_mux_put()
229 nval &= ~(1 << bit); in wm_adc_mux_put()
230 change = nval != oval; in wm_adc_mux_put()
232 wm_put(ice, WM_ADC_MUX, nval); in wm_adc_mux_put()
511 unsigned int val, nval; in pontis_gpio_data_put() local
[all …]
A Dice1712.c332 nval = val & 0xf0; in snd_ice1712_cs8427_set_input_clock()
334 nval |= 0x01; in snd_ice1712_cs8427_set_input_clock()
336 nval |= 0x04; in snd_ice1712_cs8427_set_input_clock()
337 if (val != nval) { in snd_ice1712_cs8427_set_input_clock()
338 reg[1] = nval; in snd_ice1712_cs8427_set_input_clock()
1744 if (val != nval) in snd_ice1712_gpio_put()
2090 nval = 1; in snd_ice1712_pro_route_spdif_put()
2092 nval = 3; in snd_ice1712_pro_route_spdif_put()
2094 nval = 2; in snd_ice1712_pro_route_spdif_put()
2096 nval = 0; in snd_ice1712_pro_route_spdif_put()
[all …]
A Daureon.c211 unsigned char oval, nval; in aureon_universe_inmux_put() local
215 if (nval >= 3) in aureon_universe_inmux_put()
219 change = (oval != nval); in aureon_universe_inmux_put()
222 spec->pca9554_out = nval; in aureon_universe_inmux_put()
722 change = (oval != nval); in wm_pcm_mute_put()
1116 nval = oval & ~0x77; in wm_adc_mux_put()
1119 change = (oval != nval); in wm_adc_mux_put()
1167 nval = oval & ~0x07; in aureon_cs8415_mux_put()
1169 change = (oval != nval); in aureon_cs8415_mux_put()
1217 nval = oval & ~0x20; in aureon_cs8415_mute_put()
[all …]
/linux/sound/isa/sb/
A Dsb_mixer.c218 unsigned char nval, oval; in snd_dt019x_input_sw_put() local
224 nval = SB_DT019X_CAP_CD; in snd_dt019x_input_sw_put()
243 change = nval != oval; in snd_dt019x_input_sw_put()
288 unsigned char nval, oval; in snd_als4k_mono_capture_route_put() local
295 nval = (oval & ~(3 << 6)) in snd_als4k_mono_capture_route_put()
297 change = nval != oval; in snd_als4k_mono_capture_route_put()
352 nval = SB_DSP_MIXS_CD; in snd_sb8mixer_put_mux()
358 nval = SB_DSP_MIXS_MIC; in snd_sb8mixer_put_mux()
360 nval <<= 1; in snd_sb8mixer_put_mux()
363 nval |= oval & ~0x06; in snd_sb8mixer_put_mux()
[all …]
/linux/sound/isa/gus/
A Dgus_mixer.c44 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/sound/i2c/other/
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()
387 nval = vol_cvt_datt[nval]; in put_ak_reg()
388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) 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()
482 nval = (nval << shift) | in snd_akm4xxx_deemphasis_put()
484 change = snd_akm4xxx_get(ak, chip, addr) != nval; in snd_akm4xxx_deemphasis_put()
[all …]
/linux/net/netfilter/
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()
A Dnft_numgen.c27 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/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_main.h406 u32 nval; in spx5_rmw() local
408 nval = readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
410 nval = (nval & ~mask) | (val & mask); in spx5_rmw()
411 writel(nval, spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rmw()
420 u32 nval; in spx5_inst_rmw() local
422 nval = readl(spx5_inst_addr(iomem, gbase, ginst, gcnt, gwidth, raddr, in spx5_inst_rmw()
424 nval = (nval & ~mask) | (val & mask); in spx5_inst_rmw()
425 writel(nval, spx5_inst_addr(iomem, gbase, ginst, gcnt, gwidth, raddr, in spx5_inst_rmw()
/linux/sound/pcmcia/pdaudiocf/
A Dpdaudiocf_pcm.c93 u16 val, nval, aval; in pdacf_pcm_prepare() local
113 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); in pdacf_pcm_prepare()
114 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); in pdacf_pcm_prepare()
120 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; in pdacf_pcm_prepare()
143 if (val != nval) { in pdacf_pcm_prepare()
145 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval); in pdacf_pcm_prepare()
/linux/kernel/time/
A Ditimer.c172 u64 oval, nval, ointerval, ninterval; in set_cpu_itimer() local
175 nval = timespec64_to_ns(&value->it_value); in set_cpu_itimer()
182 if (oval || nval) { in set_cpu_itimer()
183 if (nval > 0) in set_cpu_itimer()
184 nval += TICK_NSEC; in set_cpu_itimer()
185 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer()
187 it->expires = nval; in set_cpu_itimer()
190 ITIMER_VIRTUAL : ITIMER_PROF, value, nval); in set_cpu_itimer()
/linux/drivers/usb/typec/
A Dmux.c199 int nval; in typec_mux_match() local
221 nval = fwnode_property_count_u16(fwnode, "svid"); in typec_mux_match()
222 if (nval <= 0) in typec_mux_match()
225 val = kcalloc(nval, sizeof(*val), GFP_KERNEL); in typec_mux_match()
229 ret = fwnode_property_read_u16_array(fwnode, "svid", val, nval); in typec_mux_match()
235 for (i = 0; i < nval; i++) { in typec_mux_match()
/linux/sound/soc/codecs/
A Dsdw-mockup.c172 int nval; in sdw_mockup_read_prop() local
190 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop()
191 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
208 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop()
209 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
/linux/sound/isa/es1688/
A Des1688_lib.c739 unsigned char oval, nval; in snd_es1688_put_mux() local
746 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux()
747 change = nval != oval; in snd_es1688_put_mux()
749 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux()
797 unsigned char oval, nval; in snd_es1688_put_single() local
799 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single()
801 nval = mask - nval; in snd_es1688_put_single()
802 nval <<= shift; in snd_es1688_put_single()
805 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single()
806 change = nval != oval; in snd_es1688_put_single()
[all …]

Completed in 67 milliseconds

123