/kernel/linux/linux-6.6/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 259 * Test if the new envelope differs from old one 262 struct ff_envelope *old) in pidff_needs_set_envelope() 264 return envelope->attack_level != old->attack_level || in pidff_needs_set_envelope() 265 envelope->fade_level != old->fade_level || in pidff_needs_set_envelope() 266 envelope->attack_length != old->attack_length || in pidff_needs_set_envelope() 267 envelope->fade_length != old->fade_length; in pidff_needs_set_envelope() 289 struct ff_effect *old) in pidff_needs_set_constant() 291 return effect->u.constant.level != old->u.constant.level; in pidff_needs_set_constant() 324 struct ff_effect *old) in pidff_needs_set_effect() 326 return effect->replay.length != old in pidff_needs_set_effect() 261 pidff_needs_set_envelope(struct ff_envelope *envelope, struct ff_envelope *old) pidff_needs_set_envelope() argument 288 pidff_needs_set_constant(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_constant() argument 323 pidff_needs_set_effect(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_effect() argument 356 pidff_needs_set_periodic(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_periodic() argument 398 pidff_needs_set_condition(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_condition() argument 438 pidff_needs_set_ramp(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_ramp() argument 552 pidff_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old) pidff_upload_effect() argument [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | ftrace_dyn.c | 16 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() argument 25 if (replaced != old) in ftrace_modify_code() 69 u32 old, new; in ftrace_init_nop() local 72 old = larch_insn_gen_nop(); in ftrace_init_nop() 75 return ftrace_modify_code(pc, old, new, true); in ftrace_init_nop() 120 u32 old, new; in ftrace_make_call() local 136 old = larch_insn_gen_nop(); in ftrace_make_call() 139 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call() 147 u32 old, new; in ftrace_make_nop() local 164 old in ftrace_make_nop() 175 u32 old, new; ftrace_modify_call() local 217 unsigned long old; prepare_ftrace_return() local [all...] |
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | ftrace_dyn.c | 15 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, bool validate) in ftrace_modify_code() argument 23 if (replaced != old) in ftrace_modify_code() 120 u32 old, new; in ftrace_modify_call() local 132 old = larch_insn_gen_bl(pc, old_addr); in ftrace_modify_call() 134 return ftrace_modify_code(pc, old, new, true); in ftrace_modify_call() 172 u32 old, new; in ftrace_init_nop() local 176 old = larch_insn_gen_nop(); in ftrace_init_nop() 179 return ftrace_modify_code(pc, old, new, true); in ftrace_init_nop() 184 u32 old, new; in ftrace_make_call() local 192 old in ftrace_make_call() 200 u32 old, new; ftrace_make_nop() local 228 unsigned long old; prepare_ftrace_return() local [all...] |
/kernel/linux/linux-5.10/arch/openrisc/include/asm/bitops/ |
H A D | atomic.h | 67 unsigned long old; in test_and_set_bit() local 76 : "=&r"(old), "=&r"(tmp) in test_and_set_bit() 80 return (old & mask) != 0; in test_and_set_bit() 87 unsigned long old; in test_and_clear_bit() local 96 : "=&r"(old), "=&r"(tmp) in test_and_clear_bit() 100 return (old & mask) != 0; in test_and_clear_bit() 107 unsigned long old; in test_and_change_bit() local 116 : "=&r"(old), "=&r"(tmp) in test_and_change_bit() 120 return (old & mask) != 0; in test_and_change_bit()
|
/kernel/linux/linux-6.6/arch/openrisc/include/asm/bitops/ |
H A D | atomic.h | 67 unsigned long old; in test_and_set_bit() local 76 : "=&r"(old), "=&r"(tmp) in test_and_set_bit() 80 return (old & mask) != 0; in test_and_set_bit() 87 unsigned long old; in test_and_clear_bit() local 96 : "=&r"(old), "=&r"(tmp) in test_and_clear_bit() 100 return (old & mask) != 0; in test_and_clear_bit() 107 unsigned long old; in test_and_change_bit() local 116 : "=&r"(old), "=&r"(tmp) in test_and_change_bit() 120 return (old & mask) != 0; in test_and_change_bit()
|
/kernel/linux/linux-5.10/tools/include/asm-generic/bitops/ |
H A D | non-atomic.h | 50 * __test_and_set_bit - Set a bit and return its old value 62 unsigned long old = *p; in __test_and_set_bit() local 64 *p = old | mask; in __test_and_set_bit() 65 return (old & mask) != 0; in __test_and_set_bit() 69 * __test_and_clear_bit - Clear a bit and return its old value 81 unsigned long old = *p; in __test_and_clear_bit() local 83 *p = old & ~mask; in __test_and_clear_bit() 84 return (old & mask) != 0; in __test_and_clear_bit() 93 unsigned long old = *p; in __test_and_change_bit() local 95 *p = old in __test_and_change_bit() [all...] |
/kernel/linux/linux-5.10/include/asm-generic/bitops/ |
H A D | atomic.h | 34 long old; in test_and_set_bit() local 38 old = atomic_long_fetch_or(mask, (atomic_long_t *)p); in test_and_set_bit() 39 return !!(old & mask); in test_and_set_bit() 44 long old; in test_and_clear_bit() local 48 old = atomic_long_fetch_andnot(mask, (atomic_long_t *)p); in test_and_clear_bit() 49 return !!(old & mask); in test_and_clear_bit() 54 long old; in test_and_change_bit() local 58 old = atomic_long_fetch_xor(mask, (atomic_long_t *)p); in test_and_change_bit() 59 return !!(old & mask); in test_and_change_bit()
|
H A D | non-atomic.h | 50 * __test_and_set_bit - Set a bit and return its old value 62 unsigned long old = *p; in __test_and_set_bit() local 64 *p = old | mask; in __test_and_set_bit() 65 return (old & mask) != 0; in __test_and_set_bit() 69 * __test_and_clear_bit - Clear a bit and return its old value 81 unsigned long old = *p; in __test_and_clear_bit() local 83 *p = old & ~mask; in __test_and_clear_bit() 84 return (old & mask) != 0; in __test_and_clear_bit() 93 unsigned long old = *p; in __test_and_change_bit() local 95 *p = old in __test_and_change_bit() [all...] |
/kernel/linux/linux-6.6/include/asm-generic/bitops/ |
H A D | atomic.h | 38 long old; in arch_test_and_set_bit() local 42 old = raw_atomic_long_fetch_or(mask, (atomic_long_t *)p); in arch_test_and_set_bit() 43 return !!(old & mask); in arch_test_and_set_bit() 49 long old; in arch_test_and_clear_bit() local 53 old = raw_atomic_long_fetch_andnot(mask, (atomic_long_t *)p); in arch_test_and_clear_bit() 54 return !!(old & mask); in arch_test_and_clear_bit() 60 long old; in arch_test_and_change_bit() local 64 old = raw_atomic_long_fetch_xor(mask, (atomic_long_t *)p); in arch_test_and_change_bit() 65 return !!(old & mask); in arch_test_and_change_bit()
|
/kernel/linux/linux-6.6/tools/include/asm-generic/bitops/ |
H A D | non-atomic.h | 53 * ___test_and_set_bit - Set a bit and return its old value 66 unsigned long old = *p; in ___test_and_set_bit() local 68 *p = old | mask; in ___test_and_set_bit() 69 return (old & mask) != 0; in ___test_and_set_bit() 73 * ___test_and_clear_bit - Clear a bit and return its old value 86 unsigned long old = *p; in ___test_and_clear_bit() local 88 *p = old & ~mask; in ___test_and_clear_bit() 89 return (old & mask) != 0; in ___test_and_clear_bit() 98 unsigned long old = *p; in ___test_and_change_bit() local 100 *p = old in ___test_and_change_bit() [all...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | cmpxchg.h | 113 #define __cmpxchg_asm(ld, st, m, old, new) \ 134 : GCC_OFF_SMALL_ASM() (*m), "Jr" (old), "Jr" (new) \ 141 if (__ret == old) \ 149 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old, 153 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() argument 159 return __cmpxchg_small(ptr, old, new, size); in __cmpxchg() 163 (u32)old, new); in __cmpxchg() 171 (u64)old, new); in __cmpxchg() 178 #define cmpxchg_local(ptr, old, new) \ 181 (unsigned long)(__typeof__(*(ptr)))(old), \ 229 __cmpxchg64(volatile void *ptr, unsigned long long old, unsigned long long new) __cmpxchg64() argument [all...] |
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | cmpxchg.h | 112 #define __cmpxchg_asm(ld, st, m, old, new) \ 133 : GCC_OFF_SMALL_ASM() (*m), "Jr" (old), "Jr" (new) \ 140 if (__ret == old) \ 148 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old, 152 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() argument 158 return __cmpxchg_small(ptr, old, new, size); in __cmpxchg() 162 (u32)old, new); in __cmpxchg() 170 (u64)old, new); in __cmpxchg() 177 #define arch_cmpxchg_local(ptr, old, new) \ 180 (unsigned long)(__typeof__(*(ptr)))(old), \ 228 __cmpxchg64(volatile void *ptr, unsigned long long old, unsigned long long new) __cmpxchg64() argument [all...] |
/third_party/musl/porting/linux/user/src/signal/ |
H A D | sigaction.c | 26 extern bool intercept_sigaction(int signo, const struct sigaction *restrict sa, struct sigaction *restrict old); 44 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __libc_sigaction() argument 84 int r = __syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, _NSIG/8); in __libc_sigaction() 89 if (old && !r) { in __libc_sigaction() 90 old->sa_handler = ksa_old.handler; in __libc_sigaction() 91 old->sa_flags = ksa_old.flags; in __libc_sigaction() 92 memcpy(&old->sa_mask, &ksa_old.mask, _NSIG/8); in __libc_sigaction() 97 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __sigaction() argument 104 if (intercept_sigaction(sig, sa, old)) { in __sigaction() 108 return __libc_sigaction(sig, sa, old); in __sigaction() [all...] |
/third_party/musl/src/signal/linux/ |
H A D | sigaction.c | 26 extern bool intercept_sigaction(int signo, const struct sigaction *restrict sa, struct sigaction *restrict old); 44 int __libc_sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __libc_sigaction() argument 87 int r = __syscall(SYS_rt_sigaction, sig, sa?&ksa:0, old?&ksa_old:0, _NSIG/8); in __libc_sigaction() 92 if (old && !r) { in __libc_sigaction() 93 old->sa_handler = ksa_old.handler; in __libc_sigaction() 94 old->sa_flags = ksa_old.flags; in __libc_sigaction() 95 memcpy(&old->sa_mask, &ksa_old.mask, _NSIG/8); in __libc_sigaction() 100 int __sigaction(int sig, const struct sigaction *restrict sa, struct sigaction *restrict old) in __sigaction() argument 107 if (intercept_sigaction(sig, sa, old)) { in __sigaction() 111 return __libc_sigaction(sig, sa, old); in __sigaction() [all...] |
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
H A D | aarch32.c | 77 unsigned long old, new; in get_except32_cpsr() local 79 old = *vcpu_cpsr(vcpu); in get_except32_cpsr() 82 new |= (old & PSR_AA32_N_BIT); in get_except32_cpsr() 83 new |= (old & PSR_AA32_Z_BIT); in get_except32_cpsr() 84 new |= (old & PSR_AA32_C_BIT); in get_except32_cpsr() 85 new |= (old & PSR_AA32_V_BIT); in get_except32_cpsr() 86 new |= (old & PSR_AA32_Q_BIT); in get_except32_cpsr() 92 new |= (old & PSR_AA32_DIT_BIT); in get_except32_cpsr() 102 new |= (old & PSR_AA32_PAN_BIT); in get_except32_cpsr() 111 new |= (old in get_except32_cpsr() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | cmpxchg.h | 58 #define __cmpxchg_asm(ld, st, m, old, new) \ 60 __typeof(old) __ret; \ 71 : "ZB"(*m), "Jr" (old), "Jr" (new) \ 77 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old, 81 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg() argument 86 return __cmpxchg_small(ptr, old, new, size); in __cmpxchg() 90 (u32)old, new); in __cmpxchg() 94 (u64)old, new); in __cmpxchg() 103 #define cmpxchg_local(ptr, old, new) \ 106 (unsigned long)(__typeof__(*(ptr)))(old), \ [all...] |
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
H A D | cmpxchg.h | 60 extern unsigned long __cmpxchg_u32(volatile unsigned int *m, unsigned int old, 62 extern u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new_); 63 extern u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new_); 67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() argument 71 case 8: return __cmpxchg_u64((u64 *)ptr, old, new_); in __cmpxchg() 74 (unsigned int)old, (unsigned int)new_); in __cmpxchg() 75 case 1: return __cmpxchg_u8((u8 *)ptr, old & 0xff, new_ & 0xff); in __cmpxchg() 78 return old; in __cmpxchg() 92 unsigned long old, in __cmpxchg_local() 97 case 8: return __cmpxchg_u64((u64 *)ptr, old, new in __cmpxchg_local() 91 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg_local() argument [all...] |
/kernel/linux/linux-6.6/arch/parisc/include/asm/ |
H A D | cmpxchg.h | 60 extern unsigned long __cmpxchg_u32(volatile unsigned int *m, unsigned int old, 62 extern u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new_); 63 extern u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new_); 67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() argument 71 case 8: return __cmpxchg_u64((u64 *)ptr, old, new_); in __cmpxchg() 74 (unsigned int)old, (unsigned int)new_); in __cmpxchg() 75 case 1: return __cmpxchg_u8((u8 *)ptr, old & 0xff, new_ & 0xff); in __cmpxchg() 78 return old; in __cmpxchg() 92 unsigned long old, in __cmpxchg_local() 97 case 8: return __cmpxchg_u64((u64 *)ptr, old, new in __cmpxchg_local() 91 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg_local() argument [all...] |
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | dma-resv.c | 189 struct dma_resv_list *old, *new; in dma_resv_reserve_shared() local 194 old = dma_resv_get_list(obj); in dma_resv_reserve_shared() 196 if (old && old->shared_max) { in dma_resv_reserve_shared() 197 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared() 200 max = max(old->shared_count + num_fences, in dma_resv_reserve_shared() 201 old->shared_max * 2); in dma_resv_reserve_shared() 213 * references from the old struct are carried over to in dma_resv_reserve_shared() 216 for (i = 0, j = 0, k = max; i < (old in dma_resv_reserve_shared() 266 struct dma_fence *old; dma_resv_add_shared_fence() local 311 struct dma_resv_list *old; dma_resv_add_excl_fence() local 349 struct dma_fence *old, *new; dma_resv_copy_fences() local [all...] |
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
H A D | atomic.h | 201 #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 204 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 214 * Returns the old value of @v. 218 int c, new, old; in atomic_fetch_add_unless() local 221 "1: ldl_l %[old],%[mem]\n" in atomic_fetch_add_unless() 222 " cmpeq %[old],%[u],%[c]\n" in atomic_fetch_add_unless() 223 " addl %[old],%[a],%[new]\n" in atomic_fetch_add_unless() 231 : [old] " in atomic_fetch_add_unless() 250 s64 c, new, old; atomic64_fetch_add_unless() local 280 s64 old, tmp; atomic64_dec_if_positive() local [all...] |
/kernel/linux/linux-6.6/arch/s390/mm/ |
H A D | pgtable.c | 91 pte_t old; in ptep_flush_direct() local 93 old = *ptep; in ptep_flush_direct() 94 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_direct() 95 return old; in ptep_flush_direct() 103 return old; in ptep_flush_direct() 110 pte_t old; in ptep_flush_lazy() local 112 old = *ptep; in ptep_flush_lazy() 113 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_lazy() 114 return old; in ptep_flush_lazy() 123 return old; in ptep_flush_lazy() 130 unsigned long old; pgste_get_lock() local 267 ptep_xchg_commit(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pgste_t pgste, pte_t old, pte_t new) ptep_xchg_commit() argument 292 pte_t old; ptep_xchg_direct() local 334 pte_t old; ptep_xchg_lazy() local 351 pte_t old; ptep_modify_prot_start() local 419 pmd_t old; pmdp_flush_direct() local 437 pmd_t old; pmdp_flush_lazy() local 493 pmd_t old; pmdp_xchg_direct() local 506 pmd_t old; pmdp_xchg_lazy() local 545 pud_t old; pudp_flush_direct() local 563 pud_t old; pudp_xchg_direct() local 816 pgste_t old, new; set_guest_storage_key() local 926 pgste_t old, new; reset_guest_reference_bit() local [all...] |
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | cmpxchg-cas.h | 6 __cmpxchg_u32(volatile u32 *m, unsigned long old, unsigned long new) in __cmpxchg_u32() argument 10 : "r"(old), "z"(m) in __cmpxchg_u32() 17 unsigned long old; in xchg_u32() local 18 do old = *m; in xchg_u32() 19 while (__cmpxchg_u32(m, old, val) != old); in xchg_u32() 20 return old; in xchg_u32()
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | cmpxchg-cas.h | 6 __cmpxchg_u32(volatile u32 *m, unsigned long old, unsigned long new) in __cmpxchg_u32() argument 10 : "r"(old), "z"(m) in __cmpxchg_u32() 17 unsigned long old; in xchg_u32() local 18 do old = *m; in xchg_u32() 19 while (__cmpxchg_u32(m, old, val) != old); in xchg_u32() 20 return old; in xchg_u32()
|
/third_party/musl/src/thread/ |
H A D | pthread_sigmask.c | 5 int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in pthread_sigmask() argument 9 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in pthread_sigmask() 10 if (!ret && old) { in pthread_sigmask() 11 if (sizeof old->__bits[0] == 8) { in pthread_sigmask() 12 old->__bits[0] &= ~0x380000000ULL; in pthread_sigmask() 14 old->__bits[0] &= ~0x80000000UL; in pthread_sigmask() 15 old->__bits[1] &= ~0x3UL; in pthread_sigmask()
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
H A D | pgtable.c | 91 pte_t old; in ptep_flush_direct() local 93 old = *ptep; in ptep_flush_direct() 94 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_direct() 95 return old; in ptep_flush_direct() 103 return old; in ptep_flush_direct() 110 pte_t old; in ptep_flush_lazy() local 112 old = *ptep; in ptep_flush_lazy() 113 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_lazy() 114 return old; in ptep_flush_lazy() 123 return old; in ptep_flush_lazy() 130 unsigned long old; pgste_get_lock() local 267 ptep_xchg_commit(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pgste_t pgste, pte_t old, pte_t new) ptep_xchg_commit() argument 292 pte_t old; ptep_xchg_direct() local 309 pte_t old; ptep_xchg_lazy() local 326 pte_t old; ptep_modify_prot_start() local 394 pmd_t old; pmdp_flush_direct() local 412 pmd_t old; pmdp_flush_lazy() local 454 pmd_t old; pmdp_xchg_direct() local 467 pmd_t old; pmdp_xchg_lazy() local 506 pud_t old; pudp_flush_direct() local 524 pud_t old; pudp_xchg_direct() local 777 pgste_t old, new; set_guest_storage_key() local 879 pgste_t old, new; reset_guest_reference_bit() local [all...] |