/linux-master/include/asm-generic/ |
H A D | percpu.h | 83 #define raw_cpu_generic_xchg(pcp, nval) \ 88 *__p = nval; \ 92 #define __cpu_fallback_try_cmpxchg(pcp, ovalp, nval, _cmpxchg) \ 95 __val = _cmpxchg(pcp, __old, nval); \ 101 #define raw_cpu_generic_try_cmpxchg(pcp, ovalp, nval) \ 107 *__p = nval; \ 116 #define raw_cpu_generic_cmpxchg(pcp, oval, nval) \ 119 raw_cpu_generic_try_cmpxchg(pcp, &__old, nval); \ 171 #define this_cpu_generic_xchg(pcp, nval) \ 176 __ret = raw_cpu_generic_xchg(pcp, nval); \ [all...] |
/linux-master/drivers/phy/microchip/ |
H A D | sparx5_serdes.h | 83 u32 nval; local 88 nval = readl(addr); 89 nval = (nval & ~mask) | (val & mask); 90 writel(nval, addr); 98 u32 nval; local 103 nval = readl(addr); 104 nval = (nval & ~mask) | (val & mask); 105 writel(nval, add 110 u32 nval; local [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | percpu.h | 134 #define arch_this_cpu_cmpxchg(pcp, oval, nval) \ 141 ret__ = cmpxchg(ptr__, oval, nval); \ 146 #define this_cpu_cmpxchg_1(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) 147 #define this_cpu_cmpxchg_2(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) 148 #define this_cpu_cmpxchg_4(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) 149 #define this_cpu_cmpxchg_8(pcp, oval, nval) arch_this_cpu_cmpxchg(pcp, oval, nval) [all...] |
/linux-master/drivers/soundwire/ |
H A D | mipi_disco.c | 35 int nval, i; local 63 nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported"); 64 if (nval > 0) { 65 prop->num_clk_freq = nval; 89 nval = fwnode_property_count_u32(link, "mipi-sdw-supported-clock-gears"); 90 if (nval > 0) { 91 prop->num_clk_gears = nval; 127 int nval; local 135 nval = fwnode_property_count_u32(port, "mipi-sdw-port-wordlength-configs"); 136 if (nval > 168 int nval; local 292 int nval; local [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | percpu.h | 251 asm qual (__pcpu_op2_##size("cmpxchg", "%[nval]", \ 255 : [nval] __pcpu_reg_##size(, pco_new__) \ 266 asm qual (__pcpu_op2_##size("cmpxchg", "%[nval]", \ 272 : [nval] __pcpu_reg_##size(, pco_new__) \ 305 #define raw_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg64_op(8, , pcp, oval, nval) 306 #define this_cpu_cmpxchg64(pcp, oval, nval) percpu_cmpxchg64_op(8, volatile, pcp, oval, nval) 338 #define raw_cpu_try_cmpxchg64(pcp, ovalp, nval) percpu_try_cmpxchg64_op(8, , pcp, ovalp, nval) [all...] |
/linux-master/drivers/base/ |
H A D | property.c | 78 * @nval: Size of the @val array 84 * this function with @val equals %NULL and @nval equals 0. 95 u8 *val, size_t nval) 97 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); 106 * @nval: Size of the @val array 112 * this function with @val equals %NULL and @nval equals 0. 123 u16 *val, size_t nval) 125 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); 134 * @nval: Size of the @val array 140 * this function with @val equals %NULL and @nval equal 94 device_property_read_u8_array(const struct device *dev, const char *propname, u8 *val, size_t nval) argument 122 device_property_read_u16_array(const struct device *dev, const char *propname, u16 *val, size_t nval) argument 150 device_property_read_u32_array(const struct device *dev, const char *propname, u32 *val, size_t nval) argument 178 device_property_read_u64_array(const struct device *dev, const char *propname, u64 *val, size_t nval) argument 206 device_property_read_string_array(const struct device *dev, const char *propname, const char **val, size_t nval) argument 257 fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) argument 297 fwnode_property_read_u8_array(const struct fwnode_handle *fwnode, const char *propname, u8 *val, size_t nval) argument 326 fwnode_property_read_u16_array(const struct fwnode_handle *fwnode, const char *propname, u16 *val, size_t nval) argument 355 fwnode_property_read_u32_array(const struct fwnode_handle *fwnode, const char *propname, u32 *val, size_t nval) argument 384 fwnode_property_read_u64_array(const struct fwnode_handle *fwnode, const char *propname, u64 *val, size_t nval) argument 413 fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) argument 475 int nval, ret; local [all...] |
H A D | swnode.c | 174 size_t nval) 186 length = nval * elem_size; 198 const char **strings, size_t nval) 214 array_len = min_t(size_t, nval, array_len); 229 size_t i, nval; local 233 nval = p->length / sizeof(*src_str); 234 for (i = 0; i < nval; i++) 246 size_t nval) 250 for (i = 0; i < nval; i++) { 267 size_t nval; local 171 property_entry_read_int_array(const struct property_entry *props, const char *name, unsigned int elem_size, void *val, size_t nval) argument 196 property_entry_read_string_array(const struct property_entry *props, const char *propname, const char **strings, size_t nval) argument 244 property_copy_string_array(const char **dst_ptr, const char * const *src_ptr, size_t nval) argument 401 software_node_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) argument 412 software_node_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) argument [all...] |
/linux-master/net/netfilter/ |
H A D | xt_statistic.c | 33 int nval, oval; local 43 nval = (oval == info->u.nth.every) ? 0 : oval + 1; 44 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); 45 if (nval == 0)
|
H A D | nft_numgen.c | 26 u32 nval, oval; local 30 nval = (oval + 1 < priv->modulus) ? oval + 1 : 0; 31 } while (atomic_cmpxchg(priv->counter, oval, nval) != oval); 33 return nval + priv->offset;
|
/linux-master/include/linux/ |
H A D | percpu-defs.h | 414 #define raw_cpu_xchg(pcp, nval) __pcpu_size_call_return2(raw_cpu_xchg_, pcp, nval) 415 #define raw_cpu_cmpxchg(pcp, oval, nval) \ 416 __pcpu_size_call_return2(raw_cpu_cmpxchg_, pcp, oval, nval) 417 #define raw_cpu_try_cmpxchg(pcp, ovalp, nval) \ 418 __pcpu_size_call_return2bool(raw_cpu_try_cmpxchg_, pcp, ovalp, nval) 466 #define __this_cpu_xchg(pcp, nval) \ 469 raw_cpu_xchg(pcp, nval); \ 472 #define __this_cpu_cmpxchg(pcp, oval, nval) \ 475 raw_cpu_cmpxchg(pcp, oval, nval); \ [all...] |
H A D | property.h | 41 u8 *val, size_t nval); 43 u16 *val, size_t nval); 45 u32 *val, size_t nval); 47 u64 *val, size_t nval); 49 const char **val, size_t nval); 59 size_t nval); 62 size_t nval); 65 size_t nval); 68 size_t nval); 71 size_t nval); [all...] |
H A D | fwnode.h | 147 size_t nval); 151 size_t nval);
|
/linux-master/sound/isa/gus/ |
H A D | gus_mixer.c | 44 unsigned char oval, nval; local 46 nval = ucontrol->value.integer.value[0] & 1; 48 nval ^= 1; 49 nval <<= shift; 52 nval = (oval & ~(1 << shift)) | nval; 53 change = nval != oval; 54 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG));
|
/linux-master/drivers/scsi/aic94xx/ |
H A D | aic94xx_reg.h | 233 u16 nval = asd_ddbsite_read_word(asd_ha, ddb_site_no, base); local 235 if ((nval >> 8) != _oldval) 237 nval = (_newval << 8) | (nval & 0xFF); 238 oval = (_oldval << 8) | (nval & 0xFF); 240 if ((nval & 0xFF) != _oldval) 242 nval = (nval & 0xFF00) | _newval; 243 oval = (nval & 0xFF00) | _oldval; 245 return asd_ddbsite_update_word(asd_ha, ddb_site_no, base, oval, nval); [all...] |
/linux-master/sound/pcmcia/pdaudiocf/ |
H A D | pdaudiocf_pcm.c | 93 u16 val, nval, aval; local 113 val = nval = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR); 114 nval &= ~(PDAUDIOCF_DATAFMT0|PDAUDIOCF_DATAFMT1); 120 nval |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; 143 if (val != nval) { 145 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, nval);
|
/linux-master/sound/isa/sb/ |
H A D | sb_mixer.c | 218 unsigned char nval, oval; local 224 nval = SB_DT019X_CAP_CD; 227 nval = SB_DT019X_CAP_MIC; 230 nval = SB_DT019X_CAP_LINE; 233 nval = SB_DT019X_CAP_SYNTH; 236 nval = SB_DT019X_CAP_MAIN; 239 nval = SB_DT019X_CAP_MAIN; 243 change = nval != oval; 245 snd_sbmixer_write(sb, SB_DT019X_CAPTURE_SW, nval); 288 unsigned char nval, ova local 346 unsigned char nval, oval; local [all...] |
/linux-master/sound/soc/codecs/ |
H A D | sdw-mockup.c | 136 int nval; local 154 nval = hweight32(prop->source_ports); 155 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, 172 nval = hweight32(prop->sink_ports); 173 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval,
|
H A D | rt715-sdca-sdw.c | 138 int nval, i; local 149 nval = hweight32(prop->source_ports); 150 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval,
|
/linux-master/sound/pci/ice1712/ |
H A D | pontis.c | 128 unsigned short oval, nval; local 133 nval = ucontrol->value.integer.value[i]; 134 nval = (nval ? (nval + DAC_MIN) : 0) & 0xff; 137 if (oval != nval) { 138 wm_put(ice, idx, nval); 139 wm_put_nocache(ice, idx, nval | 0x100); 221 unsigned short oval, nval; local 225 nval 511 unsigned int val, nval; local [all...] |
H A D | ice1712.c | 250 unsigned char val, nval; local 254 nval = val & ~ICE1712_ROUTE_AC97; 256 nval |= ICE1712_ROUTE_AC97; 257 outb(nval, ICEMT(ice, MONITOR_ROUTECTRL)); 259 return val != nval; 320 unsigned char val, nval; local 332 nval = val & 0xf0; 334 nval |= 0x01; 336 nval |= 0x04; 337 if (val != nval) { 1275 unsigned int nval, change; local 1317 unsigned int nval, change; local 1736 unsigned int val, nval; local 1916 int change = 0, nval; local 1947 int change = 0, nval; local 2014 unsigned int val, old_val, nval; local 2084 unsigned int val, old_val, nval; local [all...] |
/linux-master/kernel/time/ |
H A D | itimer.c | 172 u64 oval, nval, ointerval, ninterval; local 175 nval = timespec64_to_ns(&value->it_value); 182 if (oval || nval) { 183 if (nval > 0) 184 nval += TICK_NSEC; 185 set_process_cpu_timer(tsk, clock_id, &nval, &oval); 187 it->expires = nval; 190 ITIMER_VIRTUAL : ITIMER_PROF, value, nval);
|
/linux-master/sound/i2c/other/ |
H A D | ak4xxx-adda.c | 376 unsigned char nval) 382 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) 385 snd_akm4xxx_set_vol(ak, chip, addr, nval); 386 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) 387 nval = vol_cvt_datt[nval]; 388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) 389 nval++; /* need to correct + 1 since both 127 and 128 are 0dB */ 391 nval = mask - nval; 375 put_ak_reg(struct snd_kcontrol *kcontrol, int addr, unsigned char nval) argument 479 unsigned char nval = ucontrol->value.enumerated.item[0] & 3; local [all...] |
/linux-master/drivers/acpi/ |
H A D | property.c | 1093 #define acpi_copy_property_array_uint(items, val, nval) \ 1097 typeof(nval) __nval = nval; \ 1125 char **val, size_t nval) 1129 for (i = 0; i < nval; i++) { 1135 return nval; 1141 void *val, size_t nval) 1147 if (nval == 1 || !val) { 1182 if (nval > obj->buffer.length) 1185 if (nval > ob 1124 acpi_copy_property_array_string(const union acpi_object *items, char **val, size_t nval) argument 1138 acpi_data_prop_read(const struct acpi_device_data *data, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) argument 1238 acpi_node_prop_read(const struct fwnode_handle *fwnode, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) argument 1525 acpi_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) argument 1553 acpi_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) argument [all...] |
/linux-master/sound/ppc/ |
H A D | beep.c | 188 unsigned int oval, nval; local 192 nval = ucontrol->value.integer.value[0]; 193 if (nval > 100) 195 chip->beep->volume = nval;
|
/linux-master/sound/isa/es1688/ |
H A D | es1688_lib.c | 739 unsigned char oval, nval; local 746 nval = (ucontrol->value.enumerated.item[0] & 7) | (oval & ~15); 747 change = nval != oval; 749 snd_es1688_mixer_write(chip, ES1688_REC_DEV, nval); 797 unsigned char oval, nval; local 799 nval = (ucontrol->value.integer.value[0] & mask); 801 nval = mask - nval; 802 nval <<= shift; 805 nval [all...] |