Home
last modified time | relevance | path

Searched refs:newval (Results 1 – 25 of 96) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_options.c20 const struct bond_opt_value *newval);
22 const struct bond_opt_value *newval);
24 const struct bond_opt_value *newval);
26 const struct bond_opt_value *newval);
28 const struct bond_opt_value *newval);
30 const struct bond_opt_value *newval);
32 const struct bond_opt_value *newval);
36 const struct bond_opt_value *newval);
38 const struct bond_opt_value *newval);
40 const struct bond_opt_value *newval);
[all …]
Dbond_netlink.c136 struct bond_opt_value newval; in bond_slave_changelink() local
149 bond_opt_initstr(&newval, queue_id_str); in bond_slave_changelink()
150 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval); in bond_slave_changelink()
163 struct bond_opt_value newval; in bond_changelink() local
173 bond_opt_initval(&newval, mode); in bond_changelink()
174 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval); in bond_changelink()
190 bond_opt_initstr(&newval, active_slave); in bond_changelink()
191 err = __bond_opt_set(bond, BOND_OPT_ACTIVE_SLAVE, &newval); in bond_changelink()
198 bond_opt_initval(&newval, miimon); in bond_changelink()
199 err = __bond_opt_set(bond, BOND_OPT_MIIMON, &newval); in bond_changelink()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dglobal_data_init.c8 __u8 *buff = NULL, *newval = NULL; in test_global_data_init() local
24 newval = malloc(sz); in test_global_data_init()
25 if (CHECK_FAIL(!newval)) in test_global_data_init()
28 memset(newval, 0, sz); in test_global_data_init()
30 err = bpf_map__set_initial_value(map, newval, sz - 1); in test_global_data_init()
34 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init()
49 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init()
54 memset(newval, 1, sz); in test_global_data_init()
56 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init()
60 free(newval); in test_global_data_init()
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dfutex.h10 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument
20 : "=d" (ret), "=&d" (oldval), "=&d" (newval), \
28 int oldval = 0, newval, ret; in arch_futex_atomic_op_inuser() local
35 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
39 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
43 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
47 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
51 ret, oldval, newval, uaddr, oparg); in arch_futex_atomic_op_inuser()
65 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
78 : "0" (-EFAULT), "d" (newval), "a" (uaddr), "m" (*uaddr) in futex_atomic_cmpxchg_inatomic()
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dfutex.h21 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
26 return atomic_futex_op_cmpxchg_inatomic(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
32 u32 oldval, newval, prev; in arch_futex_atomic_op_inuser() local
42 newval = oparg; in arch_futex_atomic_op_inuser()
45 newval = oldval + oparg; in arch_futex_atomic_op_inuser()
48 newval = oldval | oparg; in arch_futex_atomic_op_inuser()
51 newval = oldval & ~oparg; in arch_futex_atomic_op_inuser()
54 newval = oldval ^ oparg; in arch_futex_atomic_op_inuser()
63 ret = futex_atomic_cmpxchg_inatomic(&prev, uaddr, oldval, newval); in arch_futex_atomic_op_inuser()
Dfutex-cas.h7 u32 oldval, u32 newval) in atomic_futex_op_cmpxchg_inatomic() argument
27 :"+r" (err), "+r" (newval) in atomic_futex_op_cmpxchg_inatomic()
31 *uval = newval; in atomic_futex_op_cmpxchg_inatomic()
Dfutex-llsc.h7 u32 oldval, u32 newval) in atomic_futex_op_cmpxchg_inatomic() argument
36 :"r" (uaddr), "i" (-EFAULT), "r" (oldval), "r" (newval) in atomic_futex_op_cmpxchg_inatomic()
/kernel/linux/linux-5.10/drivers/hwmon/
Dasc7621.c472 u8 currval, newval = 0; in store_ap2_temp() local
483 newval = i; in store_ap2_temp()
488 newval = (newval & param->mask[0]) << param->shift[0]; in store_ap2_temp()
490 newval |= (currval & ~(param->mask[0] << param->shift[0])); in store_ap2_temp()
491 data->reg[param->msb[0]] = newval; in store_ap2_temp()
492 write_byte(client, param->msb[0], newval); in store_ap2_temp()
522 u8 currval, config, altbit, newval; in store_pwm_ac() local
548 newval = config | (currval & ~(param->mask[0] << param->shift[0])); in store_pwm_ac()
549 newval = altbit | (newval & ~(param->mask[1] << param->shift[1])); in store_pwm_ac()
550 data->reg[param->msb[0]] = newval; in store_pwm_ac()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/futex/include/
Datomic.h36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() argument
38 return __sync_val_compare_and_swap(&addr->val, oldval, newval); in atomic_cmpxchg()
73 atomic_set(atomic_t *addr, int newval) in atomic_set() argument
75 addr->val = newval; in atomic_set()
76 return newval; in atomic_set()
Dfutextest.h219 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) in futex_cmpxchg() argument
221 return __sync_val_compare_and_swap(uaddr, oldval, newval); in futex_cmpxchg()
256 futex_set(futex_t *uaddr, u_int32_t newval) in futex_set() argument
258 *uaddr = newval; in futex_set()
259 return newval; in futex_set()
/kernel/linux/linux-5.10/scripts/kconfig/
Dsymbol.c327 struct symbol_value newval, oldval; in sym_calc_value() local
352 newval = symbol_empty.curr; in sym_calc_value()
356 newval = symbol_no.curr; in sym_calc_value()
371 sym->curr = newval; in sym_calc_value()
378 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
385 newval.tri = EXPR_AND(sym->def[S_DEF_USER].tri, in sym_calc_value()
395 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
397 if (newval.tri != no) in sym_calc_value()
402 newval.tri = EXPR_OR(newval.tri, sym->implied.tri); in sym_calc_value()
403 newval.tri = EXPR_AND(newval.tri, in sym_calc_value()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dauxio_64.c35 u8 regval, newval; in __auxio_rmw() local
42 newval = regval | bits_on; in __auxio_rmw()
43 newval &= ~bits_off; in __auxio_rmw()
45 newval &= ~AUXIO_AUX1_MASK; in __auxio_rmw()
47 writel((u32) newval, auxio_register); in __auxio_rmw()
49 sbus_writeb(newval, auxio_register); in __auxio_rmw()
/kernel/linux/linux-5.10/tools/include/asm-generic/
Datomic-gcc.h64 #define cmpxchg(ptr, oldval, newval) \ argument
65 __sync_val_compare_and_swap(ptr, oldval, newval)
67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() argument
69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/arm/
Dkernel_user_helpers.txt136 int __kuser_cmpxchg(int32_t oldval, int32_t newval, volatile int32_t *ptr);
141 r1 = newval
156 仅在 *ptr 为 oldval 时原子保存 newval 于 *ptr 中。
163 typedef int (__kuser_cmpxchg_t)(int oldval, int newval, volatile int *ptr);
229 const int64_t *newval,
235 r1 = 指向 newval
250 仅在 *ptr 等于 *oldval 指向的 64 位值时,原子保存 *newval
260 const int64_t *newval,
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Dfutex.h39 : [oldval] "=&r" (old), [newval] "=&r" (ret) \
63 : [oldval] "=&r" (old), [newval] "=&r" (ret), \
114 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
152 : [ret] "+r" (ret), [newval] "+r" (newval), [tmp] "=&r" (tmp) in futex_atomic_cmpxchg_inatomic()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dfutex_64.h69 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
86 : "+r" (ret), "=r" (newval) in futex_atomic_cmpxchg_inatomic()
87 : "1" (newval), "r" (oldval), "r" (uaddr), "i" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
90 *uval = newval; in futex_atomic_cmpxchg_inatomic()
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dfutex.h26 int val, newval; \
39 "=&r" (newval) \
86 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
101 : "r" (uaddr), "r" (newval), in futex_atomic_cmpxchg_inatomic()
/kernel/linux/linux-5.10/drivers/net/phy/
Dmicrel.c418 int newval; in ksz9021_load_values_from_of() local
437 newval = kszphy_extended_read(phydev, reg); in ksz9021_load_values_from_of()
439 newval = 0; in ksz9021_load_values_from_of()
442 newval = ((newval & 0xfff0) | ((val1 / PS_TO_REG) & 0xf) << 0); in ksz9021_load_values_from_of()
445 newval = ((newval & 0xff0f) | ((val2 / PS_TO_REG) & 0xf) << 4); in ksz9021_load_values_from_of()
448 newval = ((newval & 0xf0ff) | ((val3 / PS_TO_REG) & 0xf) << 8); in ksz9021_load_values_from_of()
451 newval = ((newval & 0x0fff) | ((val4 / PS_TO_REG) & 0xf) << 12); in ksz9021_load_values_from_of()
453 return kszphy_extended_write(phydev, reg, newval); in ksz9021_load_values_from_of()
558 u16 newval; in ksz9031_of_load_skew_values() local
571 newval = phy_read_mmd(phydev, 2, reg); in ksz9031_of_load_skew_values()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
Dclock.c79 static __u16 verify_ckctl_value(__u16 newval) in verify_ckctl_value() argument
101 per_exp = (newval >> CKCTL_PERDIV_OFFSET) & 3; in verify_ckctl_value()
102 lcd_exp = (newval >> CKCTL_LCDDIV_OFFSET) & 3; in verify_ckctl_value()
103 arm_exp = (newval >> CKCTL_ARMDIV_OFFSET) & 3; in verify_ckctl_value()
104 dsp_exp = (newval >> CKCTL_DSPDIV_OFFSET) & 3; in verify_ckctl_value()
105 tc_exp = (newval >> CKCTL_TCDIV_OFFSET) & 3; in verify_ckctl_value()
106 dspmmu_exp = (newval >> CKCTL_DSPMMUDIV_OFFSET) & 3; in verify_ckctl_value()
121 newval &= 0xf000; in verify_ckctl_value()
122 newval |= per_exp << CKCTL_PERDIV_OFFSET; in verify_ckctl_value()
123 newval |= lcd_exp << CKCTL_LCDDIV_OFFSET; in verify_ckctl_value()
[all …]
/kernel/linux/linux-5.10/net/dccp/ccids/lib/
Dtfrc.h49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument
51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dfutex.h45 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
68 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
99 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
118 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
/kernel/linux/linux-5.10/include/asm-generic/
Dfutex.h94 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
104 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) { in futex_atomic_cmpxchg_inatomic()
124 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-iproc.c121 u32 oldval, newval; in sdhci_iproc_writew() local
140 newval = (oldval & ~mask) | (val << word_shift); in sdhci_iproc_writew()
144 iproc_host->shadow_cmd = newval; in sdhci_iproc_writew()
148 iproc_host->shadow_blk = newval; in sdhci_iproc_writew()
152 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writew()
161 u32 newval = (oldval & ~mask) | (val << byte_shift); in sdhci_iproc_writeb() local
163 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writeb()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_gmac.c117 static void hns_gmac_set_tx_auto_pause_frames(void *mac_drv, u16 newval) in hns_gmac_set_tx_auto_pause_frames() argument
122 GMAC_FC_TX_TIMER_S, newval); in hns_gmac_set_tx_auto_pause_frames()
125 static void hns_gmac_get_tx_auto_pause_frames(void *mac_drv, u16 *newval) in hns_gmac_get_tx_auto_pause_frames() argument
129 *newval = dsaf_get_dev_field(drv, GMAC_FC_TX_TIMER_REG, in hns_gmac_get_tx_auto_pause_frames()
133 static void hns_gmac_set_rx_auto_pause_frames(void *mac_drv, u32 newval) in hns_gmac_set_rx_auto_pause_frames() argument
138 GMAC_PAUSE_EN_RX_FDFC_B, !!newval); in hns_gmac_set_rx_auto_pause_frames()
141 static void hns_gmac_config_max_frame_length(void *mac_drv, u16 newval) in hns_gmac_config_max_frame_length() argument
146 GMAC_MAX_FRM_SIZE_S, newval); in hns_gmac_config_max_frame_length()
149 GMAC_MAX_FRM_SIZE_S, newval); in hns_gmac_config_max_frame_length()
152 static void hns_gmac_config_pad_and_crc(void *mac_drv, u8 newval) in hns_gmac_config_pad_and_crc() argument
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dfutex.h128 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
163 : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), in futex_atomic_cmpxchg_inatomic()
193 : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), in futex_atomic_cmpxchg_inatomic()

1234