Searched refs:old (Results 1 - 25 of 1195) sorted by relevance

1234567891011>>

/linux-master/arch/sh/include/asm/
H A Dcmpxchg-cas.h6 __cmpxchg_u32(volatile u32 *m, unsigned long old, unsigned long new) argument
10 : "r"(old), "z"(m)
17 unsigned long old; local
18 do old = *m;
19 while (__cmpxchg_u32(m, old, val) != old);
20 return old;
H A Dbitops-cas.h5 static inline unsigned __bo_cas(volatile unsigned *p, unsigned old, unsigned new) argument
9 : "r"(old), "z"(p)
16 unsigned mask, old; local
22 do old = *a;
23 while (__bo_cas(a, old, old|mask) != old);
28 unsigned mask, old; local
34 do old = *a;
35 while (__bo_cas(a, old, ol
40 unsigned mask, old; local
52 unsigned mask, old; local
66 unsigned mask, old; local
80 unsigned mask, old; local
[all...]
H A Dspinlock-cas.h13 static inline unsigned __sl_cas(volatile unsigned *p, unsigned old, unsigned new) argument
17 : "r"(old), "z"(p)
54 unsigned old; local
55 do old = rw->lock;
56 while (!old || __sl_cas(&rw->lock, old, old-1) != old);
61 unsigned old; local
62 do old
78 unsigned old; local
[all...]
/linux-master/include/asm-generic/bitops/
H A Dlock.h10 * arch_test_and_set_bit_lock - Set a bit and return its old value, for lock
21 long old; local
28 old = raw_atomic_long_fetch_or_acquire(mask, (atomic_long_t *)p);
29 return !!(old & mask);
61 unsigned long old; local
64 old = READ_ONCE(*p);
65 old &= ~BIT_MASK(nr);
66 raw_atomic_long_set_release((atomic_long_t *)p, old);
73 long old; local
75 old
[all...]
H A Datomic.h38 long old; local
42 old = raw_atomic_long_fetch_or(mask, (atomic_long_t *)p);
43 return !!(old & mask);
49 long old; local
53 old = raw_atomic_long_fetch_andnot(mask, (atomic_long_t *)p);
54 return !!(old & mask);
60 long old; local
64 old = raw_atomic_long_fetch_xor(mask, (atomic_long_t *)p);
65 return !!(old & mask);
/linux-master/lib/
H A Derrseq.c61 errseq_t cur, old; local
72 old = READ_ONCE(*eseq);
76 return old;
82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err;
85 if (old & ERRSEQ_SEEN)
89 if (new == old) {
95 cur = cmpxchg(eseq, old, new);
101 if (likely(cur == old || cur == new))
105 old = cur;
116 * If the error has been "seen", new callers will not see an old erro
125 errseq_t old = READ_ONCE(*eseq); local
178 errseq_t old, new; local
[all...]
/linux-master/arch/s390/include/asm/
H A Dcmpxchg.h20 unsigned long old; local
34 : "=&d" (old), "+Q" (*(int *) address)
37 return old >> shift;
48 : "=&d" (old), "+Q" (*(int *) address)
51 return old >> shift;
57 : "=&d" (old), "+Q" (*(int *) address)
60 return old;
66 : "=&d" (old), "+QS" (*(long *) address)
69 return old;
88 unsigned long old,
87 __cmpxchg(unsigned long address, unsigned long old, unsigned long new, int size) argument
195 arch_cmpxchg128(volatile u128 *ptr, u128 old, u128 new) argument
[all...]
H A Datomic_ops.h50 op_type old; \
53 op_string " %[old],%[val],%[ptr]\n" \
55 : [old] "=d" (old), [ptr] "+QS" (*ptr) \
57 return old; \
101 int old, new; \
104 "0: lr %[new],%[old]\n" \
106 " cs %[old],%[new],%[ptr]\n" \
108 : [old] "=d" (old), [ne
157 __atomic_cmpxchg(int *ptr, int old, int new) argument
167 __atomic_cmpxchg_bool(int *ptr, int old, int new) argument
179 __atomic64_cmpxchg(long *ptr, long old, long new) argument
189 __atomic64_cmpxchg_bool(long *ptr, long old, long new) argument
[all...]
H A Dspinlock.h107 int old; local
109 old = __atomic_add(1, &rw->cnts);
110 if (old & 0xffff0000)
133 int old; local
135 old = READ_ONCE(rw->cnts);
136 return (!(old & 0xffff0000) &&
137 __atomic_cmpxchg_bool(&rw->cnts, old, old + 1));
142 int old; local
144 old
[all...]
/linux-master/tools/perf/util/
H A Dterm.h9 void set_term_quiet_input(struct termios *old);
/linux-master/arch/nios2/boot/
H A Dinstall.sh20 mv $4/vmlinuz $4/vmlinuz.old
24 mv $4/System.map $4/System.old
/linux-master/arch/sparc/boot/
H A Dinstall.sh20 mv $4/vmlinuz $4/vmlinuz.old
24 mv $4/System.map $4/System.old
/linux-master/arch/m68k/
H A Dinstall.sh20 mv $4/vmlinuz $4/vmlinuz.old
24 mv $4/System.map $4/System.old
/linux-master/drivers/gpu/drm/i915/
H A Di915_hwmon.h18 void i915_hwmon_power_max_disable(struct drm_i915_private *i915, bool *old);
19 void i915_hwmon_power_max_restore(struct drm_i915_private *i915, bool old);
23 static inline void i915_hwmon_power_max_disable(struct drm_i915_private *i915, bool *old) { }; argument
24 static inline void i915_hwmon_power_max_restore(struct drm_i915_private *i915, bool old) { }; argument
/linux-master/include/linux/
H A Dcmpxchg-emu.h13 uintptr_t cmpxchg_emu_u8(volatile u8 *p, uintptr_t old, uintptr_t new);
/linux-master/arch/sparc/kernel/
H A Dftrace.c26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) argument
32 "1: cas [%[ip]], %[old], %[new]\n"
47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip)
50 if (replaced != old && replaced != new)
59 u32 old, new; local
61 old = ftrace_call_replace(ip, addr);
63 return ftrace_modify_code(ip, old, new);
69 u32 old, new; local
71 old
79 u32 old, new; local
95 u32 old, new; local
105 u32 old, new; local
[all...]
/linux-master/tools/testing/selftests/arm64/bti/
H A Dsignal.c29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) argument
31 return syscall(__NR_rt_sigaction, n, sa, old, sizeof(sa->sa_mask));
34 int sigprocmask(int how, const sigset_t *mask, sigset_t *old) argument
36 return syscall(__NR_rt_sigprocmask, how, mask, old, sizeof(*mask));
/linux-master/arch/parisc/
H A Dinstall.sh30 mv $4/$base-$1 $4/$base-$1.old
36 mv $4/System.map-$1 $4/System.map-$1.old
/linux-master/arch/powerpc/boot/
H A Dinstall.sh29 mv $4/$image_name-$1 $4/$image_name-$1.old
33 mv $4/System.map-$1 $4/System-$1.old
/linux-master/arch/arm64/boot/
H A Dinstall.sh32 mv $4/$base-$1 $4/$base-$1.old
38 mv $4/System.map-$1 $4/System.map-$1.old
/linux-master/arch/riscv/boot/
H A Dinstall.sh34 mv $4/$base-$1 $4/$base-$1.old
40 mv $4/System.map-$1 $4/System.map-$1.old
/linux-master/arch/openrisc/include/asm/bitops/
H A Datomic.h67 unsigned long old; local
76 : "=&r"(old), "=&r"(tmp)
80 return (old & mask) != 0;
87 unsigned long old; local
96 : "=&r"(old), "=&r"(tmp)
100 return (old & mask) != 0;
107 unsigned long old; local
116 : "=&r"(old), "=&r"(tmp)
120 return (old & mask) != 0;
/linux-master/tools/include/asm-generic/bitops/
H A Dnon-atomic.h53 * ___test_and_set_bit - Set a bit and return its old value
66 unsigned long old = *p; local
68 *p = old | mask;
69 return (old & mask) != 0;
73 * ___test_and_clear_bit - Clear a bit and return its old value
86 unsigned long old = *p; local
88 *p = old & ~mask;
89 return (old & mask) != 0;
98 unsigned long old = *p; local
100 *p = old
[all...]
/linux-master/arch/sparc/include/asm/
H A Dcmpxchg_32.h41 u8 __cmpxchg_u8(volatile u8 *m, u8 old, u8 new_);
42 u16 __cmpxchg_u16(volatile u16 *m, u16 old, u16 new_);
43 u32 __cmpxchg_u32(volatile u32 *m, u32 old, u32 new_);
47 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) argument
50 size == 1 ? __cmpxchg_u8(ptr, old, new_) :
51 size == 2 ? __cmpxchg_u16(ptr, old, new_) :
52 size == 4 ? __cmpxchg_u32(ptr, old, new_) :
53 (__cmpxchg_called_with_bad_pointer(), old);
64 u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new);
65 #define arch_cmpxchg64(ptr, old, ne
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dcmpxchg.h42 u32 __cmpxchg_##type##sfx(volatile void *p, u32 old, u32 new) \
49 old <<= bitoff; \
67 : "r" (p), "r" (old), "r" (new), "r" (prev_mask) \
269 * Compare and exchange - if *p == old, set it to new,
270 * and return the old value of *p.
283 __cmpxchg_u8(volatile unsigned char *p, unsigned long old, unsigned long new) argument
298 : "r" (p), "r" (old), "r" (new)
305 __cmpxchg_u8_local(volatile unsigned char *p, unsigned long old, argument
318 : "r" (p), "r" (old), "r" (new)
325 __cmpxchg_u8_relaxed(u8 *p, unsigned long old, unsigne argument
344 __cmpxchg_u8_acquire(u8 *p, unsigned long old, unsigned long new) argument
364 __cmpxchg_u16(volatile unsigned short *p, unsigned long old, unsigned long new) argument
385 __cmpxchg_u16_local(volatile unsigned short *p, unsigned long old, unsigned long new) argument
405 __cmpxchg_u16_relaxed(u16 *p, unsigned long old, unsigned long new) argument
424 __cmpxchg_u16_acquire(u16 *p, unsigned long old, unsigned long new) argument
445 __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new) argument
467 __cmpxchg_u32_local(volatile unsigned int *p, unsigned long old, unsigned long new) argument
488 __cmpxchg_u32_relaxed(u32 *p, unsigned long old, unsigned long new) argument
515 __cmpxchg_u32_acquire(u32 *p, unsigned long old, unsigned long new) argument
537 __cmpxchg_u64(volatile unsigned long *p, unsigned long old, unsigned long new) argument
559 __cmpxchg_u64_local(volatile unsigned long *p, unsigned long old, unsigned long new) argument
580 __cmpxchg_u64_relaxed(u64 *p, unsigned long old, unsigned long new) argument
599 __cmpxchg_u64_acquire(u64 *p, unsigned long old, unsigned long new) argument
621 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) argument
641 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, unsigned int size) argument
661 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, unsigned int size) argument
681 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, unsigned int size) argument
[all...]

Completed in 259 milliseconds

1234567891011>>