Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 1548) sorted by relevance

12345678910>>...62

/linux/arch/sh/include/asm/
A Dbitops-cas.h22 do old = *a; in set_bit()
23 while (__bo_cas(a, old, old|mask) != old); in set_bit()
34 do old = *a; in clear_bit()
35 while (__bo_cas(a, old, old&~mask) != old); in clear_bit()
46 do old = *a; in change_bit()
47 while (__bo_cas(a, old, old^mask) != old); in change_bit()
58 do old = *a; in test_and_set_bit()
59 while (__bo_cas(a, old, old|mask) != old); in test_and_set_bit()
72 do old = *a; in test_and_clear_bit()
73 while (__bo_cas(a, old, old&~mask) != old); in test_and_clear_bit()
[all …]
A Dspinlock-cas.h17 : "r"(old), "z"(p) in __sl_cas()
54 unsigned old; in arch_read_lock() local
55 do old = rw->lock; in arch_read_lock()
56 while (!old || __sl_cas(&rw->lock, old, old-1) != old); in arch_read_lock()
61 unsigned old; in arch_read_unlock() local
62 do old = rw->lock; in arch_read_unlock()
63 while (__sl_cas(&rw->lock, old, old+1) != old); in arch_read_unlock()
78 unsigned old; in arch_read_trylock() local
79 do old = rw->lock; in arch_read_trylock()
80 while (old && __sl_cas(&rw->lock, old, old-1) != old); in arch_read_trylock()
[all …]
/linux/arch/ia64/include/asm/
A Dbitops.h50 old = *m; in set_bit()
52 } while (cmpxchg_acq(m, old, new) != old); in set_bit()
91 old = *m; in clear_bit()
93 } while (cmpxchg_acq(m, old, new) != old); in clear_bit()
115 old = *m; in clear_bit_unlock()
117 } while (cmpxchg_rel(m, old, new) != old); in clear_bit_unlock()
174 } while (cmpxchg_acq(m, old, new) != old); in change_bit()
213 } while (cmpxchg_acq(m, old, new) != old); in test_and_set_bit()
267 } while (cmpxchg_acq(m, old, new) != old); in test_and_clear_bit()
312 } while (cmpxchg_acq(m, old, new) != old); in test_and_change_bit()
[all …]
A Datomic.h34 __s32 old, new; \
40 new = old c_op i; \
41 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \
49 __s32 old, new; \
56 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \
57 return old; \
129 s64 old, new; \
136 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old); \
144 s64 old, new; \
151 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old); \
[all …]
A Dacenv.h22 unsigned int old, new, val; in ia64_acpi_acquire_global_lock() local
24 old = *lock; in ia64_acpi_acquire_global_lock()
25 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); in ia64_acpi_acquire_global_lock()
26 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_acquire_global_lock()
27 } while (unlikely (val != old)); in ia64_acpi_acquire_global_lock()
34 unsigned int old, new, val; in ia64_acpi_release_global_lock() local
36 old = *lock; in ia64_acpi_release_global_lock()
37 new = old & ~0x3; in ia64_acpi_release_global_lock()
38 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_release_global_lock()
39 } while (unlikely (val != old)); in ia64_acpi_release_global_lock()
[all …]
/linux/arch/s390/include/asm/
A Datomic_ops.h50 op_type old; \
55 : [old] "=d" (old), [ptr] "+QS" (*ptr) \
57 return old; \
108 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
134 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+QS" (*ptr)\
161 : [old] "+d" (old), [ptr] "+Q" (*ptr) in __atomic_cmpxchg()
164 return old; in __atomic_cmpxchg()
173 : [old] "+d" (old), [ptr] "+Q" (*ptr) in __atomic_cmpxchg_bool()
183 : [old] "+d" (old), [ptr] "+QS" (*ptr) in __atomic64_cmpxchg()
186 return old; in __atomic64_cmpxchg()
[all …]
A Dcmpxchg.h20 unsigned long old; in __xchg() local
37 return old >> shift; in __xchg()
51 return old >> shift; in __xchg()
60 return old; in __xchg()
69 return old; in __xchg()
88 unsigned long old, in __cmpxchg() argument
111 : "d" ((old & 0xff) << shift), in __cmpxchg()
141 : "0" (old), "d" (new) in __cmpxchg()
148 : "0" (old), "d" (new) in __cmpxchg()
153 return old; in __cmpxchg()
[all …]
/linux/arch/powerpc/include/asm/
A Dcmpxchg.h49 old <<= bitoff; \
231 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u32()
252 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u32_local()
271 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u32_relaxed()
300 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u32_acquire()
323 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u64()
344 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u64_local()
408 return old; in __cmpxchg()
428 return old; in __cmpxchg_local()
448 return old; in __cmpxchg_relaxed()
[all …]
/linux/lib/
A Derrseq.c61 errseq_t cur, old; in errseq_set() local
72 old = READ_ONCE(*eseq); in errseq_set()
76 return old; in errseq_set()
85 if (old & ERRSEQ_SEEN) in errseq_set()
89 if (new == old) { in errseq_set()
105 old = cur; in errseq_set()
129 old = 0; in errseq_sample()
130 return old; in errseq_sample()
178 errseq_t old, new; in errseq_check_and_advance() local
186 if (old != *since) { in errseq_check_and_advance()
[all …]
A Dlockref.c13 struct lockref old; \
14 BUILD_BUG_ON(sizeof(old) != 8); \
15 old.lock_count = READ_ONCE(lockref->lock_count); \
17 struct lockref new = old, prev = old; \
20 old.lock_count, \
69 if (old.count <= 0) in lockref_get_not_zero()
97 if (old.count <= 1) in lockref_put_not_zero()
124 if (old.count <= 0) in lockref_get_or_lock()
150 if (old.count <= 0) in lockref_put_return()
168 if (old.count <= 1) in lockref_put_or_lock()
[all …]
/linux/arch/s390/lib/
A Dspinlock.c86 int expected = old; in arch_cmpxchg_niai8()
91 : "=d" (old), "=Q" (*lock) in arch_cmpxchg_niai8()
94 return expected == old; in arch_cmpxchg_niai8()
131 old = READ_ONCE(lp->lock); in arch_spin_lock_queued()
141 new = (old ? (old + _Q_LOCK_STEAL_ADD) : 0) | lockval; in arch_spin_lock_queued()
154 tail_id = old & _Q_TAIL_MASK; in arch_spin_lock_queued()
182 old = READ_ONCE(lp->lock); in arch_spin_lock_queued()
292 int old; in arch_write_lock_wait() local
301 old = READ_ONCE(rw->cnts); in arch_write_lock_wait()
302 if ((old & 0x1ffff) == 0 && in arch_write_lock_wait()
[all …]
/linux/kernel/
A Dtracepoint.c144 if (old) { in release_probes()
192 old = *funcs; in func_add()
193 if (old) { in func_add()
208 if (old) { in func_add()
229 return old; in func_add()
238 old = *funcs; in func_remove()
240 if (!old) in func_remove()
262 return old; in func_remove()
287 *funcs = old; in func_remove()
291 return old; in func_remove()
[all …]
A Dcred.c266 old = task->cred; in prepare_creds()
459 validate_creds(old); in commit_creds()
498 if (new->user != old->user || new->user_ns != old->user_ns) in commit_creds()
502 if (new->user != old->user || new->user_ns != old->user_ns) in commit_creds()
520 put_cred(old); in commit_creds()
521 put_cred(old); in commit_creds()
584 return old; in override_creds()
672 if (new->user == old->user && new->user_ns == old->user_ns) in set_cred_ucounts()
735 *new = *old; in prepare_kernel_cred()
761 put_cred(old); in prepare_kernel_cred()
[all …]
/linux/arch/sparc/kernel/
A Dftrace.c47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code()
59 u32 old, new; in ftrace_make_nop() local
61 old = ftrace_call_replace(ip, addr); in ftrace_make_nop()
69 u32 old, new; in ftrace_make_call() local
71 old = ftrace_nop; in ftrace_make_call()
79 u32 old, new; in ftrace_update_ftrace_func() local
81 old = *(u32 *) &ftrace_call; in ftrace_update_ftrace_func()
95 u32 old, new; in ftrace_enable_ftrace_graph_caller() local
97 old = *(u32 *) &ftrace_graph_call; in ftrace_enable_ftrace_graph_caller()
105 u32 old, new; in ftrace_disable_ftrace_graph_caller() local
[all …]
/linux/security/safesetid/
A Dlsm.c159 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred()
160 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
163 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred()
164 gid_eq(new_id.gid, old->sgid)) in id_permitted_for_cred()
179 __kuid_val(old->uid), __kuid_val(old->euid), in id_permitted_for_cred()
180 __kuid_val(old->suid), __kuid_val(new_id.uid)); in id_permitted_for_cred()
183 __kgid_val(old->gid), __kgid_val(old->egid), in id_permitted_for_cred()
184 __kgid_val(old->sgid), __kgid_val(new_id.gid)); in id_permitted_for_cred()
197 const struct cred *old, in safesetid_task_fix_setuid() argument
205 if (id_permitted_for_cred(old, (kid_t){.uid = new->uid}, UID) && in safesetid_task_fix_setuid()
[all …]
/linux/drivers/input/joystick/iforce/
A Diforce-ff.c349 if (!old || need_period_modifier(iforce, old, effect)) { in iforce_upload_periodic()
351 old != NULL, in iforce_upload_periodic()
359 if (!old || need_envelope_modifier(iforce, old, effect)) { in iforce_upload_periodic()
361 old !=NULL, in iforce_upload_periodic()
380 if (!old || need_core(old, effect)) { in iforce_upload_periodic()
419 if (!old || need_magnitude_modifier(iforce, old, effect)) { in iforce_upload_constant()
421 old != NULL, in iforce_upload_constant()
428 if (!old || need_envelope_modifier(iforce, old, effect)) { in iforce_upload_constant()
430 old != NULL, in iforce_upload_constant()
440 if (!old || need_core(old, effect)) { in iforce_upload_constant()
[all …]
/linux/arch/arm/kernel/
A Dftrace.c83 old = __opcode_to_mem_thumb32(old); in ftrace_modify_code()
85 old = __opcode_to_mem_arm(old); in ftrace_modify_code()
92 if (replaced != old) in ftrace_modify_code()
126 unsigned long new, old; in ftrace_make_call() local
135 old = ftrace_nop_replace(rec); in ftrace_make_call()
153 unsigned long new, old; in ftrace_modify_call() local
170 unsigned long old; in ftrace_make_nop() local
185 if (!old && mod) { in ftrace_make_nop()
203 unsigned long old; in prepare_ftrace_return() local
208 old = *parent; in prepare_ftrace_return()
[all …]
/linux/include/linux/
A Drefcount.h155 if (!old) in __refcount_add_not_zero()
157 } while (!atomic_try_cmpxchg_relaxed(&r->refs, &old, old + i)); in __refcount_add_not_zero()
160 *oldp = old; in __refcount_add_not_zero()
162 if (unlikely(old < 0 || old + i < 0)) in __refcount_add_not_zero()
165 return old; in __refcount_add_not_zero()
196 *oldp = old; in __refcount_add()
200 else if (unlikely(old < 0 || old + i < 0)) in __refcount_add()
275 *oldp = old; in __refcount_sub_and_test()
277 if (old == i) { in __refcount_sub_and_test()
282 if (unlikely(old < 0 || old - i < 0)) in __refcount_sub_and_test()
[all …]
A Diversion.h126 u64 cur, old; in inode_set_max_iversion_raw() local
133 if (likely(old == cur)) in inode_set_max_iversion_raw()
135 cur = old; in inode_set_max_iversion_raw()
200 u64 cur, old, new; in inode_maybe_inc_iversion() local
223 if (likely(old == cur)) in inode_maybe_inc_iversion()
225 cur = old; in inode_maybe_inc_iversion()
307 u64 cur, old, new; in inode_query_iversion() local
324 if (likely(old == cur)) in inode_query_iversion()
326 cur = old; in inode_query_iversion()
355 return inode_peek_iversion_raw(inode) == old; in inode_eq_iversion_raw()
[all …]
/linux/arch/x86/include/asm/
A Datomic64_32.h277 c = old; in arch_atomic64_and()
285 c = old; in arch_atomic64_fetch_and()
287 return old; in arch_atomic64_fetch_and()
296 c = old; in arch_atomic64_or()
304 c = old; in arch_atomic64_fetch_or()
306 return old; in arch_atomic64_fetch_or()
315 c = old; in arch_atomic64_xor()
323 c = old; in arch_atomic64_fetch_xor()
325 return old; in arch_atomic64_fetch_xor()
334 c = old; in arch_atomic64_fetch_add()
[all …]
/linux/arch/sh/kernel/
A Dftrace.c102 int old = atomic_read(&nmi_running); in clear_mod_flag() local
105 int new = old & ~MOD_CODE_WRITE_FLAG; in clear_mod_flag()
107 if (old == new) in clear_mod_flag()
110 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag()
236 unsigned char *new, *old; in ftrace_make_nop() local
239 old = ftrace_call_replace(ip, addr); in ftrace_make_nop()
247 unsigned char *new, *old; in ftrace_make_call() local
250 old = ftrace_nop_replace(ip); in ftrace_make_call()
318 unsigned long old; in prepare_ftrace_return() local
352 : "=&r" (old), "=r" (faulted) in prepare_ftrace_return()
[all …]
/linux/arch/arm64/kvm/hyp/
A Dexception.c107 old = *vcpu_cpsr(vcpu); in enter_exception64()
110 new |= (old & PSR_N_BIT); in enter_exception64()
111 new |= (old & PSR_Z_BIT); in enter_exception64()
112 new |= (old & PSR_C_BIT); in enter_exception64()
113 new |= (old & PSR_V_BIT); in enter_exception64()
118 new |= (old & PSR_DIT_BIT); in enter_exception64()
126 new |= (old & PSR_PAN_BIT); in enter_exception64()
152 __vcpu_write_spsr(vcpu, old); in enter_exception64()
176 unsigned long old, new; in get_except32_cpsr() local
178 old = *vcpu_cpsr(vcpu); in get_except32_cpsr()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_lock.c67 old = *lock; in drm_lock_take()
68 if (old & _DRM_LOCK_HELD) in drm_lock_take()
76 } while (prev != old); in drm_lock_take()
116 old = *lock; in drm_lock_transfer()
119 } while (prev != old); in drm_lock_transfer()
139 old = *lock; in drm_legacy_lock_free()
142 } while (prev != old); in drm_legacy_lock_free()
144 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in drm_legacy_lock_free()
311 unsigned int old, prev; in drm_legacy_idlelock_release() local
318 old = *lock; in drm_legacy_idlelock_release()
[all …]
/linux/arch/sparc/include/asm/
A Dcmpxchg_64.h11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument
15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32()
119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64()
145 return old; in __cmpxchg_u8()
147 } while (load == old); in __cmpxchg_u8()
161 return __cmpxchg_u8(ptr, old, new); in __cmpxchg()
163 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
165 return __cmpxchg_u64(ptr, old, new); in __cmpxchg()
168 return old; in __cmpxchg()
185 unsigned long old, in __cmpxchg_local() argument
[all …]
/linux/arch/arm64/kernel/
A Dftrace.c42 if (replaced != old) in ftrace_modify_code()
86 u32 old, new; in ftrace_make_call() local
122 old = aarch64_insn_gen_nop(); in ftrace_make_call()
125 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call()
133 u32 old, new; in ftrace_modify_call() local
167 u32 old, new; in ftrace_init_nop() local
169 old = aarch64_insn_gen_nop(); in ftrace_init_nop()
185 u32 old = 0, new; in ftrace_make_nop() local
225 old = aarch64_insn_gen_branch_imm(pc, addr, in ftrace_make_nop()
252 unsigned long old; in prepare_ftrace_return() local
[all …]

Completed in 59 milliseconds

12345678910>>...62