Home
last modified time | relevance | path

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

123

/linux/drivers/net/bonding/
H A Dbond_options.c22 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);
34 const struct bond_opt_value *newval);
38 const struct bond_opt_value *newval);
40 const struct bond_opt_value *newval);
42 const struct bond_opt_value *newval);
[all …]
H A Dbond_netlink.c173 struct bond_opt_value newval; in bond_slave_changelink() local
186 bond_opt_initstr(&newval, queue_id_str); in bond_slave_changelink()
187 err = __bond_opt_set(bond, BOND_OPT_QUEUE_ID, &newval, in bond_slave_changelink()
196 bond_opt_slave_initval(&newval, &slave_dev, prio); in bond_slave_changelink()
197 err = __bond_opt_set(bond, BOND_OPT_PRIO, &newval, in bond_slave_changelink()
206 bond_opt_slave_initval(&newval, &slave_dev, ad_prio); in bond_slave_changelink()
207 err = __bond_opt_set(bond, BOND_OPT_ACTOR_PORT_PRIO, &newval, in bond_slave_changelink()
221 struct bond_opt_value newval; in bond_changelink() local
231 bond_opt_initval(&newval, mode); in bond_changelink()
232 err = __bond_opt_set(bond, BOND_OPT_MODE, &newval, in bond_changelink()
[all …]
/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()
H A 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()
H A Dfutex-irq.h7 u32 oldval, u32 newval) in atomic_futex_op_cmpxchg_inatomic() argument
17 ret = put_user(newval, uaddr); in atomic_futex_op_cmpxchg_inatomic()
/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.h239 * @newval: The new value to try and assign the futex
247 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval)
249 return __sync_val_compare_and_swap(uaddr, oldval, newval);
279 * @newval: New value for the atomic_t in futex_set()
284 futex_set(futex_t *uaddr, u_int32_t newval)
286 *uaddr = newval;
287 return newval;
241 futex_cmpxchg(futex_t * uaddr,u_int32_t oldval,u_int32_t newval) futex_cmpxchg() argument
278 futex_set(futex_t * uaddr,u_int32_t newval) futex_set() argument
/linux/scripts/kconfig/
H A Dsymbol.c413 struct symbol_value newval, oldval; in sym_calc_value() local
427 newval.tri = no; in sym_calc_value()
431 newval.val = "0"; in sym_calc_value()
434 newval.val = "0x0"; in sym_calc_value()
437 newval.val = ""; in sym_calc_value()
441 newval.val = "n"; in sym_calc_value()
456 sym->curr = newval; in sym_calc_value()
465 newval.tri = sym->curr.tri; in sym_calc_value()
472 newval.tri = EXPR_AND(sym->def[S_DEF_USER].tri, in sym_calc_value()
482 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
[all …]
/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()
/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()
/linux/Documentation/translations/zh_TW/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,
/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,
/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()
/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()
/linux/arch/powerpc/include/asm/book3s/64/
H A Dtlbflush.h162 unsigned long newval) in __pte_flags_need_flush() argument
164 unsigned long delta = oldval ^ newval; in __pte_flags_need_flush()
178 VM_WARN_ON_ONCE(newval & _PAGE_PRIVILEGED); in __pte_flags_need_flush()
180 VM_WARN_ON_ONCE(!(newval & _PAGE_PTE)); in __pte_flags_need_flush()
182 VM_WARN_ON_ONCE(!(newval & _PAGE_PRESENT)); in __pte_flags_need_flush()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data_init.c11 __u8 *buff = NULL, *newval = NULL; in test_global_data_init() local
27 newval = malloc(sz); in test_global_data_init()
28 if (CHECK_FAIL(!newval)) in test_global_data_init()
31 memset(newval, 0, sz); in test_global_data_init()
33 err = bpf_map__set_initial_value(map, newval, sz - 1); in test_global_data_init()
37 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init()
52 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init()
57 memset(newval, 1, sz); in test_global_data_init()
59 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init()
63 free(newval); in test_global_data_init()
/linux/arch/mips/include/asm/
H A Dfutex.h133 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
168 : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), in futex_atomic_cmpxchg_inatomic()
198 : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), in futex_atomic_cmpxchg_inatomic()
202 return futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
/linux/arch/arm/include/asm/
H A Dfutex.h47 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
70 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
101 u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
120 : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT) in futex_atomic_cmpxchg_inatomic()
/linux/net/dccp/ccids/lib/
H A Dtfrc.h
/linux/drivers/mmc/host/
H A Dsdhci-iproc.c112 u32 oldval, newval; in sdhci_iproc_writew() local
131 newval = (oldval & ~mask) | (val << word_shift); in sdhci_iproc_writew()
135 iproc_host->shadow_cmd = newval; in sdhci_iproc_writew()
139 iproc_host->shadow_blk = newval; in sdhci_iproc_writew()
143 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writew()
152 u32 newval = (oldval & ~mask) | (val << byte_shift); in sdhci_iproc_writeb() local
154 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writeb()
/linux/Documentation/translations/zh_CN/driver-api/
H A Dio_ordering.rst31 CPU A: writel(newval, ring_ptr);
41 上述例子中,设备可能会先接收到newval2的值,然后接收到newval的值,问题就
48 CPU A: writel(newval, ring_ptr);
/linux/Documentation/translations/zh_TW/
H A Dio_ordering.txt38 CPU A: writel(newval, ring_ptr);
48 上述例子中,設備可能會先接收到newval2的值,然後接收到newval的值,問題就
55 CPU A: writel(newval, ring_ptr);
/linux/Documentation/arch/arm/
H A Dkernel_user_helpers.rst123 int __kuser_cmpxchg(int32_t oldval, int32_t newval, volatile int32_t *ptr);
128 r1 = newval
143 Atomically store newval in `*ptr` only if `*ptr` is equal to oldval.
150 typedef int (__kuser_cmpxchg_t)(int oldval, int newval, volatile int *ptr);
214 const int64_t *newval,
220 r1 = pointer to newval
235 Atomically store the 64-bit value pointed by `*newval` in `*ptr` only if `*ptr`
245 const int64_t *newval,
/linux/arch/m68k/kernel/
H A Dsys_m68k.c463 sys_atomic_cmpxchg_32(unsigned long newval, int oldval, int d3, int d4, int d5, in sys_atomic_cmpxchg_32() argument
505 __put_user(newval, mem); in sys_atomic_cmpxchg_32()
520 struct pt_regs *fp = (struct pt_regs *)&newval; in sys_atomic_cmpxchg_32()
546 sys_atomic_cmpxchg_32(unsigned long newval, int oldval, int d3, int d4, int d5, in sys_atomic_cmpxchg_32() argument
556 *mem = newval; in sys_atomic_cmpxchg_32()

123