| /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 | 55 int nval; in sdw_master_read_prop() local 85 nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported"); in sdw_master_read_prop() 86 if (nval > 0) { in sdw_master_read_prop() 87 prop->num_clk_freq = nval; in sdw_master_read_prop() 115 nval = fwnode_property_count_u32(link, scales_prop); in sdw_master_read_prop() 116 if (nval == 0) { in sdw_master_read_prop() 118 nval = fwnode_property_count_u32(link, scales_prop); in sdw_master_read_prop() 120 if (nval > 0) { in sdw_master_read_prop() 121 prop->num_clk_gears = nval; in sdw_master_read_prop() 162 int nval; in sdw_slave_read_dp0() 164 int nval; sdw_slave_read_dp0() local 226 int nval; sdw_slave_read_dpn() local 415 int nval; sdw_slave_read_prop() local [all...] |
| /linux/arch/s390/include/asm/ |
| H A D | percpu.h | 341 #define arch_this_cpu_cmpxchg_simple(pcp, oval, nval) \ argument 348 ret__ = cmpxchg(ptr__, oval, nval); \ 353 #define arch_this_cpu_cmpxchg(pcp, oval, nval, op) \ argument 356 pcp_op_T__ old__ = (oval), new__ = (nval); \ 377 #define this_cpu_cmpxchg_1(pcp, oval, nval) arch_this_cpu_cmpxchg_simple(pcp, oval, nval) argument 378 #define this_cpu_cmpxchg_2(pcp, oval, nval) arch_this_cpu_cmpxchg_simple(pcp, oval, nval) argument 379 #define this_cpu_cmpxchg_4(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval, "cs") argument 380 #define this_cpu_cmpxchg_8(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval, "csg") argument 384 #define this_cpu_cmpxchg128(pcp, oval, nval) \ argument 387 u128 old__ = (oval), new__ = (nval); \ [all …]
|
| /linux/drivers/base/ |
| H A D | property.c | 124 * @nval: Size of the @val array 130 * this function with @val equals %NULL and @nval equals 0. 141 u8 *val, size_t nval) in device_property_read_u8_array() argument 143 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 152 * @nval: Size of the @val array 158 * this function with @val equals %NULL and @nval equals 0. 169 u16 *val, size_t nval) in device_property_read_u16_array() argument 171 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 180 * @nval: Size of the @val array 186 * this function with @val equals %NULL and @nval equal 197 device_property_read_u32_array(const struct device * dev,const char * propname,u32 * val,size_t nval) device_property_read_u32_array() argument 225 device_property_read_u64_array(const struct device * dev,const char * propname,u64 * val,size_t nval) device_property_read_u64_array() argument 253 device_property_read_string_array(const struct device * dev,const char * propname,const char ** val,size_t nval) device_property_read_string_array() argument 306 fwnode_property_read_int_array(const struct fwnode_handle * fwnode,const char * propname,unsigned int elem_size,void * val,size_t nval) fwnode_property_read_int_array() argument 344 fwnode_property_read_u8_array(const struct fwnode_handle * fwnode,const char * propname,u8 * val,size_t nval) fwnode_property_read_u8_array() argument 373 fwnode_property_read_u16_array(const struct fwnode_handle * fwnode,const char * propname,u16 * val,size_t nval) fwnode_property_read_u16_array() argument 402 fwnode_property_read_u32_array(const struct fwnode_handle * fwnode,const char * propname,u32 * val,size_t nval) fwnode_property_read_u32_array() argument 431 fwnode_property_read_u64_array(const struct fwnode_handle * fwnode,const char * propname,u64 * val,size_t nval) fwnode_property_read_u64_array() argument 461 fwnode_property_read_string_array(const struct fwnode_handle * fwnode,const char * propname,const char ** val,size_t nval) fwnode_property_read_string_array() argument 520 int nval, ret; fwnode_property_match_string() local [all...] |
| /linux/include/linux/ |
| H A D | percpu-defs.h | 413 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) argument 414 #define raw_cpu_cmpxchg(pcp, oval, nval) \ argument 415 __pcpu_size_call_return2(raw_cpu_cmpxchg_, pcp, oval, nval) 416 #define raw_cpu_try_cmpxchg(pcp, ovalp, nval) \ argument 417 __pcpu_size_call_return2bool(raw_cpu_try_cmpxchg_, pcp, ovalp, nval) 465 #define __this_cpu_xchg(pcp, nval) \ argument 468 raw_cpu_xchg(pcp, nval); \ 471 #define __this_cpu_cmpxchg(pcp, oval, nval) \ argument 474 raw_cpu_cmpxchg(pcp, oval, nval); \ 477 #define __this_cpu_try_cmpxchg(pcp, ovalp, nval) \ argument [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 | ice1712.c | 250 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 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() 1102 unsigned short oval, nval; wm_adc_mux_put() local 1153 unsigned short oval, nval; aureon_cs8415_mux_put() local 1203 unsigned char oval, nval; aureon_cs8415_mute_put() local [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 | 406 unsigned char nval) in snd_akm4xxx_volume_put() 412 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) in snd_akm4xxx_stereo_volume_info() 415 snd_akm4xxx_set_vol(ak, chip, addr, nval); in snd_akm4xxx_stereo_volume_info() 416 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in snd_akm4xxx_stereo_volume_info() 417 nval = vol_cvt_datt[nval]; in snd_akm4xxx_stereo_volume_info() 418 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in snd_akm4xxx_stereo_volume_info() 419 nval++; /* need to correct + 1 since both 127 and 128 are 0dB */ 421 nval = mask - nval; in snd_akm4xxx_stereo_volume_get() 376 put_ak_reg(struct snd_kcontrol * kcontrol,int addr,unsigned char nval) put_ak_reg() argument 477 unsigned char nval = ucontrol->value.enumerated.item[0] & 3; snd_akm4xxx_deemphasis_put() local [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()
|
| /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/sound/soc/codecs/ |
| H A D | sdw-mockup.c | 135 int nval; in sdw_mockup_read_prop() local 153 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop() 155 nval); in sdw_mockup_read_prop() 170 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop() 172 *prop->sink_dpn_prop, nval); in sdw_mockup_read_prop()
|
| H A D | rt715-sdca-sdw.c | 137 int nval, i; in rt715_sdca_read_prop() local 148 nval = hweight32(prop->source_ports); in rt715_sdca_read_prop() 150 nval); in rt715_sdca_read_prop()
|
| H A D | rt711-sdca-sdw.c | 178 int nval; in rt711_sdca_read_prop() local 193 nval = hweight32(prop->source_ports); in rt711_sdca_read_prop() 195 nval); in rt711_sdca_read_prop() 211 nval = hweight32(prop->sink_ports); in rt711_sdca_read_prop() 213 *prop->sink_dpn_prop, nval); in rt711_sdca_read_prop()
|
| H A D | rt721-sdca-sdw.c | 260 int nval; in rt721_sdca_read_prop() 281 nval = hweight32(prop->source_ports); in rt721_sdca_read_prop() 283 nval); in rt721_sdca_read_prop() 299 nval = hweight32(prop->sink_ports); in rt721_sdca_interrupt_callback() 301 *prop->sink_dpn_prop, nval); in rt721_sdca_interrupt_callback() 231 int nval; rt721_sdca_read_prop() local
|
| H A D | rt1318-sdw.c | 348 int nval; in rt1318_read_prop() local 363 nval = hweight32(prop->source_ports); in rt1318_read_prop() 365 nval); in rt1318_read_prop() 381 nval = hweight32(prop->sink_ports); in rt1318_read_prop() 383 *prop->sink_dpn_prop, nval); in rt1318_read_prop()
|
| H A D | rt712-sdca-sdw.c | 201 int nval; in rt712_sdca_read_prop() local 218 nval = hweight32(prop->source_ports); in rt712_sdca_read_prop() 220 nval); in rt712_sdca_read_prop() 236 nval = hweight32(prop->sink_ports); in rt712_sdca_read_prop() 238 *prop->sink_dpn_prop, nval); in rt712_sdca_read_prop()
|
| H A D | rt711-sdw.c | 341 int nval; in rt711_read_prop() local 357 nval = hweight32(prop->source_ports); in rt711_read_prop() 359 nval); in rt711_read_prop() 375 nval = hweight32(prop->sink_ports); in rt711_read_prop() 377 *prop->sink_dpn_prop, nval); in rt711_read_prop()
|
| H A D | rt700-sdw.c | 335 int nval, i; in rt700_read_prop() local 350 nval = hweight32(prop->source_ports); in rt700_read_prop() 352 nval); in rt700_read_prop() 368 nval = hweight32(prop->sink_ports); in rt700_read_prop() 370 *prop->sink_dpn_prop, nval); in rt700_read_prop()
|
| H A D | rt722-sdca-sdw.c | 284 int nval; in rt722_sdca_read_prop() local 306 nval = hweight32(prop->source_ports); in rt722_sdca_read_prop() 308 nval); in rt722_sdca_read_prop() 324 nval = hweight32(prop->sink_ports); in rt722_sdca_read_prop() 326 *prop->sink_dpn_prop, nval); in rt722_sdca_read_prop()
|
| /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/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_main.h | 858 u32 nval; in spx5_reg_get() 860 nval = readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_reg_get() 862 nval = (nval & ~mask) | (val & mask); in spx5_reg_get() 863 writel(nval, spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_reg_get() 872 u32 nval; 874 nval = readl(spx5_inst_addr(iomem, gbase, ginst, gcnt, gwidth, raddr, 876 nval = (nval & ~mask) | (val & mask); 877 writel(nval, spx5_inst_add 830 u32 nval; spx5_rmw() local 844 u32 nval; spx5_inst_rmw() local [all...] |