| /linux-6.15/include/asm-generic/ |
| H A D | percpu.h | 101 *__p = nval; \ 108 __val = _cmpxchg(pcp, __old, nval); \ 120 *__p = nval; \ 293 #define raw_cpu_xchg_1(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument 296 #define raw_cpu_xchg_2(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument 299 #define raw_cpu_xchg_4(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument 302 #define raw_cpu_xchg_8(pcp, nval) raw_cpu_generic_xchg(pcp, nval) argument 466 #define this_cpu_xchg_1(pcp, nval) this_cpu_generic_xchg(pcp, nval) argument 469 #define this_cpu_xchg_2(pcp, nval) this_cpu_generic_xchg(pcp, nval) argument 472 #define this_cpu_xchg_4(pcp, nval) this_cpu_generic_xchg(pcp, nval) argument [all …]
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | percpu.h | 348 #define raw_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg64_op(8, , pcp, oval, nval) argument 387 #define raw_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg_op(8, , pcp, oval, nval); argument 495 #define this_cpu_xchg_1(pcp, nval) this_percpu_xchg_op(pcp, nval) argument 496 #define this_cpu_xchg_2(pcp, nval) this_percpu_xchg_op(pcp, nval) argument 497 #define this_cpu_xchg_4(pcp, nval) this_percpu_xchg_op(pcp, nval) argument 502 #define raw_cpu_cmpxchg_1(pcp, oval, nval) percpu_cmpxchg_op(1, , pcp, oval, nval) argument 503 #define raw_cpu_cmpxchg_2(pcp, oval, nval) percpu_cmpxchg_op(2, , pcp, oval, nval) argument 504 #define raw_cpu_cmpxchg_4(pcp, oval, nval) percpu_cmpxchg_op(4, , pcp, oval, nval) argument 537 #define raw_cpu_xchg_8(pcp, nval) raw_percpu_xchg_op(pcp, nval) argument 538 #define raw_cpu_cmpxchg_8(pcp, oval, nval) percpu_cmpxchg_op(8, , pcp, oval, nval) argument [all …]
|
| /linux-6.15/drivers/soundwire/ |
| H A D | mipi_disco.c | 56 int nval; in sdw_master_read_prop() local 87 if (nval > 0) { in sdw_master_read_prop() 118 if (nval == 0) { in sdw_master_read_prop() 122 if (nval > 0) { in sdw_master_read_prop() 165 int nval; in sdw_slave_read_dp0() local 175 if (nval > 0) { in sdw_slave_read_dp0() 201 if (nval > 0) { in sdw_slave_read_dp0() 227 int nval; in sdw_slave_read_dpn() local 252 if (nval > 0) { in sdw_slave_read_dpn() 295 if (nval > 0) { in sdw_slave_read_dpn() [all …]
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | percpu.h | 142 ret__ = cmpxchg(ptr__, oval, nval); \ 147 #define this_cpu_cmpxchg_1(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 148 #define this_cpu_cmpxchg_2(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 149 #define this_cpu_cmpxchg_4(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 150 #define this_cpu_cmpxchg_8(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) argument 160 new__ = nval; \ 174 ret__ = xchg(ptr__, nval); \ 179 #define this_cpu_xchg_1(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument 180 #define this_cpu_xchg_2(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument 181 #define this_cpu_xchg_4(pcp, nval) arch_this_cpu_xchg(pcp, nval) argument [all …]
|
| /linux-6.15/drivers/phy/microchip/ |
| H A D | sparx5_serdes.h | 117 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-6.15/drivers/base/ |
| H A D | property.c | 298 size_t nval) in fwnode_property_read_int_array() argument 339 val, nval); in fwnode_property_read_u8_array() 368 val, nval); in fwnode_property_read_u16_array() 397 val, nval); in fwnode_property_read_u32_array() 426 val, nval); in fwnode_property_read_u64_array() 461 val, nval); in fwnode_property_read_string_array() 466 val, nval); in fwnode_property_read_string_array() 513 int nval, ret; in fwnode_property_match_string() local 516 if (nval < 0) in fwnode_property_match_string() 517 return nval; in fwnode_property_match_string() [all …]
|
| H A D | swnode.c | 174 size_t nval) in property_entry_read_int_array() argument 186 length = nval * elem_size; in property_entry_read_int_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 404 size_t nval) in software_node_read_int_array() argument 409 elem_size, val, nval); in software_node_read_int_array() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | percpu-defs.h | 417 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) argument 418 #define raw_cpu_cmpxchg(pcp, oval, nval) \ argument 420 #define raw_cpu_try_cmpxchg(pcp, ovalp, nval) \ argument 469 #define __this_cpu_xchg(pcp, nval) \ argument 472 raw_cpu_xchg(pcp, nval); \ 475 #define __this_cpu_cmpxchg(pcp, oval, nval) \ argument 478 raw_cpu_cmpxchg(pcp, oval, nval); \ 484 raw_cpu_try_cmpxchg(pcp, ovalp, nval); \ 504 #define this_cpu_xchg(pcp, nval) __pcpu_size_call_return2(this_cpu_xchg_, pcp, nval) argument 505 #define this_cpu_cmpxchg(pcp, oval, nval) \ argument [all …]
|
| H A D | property.h | 42 u8 *val, size_t nval); 44 u16 *val, size_t nval); 46 u32 *val, size_t nval); 48 u64 *val, size_t nval); 50 const char **val, size_t nval); 62 size_t nval); 65 size_t nval); 68 size_t nval); 71 size_t nval); 74 size_t nval);
|
| /linux-6.15/drivers/scsi/aic94xx/ |
| H A 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-6.15/sound/isa/gus/ |
| H A 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-6.15/sound/pci/ice1712/ |
| H A D | pontis.c | 128 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 …]
|
| H A D | ice1712.c | 332 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 …]
|
| H A D | aureon.c | 211 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-6.15/sound/isa/sb/ |
| H A 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() 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-6.15/net/netfilter/ |
| H A 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()
|
| H A D | nft_numgen.c | 26 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-6.15/sound/i2c/other/ |
| H A 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() 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() 394 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg() 480 nval = (nval << shift) | in snd_akm4xxx_deemphasis_put() 482 change = snd_akm4xxx_get(ak, chip, addr) != nval; in snd_akm4xxx_deemphasis_put() [all …]
|
| /linux-6.15/sound/pcmcia/pdaudiocf/ |
| H A D | pdaudiocf_pcm.c | 93 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-6.15/drivers/acpi/ |
| H A D | property.c | 1097 typeof(nval) __nval = nval; \ 1125 char **val, size_t nval) in acpi_copy_property_array_string() argument 1129 for (i = 0; i < nval; i++) { in acpi_copy_property_array_string() 1135 return nval; in acpi_copy_property_array_string() 1141 void *val, size_t nval) in acpi_data_prop_read() argument 1147 if (nval == 1 || !val) { in acpi_data_prop_read() 1213 nval = min_t(u32, nval, obj->package.count); in acpi_data_prop_read() 1214 if (nval == 0) in acpi_data_prop_read() 1528 size_t nval) in acpi_fwnode_property_read_int_array() argument 1555 size_t nval) in acpi_fwnode_property_read_string_array() argument [all …]
|
| /linux-6.15/sound/soc/codecs/ |
| H A D | sdw-mockup.c | 136 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-6.15/kernel/time/ |
| H A D | itimer.c | 192 u64 oval, nval, ointerval, ninterval; in set_cpu_itimer() local 195 nval = timespec64_to_ns(&value->it_value); in set_cpu_itimer() 202 if (oval || nval) { in set_cpu_itimer() 203 if (nval > 0) in set_cpu_itimer() 204 nval += TICK_NSEC; in set_cpu_itimer() 205 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer() 207 it->expires = nval; in set_cpu_itimer() 210 ITIMER_VIRTUAL : ITIMER_PROF, value, nval); in set_cpu_itimer()
|
| /linux-6.15/Documentation/translations/zh_CN/core-api/ |
| H A D | this_cpu_ops.rst | 52 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-6.15/sound/isa/es1688/ |
| H A D | es1688_lib.c | 742 unsigned char oval, nval; in snd_es1688_put_mux() local 749 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); in snd_es1688_put_mux() 750 change = nval != oval; in snd_es1688_put_mux() 752 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); in snd_es1688_put_mux() 800 unsigned char oval, nval; in snd_es1688_put_single() local 802 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() 804 nval = mask - nval; in snd_es1688_put_single() 805 nval <<= shift; in snd_es1688_put_single() 808 nval = (oval & ~(mask << shift)) | nval; in snd_es1688_put_single() 809 change = nval != oval; in snd_es1688_put_single() [all …]
|
| /linux-6.15/sound/ppc/ |
| H A D | beep.c | 188 unsigned int oval, nval; in snd_pmac_put_beep() local 192 nval = ucontrol->value.integer.value[0]; in snd_pmac_put_beep() 193 if (nval > 100) in snd_pmac_put_beep() 195 chip->beep->volume = nval; in snd_pmac_put_beep()
|