| /linux/include/asm-generic/ |
| H A D | percpu.h | 98 #define raw_cpu_generic_xchg(pcp, nval) \ argument 103 *__p = nval; \ 107 #define __cpu_fallback_try_cmpxchg(pcp, ovalp, nval, _cmpxchg) \ argument 110 __val = _cmpxchg(pcp, __old, nval); \ 116 #define raw_cpu_generic_try_cmpxchg(pcp, ovalp, nval) \ argument 122 *__p = nval; \ 131 #define raw_cpu_generic_cmpxchg(pcp, oval, nval) \ argument 134 raw_cpu_generic_try_cmpxchg(pcp, &__old, nval); \ 186 #define this_cpu_generic_xchg(pcp, nval) \ argument 191 __ret = raw_cpu_generic_xchg(pcp, nval); \ [all …]
|
| /linux/drivers/soundwire/ |
| H A D | mipi_disco.c | 56 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/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/sound/pci/ice1712/ |
| H A D | pontis.c | 127 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 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() 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 …]
|
| H A D | prodigy_hifi.c | 543 unsigned short oval, nval; in wm_adc_mux_enum_put() local 548 nval = (oval & 0xe0) | ucontrol->value.enumerated.item[0]; in wm_adc_mux_enum_put() 549 if (nval != oval) { in wm_adc_mux_enum_put() 550 wm_put(ice, WM_ADC_MUX, nval); in wm_adc_mux_enum_put() 635 unsigned short oval, nval; in wm_adc_mux_put() local 639 nval = oval = wm_get(ice, WM_ADC_MUX); in wm_adc_mux_put() 641 nval |= (1 << bit); in wm_adc_mux_put() 643 nval &= ~(1 << bit); in wm_adc_mux_put() 644 change = nval != oval; in wm_adc_mux_put() 646 wm_put(ice, WM_ADC_MUX, nval); in wm_adc_mux_put()
|
| /linux/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() 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/drivers/acpi/ |
| H A D | property.c | 1163 #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/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/drivers/base/ |
| 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() 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/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()
|
| H A D | rt1318-sdw.c | 348 int nval; in rt1318_read_prop() local 363 nval = hweight32(prop->source_ports); in rt1318_read_prop() 364 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1318_read_prop() 381 nval = hweight32(prop->sink_ports); in rt1318_read_prop() 382 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1318_read_prop()
|
| H A D | rt1017-sdca-sdw.c | 260 int nval; in rt1017_sdca_read_prop() local 278 nval = hweight32(prop->source_ports); in rt1017_sdca_read_prop() 279 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1017_sdca_read_prop() 296 nval = hweight32(prop->sink_ports); in rt1017_sdca_read_prop() 297 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1017_sdca_read_prop()
|
| H A D | rt722-sdca-sdw.c | 245 int nval; in rt722_sdca_read_prop() local 267 nval = hweight32(prop->source_ports); in rt722_sdca_read_prop() 268 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt722_sdca_read_prop() 285 nval = hweight32(prop->sink_ports); in rt722_sdca_read_prop() 286 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt722_sdca_read_prop()
|
| H A D | rt1316-sdw.c | 199 int nval; in rt1316_read_prop() local 214 nval = hweight32(prop->source_ports); in rt1316_read_prop() 215 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1316_read_prop() 232 nval = hweight32(prop->sink_ports); in rt1316_read_prop() 233 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1316_read_prop()
|
| H A D | max98373-sdw.c | 302 int nval, i; in max98373_read_prop() local 316 nval = hweight32(prop->source_ports); in max98373_read_prop() 317 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop() 335 nval = hweight32(prop->sink_ports); in max98373_read_prop() 336 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop()
|
| H A D | rt5682-sdw.c | 533 int nval, i; in rt5682_read_prop() local 548 nval = hweight32(prop->source_ports); in rt5682_read_prop() 549 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt5682_read_prop() 567 nval = hweight32(prop->sink_ports); in rt5682_read_prop() 568 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt5682_read_prop()
|
| /linux/kernel/time/ |
| H A D | itimer.c | 191 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/include/linux/ |
| H A D | property.h | 43 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/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/sound/ppc/ |
| H A D | beep.c | 183 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()
|
| /linux/sound/soc/sdca/ |
| H A D | sdca_functions.c | 1362 int nval, ret; in find_sdca_entity_hide() 1370 nval = fwnode_property_count_u32(entity_node, "mipi-sdca-HIDTx-supported-report-ids"); in find_sdca_entity_hide() 1371 if (nval > 0) { in find_sdca_entity_hide() 1372 hide->num_hidtx_ids = nval; in find_sdca_entity_hide() 1386 nval = fwnode_property_count_u32(entity_node, "mipi-sdca-HIDRx-supported-report-ids"); in find_sdca_entity_hide() 1387 if (nval > 0) { in find_sdca_entity_hide() 1388 hide->num_hidrx_ids = nval; in find_sdca_entity_hide() 1402 nval = fwnode_property_count_u32(entity_node, "mipi-sdca-hide-related-audio-function-list"); in find_sdca_entity_hide() 1403 if (nval <= 0) { in find_sdca_entity_hide() 1405 entity_node, nval); in find_sdca_entity_hide() 1330 int nval, ret; find_sdca_entity_hide() local [all...] |
| /linux/fs/dlm/ |
| H A D | midcomms.c | 403 uint32_t oval, nval; in dlm_send_ack_threshold() local 414 nval = 0; in dlm_send_ack_threshold() 416 } while (atomic_cmpxchg(&node->ulp_delivered, oval, nval) != oval); in dlm_send_ack_threshold() 523 uint32_t oval, nval; in dlm_midcomms_receive_buffer() local 531 nval = oval + 1; in dlm_midcomms_receive_buffer() 532 } while (atomic_cmpxchg(&node->seq_next, oval, nval) != oval); in dlm_midcomms_receive_buffer() 543 dlm_send_ack(node->nodeid, nval); in dlm_midcomms_receive_buffer() 562 dlm_send_ack(node->nodeid, nval); in dlm_midcomms_receive_buffer() 569 dlm_send_ack(node->nodeid, nval); in dlm_midcomms_receive_buffer()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_hwmon.c | 448 u32 nval; in hwm_power_max_write() local 478 nval = intel_uncore_read(ddat->uncore, hwmon->rg.pkg_rapl_limit); in hwm_power_max_write() 480 if (nval & PKG_PWR_LIM_1_EN) in hwm_power_max_write() 486 nval = DIV_ROUND_CLOSEST_ULL((u64)val << hwmon->scl_shift_power, SF_POWER); in hwm_power_max_write() 487 nval = PKG_PWR_LIM_1_EN | REG_FIELD_PREP(PKG_PWR_LIM_1, nval); in hwm_power_max_write() 490 PKG_PWR_LIM_1_EN | PKG_PWR_LIM_1, nval); in hwm_power_max_write()
|