Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/net/bonding/
H A Dbond_options.c959 newval->value); in bond_option_miimon_set()
1289 newval->string, newval->value); in bond_option_arp_validate_set()
1299 newval->string, newval->value); in bond_option_arp_all_targets_set()
1309 newval->string, newval->value); in bond_option_missed_max_set()
1388 newval->string, newval->value); in bond_option_primary_reselect_set()
1402 newval->string, newval->value); in bond_option_fail_over_mac_set()
1412 newval->string, newval->value); in bond_option_xmit_hash_policy_set()
1500 newval->string, newval->value); in bond_option_lacp_active_set()
1510 newval->string, newval->value); in bond_option_lacp_rate_set()
1521 newval->string, newval->value); in bond_option_ad_select_set()
[all …]
H A Dbond_netlink.c150 struct bond_opt_value newval; in bond_slave_changelink() local
188 struct bond_opt_value newval; in bond_changelink() local
198 bond_opt_initval(&newval, mode); in bond_changelink()
225 bond_opt_initval(&newval, miimon); in bond_changelink()
234 bond_opt_initval(&newval, updelay); in bond_changelink()
243 bond_opt_initval(&newval, downdelay); in bond_changelink()
252 bond_opt_initval(&newval, delay); in bond_changelink()
297 &newval, in bond_changelink()
327 &newval, in bond_changelink()
374 bond_opt_initstr(&newval, primary); in bond_changelink()
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dfutex.h11 #define __futex_atomic_op(insn, ret, oldval, newval, uaddr, oparg) \ argument
22 : "=d" (ret), "=&d" (oldval), "=&d" (newval), \
30 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()
64 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
75 : "0" (-EFAULT), "d" (newval), "a" (uaddr), "m" (*uaddr) in futex_atomic_cmpxchg_inatomic()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
/openbmc/linux/arch/sh/include/asm/
H A 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()
H A 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()
/openbmc/linux/drivers/hwmon/
H A Dasc7621.c483 newval = i; in store_ap2_temp()
488 newval = (newval & param->mask[0]) << param->shift[0]; in store_ap2_temp()
573 newval = 0; in show_pwm_enable()
575 newval = 1; in show_pwm_enable()
577 newval = 2; in show_pwm_enable()
579 newval = 3; in show_pwm_enable()
631 newval = in store_pwm_enable()
671 newval = i; in store_pwm_freq()
678 newval = (newval & param->mask[0]) << param->shift[0]; in store_pwm_freq()
727 newval = (newval & param->mask[0]) << param->shift[0]; in store_pwm_ast()
[all …]
/openbmc/linux/tools/testing/selftests/futex/include/
H A 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()
H A 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()
/openbmc/linux/arch/xtensa/include/asm/
H A Dfutex.h43 : [oldval] "=&r" (old), [newval] "=&r" (ret) \
67 : [oldval] "=&r" (old), [newval] "=&r" (ret), \
118 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
156 : [ret] "+r" (ret), [newval] "+r" (newval), [tmp] "=&r" (tmp) in futex_atomic_cmpxchg_inatomic()
163 return futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
/openbmc/linux/scripts/kconfig/
H A Dsymbol.c371 sym->curr = newval; 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()
410 newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); in sym_calc_value()
413 newval.tri = yes; in sym_calc_value()
541 switch (newval) { in sym_toggle_tristate_value()
543 newval = mod; in sym_toggle_tristate_value()
546 newval = yes; in sym_toggle_tristate_value()
549 newval = no; in sym_toggle_tristate_value()
555 return newval; in sym_toggle_tristate_value()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dauxio_64.c36 u8 regval, newval; in __auxio_rmw() local
43 newval = regval | bits_on; in __auxio_rmw()
44 newval &= ~bits_off; in __auxio_rmw()
46 newval &= ~AUXIO_AUX1_MASK; in __auxio_rmw()
48 writel((u32) newval, auxio_register); in __auxio_rmw()
50 sbus_writeb(newval, auxio_register); in __auxio_rmw()
/openbmc/u-boot/scripts/kconfig/
H A Dsymbol.c403 sym->curr = newval; in sym_calc_value()
434 newval.tri = EXPR_OR(newval.tri, sym->implied.tri); in sym_calc_value()
440 newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); in sym_calc_value()
444 newval.tri = yes; in sym_calc_value()
467 sym->curr = newval; in sym_calc_value()
574 switch (newval) { in sym_toggle_tristate_value()
576 newval = mod; in sym_toggle_tristate_value()
579 newval = yes; in sym_toggle_tristate_value()
582 newval = no; in sym_toggle_tristate_value()
588 return newval; in sym_toggle_tristate_value()
[all …]
/openbmc/linux/arch/powerpc/include/asm/book3s/64/
H A Dtlbflush.h167 unsigned long newval) in __pte_flags_need_flush() argument
169 unsigned long delta = oldval ^ newval; in __pte_flags_need_flush()
183 VM_WARN_ON_ONCE(!__pte_protnone(newval) && newval & _PAGE_PRIVILEGED); in __pte_flags_need_flush()
185 VM_WARN_ON_ONCE(!(newval & _PAGE_PTE)); in __pte_flags_need_flush()
187 VM_WARN_ON_ONCE(!(newval & _PAGE_PRESENT)); in __pte_flags_need_flush()
/openbmc/qemu/tests/tcg/arm/
H A Dcommpage.c25 typedef int (cmpxchg_fn)(int oldval, int newval, volatile int *ptr);
30 const int64_t *newval,
47 const int64_t oldval = 1, newval = 2; in main() local
58 fail_unless(ARM_KUSER_CMPXCHG64(&oldval, &newval, &val64) == 0); in main()
/openbmc/linux/Documentation/translations/zh_CN/arch/arm/
H A 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,
/openbmc/linux/tools/include/asm-generic/
H A Datomic-gcc.h65 #define cmpxchg(ptr, oldval, newval) \ argument
66 __sync_val_compare_and_swap(ptr, oldval, newval)
68 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() argument
70 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
/openbmc/linux/arch/sparc/include/asm/
H A 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()
/openbmc/linux/kernel/futex/
H A Dpi.c521 u32 uval, newval, vpid = task_pid_vnr(task); in futex_lock_pi_atomic() local
563 newval = uval & FUTEX_OWNER_DIED; in futex_lock_pi_atomic()
564 newval |= vpid; in futex_lock_pi_atomic()
568 newval |= FUTEX_WAITERS; in futex_lock_pi_atomic()
570 ret = lock_pi_update_atomic(uaddr, uval, newval); in futex_lock_pi_atomic()
598 newval = uval | FUTEX_WAITERS; in futex_lock_pi_atomic()
599 ret = lock_pi_update_atomic(uaddr, uval, newval); in futex_lock_pi_atomic()
619 u32 curval, newval; in wake_futex_pi() local
643 newval = FUTEX_WAITERS | task_pid_vnr(new_owner); in wake_futex_pi()
688 u32 uval, curval, newval, newtid; in __fixup_pi_state_owner() local
[all …]
/openbmc/qemu/system/
H A Drunstate-hmp-cmds.c47 bool newval; in hmp_one_insn_per_tb() local
56 newval = true; in hmp_one_insn_per_tb()
58 newval = false; in hmp_one_insn_per_tb()
65 newval, &error_abort); in hmp_one_insn_per_tb()
/openbmc/linux/include/asm-generic/
H A Dfutex.h16 #define futex_atomic_cmpxchg_inatomic(uval, uaddr, oldval, newval) \ argument
17 futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval)
100 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic_local() argument
110 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) { in futex_atomic_cmpxchg_inatomic_local()
/openbmc/linux/arch/ia64/include/asm/
H A 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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/rocksdb/files/
H A D0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch50 T *addr, U oldval, V newval) {
52 - return __sync_val_compare_and_swap(addr, oldval, newval);
53 + return __atomic_compare_exchange(addr, oldval, newval);
57 toku_sync_bool_compare_and_swap(T *addr, U oldval, V newval) {
59 - return __sync_bool_compare_and_swap(addr, oldval, newval);
60 + return static_cast<bool>(__atomic_compare_exchange(addr, oldval, newval));
/openbmc/linux/arch/arm/mach-omap1/
H A Dclock.c85 static __u16 verify_ckctl_value(__u16 newval) in verify_ckctl_value() argument
107 per_exp = (newval >> CKCTL_PERDIV_OFFSET) & 3; in verify_ckctl_value()
108 lcd_exp = (newval >> CKCTL_LCDDIV_OFFSET) & 3; in verify_ckctl_value()
111 tc_exp = (newval >> CKCTL_TCDIV_OFFSET) & 3; in verify_ckctl_value()
127 newval &= 0xf000; in verify_ckctl_value()
128 newval |= per_exp << CKCTL_PERDIV_OFFSET; in verify_ckctl_value()
129 newval |= lcd_exp << CKCTL_LCDDIV_OFFSET; in verify_ckctl_value()
130 newval |= arm_exp << CKCTL_ARMDIV_OFFSET; in verify_ckctl_value()
131 newval |= dsp_exp << CKCTL_DSPDIV_OFFSET; in verify_ckctl_value()
132 newval |= tc_exp << CKCTL_TCDIV_OFFSET; in verify_ckctl_value()
[all …]
/openbmc/openbmc/poky/meta/classes/
H A Dmultilib_global.bbclass55 newval = localdata.expand(val)
56 d.setVar(newname, newval)
82 newval = localdata.expand(val)
83 d.setVar(newname, newval)
94 newval = None
96 newval = p + "-" + val
104 d.setVar(newname, localdata.expand(newval))
109 d.setVar(newname, localdata.expand(newval))
119 newval = p + "-" + val
127 d.setVar(newname, localdata.expand(newval))
[all …]

123456