Searched refs:old (Results 1 - 200 of 3210) sorted by relevance

1234567891011>>

/linux-4.4.14/tools/build/feature/
H A Dtest-sync-compare-and-swap.c7 uint64_t old, new = argc; main() local
11 old = __sync_val_compare_and_swap(&x, 0, 0); main()
12 } while (!__sync_bool_compare_and_swap(&x, old, new)); main()
13 return old == new; main()
/linux-4.4.14/arch/ia64/include/asm/
H A Dacenv.h25 unsigned int old, new, val; ia64_acpi_acquire_global_lock() local
27 old = *lock; ia64_acpi_acquire_global_lock()
28 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); ia64_acpi_acquire_global_lock()
29 val = ia64_cmpxchg4_acq(lock, new, old); ia64_acpi_acquire_global_lock()
30 } while (unlikely (val != old)); ia64_acpi_acquire_global_lock()
37 unsigned int old, new, val; ia64_acpi_release_global_lock() local
39 old = *lock; ia64_acpi_release_global_lock()
40 new = old & ~0x3; ia64_acpi_release_global_lock()
41 val = ia64_cmpxchg4_acq(lock, new, old); ia64_acpi_release_global_lock()
42 } while (unlikely (val != old)); ia64_acpi_release_global_lock()
43 return old & 0x1; ia64_acpi_release_global_lock()
H A Datomic.h34 __s32 old, new; \
39 old = atomic_read(v); \
40 new = old c_op i; \
41 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \
86 __s64 old, new; \
91 old = atomic64_read(v); \
92 new = old c_op i; \
93 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old); \
134 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
137 #define atomic64_cmpxchg(v, old, new) \
138 (cmpxchg(&((v)->counter), old, new))
143 int c, old; __atomic_add_unless() local
148 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
149 if (likely(old == c)) __atomic_add_unless()
151 c = old; __atomic_add_unless()
159 long c, old; atomic64_add_unless() local
164 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless()
165 if (likely(old == c)) atomic64_add_unless()
167 c = old; atomic64_add_unless()
H A Dsegment.h4 /* Only here because we have some old header files that expect it.. */
H A Drwsem.h55 long old, new; __down_write() local
58 old = sem->count; __down_write()
59 new = old + RWSEM_ACTIVE_WRITE_BIAS; __down_write()
60 } while (cmpxchg_acq(&sem->count, old, new) != old); __down_write()
62 if (old != 0) __down_write()
84 long old, new; __up_write() local
87 old = sem->count; __up_write()
88 new = old - RWSEM_ACTIVE_WRITE_BIAS; __up_write()
89 } while (cmpxchg_rel(&sem->count, old, new) != old); __up_write()
127 long old, new; __downgrade_write() local
130 old = sem->count; __downgrade_write()
131 new = old - RWSEM_WAITING_BIAS; __downgrade_write()
132 } while (cmpxchg_rel(&sem->count, old, new) != old); __downgrade_write()
134 if (old < 0) __downgrade_write()
H A Dbitops.h41 __u32 bit, old, new; set_bit() local
49 old = *m; set_bit()
50 new = old | bit; set_bit()
51 } while (cmpxchg_acq(m, old, new) != old); set_bit()
82 __u32 mask, old, new; clear_bit() local
90 old = *m; clear_bit()
91 new = old & mask; clear_bit()
92 } while (cmpxchg_acq(m, old, new) != old); clear_bit()
106 __u32 mask, old, new; clear_bit_unlock() local
114 old = *m; clear_bit_unlock()
115 new = old & mask; clear_bit_unlock()
116 } while (cmpxchg_rel(m, old, new) != old); clear_bit_unlock()
163 __u32 bit, old, new; change_bit() local
171 old = *m; change_bit()
172 new = old ^ bit; change_bit()
173 } while (cmpxchg_acq(m, old, new) != old); change_bit()
192 * test_and_set_bit - Set a bit and return its old value
202 __u32 bit, old, new; test_and_set_bit() local
210 old = *m; test_and_set_bit()
211 new = old | bit; test_and_set_bit()
212 } while (cmpxchg_acq(m, old, new) != old); test_and_set_bit()
213 return (old & bit) != 0; test_and_set_bit()
217 * test_and_set_bit_lock - Set a bit and return its old value for lock
226 * __test_and_set_bit - Set a bit and return its old value
246 * test_and_clear_bit - Clear a bit and return its old value
256 __u32 mask, old, new; test_and_clear_bit() local
264 old = *m; test_and_clear_bit()
265 new = old & mask; test_and_clear_bit()
266 } while (cmpxchg_acq(m, old, new) != old); test_and_clear_bit()
267 return (old & ~mask) != 0; test_and_clear_bit()
271 * __test_and_clear_bit - Clear a bit and return its old value
291 * test_and_change_bit - Change a bit and return its old value
301 __u32 bit, old, new; test_and_change_bit() local
309 old = *m; test_and_change_bit()
310 new = old ^ bit; test_and_change_bit()
311 } while (cmpxchg_acq(m, old, new) != old); test_and_change_bit()
312 return (old & bit) != 0; test_and_change_bit()
316 * __test_and_change_bit - Change a bit and return its old value
325 __u32 old, bit = (1 << (nr & 31)); __test_and_change_bit() local
328 old = *m; __test_and_change_bit()
329 *m = old ^ bit; __test_and_change_bit()
330 return (old & bit) != 0; __test_and_change_bit()
/linux-4.4.14/arch/avr32/include/asm/
H A Dcmpxchg.h46 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument
54 " cp.w %[ret], %[old]\n" __cmpxchg_u32()
60 : "m"(m), [old] "ir"(old), [new] "r"(new) __cmpxchg_u32()
66 volatile int * m, unsigned long old, unsigned long new);
73 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument
78 return __cmpxchg_u32(ptr, old, new); __cmpxchg()
80 return __cmpxchg_u64(ptr, old, new); __cmpxchg()
84 return old; __cmpxchg()
87 #define cmpxchg(ptr, old, new) \
88 ((typeof(*(ptr)))__cmpxchg((ptr), (unsigned long)(old), \
95 unsigned long old, __cmpxchg_local()
100 return __cmpxchg_u32(ptr, old, new); __cmpxchg_local()
102 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local()
105 return old; __cmpxchg_local()
108 #define cmpxchg_local(ptr, old, new) \
109 ((typeof(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(old), \
94 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
H A Dbitops.h124 * test_and_set_bit - Set a bit and return its old value
135 unsigned long tmp, old; test_and_set_bit() local
145 : "=&r"(tmp), "=o"(*p), "=&r"(old) test_and_set_bit()
155 : "=&r"(tmp), "=o"(*p), "=&r"(old) test_and_set_bit()
160 return (old & mask) != 0; test_and_set_bit()
164 * test_and_clear_bit - Clear a bit and return its old value
175 unsigned long tmp, old; test_and_clear_bit() local
185 : "=&r"(tmp), "=o"(*p), "=&r"(old) test_and_clear_bit()
196 : "=&r"(tmp), "=o"(*p), "=&r"(old) test_and_clear_bit()
201 return (old & mask) != 0; test_and_clear_bit()
205 * test_and_change_bit - Change a bit and return its old value
216 unsigned long tmp, old; test_and_change_bit() local
224 : "=&r"(tmp), "=o"(*p), "=&r"(old) test_and_change_bit()
228 return (old & mask) != 0; test_and_change_bit()
/linux-4.4.14/arch/s390/lib/
H A Dspinlock.c35 static inline void _raw_compare_and_delay(unsigned int *lock, unsigned int old) _raw_compare_and_delay() argument
37 asm(".insn rsy,0xeb0000000022,%0,0,%1" : : "d" (old), "Q" (*lock)); _raw_compare_and_delay()
139 unsigned int owner, old; _raw_read_lock_wait() local
152 old = ACCESS_ONCE(rw->lock); _raw_read_lock_wait()
154 if ((int) old < 0) { _raw_read_lock_wait()
156 _raw_compare_and_delay(&rw->lock, old); _raw_read_lock_wait()
159 if (_raw_compare_and_swap(&rw->lock, old, old + 1)) _raw_read_lock_wait()
167 unsigned int old; _raw_read_trylock_retry() local
171 old = ACCESS_ONCE(rw->lock); _raw_read_trylock_retry()
172 if ((int) old < 0) { _raw_read_trylock_retry()
174 _raw_compare_and_delay(&rw->lock, old); _raw_read_trylock_retry()
177 if (_raw_compare_and_swap(&rw->lock, old, old + 1)) _raw_read_trylock_retry()
188 unsigned int owner, old; _raw_write_lock_wait() local
198 old = ACCESS_ONCE(rw->lock); _raw_write_lock_wait()
201 if ((int) old >= 0) { _raw_write_lock_wait()
203 old = prev; _raw_write_lock_wait()
205 if ((old & 0x7fffffff) == 0 && (int) prev >= 0) _raw_write_lock_wait()
208 _raw_compare_and_delay(&rw->lock, old); _raw_write_lock_wait()
217 unsigned int owner, old, prev; _raw_write_lock_wait() local
228 old = ACCESS_ONCE(rw->lock); _raw_write_lock_wait()
230 if ((int) old >= 0 && _raw_write_lock_wait()
231 _raw_compare_and_swap(&rw->lock, old, old | 0x80000000)) _raw_write_lock_wait()
232 prev = old; _raw_write_lock_wait()
235 if ((old & 0x7fffffff) == 0 && (int) prev >= 0) _raw_write_lock_wait()
238 _raw_compare_and_delay(&rw->lock, old); _raw_write_lock_wait()
247 unsigned int old; _raw_write_trylock_retry() local
251 old = ACCESS_ONCE(rw->lock); _raw_write_trylock_retry()
252 if (old) { _raw_write_trylock_retry()
254 _raw_compare_and_delay(&rw->lock, old); _raw_write_trylock_retry()
/linux-4.4.14/arch/metag/include/asm/
H A Dcmpxchg_lnkget.h6 int temp, old; xchg_u32() local
20 : "=&d" (temp), "=&d" (old) xchg_u32()
27 return old; xchg_u32()
32 int temp, old; xchg_u8() local
46 : "=&d" (temp), "=&d" (old) xchg_u8()
53 return old; xchg_u8()
56 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument
77 : "da" (m), "bd" (old), "da" (new) __cmpxchg_u32()
H A Dbitops.h54 unsigned long old; test_and_set_bit() local
60 old = *p; test_and_set_bit()
61 if (!(old & mask)) { test_and_set_bit()
63 *p = old | mask; test_and_set_bit()
67 return (old & mask) != 0; test_and_set_bit()
74 unsigned long old; test_and_clear_bit() local
80 old = *p; test_and_clear_bit()
81 if (old & mask) { test_and_clear_bit()
83 *p = old & ~mask; test_and_clear_bit()
87 return (old & mask) != 0; test_and_clear_bit()
94 unsigned long old; test_and_change_bit() local
101 old = *p; test_and_change_bit()
102 *p = old ^ mask; test_and_change_bit()
105 return (old & mask) != 0; test_and_change_bit()
H A Dcmpxchg.h43 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument
48 return __cmpxchg_u32(ptr, old, new); __cmpxchg()
51 return old; __cmpxchg()
H A Dcmpxchg_irq.h28 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument
36 if (retval == old) __cmpxchg_u32()
H A Dcmpxchg_lock1.h32 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument
40 if (retval == old) { __cmpxchg_u32()
H A Datomic_lnkget.h85 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
102 : "da" (&v->counter), "bd" (old), "da" (new) atomic_cmpxchg()
112 int temp, old; atomic_xchg() local
121 : "=&d" (temp), "=&d" (old) atomic_xchg()
125 return old; atomic_xchg()
H A Datomic_lock1.h79 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
86 if (ret == old) { atomic_cmpxchg()
/linux-4.4.14/arch/alpha/include/asm/
H A Dsegment.h4 /* Only here because we have some old header files that expect it.. */
H A Datomic.h131 #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
134 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
144 * Returns the old value of @v.
148 int c, new, old; __atomic_add_unless() local
151 "1: ldl_l %[old],%[mem]\n" __atomic_add_unless()
152 " cmpeq %[old],%[u],%[c]\n" __atomic_add_unless()
153 " addl %[old],%[a],%[new]\n" __atomic_add_unless()
161 : [old] "=&r"(old), [new] "=&r"(new), [c] "=&r"(c) __atomic_add_unless()
165 return old; __atomic_add_unless()
201 * atomic64_dec_if_positive - decrement by 1 if old value positive
204 * The function returns the old value of *v minus 1, even if
209 long old, tmp; atomic64_dec_if_positive() local
212 "1: ldq_l %[old],%[mem]\n" atomic64_dec_if_positive()
213 " subq %[old],1,%[tmp]\n" atomic64_dec_if_positive()
214 " ble %[old],2f\n" atomic64_dec_if_positive()
221 : [old] "=&r"(old), [tmp] "=&r"(tmp) atomic64_dec_if_positive()
225 return old - 1; atomic64_dec_if_positive()
H A Dxchg.h132 * prev is equal to old) then we aren't acquiring anything new and
137 ____cmpxchg(_u8, volatile char *m, unsigned char old, unsigned char new) ____cmpxchg() argument
158 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); ____cmpxchg()
164 ____cmpxchg(_u16, volatile short *m, unsigned short old, unsigned short new) ____cmpxchg() argument
185 : "r" ((long)m), "Ir" (old), "1" (new) : "memory"); ____cmpxchg()
191 ____cmpxchg(_u32, volatile int *m, int old, int new) ____cmpxchg() argument
208 : "r"((long) old), "r"(new), "m"(*m) : "memory"); ____cmpxchg()
214 ____cmpxchg(_u64, volatile long *m, unsigned long old, unsigned long new) ____cmpxchg() argument
231 : "r"((long) old), "r"(new), "m"(*m) : "memory"); ____cmpxchg()
241 ____cmpxchg(, volatile void *ptr, unsigned long old, unsigned long new, ____cmpxchg() argument
246 return ____cmpxchg(_u8, ptr, old, new); ____cmpxchg()
248 return ____cmpxchg(_u16, ptr, old, new); ____cmpxchg()
250 return ____cmpxchg(_u32, ptr, old, new); ____cmpxchg()
252 return ____cmpxchg(_u64, ptr, old, new); ____cmpxchg()
255 return old; ____cmpxchg()
H A Dlocal.h69 long c, old; \
74 old = local_cmpxchg((l), c, c + (a)); \
75 if (likely(old == c)) \
77 c = old; \
H A Dbitops.h193 int old = *m; __test_and_set_bit() local
195 *m = old | mask; __test_and_set_bit()
196 return (old & mask) != 0; __test_and_set_bit()
237 int old = *m; __test_and_clear_bit() local
239 *m = old & ~mask; __test_and_clear_bit()
240 return (old & mask) != 0; __test_and_clear_bit()
279 int old = *m; __test_and_change_bit() local
281 *m = old ^ mask; __test_and_change_bit()
282 return (old & mask) != 0; __test_and_change_bit()
H A Drwsem.h53 long old, new, res; __down_read_trylock() local
60 old = res; __down_read_trylock()
61 res = cmpxchg(&sem->count, old, new); __down_read_trylock()
62 } while (res != old); __down_read_trylock()
/linux-4.4.14/include/linux/
H A Dkd.h6 #define KD_FONT_FLAG_OLD 0x80000000 /* Invoked via old interface [compat] */
H A Ddqblk_v1.h2 * File with in-memory structures of old quota format
H A Dflat.h18 * purely for compatibility with old tool chains.
20 * DO NOT make changes or enhancements to the old format please, just work
21 * with the format above, except to fix bugs with old format support.
H A Drbtree_augmented.h40 void (*copy)(struct rb_node *old, struct rb_node *new);
41 void (*rotate)(struct rb_node *old, struct rb_node *new);
45 void (*augment_rotate)(struct rb_node *old, struct rb_node *new));
80 rbstruct *old = rb_entry(rb_old, rbstruct, rbfield); \
82 new->rbaugmented = old->rbaugmented; \
87 rbstruct *old = rb_entry(rb_old, rbstruct, rbfield); \
89 new->rbaugmented = old->rbaugmented; \
90 old->rbaugmented = rbcompute(old); \
121 __rb_change_child(struct rb_node *old, struct rb_node *new, __rb_change_child() argument
125 if (parent->rb_left == old) __rb_change_child()
134 void (*augment_rotate)(struct rb_node *old, struct rb_node *new));
H A Dswap_cgroup.h9 unsigned short old, unsigned short new);
/linux-4.4.14/arch/sparc/kernel/
H A Dftrace.c25 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) ftrace_modify_code() argument
31 "1: cas [%[ip]], %[old], %[new]\n" ftrace_modify_code()
46 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) ftrace_modify_code()
49 if (replaced != old && replaced != new) ftrace_modify_code()
58 u32 old, new; ftrace_make_nop() local
60 old = ftrace_call_replace(ip, addr); ftrace_make_nop()
62 return ftrace_modify_code(ip, old, new); ftrace_make_nop()
68 u32 old, new; ftrace_make_call() local
70 old = ftrace_nop; ftrace_make_call()
72 return ftrace_modify_code(ip, old, new); ftrace_make_call()
78 u32 old, new; ftrace_update_ftrace_func() local
80 old = *(u32 *) &ftrace_call; ftrace_update_ftrace_func()
82 return ftrace_modify_code(ip, old, new); ftrace_update_ftrace_func()
99 u32 old, new; ftrace_enable_ftrace_graph_caller() local
101 old = *(u32 *) &ftrace_graph_call; ftrace_enable_ftrace_graph_caller()
103 return ftrace_modify_code(ip, old, new); ftrace_enable_ftrace_graph_caller()
109 u32 old, new; ftrace_disable_ftrace_graph_caller() local
111 old = *(u32 *) &ftrace_graph_call; ftrace_disable_ftrace_graph_caller()
114 return ftrace_modify_code(ip, old, new); ftrace_disable_ftrace_graph_caller()
/linux-4.4.14/tools/perf/util/
H A Dsigchain.c7 sigchain_fun *old; member in struct:sigchain_signal
24 ALLOC_GROW(s->old, s->n + 1, s->alloc); sigchain_push()
25 s->old[s->n] = signal(sig, f); sigchain_push()
26 if (s->old[s->n] == SIG_ERR) sigchain_push()
39 if (signal(sig, s->old[s->n - 1]) == SIG_ERR) sigchain_pop()
/linux-4.4.14/arch/sparc/lib/
H A Datomic32.c77 int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
84 if (likely(ret == old)) atomic_cmpxchg()
119 unsigned long old, flags; ___set_bit() local
122 old = *addr; ___set_bit()
123 *addr = old | mask; ___set_bit()
126 return old & mask; ___set_bit()
132 unsigned long old, flags; ___clear_bit() local
135 old = *addr; ___clear_bit()
136 *addr = old & ~mask; ___clear_bit()
139 return old & mask; ___clear_bit()
145 unsigned long old, flags; ___change_bit() local
148 old = *addr; ___change_bit()
149 *addr = old ^ mask; ___change_bit()
152 return old & mask; ___change_bit()
156 unsigned long __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new) __cmpxchg_u32() argument
162 if ((prev = *ptr) == old) __cmpxchg_u32()
/linux-4.4.14/include/asm-generic/
H A Dsegment.h4 * Only here because we have some old header files that expect it...
H A Dcmpxchg-local.h15 unsigned long old, unsigned long new, int size) __cmpxchg_local_generic()
28 if (prev == old) __cmpxchg_local_generic()
32 if (prev == old) __cmpxchg_local_generic()
36 if (prev == old) __cmpxchg_local_generic()
40 if (prev == old) __cmpxchg_local_generic()
54 u64 old, u64 new) __cmpxchg64_local_generic()
61 if (prev == old) __cmpxchg64_local_generic()
14 __cmpxchg_local_generic(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local_generic() argument
53 __cmpxchg64_local_generic(volatile void *ptr, u64 old, u64 new) __cmpxchg64_local_generic() argument
H A Datomic.h45 int c, old; \
48 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
49 c = old; \
55 int c, old; \
58 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \
59 c = old; \
177 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
181 int c, old; __atomic_add_unless() local
183 while (c != u && (old = atomic_cmpxchg(v, c, c + a)) != c) __atomic_add_unless()
184 c = old; __atomic_add_unless()
H A Datomic-long.h80 #define atomic_long_cmpxchg_relaxed(l, old, new) \
82 (old), (new)))
83 #define atomic_long_cmpxchg_acquire(l, old, new) \
85 (old), (new)))
86 #define atomic_long_cmpxchg_release(l, old, new) \
88 (old), (new)))
89 #define atomic_long_cmpxchg(l, old, new) \
90 (ATOMIC_LONG_PFX(_cmpxchg)((ATOMIC_LONG_PFX(_t) *)(l), (old), (new)))
H A Dcputime_jiffies.h6 #define cmpxchg_cputime(ptr, old, new) cmpxchg(ptr, old, new)
/linux-4.4.14/arch/s390/include/asm/
H A Drwsem.h20 * uncontended lock. This can be determined because XADD returns the old value.
54 signed long old, new; __down_read() local
62 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __down_read()
65 if (old < 0) __down_read()
74 signed long old, new; __down_read_trylock() local
84 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __down_read_trylock()
87 return old >= 0 ? 1 : 0; __down_read_trylock()
95 signed long old, new, tmp; __down_write_nested() local
104 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __down_write_nested()
107 if (old != 0) __down_write_nested()
121 signed long old; __down_write_trylock() local
130 : "=&d" (old), "=Q" (sem->count) __down_write_trylock()
133 return (old == RWSEM_UNLOCKED_VALUE) ? 1 : 0; __down_write_trylock()
141 signed long old, new; __up_read() local
149 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __up_read()
162 signed long old, new, tmp; __up_write() local
171 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __up_write()
184 signed long old, new, tmp; __downgrade_write() local
193 : "=&d" (old), "=&d" (new), "=Q" (sem->count) __downgrade_write()
205 signed long old, new; rwsem_atomic_add() local
213 : "=&d" (old), "=&d" (new), "=Q" (sem->count) rwsem_atomic_add()
223 signed long old, new; rwsem_atomic_update() local
231 : "=&d" (old), "=&d" (new), "=Q" (sem->count) rwsem_atomic_update()
H A Dspinlock.h19 _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new) _raw_compare_and_swap() argument
21 return __sync_bool_compare_and_swap(lock, old, new); _raw_compare_and_swap()
133 unsigned int old = ACCESS_ONCE(rw->lock); arch_read_trylock_once() local
134 return likely((int) old >= 0 && arch_read_trylock_once()
135 _raw_compare_and_swap(&rw->lock, old, old + 1)); arch_read_trylock_once()
140 unsigned int old = ACCESS_ONCE(rw->lock); arch_write_trylock_once() local
141 return likely(old == 0 && arch_write_trylock_once()
183 unsigned int old; arch_read_lock() local
185 old = __RAW_LOCK(&rw->lock, 1, __RAW_OP_ADD); arch_read_lock()
186 if ((int) old < 0) arch_read_lock()
197 unsigned int old; arch_write_lock() local
199 old = __RAW_LOCK(&rw->lock, 0x80000000, __RAW_OP_OR); arch_write_lock()
200 if (old != 0) arch_write_lock()
201 _raw_write_lock_wait(rw, old); arch_write_lock()
224 unsigned int old; arch_read_unlock() local
227 old = ACCESS_ONCE(rw->lock); arch_read_unlock()
228 } while (!_raw_compare_and_swap(&rw->lock, old, old - 1)); arch_read_unlock()
H A Datomic.h136 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
140 : "+d" (old), "+Q" (v->counter) atomic_cmpxchg()
143 return old; atomic_cmpxchg()
148 int c, old; __atomic_add_unless() local
153 old = atomic_cmpxchg(v, c, c + a); __atomic_add_unless()
154 if (likely(old == c)) __atomic_add_unless()
156 c = old; __atomic_add_unless()
257 long long old, long long new) atomic64_cmpxchg()
261 : "+d" (old), "+Q" (v->counter) atomic64_cmpxchg()
264 return old; atomic64_cmpxchg()
282 long long c, old; atomic64_add_unless() local
288 old = atomic64_cmpxchg(v, c, c + i); atomic64_add_unless()
289 if (likely(old == c)) atomic64_add_unless()
291 c = old; atomic64_add_unless()
298 long long c, old, dec; atomic64_dec_if_positive() local
305 old = atomic64_cmpxchg((v), c, dec); atomic64_dec_if_positive()
306 if (likely(old == c)) atomic64_dec_if_positive()
308 c = old; atomic64_dec_if_positive()
256 atomic64_cmpxchg(atomic64_t *v, long long old, long long new) atomic64_cmpxchg() argument
H A Dcmpxchg.h43 " cdsg %[old],%[new],%[ptr]\n" \
46 : [cc] "=d" (cc), [old] "+d" (__old1), "+d" (__old2) \
/linux-4.4.14/lib/
H A Dlockref.c7 * Note that the "cmpxchg()" reloads the "old" value for the
11 struct lockref old; \
12 BUILD_BUG_ON(sizeof(old) != 8); \
13 old.lock_count = READ_ONCE(lockref->lock_count); \
14 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \
15 struct lockref new = old, prev = old; \
17 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
18 old.lock_count, \
20 if (likely(old.lock_count == prev.lock_count)) { \
65 if (old.count <= 0) lockref_get_not_zero()
92 if (old.count <= 0) lockref_get_or_lock()
118 if (old.count <= 0) lockref_put_return()
136 if (old.count <= 1) lockref_put_or_lock()
173 if (old.count < 0) lockref_get_not_dead()
H A Ddump_stack.c30 int old; dump_stack() local
40 old = atomic_cmpxchg(&dump_lock, -1, cpu); dump_stack()
41 if (old == -1) { dump_stack()
43 } else if (old == cpu) { dump_stack()
/linux-4.4.14/arch/s390/kernel/
H A Dsyscalls.S24 SYSCALL(sys_ni_syscall,compat_sys_time) /* old time syscall */
27 SYSCALL(sys_ni_syscall,compat_sys_s390_lchown16) /* old lchown16 syscall*/
28 NI_SYSCALL /* old break syscall holder */
29 NI_SYSCALL /* old stat syscall holder */
34 SYSCALL(sys_ni_syscall,compat_sys_s390_setuid16) /* old setuid16 syscall*/
35 SYSCALL(sys_ni_syscall,compat_sys_s390_getuid16) /* old getuid16 syscall*/
36 SYSCALL(sys_ni_syscall,compat_sys_stime) /* 25 old stime syscall */
39 NI_SYSCALL /* old fstat syscall */
42 NI_SYSCALL /* old stty syscall */
43 NI_SYSCALL /* old gtty syscall */
46 NI_SYSCALL /* 35 old ftime syscall */
55 NI_SYSCALL /* old prof syscall */
57 SYSCALL(sys_ni_syscall,compat_sys_s390_setgid16) /* old setgid16 syscall*/
58 SYSCALL(sys_ni_syscall,compat_sys_s390_getgid16) /* old getgid16 syscall*/
60 SYSCALL(sys_ni_syscall,compat_sys_s390_geteuid16) /* old geteuid16 syscall */
61 SYSCALL(sys_ni_syscall,compat_sys_s390_getegid16) /* 50 old getegid16 syscall */
64 NI_SYSCALL /* old lock syscall */
69 NI_SYSCALL /* old ulimit syscall */
70 NI_SYSCALL /* old uname syscall */
79 NI_SYSCALL /* old sgetmask syscall*/
80 NI_SYSCALL /* old ssetmask syscall*/
81 SYSCALL(sys_ni_syscall,compat_sys_s390_setreuid16) /* old setreuid16 syscall */
82 SYSCALL(sys_ni_syscall,compat_sys_s390_setregid16) /* old setregid16 syscall */
91 SYSCALL(sys_ni_syscall,compat_sys_s390_getgroups16) /* 80 old getgroups16 syscall */
92 SYSCALL(sys_ni_syscall,compat_sys_s390_setgroups16) /* old setgroups16 syscall */
93 NI_SYSCALL /* old select syscall */
95 NI_SYSCALL /* old lstat syscall */
100 SYSCALL(sys_ni_syscall,compat_sys_old_readdir) /* old readdir syscall */
106 SYSCALL(sys_ni_syscall,compat_sys_s390_fchown16) /* 95 old fchown16 syscall*/
109 NI_SYSCALL /* old profil syscall */
120 NI_SYSCALL /* old uname syscall */
123 NI_SYSCALL /* old "idle" system call */
138 NI_SYSCALL /* old "create module" */
141 NI_SYSCALL /* 130: old get_kernel_syms */
149 SYSCALL(sys_ni_syscall,compat_sys_s390_setfsuid16) /* old setfsuid16 syscall */
150 SYSCALL(sys_ni_syscall,compat_sys_s390_setfsgid16) /* old setfsgid16 syscall */
175 SYSCALL(sys_ni_syscall,compat_sys_s390_setresuid16) /* old setresuid16 syscall */
176 SYSCALL(sys_ni_syscall,compat_sys_s390_getresuid16) /* 165 old getresuid16 syscall */
178 NI_SYSCALL /* old sys_query_module */
180 NI_SYSCALL /* old nfsservctl */
181 SYSCALL(sys_ni_syscall,compat_sys_s390_setresgid16) /* 170 old setresgid16 syscall */
182 SYSCALL(sys_ni_syscall,compat_sys_s390_getresgid16) /* old getresgid16 syscall */
193 SYSCALL(sys_ni_syscall,compat_sys_s390_chown16) /* old chown16 syscall */
328 NI_SYSCALL /* 317 old sys_timer_fd */
H A Djump_label.c62 struct insn old, new; __jump_label_transform() local
65 jump_label_make_nop(entry, &old); __jump_label_transform()
68 jump_label_make_branch(entry, &old); __jump_label_transform()
75 if (memcmp((void *)entry->code, &old, sizeof(old))) __jump_label_transform()
76 jump_label_bug(entry, &old, &new); __jump_label_transform()
H A Dftrace.c107 struct ftrace_insn orig, new, old; ftrace_make_nop() local
109 if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) ftrace_make_nop()
115 } else if (is_kprobe_on_ftrace(&old)) { ftrace_make_nop()
131 if (memcmp(&orig, &old, sizeof(old))) ftrace_make_nop()
139 struct ftrace_insn orig, new, old; ftrace_make_call() local
141 if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) ftrace_make_call()
143 if (is_kprobe_on_ftrace(&old)) { ftrace_make_call()
159 if (memcmp(&orig, &old, sizeof(old))) ftrace_make_call()
/linux-4.4.14/arch/arm/kernel/
H A Dftrace.c102 static int ftrace_modify_code(unsigned long pc, unsigned long old, ftrace_modify_code() argument
108 old = __opcode_to_mem_thumb32(old); ftrace_modify_code()
111 old = __opcode_to_mem_arm(old); ftrace_modify_code()
119 if (replaced != old) ftrace_modify_code()
156 unsigned long new, old; ftrace_make_call() local
159 old = ftrace_nop_replace(rec); ftrace_make_call()
162 return ftrace_modify_code(rec->ip, old, new, true); ftrace_make_call()
169 unsigned long old; ftrace_make_nop() local
173 old = ftrace_call_replace(ip, adjust_address(rec, addr)); ftrace_make_nop()
175 ret = ftrace_modify_code(ip, old, new, true); ftrace_make_nop()
181 old = ftrace_call_replace(ip, adjust_address(rec, addr)); ftrace_make_nop()
183 ret = ftrace_modify_code(ip, old, new, true); ftrace_make_nop()
202 unsigned long old; prepare_ftrace_return() local
208 old = *parent; prepare_ftrace_return()
216 *parent = old; prepare_ftrace_return()
220 err = ftrace_push_return_trace(old, self_addr, &trace.depth, prepare_ftrace_return()
223 *parent = old; prepare_ftrace_return()
240 unsigned long old = enable ? nop : branch; __ftrace_modify_caller() local
243 return ftrace_modify_code(pc, old, new, true); __ftrace_modify_caller()
H A Dcrash_dump.c22 * copy_oldmem_page() - copy one page from old kernel memory
29 * This function copies one page from old kernel memory into buffer pointed by
/linux-4.4.14/scripts/
H A Dbloat-o-meter31 old = getsizes(sys.argv[1]) variable
36 for a in old:
40 for name in old:
43 down += old[name]
44 delta.append((-old[name], name))
53 d = new.get(name, 0) - old.get(name, 0)
63 print("%-40s %7s %7s %+7s" % ("function", "old", "new", "delta"))
65 if d: print("%-40s %7s %7s %+7d" % (n, old.get(n,"-"), new.get(n,"-"), d))
H A Ddiffconfig21 Changed items show the old and new values on a single line.
26 If no config files are specified, .config and .config.old are used.
85 # if no filenames given, assume .config and .config.old
89 configa_filename = build_dir + ".config.old"
104 old = []
107 old.append(config)
108 old.sort()
109 for config in old:
H A Dstackdelta47 or die "usage: $0 <old> <new>";
49 my $old = read_stack_usage_file($ARGV[0]);
51 my @common = sort grep {exists $new->{$_}} keys %$old;
53 my $x = $old->{$_}{size};
/linux-4.4.14/arch/sparc/include/asm/
H A Datomic_64.h81 int c, old; __atomic_add_unless() local
86 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
87 if (likely(old == c)) __atomic_add_unless()
89 c = old; __atomic_add_unless()
100 long c, old; atomic64_add_unless() local
105 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless()
106 if (likely(old == c)) atomic64_add_unless()
108 c = old; atomic64_add_unless()
H A Dcmpxchg_64.h69 __cmpxchg_u32(volatile int *m, int old, int new) __cmpxchg_u32() argument
73 : "0" (new), "r" (m), "r" (old) __cmpxchg_u32()
80 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) __cmpxchg_u64() argument
84 : "0" (new), "r" (m), "r" (old) __cmpxchg_u64()
95 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument
99 return __cmpxchg_u32(ptr, old, new); __cmpxchg()
101 return __cmpxchg_u64(ptr, old, new); __cmpxchg()
104 return old; __cmpxchg()
121 unsigned long old, __cmpxchg_local()
126 case 8: return __cmpxchg(ptr, old, new, size); __cmpxchg_local()
128 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local()
131 return old; __cmpxchg_local()
120 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
H A Dcmpxchg_32.h41 unsigned long __cmpxchg_u32(volatile u32 *m, u32 old, u32 new_);
45 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg() argument
49 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_); __cmpxchg()
54 return old; __cmpxchg()
/linux-4.4.14/arch/m68k/include/uapi/asm/
H A Dsigcontext.h5 unsigned long sc_mask; /* old sigmask */
6 unsigned long sc_usp; /* old user stack pointer */
/linux-4.4.14/arch/h8300/include/uapi/asm/
H A Dsigcontext.h5 unsigned long sc_mask; /* old sigmask */
6 unsigned long sc_usp; /* old user stack pointer */
/linux-4.4.14/arch/sh/include/asm/
H A Datomic.h48 * Returns the old value of @v.
52 int c, old; __atomic_add_unless() local
57 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
58 if (likely(old == c)) __atomic_add_unless()
60 c = old; __atomic_add_unless()
H A Dcmpxchg-grb.h14 " mov.l @%1, %0 \n\t" /* load old value */ xchg_u32()
35 " mov.b @%1, %0 \n\t" /* load old value */ xchg_u8()
48 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument
59 " mov.l @%3, %0 \n\t" /* load old value */ __cmpxchg_u32()
65 "+r" (old), "+r" (new) /* old or new can be r15 */ __cmpxchg_u32()
H A Dcmpxchg.h49 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, __cmpxchg() argument
54 return __cmpxchg_u32(ptr, old, new); __cmpxchg()
57 return old; __cmpxchg()
H A Dcmpxchg-irq.h28 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument
36 if (retval == old) __cmpxchg_u32()
H A Dcmpxchg-llsc.h47 __cmpxchg_u32(volatile int *m, unsigned long old, unsigned long new) __cmpxchg_u32() argument
64 : "r" (m), "r" (old), "r" (new) __cmpxchg_u32()
H A Dbitops-op32.h83 * __test_and_set_bit - Set a bit and return its old value
95 unsigned long old = *p; __test_and_set_bit() local
97 *p = old | mask; __test_and_set_bit()
98 return (old & mask) != 0; __test_and_set_bit()
102 * __test_and_clear_bit - Clear a bit and return its old value
114 unsigned long old = *p; __test_and_clear_bit() local
116 *p = old & ~mask; __test_and_clear_bit()
117 return (old & mask) != 0; __test_and_clear_bit()
126 unsigned long old = *p; __test_and_change_bit() local
128 *p = old ^ mask; __test_and_change_bit()
129 return (old & mask) != 0; __test_and_change_bit()
H A Dbitops-grb.h18 " mov.l @%1, %0 \n\t" /* load old value */ set_bit()
41 " mov.l @%1, %0 \n\t" /* load old value */ clear_bit()
64 " mov.l @%1, %0 \n\t" /* load old value */ change_bit()
88 " mov.l @%2, %0 \n\t" /* load old value */ test_and_set_bit()
121 " mov.l @%2, %0 \n\t" /* load old value */ test_and_clear_bit()
153 " mov.l @%2, %0 \n\t" /* load old value */ test_and_change_bit()
H A Datomic-grb.h14 " mov.l @%1, %0 \n\t" /* load old value */ \
34 " mov.l @%1, %0 \n\t" /* load old value */ \
/linux-4.4.14/arch/m68k/include/asm/
H A Dcmpxchg.h94 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, __cmpxchg() argument
100 : "=d" (old), "=m" (*(char *)p) __cmpxchg()
101 : "d" (new), "0" (old), "m" (*(char *)p)); __cmpxchg()
105 : "=d" (old), "=m" (*(short *)p) __cmpxchg()
106 : "d" (new), "0" (old), "m" (*(short *)p)); __cmpxchg()
110 : "=d" (old), "=m" (*(int *)p) __cmpxchg()
111 : "d" (new), "0" (old), "m" (*(int *)p)); __cmpxchg()
114 old = __invalid_cmpxchg_size(p, old, new, size); __cmpxchg()
117 return old; __cmpxchg()
H A Datomic.h129 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
136 if (prev == old) atomic_cmpxchg()
179 int c, old; __atomic_add_unless() local
184 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
185 if (likely(old == c)) __atomic_add_unless()
187 c = old; __atomic_add_unless()
/linux-4.4.14/drivers/input/joystick/iforce/
H A Diforce-ff.c201 struct ff_effect *old, need_condition_modifier()
214 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation need_condition_modifier()
215 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation need_condition_modifier()
216 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff need_condition_modifier()
217 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff need_condition_modifier()
218 || old->u.condition[i].deadband != new->u.condition[i].deadband need_condition_modifier()
219 || old->u.condition[i].center != new->u.condition[i].center; need_condition_modifier()
229 struct ff_effect *old, need_magnitude_modifier()
238 return old->u.constant.level != effect->u.constant.level; need_magnitude_modifier()
245 static int need_envelope_modifier(struct iforce *iforce, struct ff_effect *old, need_envelope_modifier() argument
250 if (old->u.constant.envelope.attack_length != effect->u.constant.envelope.attack_length need_envelope_modifier()
251 || old->u.constant.envelope.attack_level != effect->u.constant.envelope.attack_level need_envelope_modifier()
252 || old->u.constant.envelope.fade_length != effect->u.constant.envelope.fade_length need_envelope_modifier()
253 || old->u.constant.envelope.fade_level != effect->u.constant.envelope.fade_level) need_envelope_modifier()
258 if (old->u.periodic.envelope.attack_length != effect->u.periodic.envelope.attack_length need_envelope_modifier()
259 || old->u.periodic.envelope.attack_level != effect->u.periodic.envelope.attack_level need_envelope_modifier()
260 || old->u.periodic.envelope.fade_length != effect->u.periodic.envelope.fade_length need_envelope_modifier()
261 || old->u.periodic.envelope.fade_level != effect->u.periodic.envelope.fade_level) need_envelope_modifier()
277 static int need_period_modifier(struct iforce *iforce, struct ff_effect *old, need_period_modifier() argument
285 return (old->u.periodic.period != new->u.periodic.period need_period_modifier()
286 || old->u.periodic.magnitude != new->u.periodic.magnitude need_period_modifier()
287 || old->u.periodic.offset != new->u.periodic.offset need_period_modifier()
288 || old->u.periodic.phase != new->u.periodic.phase); need_period_modifier()
295 static int need_core(struct ff_effect *old, struct ff_effect *new) need_core() argument
297 if (old->direction != new->direction need_core()
298 || old->trigger.button != new->trigger.button need_core()
299 || old->trigger.interval != new->trigger.interval need_core()
300 || old->replay.length != new->replay.length need_core()
301 || old->replay.delay != new->replay.delay) need_core()
357 int iforce_upload_periodic(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_periodic() argument
368 if (!old || need_period_modifier(iforce, old, effect)) { iforce_upload_periodic()
370 old != NULL, iforce_upload_periodic()
378 if (!old || need_envelope_modifier(iforce, old, effect)) { iforce_upload_periodic()
380 old !=NULL, iforce_upload_periodic()
399 if (!old || need_core(old, effect)) { iforce_upload_periodic()
428 int iforce_upload_constant(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_constant() argument
438 if (!old || need_magnitude_modifier(iforce, old, effect)) { iforce_upload_constant()
440 old != NULL, iforce_upload_constant()
447 if (!old || need_envelope_modifier(iforce, old, effect)) { iforce_upload_constant()
449 old != NULL, iforce_upload_constant()
459 if (!old || need_core(old, effect)) { iforce_upload_constant()
484 int iforce_upload_condition(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_condition() argument
500 if (!old || need_condition_modifier(iforce, old, effect)) { iforce_upload_condition()
502 old != NULL, iforce_upload_condition()
514 old != NULL, iforce_upload_condition()
527 if (!old || need_core(old, effect)) { iforce_upload_condition()
200 need_condition_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *new) need_condition_modifier() argument
228 need_magnitude_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect) need_magnitude_modifier() argument
/linux-4.4.14/arch/powerpc/include/asm/
H A Dcmpxchg.h144 * Compare and exchange - if *p == old, set it to new,
145 * and return the old value of *p.
149 __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new) __cmpxchg_u32() argument
165 : "r" (p), "r" (old), "r" (new) __cmpxchg_u32()
172 __cmpxchg_u32_local(volatile unsigned int *p, unsigned long old, __cmpxchg_u32_local() argument
187 : "r" (p), "r" (old), "r" (new) __cmpxchg_u32_local()
195 __cmpxchg_u64(volatile unsigned long *p, unsigned long old, unsigned long new) __cmpxchg_u64() argument
210 : "r" (p), "r" (old), "r" (new) __cmpxchg_u64()
217 __cmpxchg_u64_local(volatile unsigned long *p, unsigned long old, __cmpxchg_u64_local() argument
231 : "r" (p), "r" (old), "r" (new) __cmpxchg_u64_local()
243 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, __cmpxchg() argument
248 return __cmpxchg_u32(ptr, old, new); __cmpxchg()
251 return __cmpxchg_u64(ptr, old, new); __cmpxchg()
255 return old; __cmpxchg()
259 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, __cmpxchg_local() argument
264 return __cmpxchg_u32_local(ptr, old, new); __cmpxchg_local()
267 return __cmpxchg_u64_local(ptr, old, new); __cmpxchg_local()
271 return old; __cmpxchg_local()
H A Dpgtable-ppc32.h171 unsigned long old, tmp; pte_update() local
180 : "=&r" (old), "=&r" (tmp), "=m" (*p) pte_update()
184 unsigned long old = pte_val(*p); pte_update()
185 *p = __pte((old & ~clr) | set); pte_update()
189 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) pte_update()
192 return old; pte_update()
200 unsigned long long old; pte_update() local
211 : "=&r" (old), "=&r" (tmp), "=m" (*p) pte_update()
215 unsigned long long old = pte_val(*p); pte_update()
216 *p = __pte((old & ~(unsigned long long)clr) | set); pte_update()
220 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) pte_update()
223 return old; pte_update()
234 unsigned long old; __ptep_test_and_clear_young() local
235 old = pte_update(ptep, _PAGE_ACCESSED, 0); __ptep_test_and_clear_young()
237 if (old & _PAGE_HASHPTE) { __ptep_test_and_clear_young()
242 return (old & _PAGE_ACCESSED) != 0; __ptep_test_and_clear_young()
H A Dpgtable-ppc64.h214 unsigned long old, tmp; pte_update() local
224 : "=&r" (old), "=&r" (tmp), "=m" (*ptep) pte_update()
228 unsigned long old = pte_val(*ptep); pte_update()
229 *ptep = __pte((old & ~clr) | set); pte_update()
231 /* huge pages use the old page table lock */ pte_update()
236 if (old & _PAGE_HASHPTE) pte_update()
237 hpte_need_flush(mm, addr, ptep, old, huge); pte_update()
240 return old; pte_update()
246 unsigned long old; __ptep_test_and_clear_young() local
250 old = pte_update(mm, addr, ptep, _PAGE_ACCESSED, 0, 0); __ptep_test_and_clear_young()
251 return (old & _PAGE_ACCESSED) != 0; __ptep_test_and_clear_young()
301 unsigned long old = pte_update(mm, addr, ptep, ~0UL, 0, 0); ptep_get_and_clear() local
302 return __pte(old); ptep_get_and_clear()
321 unsigned long old, tmp; __ptep_set_access_flags() local
330 :"=&r" (old), "=&r" (tmp), "=m" (*ptep) __ptep_set_access_flags()
334 unsigned long old = pte_val(*ptep); __ptep_set_access_flags() local
335 *ptep = __pte(old | bits); __ptep_set_access_flags()
565 unsigned long old; __pmdp_test_and_clear_young() local
569 old = pmd_hugepage_update(mm, addr, pmdp, _PAGE_ACCESSED, 0); __pmdp_test_and_clear_young()
570 return ((old & _PAGE_ACCESSED) != 0); __pmdp_test_and_clear_young()
/linux-4.4.14/arch/xtensa/include/asm/
H A Dcmpxchg.h23 __cmpxchg_u32(volatile int *p, int old, int new) __cmpxchg_u32() argument
30 : "a" (p), "a" (old) __cmpxchg_u32()
44 : "=&a" (old) __cmpxchg_u32()
45 : "a" (p), "a" (old), "r" (new) __cmpxchg_u32()
47 return old; __cmpxchg_u32()
56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument
59 case 4: return __cmpxchg_u32(ptr, old, new); __cmpxchg()
61 return old; __cmpxchg()
75 unsigned long old, __cmpxchg_local()
80 return __cmpxchg_u32(ptr, old, new); __cmpxchg_local()
82 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local()
85 return old; __cmpxchg_local()
74 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
H A Datomic.h240 * Returns the old value of @v.
244 int c, old; __atomic_add_unless() local
249 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
250 if (likely(old == c)) __atomic_add_unless()
252 c = old; __atomic_add_unless()
/linux-4.4.14/arch/s390/mm/
H A Dhugetlbpage.c19 * prot-none, clean, old 111.000000.1 -> 00..1...1...00 __pte_to_pmd()
21 * prot-none, dirty, old 111.000010.1 -> 10..1...1...00 __pte_to_pmd()
23 * read-only, clean, old 111.000100.1 -> 00..1...1...01 __pte_to_pmd()
25 * read-only, dirty, old 111.000110.1 -> 10..1...1...01 __pte_to_pmd()
27 * read-write, clean, old 111.001100.1 -> 00..1...1...11 __pte_to_pmd()
29 * read-write, dirty, old 110.001110.1 -> 10..0...1...11 __pte_to_pmd()
57 * prot-none, clean, old 00..1...1...00 -> 111.000000.1 __pmd_to_pte()
59 * prot-none, dirty, old 10..1...1...00 -> 111.000010.1 __pmd_to_pte()
61 * read-only, clean, old 00..1...1...01 -> 111.000100.1 __pmd_to_pte()
63 * read-only, dirty, old 10..1...1...01 -> 111.000110.1 __pmd_to_pte()
65 * read-write, clean, old 00..1...1...11 -> 111.001100.1 __pmd_to_pte()
67 * read-write, dirty, old 10..0...1...11 -> 110.001110.1 __pmd_to_pte()
/linux-4.4.14/arch/m32r/include/asm/
H A Dcmpxchg.h111 __cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new) __cmpxchg_u32() argument
129 : "r" (p), "r" (old), "r" (new) __cmpxchg_u32()
141 __cmpxchg_local_u32(volatile unsigned int *p, unsigned int old, __cmpxchg_local_u32() argument
160 : "r" (p), "r" (old), "r" (new) __cmpxchg_local_u32()
176 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument
180 return __cmpxchg_u32(ptr, old, new); __cmpxchg()
183 return __cmpxchg_u64(ptr, old, new); __cmpxchg()
187 return old; __cmpxchg()
197 unsigned long old, __cmpxchg_local()
202 return __cmpxchg_local_u32(ptr, old, new); __cmpxchg_local()
204 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local()
207 return old; __cmpxchg_local()
196 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
H A Dswitch_to.h32 " st lr, @%4 ; store old LR \n" \
35 " st sp, @%2 ; store old SP \n" \
/linux-4.4.14/arch/tile/kernel/
H A Dftrace.c110 static int ftrace_modify_code(unsigned long pc, unsigned long old, ftrace_modify_code() argument
135 unsigned long pc, old; ftrace_update_ftrace_func() local
140 memcpy(&old, &ftrace_call, MCOUNT_INSN_SIZE); ftrace_update_ftrace_func()
143 ret = ftrace_modify_code(pc, old, new); ftrace_update_ftrace_func()
150 unsigned long new, old; ftrace_make_call() local
153 old = ftrace_nop_replace(rec); ftrace_make_call()
156 return ftrace_modify_code(rec->ip, old, new); ftrace_make_call()
163 unsigned long old; ftrace_make_nop() local
167 old = ftrace_call_replace(ip, addr); ftrace_make_nop()
169 ret = ftrace_modify_code(ip, old, new); ftrace_make_nop()
186 unsigned long old; prepare_ftrace_return() local
192 old = *parent; prepare_ftrace_return()
195 err = ftrace_push_return_trace(old, self_addr, &trace.depth, prepare_ftrace_return()
198 *parent = old; prepare_ftrace_return()
207 *parent = old; prepare_ftrace_return()
221 unsigned long old = enable ? nop : branch; __ftrace_modify_caller() local
224 return ftrace_modify_code(pc, old, new); __ftrace_modify_caller()
/linux-4.4.14/arch/parisc/include/asm/
H A Datomic.h84 * Returns the old value of @v.
88 int c, old; __atomic_add_unless() local
93 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
94 if (likely(old == c)) __atomic_add_unless()
96 c = old; __atomic_add_unless()
241 * Returns the old value of @v.
245 long c, old; atomic64_add_unless() local
250 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless()
251 if (likely(old == c)) atomic64_add_unless()
253 c = old; atomic64_add_unless()
261 * atomic64_dec_if_positive - decrement by 1 if old value positive
264 * The function returns the old value of *v minus 1, even if
269 long c, old, dec; atomic64_dec_if_positive() local
275 old = atomic64_cmpxchg((v), c, dec); atomic64_dec_if_positive()
276 if (likely(old == c)) atomic64_dec_if_positive()
278 c = old; atomic64_dec_if_positive()
H A Dcmpxchg.h53 extern unsigned long __cmpxchg_u32(volatile unsigned int *m, unsigned int old,
56 unsigned long old, unsigned long new_);
60 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg() argument
64 case 8: return __cmpxchg_u64((unsigned long *)ptr, old, new_); __cmpxchg()
67 (unsigned int)old, (unsigned int)new_); __cmpxchg()
70 return old; __cmpxchg()
84 unsigned long old, __cmpxchg_local()
89 case 8: return __cmpxchg_u64((unsigned long *)ptr, old, new_); __cmpxchg_local()
91 case 4: return __cmpxchg_u32(ptr, old, new_); __cmpxchg_local()
93 return __cmpxchg_local_generic(ptr, old, new_, size); __cmpxchg_local()
83 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg_local() argument
H A Dbitops.h65 unsigned long old; test_and_set_bit() local
71 old = *addr; test_and_set_bit()
72 set = (old & mask) ? 1 : 0; test_and_set_bit()
74 *addr = old | mask; test_and_set_bit()
83 unsigned long old; test_and_clear_bit() local
89 old = *addr; test_and_clear_bit()
90 set = (old & mask) ? 1 : 0; test_and_clear_bit()
92 *addr = old & ~mask; test_and_clear_bit()
/linux-4.4.14/fs/
H A Dfs_struct.c10 * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values.
29 * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.
48 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) replace_path() argument
50 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) replace_path()
110 struct fs_struct *copy_fs_struct(struct fs_struct *old) copy_fs_struct() argument
119 fs->umask = old->umask; copy_fs_struct()
121 spin_lock(&old->lock); copy_fs_struct()
122 fs->root = old->root; copy_fs_struct()
124 fs->pwd = old->pwd; copy_fs_struct()
126 spin_unlock(&old->lock); copy_fs_struct()
/linux-4.4.14/init/
H A Ddo_mounts_initrd.c59 create_dev("/dev/root.old", Root_RAM0); handle_initrd()
61 mount_block_root("/dev/root.old", root_mountflags & ~MS_RDONLY); handle_initrd()
62 sys_mkdir("/old", 0700); handle_initrd()
63 sys_chdir("/old"); handle_initrd()
82 /* move initrd to rootfs' /old */ handle_initrd()
88 sys_chdir("/old"); handle_initrd()
96 printk(KERN_NOTICE "Trying to move old root to /initrd ... "); handle_initrd()
97 error = sys_mount("/old", "/root/initrd", NULL, MS_MOVE, NULL); handle_initrd()
101 int fd = sys_open("/dev/root.old", O_RDWR, 0); handle_initrd()
106 printk(KERN_NOTICE "Unmounting old root\n"); handle_initrd()
107 sys_umount("/old", MNT_DETACH); handle_initrd()
/linux-4.4.14/include/asm-generic/bitops/
H A Dnon-atomic.h49 * __test_and_set_bit - Set a bit and return its old value
61 unsigned long old = *p; __test_and_set_bit() local
63 *p = old | mask; __test_and_set_bit()
64 return (old & mask) != 0; __test_and_set_bit()
68 * __test_and_clear_bit - Clear a bit and return its old value
80 unsigned long old = *p; __test_and_clear_bit() local
82 *p = old & ~mask; __test_and_clear_bit()
83 return (old & mask) != 0; __test_and_clear_bit()
92 unsigned long old = *p; __test_and_change_bit() local
94 *p = old ^ mask; __test_and_change_bit()
95 return (old & mask) != 0; __test_and_change_bit()
H A Datomic.h119 * test_and_set_bit - Set a bit and return its old value
131 unsigned long old; test_and_set_bit() local
135 old = *p; test_and_set_bit()
136 *p = old | mask; test_and_set_bit()
139 return (old & mask) != 0; test_and_set_bit()
143 * test_and_clear_bit - Clear a bit and return its old value
155 unsigned long old; test_and_clear_bit() local
159 old = *p; test_and_clear_bit()
160 *p = old & ~mask; test_and_clear_bit()
163 return (old & mask) != 0; test_and_clear_bit()
167 * test_and_change_bit - Change a bit and return its old value
178 unsigned long old; test_and_change_bit() local
182 old = *p; test_and_change_bit()
183 *p = old ^ mask; test_and_change_bit()
186 return (old & mask) != 0; test_and_change_bit()
/linux-4.4.14/arch/arm64/include/asm/
H A Datomic.h45 typeof((v)->counter) c, old; \
49 (old = atomic##sfx##_cmpxchg((v), c, c + (a))) != c) \
50 c = old; \
84 #define atomic_cmpxchg_relaxed(v, old, new) \
85 cmpxchg_relaxed(&((v)->counter), (old), (new))
86 #define atomic_cmpxchg_acquire(v, old, new) \
87 cmpxchg_acquire(&((v)->counter), (old), (new))
88 #define atomic_cmpxchg_release(v, old, new) \
89 cmpxchg_release(&((v)->counter), (old), (new))
90 #define atomic_cmpxchg(v, old, new) cmpxchg(&((v)->counter), (old), (new))
/linux-4.4.14/drivers/dma-buf/
H A Dreservation.c52 struct reservation_object_list *fobj, *old; reservation_object_reserve_shared() local
55 old = reservation_object_get_list(obj); reservation_object_reserve_shared()
57 if (old && old->shared_max) { reservation_object_reserve_shared()
58 if (old->shared_count < old->shared_max) { reservation_object_reserve_shared()
64 max = old->shared_max * 2; reservation_object_reserve_shared()
125 struct reservation_object_list *old, reservation_object_add_shared_replace()
134 if (!old) { reservation_object_add_shared_replace()
143 * references from the old struct are carried over to reservation_object_add_shared_replace()
146 fobj->shared_count = old->shared_count; reservation_object_add_shared_replace()
148 for (i = 0; i < old->shared_count; ++i) { reservation_object_add_shared_replace()
151 check = rcu_dereference_protected(old->shared[i], reservation_object_add_shared_replace()
176 if (old) reservation_object_add_shared_replace()
177 kfree_rcu(old, rcu); reservation_object_add_shared_replace()
190 struct reservation_object_list *old, *fobj = obj->staged; reservation_object_add_shared_fence() local
192 old = reservation_object_get_list(obj); reservation_object_add_shared_fence()
196 BUG_ON(old->shared_count >= old->shared_max); reservation_object_add_shared_fence()
197 reservation_object_add_shared_inplace(obj, old, fence); reservation_object_add_shared_fence()
199 reservation_object_add_shared_replace(obj, old, fobj, fence); reservation_object_add_shared_fence()
207 struct reservation_object_list *old; reservation_object_add_excl_fence() local
210 old = reservation_object_get_list(obj); reservation_object_add_excl_fence()
211 if (old) reservation_object_add_excl_fence()
212 i = old->shared_count; reservation_object_add_excl_fence()
221 if (old) reservation_object_add_excl_fence()
222 old->shared_count = 0; reservation_object_add_excl_fence()
228 fence_put(rcu_dereference_protected(old->shared[i], reservation_object_add_excl_fence()
454 * about whether it's the old or newer fence pointers that are reservation_object_test_signaled_rcu()
124 reservation_object_add_shared_replace(struct reservation_object *obj, struct reservation_object_list *old, struct reservation_object_list *fobj, struct fence *fence) reservation_object_add_shared_replace() argument
/linux-4.4.14/kernel/
H A Dcred.c246 const struct cred *old; prepare_creds() local
257 old = task->cred; prepare_creds()
258 memcpy(new, old, sizeof(struct cred)); prepare_creds()
277 if (security_prepare_creds(new, old, GFP_KERNEL) < 0) prepare_creds()
413 * the old set. Both the objective and the subjective credentials pointers are
425 const struct cred *old = task->real_cred; commit_creds() local
431 BUG_ON(task->cred != old); commit_creds()
433 BUG_ON(read_cred_subscribers(old) < 2); commit_creds()
434 validate_creds(old); commit_creds()
442 if (!uid_eq(old->euid, new->euid) || commit_creds()
443 !gid_eq(old->egid, new->egid) || commit_creds()
444 !uid_eq(old->fsuid, new->fsuid) || commit_creds()
445 !gid_eq(old->fsgid, new->fsgid) || commit_creds()
446 !cred_cap_issubset(old, new)) { commit_creds()
454 if (!uid_eq(new->fsuid, old->fsuid)) commit_creds()
456 if (!gid_eq(new->fsgid, old->fsgid)) commit_creds()
464 if (new->user != old->user) commit_creds()
468 if (new->user != old->user) commit_creds()
469 atomic_dec(&old->user->processes); commit_creds()
470 alter_cred_subscribers(old, -2); commit_creds()
473 if (!uid_eq(new->uid, old->uid) || commit_creds()
474 !uid_eq(new->euid, old->euid) || commit_creds()
475 !uid_eq(new->suid, old->suid) || commit_creds()
476 !uid_eq(new->fsuid, old->fsuid)) commit_creds()
479 if (!gid_eq(new->gid, old->gid) || commit_creds()
480 !gid_eq(new->egid, old->egid) || commit_creds()
481 !gid_eq(new->sgid, old->sgid) || commit_creds()
482 !gid_eq(new->fsgid, old->fsgid)) commit_creds()
485 /* release the old obj and subj refs both */ commit_creds()
486 put_cred(old); commit_creds()
487 put_cred(old); commit_creds()
518 * process, returning the old set for later reversion.
522 const struct cred *old = current->cred; override_creds() local
528 validate_creds(old); override_creds()
533 alter_cred_subscribers(old, -1); override_creds()
535 kdebug("override_creds() = %p{%d,%d}", old, override_creds()
536 atomic_read(&old->usage), override_creds()
537 read_cred_subscribers(old)); override_creds()
538 return old; override_creds()
544 * @old: The credentials to be restored
546 * Revert a temporary set of override subjective credentials to an old set,
549 void revert_creds(const struct cred *old) revert_creds() argument
553 kdebug("revert_creds(%p{%d,%d})", old, revert_creds()
554 atomic_read(&old->usage), revert_creds()
555 read_cred_subscribers(old)); revert_creds()
557 validate_creds(old); revert_creds()
559 alter_cred_subscribers(old, 1); revert_creds()
560 rcu_assign_pointer(current->cred, old); revert_creds()
596 const struct cred *old; prepare_kernel_cred() local
606 old = get_task_cred(daemon); prepare_kernel_cred()
608 old = get_cred(&init_cred); prepare_kernel_cred()
610 validate_creds(old); prepare_kernel_cred()
612 *new = *old; prepare_kernel_cred()
630 if (security_prepare_creds(new, old, GFP_KERNEL) < 0) prepare_kernel_cred()
633 put_cred(old); prepare_kernel_cred()
639 put_cred(old); prepare_kernel_cred()
H A Dtracepoint.c74 static inline void release_probes(struct tracepoint_func *old) release_probes() argument
76 if (old) { release_probes()
77 struct tp_probes *tp_probes = container_of(old, release_probes()
98 struct tracepoint_func *old, *new; func_add() local
106 old = *funcs; func_add()
107 if (old) { func_add()
109 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { func_add()
111 if (pos < 0 && old[nr_probes].prio < prio) func_add()
113 if (old[nr_probes].func == tp_func->func && func_add()
114 old[nr_probes].data == tp_func->data) func_add()
122 if (old) { func_add()
125 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); func_add()
128 memcpy(new, old, pos * sizeof(struct tracepoint_func)); func_add()
130 memcpy(new + pos + 1, old + pos, func_add()
139 return old; func_add()
146 struct tracepoint_func *old, *new; func_remove() local
148 old = *funcs; func_remove()
150 if (!old) func_remove()
156 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { func_remove()
157 if (old[nr_probes].func == tp_func->func && func_remove()
158 old[nr_probes].data == tp_func->data) func_remove()
171 return old; func_remove()
179 for (i = 0; old[i].func; i++) func_remove()
180 if (old[i].func != tp_func->func func_remove()
181 || old[i].data != tp_func->data) func_remove()
182 new[j++] = old[i]; func_remove()
187 return old; func_remove()
196 struct tracepoint_func *old, *tp_funcs; tracepoint_add_func() local
203 old = func_add(&tp_funcs, func, prio); tracepoint_add_func()
204 if (IS_ERR(old)) { tracepoint_add_func()
206 return PTR_ERR(old); tracepoint_add_func()
219 release_probes(old); tracepoint_add_func()
232 struct tracepoint_func *old, *tp_funcs; tracepoint_remove_func() local
236 old = func_remove(&tp_funcs, func); tracepoint_remove_func()
237 if (IS_ERR(old)) { tracepoint_remove_func()
239 return PTR_ERR(old); tracepoint_remove_func()
251 release_probes(old); tracepoint_remove_func()
H A Dexec_domain.c52 unsigned int old = current->personality; SYSCALL_DEFINE1() local
57 return old; SYSCALL_DEFINE1()
H A Dsys.c332 const struct cred *old; SYSCALL_DEFINE2() local
348 old = current_cred(); SYSCALL_DEFINE2()
352 if (gid_eq(old->gid, krgid) || SYSCALL_DEFINE2()
353 gid_eq(old->egid, krgid) || SYSCALL_DEFINE2()
354 ns_capable(old->user_ns, CAP_SETGID)) SYSCALL_DEFINE2()
360 if (gid_eq(old->gid, kegid) || SYSCALL_DEFINE2()
361 gid_eq(old->egid, kegid) || SYSCALL_DEFINE2()
362 gid_eq(old->sgid, kegid) || SYSCALL_DEFINE2()
363 ns_capable(old->user_ns, CAP_SETGID)) SYSCALL_DEFINE2()
370 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) SYSCALL_DEFINE2()
389 const struct cred *old; SYSCALL_DEFINE1() local
401 old = current_cred(); SYSCALL_DEFINE1()
404 if (ns_capable(old->user_ns, CAP_SETGID)) SYSCALL_DEFINE1()
406 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) SYSCALL_DEFINE1()
465 const struct cred *old; SYSCALL_DEFINE2() local
481 old = current_cred(); SYSCALL_DEFINE2()
486 if (!uid_eq(old->uid, kruid) && SYSCALL_DEFINE2()
487 !uid_eq(old->euid, kruid) && SYSCALL_DEFINE2()
488 !ns_capable(old->user_ns, CAP_SETUID)) SYSCALL_DEFINE2()
494 if (!uid_eq(old->uid, keuid) && SYSCALL_DEFINE2()
495 !uid_eq(old->euid, keuid) && SYSCALL_DEFINE2()
496 !uid_eq(old->suid, keuid) && SYSCALL_DEFINE2()
497 !ns_capable(old->user_ns, CAP_SETUID)) SYSCALL_DEFINE2()
501 if (!uid_eq(new->uid, old->uid)) { SYSCALL_DEFINE2()
507 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) SYSCALL_DEFINE2()
511 retval = security_task_fix_setuid(new, old, LSM_SETID_RE); SYSCALL_DEFINE2()
536 const struct cred *old; SYSCALL_DEFINE1() local
548 old = current_cred(); SYSCALL_DEFINE1()
551 if (ns_capable(old->user_ns, CAP_SETUID)) { SYSCALL_DEFINE1()
553 if (!uid_eq(kuid, old->uid)) { SYSCALL_DEFINE1()
558 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { SYSCALL_DEFINE1()
564 retval = security_task_fix_setuid(new, old, LSM_SETID_ID); SYSCALL_DEFINE1()
583 const struct cred *old; SYSCALL_DEFINE3() local
605 old = current_cred(); SYSCALL_DEFINE3()
608 if (!ns_capable(old->user_ns, CAP_SETUID)) { SYSCALL_DEFINE3()
609 if (ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) && SYSCALL_DEFINE3()
610 !uid_eq(kruid, old->euid) && !uid_eq(kruid, old->suid)) SYSCALL_DEFINE3()
612 if (euid != (uid_t) -1 && !uid_eq(keuid, old->uid) && SYSCALL_DEFINE3()
613 !uid_eq(keuid, old->euid) && !uid_eq(keuid, old->suid)) SYSCALL_DEFINE3()
615 if (suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) && SYSCALL_DEFINE3()
616 !uid_eq(ksuid, old->euid) && !uid_eq(ksuid, old->suid)) SYSCALL_DEFINE3()
622 if (!uid_eq(kruid, old->uid)) { SYSCALL_DEFINE3()
634 retval = security_task_fix_setuid(new, old, LSM_SETID_RES); SYSCALL_DEFINE3()
670 const struct cred *old; SYSCALL_DEFINE3() local
689 old = current_cred(); SYSCALL_DEFINE3()
692 if (!ns_capable(old->user_ns, CAP_SETGID)) { SYSCALL_DEFINE3()
693 if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && SYSCALL_DEFINE3()
694 !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid)) SYSCALL_DEFINE3()
696 if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && SYSCALL_DEFINE3()
697 !gid_eq(kegid, old->egid) && !gid_eq(kegid, old->sgid)) SYSCALL_DEFINE3()
699 if (sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && SYSCALL_DEFINE3()
700 !gid_eq(ksgid, old->egid) && !gid_eq(ksgid, old->sgid)) SYSCALL_DEFINE3()
748 const struct cred *old; SYSCALL_DEFINE1() local
753 old = current_cred(); SYSCALL_DEFINE1()
754 old_fsuid = from_kuid_munged(old->user_ns, old->fsuid); SYSCALL_DEFINE1()
756 kuid = make_kuid(old->user_ns, uid); SYSCALL_DEFINE1()
764 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || SYSCALL_DEFINE1()
765 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || SYSCALL_DEFINE1()
766 ns_capable(old->user_ns, CAP_SETUID)) { SYSCALL_DEFINE1()
767 if (!uid_eq(kuid, old->fsuid)) { SYSCALL_DEFINE1()
769 if (security_task_fix_setuid(new, old, LSM_SETID_FS) == 0) SYSCALL_DEFINE1()
787 const struct cred *old; SYSCALL_DEFINE1() local
792 old = current_cred(); SYSCALL_DEFINE1()
793 old_fsgid = from_kgid_munged(old->user_ns, old->fsgid); SYSCALL_DEFINE1()
795 kgid = make_kgid(old->user_ns, gid); SYSCALL_DEFINE1()
803 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || SYSCALL_DEFINE1()
804 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || SYSCALL_DEFINE1()
805 ns_capable(old->user_ns, CAP_SETGID)) { SYSCALL_DEFINE1()
806 if (!gid_eq(kgid, old->fsgid)) { SYSCALL_DEFINE1()
1453 struct rlimit old, new; SYSCALL_DEFINE4() local
1478 old_rlim ? &old : NULL); SYSCALL_DEFINE4()
1481 rlim_to_rlim64(&old, &old64); SYSCALL_DEFINE4()
1509 * reads are atomic, we either get new values or old values and we don't
1679 * Forbid mm->exe_file change if old file still mapped. prctl_set_mm_exe_file()
/linux-4.4.14/arch/arm64/kernel/
H A Dftrace.c23 * If @validate == true, a replaced instruction is checked against 'old'.
25 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, ftrace_modify_code() argument
43 if (replaced != old) ftrace_modify_code()
73 u32 old, new; ftrace_make_call() local
75 old = aarch64_insn_gen_nop(); ftrace_make_call()
78 return ftrace_modify_code(pc, old, new, true); ftrace_make_call()
88 u32 old, new; ftrace_make_nop() local
90 old = aarch64_insn_gen_branch_imm(pc, addr, AARCH64_INSN_BRANCH_LINK); ftrace_make_nop()
93 return ftrace_modify_code(pc, old, new, true); ftrace_make_nop()
115 unsigned long old; prepare_ftrace_return() local
127 old = *parent; prepare_ftrace_return()
135 *parent = old; prepare_ftrace_return()
139 err = ftrace_push_return_trace(old, self_addr, &trace.depth, prepare_ftrace_return()
142 *parent = old; prepare_ftrace_return()
/linux-4.4.14/arch/x86/include/asm/
H A Datomic64_64.h164 static inline long atomic64_cmpxchg(atomic64_t *v, long old, long new) atomic64_cmpxchg() argument
166 return cmpxchg(&v->counter, old, new); atomic64_cmpxchg()
181 * Returns the old value of @v.
185 long c, old; atomic64_add_unless() local
190 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless()
191 if (likely(old == c)) atomic64_add_unless()
193 c = old; atomic64_add_unless()
201 * atomic64_dec_if_positive - decrement by 1 if old value positive
204 * The function returns the old value of *v minus 1, even if
209 long c, old, dec; atomic64_dec_if_positive() local
215 old = atomic64_cmpxchg((v), c, dec); atomic64_dec_if_positive()
216 if (likely(old == c)) atomic64_dec_if_positive()
218 c = old; atomic64_dec_if_positive()
H A Dcmpxchg.h38 * returns the old value.
83 #define __raw_cmpxchg(ptr, old, new, size, lock) \
86 __typeof__(*(ptr)) __old = (old); \
131 #define __cmpxchg(ptr, old, new, size) \
132 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX)
134 #define __sync_cmpxchg(ptr, old, new, size) \
135 __raw_cmpxchg((ptr), (old), (new), (size), "lock; ")
137 #define __cmpxchg_local(ptr, old, new, size) \
138 __raw_cmpxchg((ptr), (old), (new), (size), "")
146 #define cmpxchg(ptr, old, new) \
147 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
149 #define sync_cmpxchg(ptr, old, new) \
150 __sync_cmpxchg(ptr, old, new, sizeof(*(ptr)))
152 #define cmpxchg_local(ptr, old, new) \
153 __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
H A Dcmpxchg_32.h46 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) __cmpxchg64() argument
54 "0" (old) __cmpxchg64()
59 static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) __cmpxchg64_local() argument
67 "0" (old) __cmpxchg64_local()
H A Dspinlock.h76 arch_spinlock_t old, new; __ticket_check_and_clear_slowpath() local
78 old.tickets.head = head; __ticket_check_and_clear_slowpath()
80 old.tickets.tail = new.tickets.head + TICKET_LOCK_INC; __ticket_check_and_clear_slowpath()
81 new.tickets.tail = old.tickets.tail; __ticket_check_and_clear_slowpath()
84 cmpxchg(&lock->head_tail, old.head_tail, new.head_tail); __ticket_check_and_clear_slowpath()
133 arch_spinlock_t old, new; arch_spin_trylock() local
135 old.tickets = READ_ONCE(lock->tickets); arch_spin_trylock()
136 if (!__tickets_equal(old.tickets.head, old.tickets.tail)) arch_spin_trylock()
139 new.head_tail = old.head_tail + (TICKET_LOCK_INC << TICKET_SHIFT); arch_spin_trylock()
143 return cmpxchg(&lock->head_tail, old.head_tail, new.head_tail) == old.head_tail; arch_spin_trylock()
H A Datomic.h175 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
177 return cmpxchg(&v->counter, old, new); atomic_cmpxchg()
207 * Returns the old value of @v.
211 int c, old; __atomic_add_unless() local
216 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
217 if (likely(old == c)) __atomic_add_unless()
219 c = old; __atomic_add_unless()
H A Drwsem.h14 * uncontended lock. This can be determined because XADD returns the old value.
107 /* adds 0xffff0001, returns the old value */ __down_write_nested()
158 /* subtracts 1, returns the old value */ __up_read()
160 " call call_rwsem_wake\n" /* expects old value in %edx */ __up_read()
176 /* subtracts 0xffff0001, returns the old value */ __up_write()
178 " call call_rwsem_wake\n" /* expects old value in %edx */ __up_write()
H A Dlocal.h138 long c, old; \
143 old = local_cmpxchg((l), c, c + (a)); \
144 if (likely(old == c)) \
146 c = old; \
H A Dprocessor-cyrix.h6 * When using the old macros a line like
/linux-4.4.14/arch/sh/kernel/cpu/sh3/
H A Dswsusp.S116 stc r2_bank, k0 ! fetch old sp from r2_bank0
120 stc r0_bank, k3 ! fetch old pr from r0_bank0
123 mov r2, r15 ! restore old sp
124 mov r5, r8 ! restore old r8
126 ldc r1, sr ! restore old sr
127 lds r0, pr ! restore old pr
133 mov r2, r15 ! restore old sp
134 mov r5, r8 ! restore old r8
135 lds r0, pr ! restore old pr
/linux-4.4.14/arch/metag/kernel/
H A Dftrace.c86 unsigned char old[MCOUNT_INSN_SIZE], *new; ftrace_update_ftrace_func() local
89 memcpy(old, &ftrace_call, MCOUNT_INSN_SIZE); ftrace_update_ftrace_func()
91 ret = ftrace_modify_code(pc, old, new); ftrace_update_ftrace_func()
99 unsigned char *new, *old; ftrace_make_nop() local
102 old = ftrace_call_replace(ip, addr); ftrace_make_nop()
105 return ftrace_modify_code(ip, old, new); ftrace_make_nop()
110 unsigned char *new, *old; ftrace_make_call() local
113 old = ftrace_nop_replace(); ftrace_make_call()
116 return ftrace_modify_code(ip, old, new); ftrace_make_call()
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_prim.h60 int old = memory_pressure_get(); cfs_memory_pressure_get_and_set() local
62 if (!old) cfs_memory_pressure_get_and_set()
64 return old; cfs_memory_pressure_get_and_set()
67 static inline void cfs_memory_pressure_restore(int old) cfs_memory_pressure_restore() argument
69 if (old) cfs_memory_pressure_restore()
/linux-4.4.14/include/uapi/linux/
H A Delf-em.h53 /* Bogus old v850 magic number, used by old tools. */
55 /* Bogus old m32r magic number, used by old tools. */
57 /* This is the old interim value for S/390 architecture */
/linux-4.4.14/tools/perf/util/include/linux/
H A Dbitmap.h50 * test_and_set_bit - Set a bit and return its old value
58 unsigned long old; test_and_set_bit() local
60 old = *p; test_and_set_bit()
61 *p = old | mask; test_and_set_bit()
63 return (old & mask) != 0; test_and_set_bit()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_lock.c180 unsigned int old, new, prev; drm_lock_take() local
185 old = *lock; drm_lock_take()
186 if (old & _DRM_LOCK_HELD) drm_lock_take()
187 new = old | _DRM_LOCK_CONT; drm_lock_take()
193 prev = cmpxchg(lock, old, new); drm_lock_take()
194 } while (prev != old); drm_lock_take()
197 if (_DRM_LOCKING_CONTEXT(old) == context) { drm_lock_take()
198 if (old & _DRM_LOCK_HELD) { drm_lock_take()
229 unsigned int old, new, prev; drm_lock_transfer() local
234 old = *lock; drm_lock_transfer()
236 prev = cmpxchg(lock, old, new); drm_lock_transfer()
237 } while (prev != old); drm_lock_transfer()
254 unsigned int old, new, prev; drm_legacy_lock_free() local
267 old = *lock; drm_legacy_lock_free()
268 new = _DRM_LOCKING_CONTEXT(old); drm_legacy_lock_free()
269 prev = cmpxchg(lock, old, new); drm_legacy_lock_free()
270 } while (prev != old); drm_legacy_lock_free()
272 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { drm_legacy_lock_free()
274 context, _DRM_LOCKING_CONTEXT(old)); drm_legacy_lock_free()
315 unsigned int old, prev; drm_legacy_idlelock_release() local
322 old = *lock; drm_legacy_idlelock_release()
323 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); drm_legacy_idlelock_release()
324 } while (prev != old); drm_legacy_idlelock_release()
/linux-4.4.14/arch/score/include/asm/
H A Dcmpxchg.h27 unsigned long old, unsigned long new) __cmpxchg()
34 if (retval == old) __cmpxchg()
26 __cmpxchg(volatile unsigned long *m, unsigned long old, unsigned long new) __cmpxchg() argument
/linux-4.4.14/arch/frv/include/asm/
H A Datomic.h164 #define atomic_cmpxchg(v, old, new) (cmpxchg(&(v)->counter, old, new))
166 #define atomic64_cmpxchg(v, old, new) (__cmpxchg_64(old, new, &(v)->counter))
171 int c, old; __atomic_add_unless() local
176 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
177 if (likely(old == c)) __atomic_add_unless()
179 c = old; __atomic_add_unless()
H A Datomic_defs.h115 int old, tmp; \
127 : "+U"(*v), "=&r"(old), "=r"(tmp) \
132 return old; \
139 long long old, tmp; \
152 : "+m"(*__v), "=&e"(old), "=e"(tmp) \
157 return old; \
H A Dcmpxchg.h150 unsigned long old, __cmpxchg_local()
155 return cmpxchg((unsigned long *)ptr, old, new); __cmpxchg_local()
157 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local()
160 return old; __cmpxchg_local()
149 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
H A Dmmu_context.h26 extern void change_mm_context(mm_context_t *old, mm_context_t *ctx, pgd_t *_pgd);
31 #define change_mm_context(old, ctx, _pml4) do {} while(0)
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-prim.c77 sigset_t old; cfs_block_allsigs() local
80 old = current->blocked; cfs_block_allsigs()
85 return old; cfs_block_allsigs()
92 sigset_t old; cfs_block_sigs() local
95 old = current->blocked; cfs_block_sigs()
99 return old; cfs_block_sigs()
107 sigset_t old; cfs_block_sigsinv() local
110 old = current->blocked; cfs_block_sigsinv()
115 return old; cfs_block_sigsinv()
120 cfs_restore_sigs(sigset_t old) cfs_restore_sigs() argument
125 current->blocked = old; cfs_restore_sigs()
/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_extend.c75 struct nf_ct_ext *old, *new; __nf_ct_ext_add_length() local
82 old = ct->ext; __nf_ct_ext_add_length()
83 if (!old) __nf_ct_ext_add_length()
86 if (__nf_ct_ext_exist(old, id)) __nf_ct_ext_add_length()
93 newoff = ALIGN(old->len, t->align); __nf_ct_ext_add_length()
97 new = __krealloc(old, newlen, gfp); __nf_ct_ext_add_length()
101 if (new != old) { __nf_ct_ext_add_length()
103 if (!__nf_ct_ext_exist(old, i)) __nf_ct_ext_add_length()
110 (void *)old + old->offset[i]); __nf_ct_ext_add_length()
113 kfree_rcu(old, rcu); __nf_ct_ext_add_length()
H A Dnf_conntrack_labels.c55 u32 old, tmp; replace_u32() local
58 old = *address; replace_u32()
59 tmp = (old & mask) ^ new; replace_u32()
60 } while (cmpxchg(address, old, tmp) != old); replace_u32()
/linux-4.4.14/drivers/hid/usbhid/
H A Dhid-pidff.c271 * Test if the new envelope differs from old one
274 struct ff_envelope *old) pidff_needs_set_envelope()
276 return envelope->attack_level != old->attack_level || pidff_needs_set_envelope()
277 envelope->fade_level != old->fade_level || pidff_needs_set_envelope()
278 envelope->attack_length != old->attack_length || pidff_needs_set_envelope()
279 envelope->fade_length != old->fade_length; pidff_needs_set_envelope()
301 struct ff_effect *old) pidff_needs_set_constant()
303 return effect->u.constant.level != old->u.constant.level; pidff_needs_set_constant()
336 struct ff_effect *old) pidff_needs_set_effect()
338 return effect->replay.length != old->replay.length || pidff_needs_set_effect()
339 effect->trigger.interval != old->trigger.interval || pidff_needs_set_effect()
340 effect->trigger.button != old->trigger.button || pidff_needs_set_effect()
341 effect->direction != old->direction || pidff_needs_set_effect()
342 effect->replay.delay != old->replay.delay; pidff_needs_set_effect()
369 struct ff_effect *old) pidff_needs_set_periodic()
371 return effect->u.periodic.magnitude != old->u.periodic.magnitude || pidff_needs_set_periodic()
372 effect->u.periodic.offset != old->u.periodic.offset || pidff_needs_set_periodic()
373 effect->u.periodic.phase != old->u.periodic.phase || pidff_needs_set_periodic()
374 effect->u.periodic.period != old->u.periodic.period; pidff_needs_set_periodic()
411 struct ff_effect *old) pidff_needs_set_condition()
418 struct ff_condition_effect *old_cond = &old->u.condition[i]; pidff_needs_set_condition()
450 static int pidff_needs_set_ramp(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_ramp() argument
452 return effect->u.ramp.start_level != old->u.ramp.start_level || pidff_needs_set_ramp()
453 effect->u.ramp.end_level != old->u.ramp.end_level; pidff_needs_set_ramp()
565 struct ff_effect *old) pidff_upload_effect()
572 if (old) { pidff_upload_effect()
579 if (!old) { pidff_upload_effect()
585 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
587 if (!old || pidff_needs_set_constant(effect, old)) pidff_upload_effect()
589 if (!old || pidff_upload_effect()
591 &old->u.constant.envelope)) pidff_upload_effect()
597 if (!old) { pidff_upload_effect()
624 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
626 if (!old || pidff_needs_set_periodic(effect, old)) pidff_upload_effect()
628 if (!old || pidff_upload_effect()
630 &old->u.periodic.envelope)) pidff_upload_effect()
636 if (!old) { pidff_upload_effect()
642 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
644 if (!old || pidff_needs_set_ramp(effect, old)) pidff_upload_effect()
646 if (!old || pidff_upload_effect()
648 &old->u.ramp.envelope)) pidff_upload_effect()
654 if (!old) { pidff_upload_effect()
660 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
662 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
667 if (!old) { pidff_upload_effect()
673 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
675 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
680 if (!old) { pidff_upload_effect()
686 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
688 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
693 if (!old) { pidff_upload_effect()
699 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
701 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
710 if (!old) pidff_upload_effect()
273 pidff_needs_set_envelope(struct ff_envelope *envelope, struct ff_envelope *old) pidff_needs_set_envelope() argument
300 pidff_needs_set_constant(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_constant() argument
335 pidff_needs_set_effect(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_effect() argument
368 pidff_needs_set_periodic(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_periodic() argument
410 pidff_needs_set_condition(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_condition() argument
564 pidff_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old) pidff_upload_effect() argument
/linux-4.4.14/sound/pci/ice1712/
H A Dwtm.c81 unsigned char new, old; stac9460_dac_mute_all() local
91 old = stac9460_get(ice, idx); stac9460_dac_mute_all()
92 new = (~mute << 7 & 0x80) | (old & ~0x80); stac9460_dac_mute_all()
93 change = (new != old); stac9460_dac_mute_all()
110 old = stac9460_2_get(ice, idx); stac9460_dac_mute_all()
111 new = (~mute << 7 & 0x80) | (old & ~0x80); stac9460_dac_mute_all()
112 change = (new != old); stac9460_dac_mute_all()
158 unsigned char new, old; stac9460_dac_mute_put() local
164 old = stac9460_get(ice, idx); stac9460_dac_mute_put()
166 (old & ~0x80); stac9460_dac_mute_put()
167 change = (new != old); stac9460_dac_mute_put()
176 old = stac9460_get(ice, idx); stac9460_dac_mute_put()
178 old = stac9460_2_get(ice, idx - 6); stac9460_dac_mute_put()
180 (old & ~0x80); stac9460_dac_mute_put()
181 change = (new != old); stac9460_dac_mute_put()
298 unsigned char new, old; stac9460_adc_mute_put() local
306 old = stac9460_get(ice, reg); stac9460_adc_mute_put()
308 (old&~0x80); stac9460_adc_mute_put()
309 change = (new != old); stac9460_adc_mute_put()
316 old = stac9460_2_get(ice, reg); stac9460_adc_mute_put()
318 (old&~0x80); stac9460_adc_mute_put()
319 change = (new != old); stac9460_adc_mute_put()
429 unsigned char new, old; stac9460_mic_sw_put() local
434 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); stac9460_mic_sw_put()
436 old = stac9460_2_get(ice, STAC946X_GENERAL_PURPOSE); stac9460_mic_sw_put()
437 new = (ucontrol->value.enumerated.item[0] << 7 & 0x80) | (old & ~0x80); stac9460_mic_sw_put()
438 change = (new != old); stac9460_mic_sw_put()
454 unsigned char old, new; stac9460_set_rate_val() local
467 old = stac9460_get(ice, STAC946X_MASTER_CLOCKING); stac9460_set_rate_val()
468 if (old == new) stac9460_set_rate_val()
/linux-4.4.14/arch/microblaze/include/asm/
H A Datomic.h10 * The function returns the old value of *v minus 1.
/linux-4.4.14/arch/mn10300/unit-asb2364/
H A DMakefile5 # removes any old dependencies. DON'T put your own dependencies here
/linux-4.4.14/arch/parisc/lib/
H A Dbitops.c59 unsigned long __cmpxchg_u64(volatile unsigned long *ptr, unsigned long old, unsigned long new) __cmpxchg_u64() argument
65 if ((prev = *ptr) == old) __cmpxchg_u64()
72 unsigned long __cmpxchg_u32(volatile unsigned int *ptr, unsigned int old, unsigned int new) __cmpxchg_u32() argument
78 if ((prev = *ptr) == old) __cmpxchg_u32()
/linux-4.4.14/sound/oss/
H A Dsleep.h4 * Do not use. This is a replacement for the old
/linux-4.4.14/arch/blackfin/include/asm/
H A Dcmpxchg.h18 unsigned long new, unsigned long old);
20 unsigned long new, unsigned long old);
22 unsigned long new, unsigned long old);
49 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument
56 tmp = __raw_cmpxchg_1_asm(ptr, new, old); __cmpxchg()
59 tmp = __raw_cmpxchg_2_asm(ptr, new, old); __cmpxchg()
62 tmp = __raw_cmpxchg_4_asm(ptr, new, old); __cmpxchg()
/linux-4.4.14/arch/tile/include/asm/
H A Datomic.h121 * Atomically sets @v to @i and returns old @v
131 * @o: old value that memory should have
135 * Returns the old value at @v.
167 * Atomically sets @v to @i and returns old @v
177 * @o: old value that memory should have
181 * Returns the old value at @v.
191 long long c, old, dec; atomic64_dec_if_positive() local
198 old = atomic64_cmpxchg((v), c, dec); atomic64_dec_if_positive()
199 if (likely(old == c)) atomic64_dec_if_positive()
201 c = old; atomic64_dec_if_positive()
/linux-4.4.14/mm/
H A Dswap_cgroup.c81 * @old: old id
84 * Returns old id at success, 0 at failure.
88 unsigned short old, unsigned short new) swap_cgroup_cmpxchg()
99 if (retval == old) swap_cgroup_cmpxchg()
112 * Returns old value at success, 0 at failure.
113 * (Of course, old value can be 0.)
119 unsigned short old; swap_cgroup_record() local
125 old = sc->id; swap_cgroup_record()
129 return old; swap_cgroup_record()
87 swap_cgroup_cmpxchg(swp_entry_t ent, unsigned short old, unsigned short new) swap_cgroup_cmpxchg() argument
/linux-4.4.14/arch/mips/include/asm/
H A Dcmpxchg.h141 #define __cmpxchg_asm(ld, st, m, old, new) \
160 : GCC_OFF_SMALL_ASM() (*m), "Jr" (old), "Jr" (new) \
177 : GCC_OFF_SMALL_ASM() (*m), "Jr" (old), "Jr" (new) \
184 if (__ret == old) \
198 #define __cmpxchg(ptr, old, new, pre_barrier, post_barrier) \
201 __typeof__(*(ptr)) __old = (old); \
227 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb())
228 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, , )
H A Datomic.h154 * The function returns the old value of @v minus @i.
225 * Returns the old value of @v.
229 int c, old; __atomic_add_unless() local
234 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless()
235 if (likely(old == c)) __atomic_add_unless()
237 c = old; __atomic_add_unless()
277 * atomic_dec_if_positive - decrement by 1 if old value positive
438 * The function returns the old value of @v minus @i.
514 long c, old; atomic64_add_unless() local
519 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless()
520 if (likely(old == c)) atomic64_add_unless()
522 c = old; atomic64_add_unless()
564 * atomic64_dec_if_positive - decrement by 1 if old value positive
/linux-4.4.14/arch/mn10300/include/asm/
H A Datomic.h124 int c, old; \
126 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \
127 c = old; \
132 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
H A Dcmpxchg.h40 unsigned long old, unsigned long new) __cmpxchg()
57 "r"(old), "r"(new) __cmpxchg()
91 unsigned long old, unsigned long new) __cmpxchg()
98 if (oldval == old) __cmpxchg()
39 __cmpxchg(volatile unsigned long *m, unsigned long old, unsigned long new) __cmpxchg() argument
90 __cmpxchg(volatile unsigned long *m, unsigned long old, unsigned long new) __cmpxchg() argument
/linux-4.4.14/arch/sh/kernel/
H A Dftrace.c114 int old = atomic_read(&nmi_running); clear_mod_flag() local
117 int new = old & ~MOD_CODE_WRITE_FLAG; clear_mod_flag()
119 if (old == new) clear_mod_flag()
122 old = atomic_cmpxchg(&nmi_running, old, new); clear_mod_flag()
244 unsigned char old[MCOUNT_INSN_SIZE], *new; ftrace_update_ftrace_func() local
246 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); ftrace_update_ftrace_func()
249 return ftrace_modify_code(ip, old, new); ftrace_update_ftrace_func()
255 unsigned char *new, *old; ftrace_make_nop() local
258 old = ftrace_call_replace(ip, addr); ftrace_make_nop()
261 return ftrace_modify_code(rec->ip, old, new); ftrace_make_nop()
266 unsigned char *new, *old; ftrace_make_call() local
269 old = ftrace_nop_replace(ip); ftrace_make_call()
272 return ftrace_modify_code(rec->ip, old, new); ftrace_make_call()
342 unsigned long old; prepare_ftrace_return() local
377 : "=&r" (old), "=r" (faulted) prepare_ftrace_return()
387 err = ftrace_push_return_trace(old, self_addr, &trace.depth, 0); prepare_ftrace_return()
389 __raw_writel(old, parent); prepare_ftrace_return()
398 __raw_writel(old, parent); prepare_ftrace_return()
H A Dsyscalls_64.S23 .long sys_restart_syscall /* 0 - old "setup()" system call */
40 .long sys_ni_syscall /* old break syscall holder */
54 .long sys_ni_syscall /* old stty syscall holder */
55 .long sys_ni_syscall /* old gtty syscall holder */
58 .long sys_ni_syscall /* 35 */ /* old ftime syscall holder */
67 .long sys_ni_syscall /* old prof syscall holder */
76 .long sys_ni_syscall /* old lock syscall holder */
79 .long sys_ni_syscall /* old mpx syscall holder */
81 .long sys_ni_syscall /* old ulimit syscall holder */
121 .long sys_ni_syscall /* old profil syscall holder */
150 .long sys_ni_syscall /* old "create_module" */
153 .long sys_ni_syscall /* 130: old "get_kernel_syms" */
190 .long sys_ni_syscall /* old "query_module" */
/linux-4.4.14/arch/mips/kernel/
H A Dsyscall.c101 unsigned long old, tmp; mips_atomic_set() local
115 "1: ll %[old], (%[addr]) \n" mips_atomic_set()
130 : [old] "=&r" (old), mips_atomic_set()
141 "1: ll %[old], (%[addr]) \n" mips_atomic_set()
160 : [old] "=&r" (old), mips_atomic_set()
174 err = __get_user(old, (unsigned int *) addr); mips_atomic_set()
186 regs->regs[2] = old; mips_atomic_set()
/linux-4.4.14/arch/hexagon/include/asm/
H A Datomic.h64 * @old: desired old value to match
68 * and the output is the old value.
76 * "old" is "expected" old val, __oldval is actual old value
78 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
90 : "r" (&v->counter), "r" (old), "r" (new) atomic_cmpxchg()
149 * Returns old value.
/linux-4.4.14/arch/arm/include/asm/
H A Dcmpxchg.h155 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument
172 : "r" (ptr), "Ir" (old), "r" (new) __cmpxchg()
184 : "r" (ptr), "Ir" (old), "r" (new) __cmpxchg()
197 : "r" (ptr), "Ir" (old), "r" (new) __cmpxchg()
217 unsigned long old, __cmpxchg_local()
226 ret = __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local()
230 ret = __cmpxchg(ptr, old, new, size); __cmpxchg_local()
244 unsigned long long old, __cmpxchg64()
262 : "r" (ptr), "r" (old), "r" (new) __cmpxchg64()
216 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
243 __cmpxchg64(unsigned long long *ptr, unsigned long long old, unsigned long long new) __cmpxchg64() argument
H A Datomic.h83 static inline int atomic_cmpxchg_relaxed(atomic_t *ptr, int old, int new) atomic_cmpxchg_relaxed() argument
97 : "r" (&ptr->counter), "Ir" (old), "r" (new) atomic_cmpxchg_relaxed()
162 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
169 if (likely(ret == old)) atomic_cmpxchg()
178 int c, old; __atomic_add_unless() local
181 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c) __atomic_add_unless()
182 c = old; __atomic_add_unless()
342 atomic64_cmpxchg_relaxed(atomic64_t *ptr, long long old, long long new) atomic64_cmpxchg_relaxed() argument
357 : "r" (&ptr->counter), "r" (old), "r" (new) atomic64_cmpxchg_relaxed()
H A Dcache.h14 * cache before the transfer is done, causing old data to be seen by
/linux-4.4.14/arch/arc/include/asm/
H A Dbitops.h55 * set it and return 0 (old value)
57 * return 1 (old value).
60 * and the old value of bit is returned
65 unsigned long old, temp; \
82 : "=&r"(old), "=&r"(temp) \
88 return (old & (1 << nr)) != 0; \
129 unsigned long old, flags; \
134 old = *m; \
135 *m = old c_op (1UL << (nr & 0x1f)); \
139 return (old & (1UL << (nr & 0x1f))) != 0; \
161 unsigned long old; \
164 old = *m; \
165 *m = old c_op (1UL << (nr & 0x1f)); \
167 return (old & (1UL << (nr & 0x1f))) != 0; \
/linux-4.4.14/net/core/
H A Dnetprio_cgroup.c39 struct netprio_map *old, *new; extend_netdev_table() local
43 old = rtnl_dereference(dev->priomap); extend_netdev_table()
44 if (old && old->priomap_len > target_idx) extend_netdev_table()
69 if (old) extend_netdev_table()
70 memcpy(new->priomap, old->priomap, extend_netdev_table()
71 old->priomap_len * sizeof(old->priomap[0])); extend_netdev_table()
77 if (old) extend_netdev_table()
78 kfree_rcu(old, rcu); extend_netdev_table()
260 struct netprio_map *old; netprio_device_event() local
269 old = rtnl_dereference(dev->priomap); netprio_device_event()
271 if (old) netprio_device_event()
272 kfree_rcu(old, rcu); netprio_device_event()
/linux-4.4.14/arch/m68k/kernel/
H A Dsyscalltable.S23 .long sys_restart_syscall /* 0 - old "setup()" system call, used for restarting */
40 .long sys_ni_syscall /* old break syscall holder */
54 .long sys_ni_syscall /* old stty syscall holder */
55 .long sys_ni_syscall /* old gtty syscall holder */
58 .long sys_ni_syscall /* 35 - old ftime syscall holder */
67 .long sys_ni_syscall /* old prof syscall holder */
76 .long sys_ni_syscall /* old lock syscall holder */
79 .long sys_ni_syscall /* old mpx syscall holder */
81 .long sys_ni_syscall /* old ulimit syscall holder */
121 .long sys_ni_syscall /* old profil syscall holder */
150 .long sys_ni_syscall /* old "create_module" */
153 .long sys_ni_syscall /* 130 - old "get_kernel_syms" */
190 .long sys_ni_syscall /* old "query_module" */
192 .long sys_ni_syscall /* old nfsservctl */
/linux-4.4.14/drivers/md/bcache/
H A Dio.c68 unsigned old = count; bch_count_io_errors() local
76 count = atomic_cmpxchg(&ca->io_count, old, new); bch_count_io_errors()
78 if (count == old) { bch_count_io_errors()
83 old = errors; bch_count_io_errors()
86 old, new); bch_count_io_errors()
87 } while (old != errors); bch_count_io_errors()
/linux-4.4.14/arch/ia64/include/uapi/asm/
H A Dcmpxchg.h70 #define ia64_cmpxchg(sem, ptr, old, new, size) \
76 _o_ = (__u8) (long) (old); \
79 _o_ = (__u16) (long) (old); \
82 _o_ = (__u32) (long) (old); \
85 _o_ = (__u64) (long) (old); \
111 (__typeof__(old)) _r_; \
H A Dgcc_intrin.h307 #define ia64_cmpxchg1_acq(ptr, new, old) \
310 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
316 #define ia64_cmpxchg1_rel(ptr, new, old) \
319 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
325 #define ia64_cmpxchg2_acq(ptr, new, old) \
328 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
334 #define ia64_cmpxchg2_rel(ptr, new, old) \
337 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
344 #define ia64_cmpxchg4_acq(ptr, new, old) \
347 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
353 #define ia64_cmpxchg4_rel(ptr, new, old) \
356 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
362 #define ia64_cmpxchg8_acq(ptr, new, old) \
365 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
371 #define ia64_cmpxchg8_rel(ptr, new, old) \
374 asm volatile ("mov ar.ccv=%0;;" :: "rO"(old)); \
H A Dparam.h23 * Technically, this is wrong, but some old apps still refer to it. The proper way to
/linux-4.4.14/drivers/firmware/efi/
H A Dfake_mem.c64 void *old, *new; efi_fake_memmap() local
71 for (old = memmap.map; old < memmap.map_end; old += memmap.desc_size) { efi_fake_memmap()
72 md = old; efi_fake_memmap()
111 for (old = memmap.map, new = new_memmap; efi_fake_memmap()
112 old < memmap.map_end; efi_fake_memmap()
113 old += memmap.desc_size, new += memmap.desc_size) { efi_fake_memmap()
116 memcpy(new, old, memmap.desc_size); efi_fake_memmap()
138 memcpy(new, old, memmap.desc_size); efi_fake_memmap()
151 memcpy(new, old, memmap.desc_size); efi_fake_memmap()
159 memcpy(new, old, memmap.desc_size); efi_fake_memmap()
173 memcpy(new, old, memmap.desc_size); efi_fake_memmap()
/linux-4.4.14/security/keys/
H A Dprocess_keys.c146 * Install a fresh thread keyring, discarding the old one.
222 struct key *old; install_session_keyring_to_cred() local
242 old = cred->session_keyring; install_session_keyring_to_cred()
245 if (old) install_session_keyring_to_cred()
246 key_put(old); install_session_keyring_to_cred()
252 * Install a session keyring, discarding the old one. If a keyring is not
755 const struct cred *old; join_session_keyring() local
763 old = current_cred(); join_session_keyring()
786 name, old->uid, old->gid, old, join_session_keyring()
828 const struct cred *old = current_cred(); key_change_session_keyring() local
836 new-> uid = old-> uid; key_change_session_keyring()
837 new-> euid = old-> euid; key_change_session_keyring()
838 new-> suid = old-> suid; key_change_session_keyring()
839 new->fsuid = old->fsuid; key_change_session_keyring()
840 new-> gid = old-> gid; key_change_session_keyring()
841 new-> egid = old-> egid; key_change_session_keyring()
842 new-> sgid = old-> sgid; key_change_session_keyring()
843 new->fsgid = old->fsgid; key_change_session_keyring()
844 new->user = get_uid(old->user); key_change_session_keyring()
845 new->user_ns = get_user_ns(old->user_ns); key_change_session_keyring()
846 new->group_info = get_group_info(old->group_info); key_change_session_keyring()
848 new->securebits = old->securebits; key_change_session_keyring()
849 new->cap_inheritable = old->cap_inheritable; key_change_session_keyring()
850 new->cap_permitted = old->cap_permitted; key_change_session_keyring()
851 new->cap_effective = old->cap_effective; key_change_session_keyring()
852 new->cap_ambient = old->cap_ambient; key_change_session_keyring()
853 new->cap_bset = old->cap_bset; key_change_session_keyring()
855 new->jit_keyring = old->jit_keyring; key_change_session_keyring()
856 new->thread_keyring = key_get(old->thread_keyring); key_change_session_keyring()
857 new->process_keyring = key_get(old->process_keyring); key_change_session_keyring()
859 security_transfer_creds(new, old); key_change_session_keyring()
/linux-4.4.14/arch/tile/include/gxio/
H A Ddma_queue.h89 int64_t old = __gxio_dma_queue_reserve() local
93 if (unlikely(old + modifier < 0)) { __gxio_dma_queue_reserve()
99 old = __insn_fetchaddgez(&dma_queue->credits_and_next_index, __gxio_dma_queue_reserve()
101 if (old + modifier < 0) { __gxio_dma_queue_reserve()
103 old = __gxio_dma_queue_wait_for_credits __gxio_dma_queue_reserve()
110 /* The bottom 24 bits of old encode the "slot". */ __gxio_dma_queue_reserve()
111 slot = (old & 0xffffff); __gxio_dma_queue_reserve()
135 if (unlikely(((old + num) & 0xff) < num)) { __gxio_dma_queue_reserve()
/linux-4.4.14/kernel/locking/
H A Dosq_lock.c42 int old; osq_wait_next() local
45 * If there is a prev node in queue, then the 'old' value will be osq_wait_next()
49 old = prev ? prev->cpu : OSQ_UNLOCKED_VAL; osq_wait_next()
53 atomic_cmpxchg_acquire(&lock->tail, curr, old) == curr) { osq_wait_next()
89 int old; osq_lock() local
101 old = atomic_xchg(&lock->tail, curr); osq_lock()
102 if (old == OSQ_UNLOCKED_VAL) osq_lock()
105 prev = decode_cpu(old); osq_lock()
H A Dqspinlock.c207 u32 old, new, val = atomic_read(&lock->val); xchg_tail() local
211 old = atomic_cmpxchg(&lock->val, val, new); xchg_tail()
212 if (old == val) xchg_tail()
215 val = old; xchg_tail()
217 return old; xchg_tail()
284 u32 new, old, tail; queued_spin_lock_slowpath() local
322 old = atomic_cmpxchg(&lock->val, val, new); queued_spin_lock_slowpath()
323 if (old == val) queued_spin_lock_slowpath()
326 val = old; queued_spin_lock_slowpath()
384 old = xchg_tail(lock, tail); queued_spin_lock_slowpath()
390 if (old & _Q_TAIL_MASK) { queued_spin_lock_slowpath()
391 prev = decode_tail(old); queued_spin_lock_slowpath()
429 old = atomic_cmpxchg(&lock->val, val, _Q_LOCKED_VAL); queued_spin_lock_slowpath()
430 if (old == val) queued_spin_lock_slowpath()
433 val = old; queued_spin_lock_slowpath()
/linux-4.4.14/arch/s390/net/
H A Dbpf_jit.h28 * | old backchain | |
54 * 12 * 8 byte for old backchain, r15..r6, and tail_call_cnt.
/linux-4.4.14/arch/sparc/boot/
H A Dinstall.sh42 mv $4/vmlinuz $4/vmlinuz.old
46 mv $4/System.map $4/System.old
/linux-4.4.14/arch/m68k/
H A Dinstall.sh42 mv $4/vmlinuz $4/vmlinuz.old
46 mv $4/System.map $4/System.old
/linux-4.4.14/arch/nios2/boot/
H A Dinstall.sh42 mv $4/vmlinuz $4/vmlinuz.old
46 mv $4/System.map $4/System.old
/linux-4.4.14/arch/parisc/kernel/
H A Dftrace.c96 /* HACK: we hand over the old functions' return values ftrace_return_to_handler()
111 unsigned long old; prepare_ftrace_return() local
121 old = *parent; prepare_ftrace_return()
125 if (unlikely(!__kernel_text_address(old))) { prepare_ftrace_return()
127 *parent = old; prepare_ftrace_return()
134 if (push_return_trace(old, calltime, prepare_ftrace_return()
136 *parent = old; prepare_ftrace_return()
145 *parent = old; prepare_ftrace_return()
/linux-4.4.14/arch/h8300/boot/compressed/
H A Dhead.S34 ; or else old loadlin-1.5 will fail)
39 .byte 0 ; = 0, old one (LILO, Loadlin,
/linux-4.4.14/arch/m68k/amiga/
H A Dcia.c48 * Cause or clear CIA interrupts, return old interrupt status.
53 unsigned char old; cia_set_irq() local
55 old = (base->icr_data |= base->cia->icr); cia_set_irq()
62 return old & base->icr_mask; cia_set_irq()
66 * Enable or disable CIA interrupts, return old interrupt mask,
71 unsigned char old; cia_able_irq() local
73 old = base->icr_mask; cia_able_irq()
83 return old; cia_able_irq()
/linux-4.4.14/drivers/gpu/host1x/hw/
H A Dsyncpt_hw.c60 u32 old, live; syncpt_load() local
64 old = host1x_syncpt_read_min(sp); syncpt_load()
66 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); syncpt_load()
/linux-4.4.14/include/net/
H A Dnetevent.h18 struct dst_entry *old; member in struct:netevent_redirect
H A Datmclip.h30 /* keep old push fn for chaining */
32 /* keep old pop fn for chaining */
/linux-4.4.14/arch/powerpc/kernel/
H A Dsmp-tbsync.c114 int i, score, score2, old, min=0, max=5000, offset=1000; smp_generic_give_timebase() local
129 for (old = -1; old != offset ; offset = (min+max) / 2) { smp_generic_give_timebase()
138 old = offset; smp_generic_give_timebase()
H A Dftrace.c45 ftrace_modify_code(unsigned long ip, unsigned int old, unsigned int new) ftrace_modify_code() argument
64 if (replaced != old) ftrace_modify_code()
245 unsigned int old, new; ftrace_make_nop() local
254 old = ftrace_call_replace(ip, addr, 1); ftrace_make_nop()
256 return ftrace_modify_code(ip, old, new); ftrace_make_nop()
377 unsigned int old, new; ftrace_make_call() local
386 old = PPC_INST_NOP; ftrace_make_call()
388 return ftrace_modify_code(ip, old, new); ftrace_make_call()
412 unsigned int old, new; ftrace_update_ftrace_func() local
415 old = *(unsigned int *)&ftrace_call; ftrace_update_ftrace_func()
417 ret = ftrace_modify_code(ip, old, new); ftrace_update_ftrace_func()
491 unsigned int old, new; ftrace_enable_ftrace_graph_caller() local
493 old = ftrace_call_replace(ip, stub, 0); ftrace_enable_ftrace_graph_caller()
496 return ftrace_modify_code(ip, old, new); ftrace_enable_ftrace_graph_caller()
504 unsigned int old, new; ftrace_disable_ftrace_graph_caller() local
506 old = ftrace_call_replace(ip, addr, 0); ftrace_disable_ftrace_graph_caller()
509 return ftrace_modify_code(ip, old, new); ftrace_disable_ftrace_graph_caller()
/linux-4.4.14/arch/sparc/include/uapi/asm/
H A Dresource.h23 * old value for compatibility:
/linux-4.4.14/arch/arm/mach-sa1100/include/mach/
H A Dcerf.h8 * Apr-2003 : Removed some old PDA crud [FB]
/linux-4.4.14/arch/x86/um/
H A Dbugs_32.c24 struct sigaction old, new; arch_check_bugs() local
32 sigaction(SIGILL, &new, &old); arch_check_bugs()
41 sigaction(SIGILL, &old, &new); arch_check_bugs()
/linux-4.4.14/tools/include/linux/
H A Drbtree_augmented.h43 void (*copy)(struct rb_node *old, struct rb_node *new);
44 void (*rotate)(struct rb_node *old, struct rb_node *new);
48 void (*augment_rotate)(struct rb_node *old, struct rb_node *new));
83 rbstruct *old = rb_entry(rb_old, rbstruct, rbfield); \
85 new->rbaugmented = old->rbaugmented; \
90 rbstruct *old = rb_entry(rb_old, rbstruct, rbfield); \
92 new->rbaugmented = old->rbaugmented; \
93 old->rbaugmented = rbcompute(old); \
124 __rb_change_child(struct rb_node *old, struct rb_node *new, __rb_change_child() argument
128 if (parent->rb_left == old) __rb_change_child()
137 void (*augment_rotate)(struct rb_node *old, struct rb_node *new));
/linux-4.4.14/fs/pstore/
H A Dram_core.c50 /* increase and wrap the start pointer, returning the old value */ buffer_start_add_atomic()
53 int old; buffer_start_add_atomic() local
57 old = atomic_read(&prz->buffer->start); buffer_start_add_atomic()
58 new = old + a; buffer_start_add_atomic()
61 } while (atomic_cmpxchg(&prz->buffer->start, old, new) != old); buffer_start_add_atomic()
63 return old; buffer_start_add_atomic()
69 size_t old; buffer_size_add_atomic() local
76 old = atomic_read(&prz->buffer->size); buffer_size_add_atomic()
77 new = old + a; buffer_size_add_atomic()
80 } while (atomic_cmpxchg(&prz->buffer->size, old, new) != old); buffer_size_add_atomic()
85 /* increase and wrap the start pointer, returning the old value */ buffer_start_add_locked()
88 int old; buffer_start_add_locked() local
94 old = atomic_read(&prz->buffer->start); buffer_start_add_locked()
95 new = old + a; buffer_start_add_locked()
102 return old; buffer_start_add_locked()
108 size_t old; buffer_size_add_locked() local
114 old = atomic_read(&prz->buffer->size); buffer_size_add_locked()
115 if (old == prz->buffer_size) buffer_size_add_locked()
118 new = old + a; buffer_size_add_locked()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_fifo_underrun.c123 bool enable, bool old) i9xx_set_fifo_underrun_reporting()
135 if (old && pipestat & PIPE_FIFO_UNDERRUN_STATUS) i9xx_set_fifo_underrun_reporting()
155 bool enable, bool old) ivybridge_set_fifo_underrun_reporting()
168 if (old && ivybridge_set_fifo_underrun_reporting()
207 bool enable, bool old) cpt_set_fifo_underrun_reporting()
222 if (old && I915_READ(SERR_INT) & cpt_set_fifo_underrun_reporting()
236 bool old; __intel_set_cpu_fifo_underrun_reporting() local
240 old = !intel_crtc->cpu_fifo_underrun_disabled; __intel_set_cpu_fifo_underrun_reporting()
244 i9xx_set_fifo_underrun_reporting(dev, pipe, enable, old); __intel_set_cpu_fifo_underrun_reporting()
248 ivybridge_set_fifo_underrun_reporting(dev, pipe, enable, old); __intel_set_cpu_fifo_underrun_reporting()
252 return old; __intel_set_cpu_fifo_underrun_reporting()
306 bool old; intel_set_pch_fifo_underrun_reporting() local
319 old = !intel_crtc->pch_fifo_underrun_disabled; intel_set_pch_fifo_underrun_reporting()
327 enable, old); intel_set_pch_fifo_underrun_reporting()
330 return old; intel_set_pch_fifo_underrun_reporting()
121 i9xx_set_fifo_underrun_reporting(struct drm_device *dev, enum pipe pipe, bool enable, bool old) i9xx_set_fifo_underrun_reporting() argument
153 ivybridge_set_fifo_underrun_reporting(struct drm_device *dev, enum pipe pipe, bool enable, bool old) ivybridge_set_fifo_underrun_reporting() argument
205 cpt_set_fifo_underrun_reporting(struct drm_device *dev, enum transcoder pch_transcoder, bool enable, bool old) cpt_set_fifo_underrun_reporting() argument
/linux-4.4.14/arch/x86/um/os-Linux/
H A Dtask_size.c69 struct sigaction sa, old; os_get_top_address() local
92 if (sigaction(SIGSEGV, &sa, &old)) { os_get_top_address()
131 /* Restore the old SIGSEGV handling */ os_get_top_address()
132 if (sigaction(SIGSEGV, &old, NULL)) { os_get_top_address()
146 /* The old value of CONFIG_TOP_ADDR */ os_get_top_address()
/linux-4.4.14/sound/aoa/core/
H A Dgpio-pmf.c136 notify_func_t old; pmf_set_notify() local
160 old = notif->notify; pmf_set_notify()
162 if (!old && !notify) { pmf_set_notify()
167 if (old && notify) { pmf_set_notify()
168 if (old == notify && notif->data == data) pmf_set_notify()
173 if (old && !notify) { pmf_set_notify()
179 if (!old && notify) { pmf_set_notify()
/linux-4.4.14/drivers/mtd/
H A Dmtd_blkdevs.c457 int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old) del_mtd_blktrans_dev() argument
466 if (old->disk_attributes) del_mtd_blktrans_dev()
467 sysfs_remove_group(&disk_to_dev(old->disk)->kobj, del_mtd_blktrans_dev()
468 old->disk_attributes); del_mtd_blktrans_dev()
471 del_gendisk(old->disk); del_mtd_blktrans_dev()
474 destroy_workqueue(old->wq); del_mtd_blktrans_dev()
477 spin_lock_irqsave(&old->queue_lock, flags); del_mtd_blktrans_dev()
478 old->rq->queuedata = NULL; del_mtd_blktrans_dev()
479 blk_start_queue(old->rq); del_mtd_blktrans_dev()
480 spin_unlock_irqrestore(&old->queue_lock, flags); del_mtd_blktrans_dev()
484 mutex_lock(&old->lock); del_mtd_blktrans_dev()
485 if (old->open) { del_mtd_blktrans_dev()
486 if (old->tr->release) del_mtd_blktrans_dev()
487 old->tr->release(old); del_mtd_blktrans_dev()
488 __put_mtd_device(old->mtd); del_mtd_blktrans_dev()
491 old->mtd = NULL; del_mtd_blktrans_dev()
493 mutex_unlock(&old->lock); del_mtd_blktrans_dev()
494 blktrans_dev_put(old); del_mtd_blktrans_dev()
/linux-4.4.14/include/trace/events/
H A Dkvm.h362 TP_PROTO(bool grow, unsigned int vcpu_id, int new, int old),
363 TP_ARGS(grow, vcpu_id, new, old),
369 __field(int, old)
376 __entry->old = old;
383 __entry->old)
386 #define trace_kvm_halt_poll_ns_grow(vcpu_id, new, old) \
387 trace_kvm_halt_poll_ns(true, vcpu_id, new, old)
388 #define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \
389 trace_kvm_halt_poll_ns(false, vcpu_id, new, old)
/linux-4.4.14/sound/soc/
H A Dsoc-io.c68 unsigned int old, new; snd_soc_component_update_bits_legacy() local
76 ret = component->read(component, reg, &old); snd_soc_component_update_bits_legacy()
80 new = (old & ~mask) | (val & mask); snd_soc_component_update_bits_legacy()
81 *change = old != new; snd_soc_component_update_bits_legacy()
178 * different from the old value.
185 unsigned int old, new; snd_soc_component_test_bits() local
188 ret = snd_soc_component_read(component, reg, &old); snd_soc_component_test_bits()
191 new = (old & ~mask) | value; snd_soc_component_test_bits()
192 return old != new; snd_soc_component_test_bits()
243 * different from the old value.
/linux-4.4.14/drivers/firewire/
H A Dcore-iso.c238 int try, new, old = allocate ? BANDWIDTH_AVAILABLE_INITIAL : 0; manage_bandwidth() local
247 new = allocate ? old - bandwidth : old + bandwidth; manage_bandwidth()
251 data[0] = cpu_to_be32(old); manage_bandwidth()
262 if (be32_to_cpup(data) == old) manage_bandwidth()
265 old = be32_to_cpup(data); manage_bandwidth()
276 __be32 bit, all, old; manage_channel() local
280 old = all = allocate ? cpu_to_be32(~0) : 0; manage_channel()
289 if ((old & bit) != (all & bit)) manage_channel()
292 data[0] = old; manage_channel()
293 data[1] = old ^ bit; manage_channel()
302 if (data[0] == old) manage_channel()
305 old = data[0]; manage_channel()
/linux-4.4.14/fs/reiserfs/
H A Dresize.c57 * old disk layout detection; those partitions can be mounted, but reiserfs_resize()
79 /* save old values */ reiserfs_resize()
93 * the bitmap node pointers from the old journal bitmap reiserfs_resize()
111 * old one reiserfs_resize()
167 /* free old bitmap blocks array */ reiserfs_resize()
181 /* Extend old last bitmap block - new blocks have been made available */ reiserfs_resize()
/linux-4.4.14/arch/frv/mm/
H A Dmmu-context.c90 void change_mm_context(mm_context_t *old, mm_context_t *ctx, pgd_t *pgd) change_mm_context() argument
97 old->id_busy = 0; change_mm_context()
99 asm volatile("movsg scr0,%0" : "=r"(old->itlb_cached_pge)); change_mm_context()
100 asm volatile("movsg dampr4,%0" : "=r"(old->itlb_ptd_mapping)); change_mm_context()
101 asm volatile("movsg scr1,%0" : "=r"(old->dtlb_cached_pge)); change_mm_context()
102 asm volatile("movsg dampr5,%0" : "=r"(old->dtlb_ptd_mapping)); change_mm_context()
/linux-4.4.14/security/
H A Dcommoncap.c218 * Determine whether the inheritable capabilities are limited to the old
236 * @old: The current task's current credentials
246 const struct cred *old, cap_capset()
253 cap_combine(old->cap_inheritable, cap_capset()
254 old->cap_permitted))) cap_capset()
259 cap_combine(old->cap_inheritable, cap_capset()
260 old->cap_bset))) cap_capset()
265 if (!cap_issubset(*permitted, old->cap_permitted)) cap_capset()
491 const struct cred *old = current_cred(); cap_bprm_set_creds() local
497 if (WARN_ON(!cap_ambient_invariant_ok(old))) cap_bprm_set_creds()
526 new->cap_permitted = cap_combine(old->cap_bset, cap_bprm_set_creds()
527 old->cap_inheritable); cap_bprm_set_creds()
535 if (!cap_issubset(new->cap_permitted, old->cap_permitted)) cap_bprm_set_creds()
544 is_setid = !uid_eq(new->euid, old->uid) || !gid_eq(new->egid, old->gid); cap_bprm_set_creds()
547 !cap_issubset(new->cap_permitted, old->cap_permitted)) && cap_bprm_set_creds()
556 old->cap_permitted); cap_bprm_set_creds()
602 ret = audit_log_bprm_fcaps(bprm, new, old); cap_bprm_set_creds()
727 static inline void cap_emulate_setxuid(struct cred *new, const struct cred *old) cap_emulate_setxuid() argument
729 kuid_t root_uid = make_kuid(old->user_ns, 0); cap_emulate_setxuid()
731 if ((uid_eq(old->uid, root_uid) || cap_emulate_setxuid()
732 uid_eq(old->euid, root_uid) || cap_emulate_setxuid()
733 uid_eq(old->suid, root_uid)) && cap_emulate_setxuid()
749 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) cap_emulate_setxuid()
751 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) cap_emulate_setxuid()
758 * @old: The current task's current credentials
764 int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags) cap_task_fix_setuid() argument
773 cap_emulate_setxuid(new, old); cap_task_fix_setuid()
784 kuid_t root_uid = make_kuid(old->user_ns, 0); cap_task_fix_setuid()
785 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) cap_task_fix_setuid()
789 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) cap_task_fix_setuid()
900 const struct cred *old = current_cred(); cap_task_prctl() local
907 return !!cap_raised(old->cap_bset, arg2); cap_task_prctl()
932 if ((((old->securebits & SECURE_ALL_LOCKS) >> 1) cap_task_prctl()
933 & (old->securebits ^ arg2)) /*[1]*/ cap_task_prctl()
934 || ((old->securebits & SECURE_ALL_LOCKS & ~arg2)) /*[2]*/ cap_task_prctl()
957 return old->securebits; cap_task_prctl()
245 cap_capset(struct cred *new, const struct cred *old, const kernel_cap_t *effective, const kernel_cap_t *inheritable, const kernel_cap_t *permitted) cap_capset() argument
/linux-4.4.14/arch/arm/plat-samsung/
H A Dpm-gpio.c133 u32 gpcon, old, new, mask; samsung_gpio_pm_2bit_resume() local
146 old = (old_gpcon & mask) >> nr; samsung_gpio_pm_2bit_resume()
151 if (old == new) samsung_gpio_pm_2bit_resume()
156 if (is_sfn(old) && is_sfn(new)) samsung_gpio_pm_2bit_resume()
161 if (is_in(old) && is_out(new)) samsung_gpio_pm_2bit_resume()
166 if (is_sfn(old) && is_out(new)) samsung_gpio_pm_2bit_resume()
210 u32 old, new, mask; samsung_gpio_pm_4bit_mask() local
215 old = (old_gpcon & mask) >> nr; samsung_gpio_pm_4bit_mask()
220 if (old == new) samsung_gpio_pm_4bit_mask()
225 if (is_sfn(old) && is_sfn(new)) samsung_gpio_pm_4bit_mask()
230 if (is_in(old) && is_out(new)) samsung_gpio_pm_4bit_mask()
235 if (is_sfn(old) && is_out(new)) samsung_gpio_pm_4bit_mask()
/linux-4.4.14/drivers/md/persistent-data/
H A Ddm-space-map-common.c200 * operation, the old entry has already had its reference count sm_ll_init()
386 int (*mutator)(void *context, uint32_t old, uint32_t *new), sm_ll_mutate()
390 uint32_t bit, old, ref_count; sm_ll_mutate() local
411 old = sm_lookup_bitmap(bm_le, bit); sm_ll_mutate()
413 if (old > 2) { sm_ll_mutate()
414 r = sm_ll_lookup_big_ref_count(ll, b, &old); sm_ll_mutate()
421 r = mutator(context, old, &ref_count); sm_ll_mutate()
432 if (old > 2) { sm_ll_mutate()
455 if (ref_count && !old) { sm_ll_mutate()
462 } else if (old && !ref_count) { sm_ll_mutate()
472 static int set_ref_count(void *context, uint32_t old, uint32_t *new) set_ref_count() argument
484 static int inc_ref_count(void *context, uint32_t old, uint32_t *new) inc_ref_count() argument
486 *new = old + 1; inc_ref_count()
495 static int dec_ref_count(void *context, uint32_t old, uint32_t *new) dec_ref_count() argument
497 if (!old) { dec_ref_count()
502 *new = old - 1; dec_ref_count()
385 sm_ll_mutate(struct ll_disk *ll, dm_block_t b, int (*mutator)(void *context, uint32_t old, uint32_t *new), void *context, enum allocation_event *ev) sm_ll_mutate() argument
/linux-4.4.14/arch/unicore32/include/asm/
H A Dcache.h22 * cache before the transfer is done, causing old data to be seen by
/linux-4.4.14/arch/alpha/include/uapi/asm/
H A Dresource.h15 * we retain the old value for compatibility, especially with DU.
/linux-4.4.14/net/sched/
H A Dsch_multiq.c231 struct Qdisc *child, *old; multiq_tune() local
238 old = q->queues[i]; multiq_tune()
241 if (old != &noop_qdisc) { multiq_tune()
242 qdisc_tree_reduce_backlog(old, multiq_tune()
243 old->q.qlen, multiq_tune()
244 old->qstats.backlog); multiq_tune()
245 qdisc_destroy(old); multiq_tune()
300 struct Qdisc **old) multiq_graft()
308 *old = qdisc_replace(sch, new, &q->queues[band]); multiq_graft()
299 multiq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) multiq_graft() argument
H A Dsch_prio.c202 struct Qdisc *child, *old; prio_tune() local
209 old = q->queues[i]; prio_tune()
212 if (old != &noop_qdisc) { prio_tune()
213 qdisc_tree_reduce_backlog(old, prio_tune()
214 old->q.qlen, prio_tune()
215 old->qstats.backlog); prio_tune()
216 qdisc_destroy(old); prio_tune()
264 struct Qdisc **old) prio_graft()
272 *old = qdisc_replace(sch, new, &q->queues[band]); prio_graft()
263 prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) prio_graft() argument
/linux-4.4.14/security/apparmor/include/
H A Dpolicy_unpack.h23 struct aa_profile *old; member in struct:aa_load_ent
/linux-4.4.14/arch/powerpc/kvm/
H A Dtiming.c57 u64 old; add_exit_timing() local
64 old = vcpu->arch.timing_sum_duration[type]; add_exit_timing()
66 if (unlikely(old > vcpu->arch.timing_sum_duration[type])) { add_exit_timing()
68 " old %lld new %lld type %d exit # of type %d\n", add_exit_timing()
69 __func__, old, vcpu->arch.timing_sum_duration[type], add_exit_timing()
74 old = vcpu->arch.timing_sum_quad_duration[type]; add_exit_timing()
76 if (unlikely(old > vcpu->arch.timing_sum_quad_duration[type])) { add_exit_timing()
78 " old %lld new %lld type %d exit # of type %d\n", add_exit_timing()
79 __func__, old, add_exit_timing()
/linux-4.4.14/arch/mips/include/uapi/asm/
H A Dioctl.h18 * And this turns out useful to catch old ioctl numbers in header
/linux-4.4.14/arch/sh/kernel/cpu/sh2/
H A Dentry.S105 mov.l @r2+,r0 ! old R3
107 mov.l @r2+,r0 ! old R2
109 mov.l @(4,r2),r0 ! old R1
111 mov.l @r2,r0 ! old R0
114 mov.l @r2+,r3 ! old PC
115 mov.l @r2+,r0 ! old SR
121 mov.l r0,@-r2 ! save old SR
123 mov.l r3,@-r2 ! save old PC
126 mov.l r0,@-r2 ! save old SP
/linux-4.4.14/arch/parisc/math-emu/
H A DMakefile17 # other very old or stripped-down PA-RISC CPUs -- not currently supported
/linux-4.4.14/arch/frv/include/uapi/asm/
H A Dsigcontext.h23 unsigned long sc_oldmask; /* old sigmask */
/linux-4.4.14/arch/arm/mach-s3c24xx/
H A Dmach-osiris-dvs.c60 bool old_dvs = is_dvs(&freqs->old); osiris_dvs_notify()
67 printk(KERN_DEBUG "%s: old %ld,%ld new %ld,%ld\n", __func__, osiris_dvs_notify()
68 freqs->old.armclk, freqs->old.hclk, osiris_dvs_notify()
/linux-4.4.14/drivers/s390/scsi/
H A Dzfcp_scsi.c172 /* don't access old fsf_req after releasing the abort_lock */ zfcp_scsi_eh_abort_handler()
387 struct fsf_qtcb_bottom_port *old) zfcp_adjust_fc_host_stats()
390 data->seconds_since_last_reset - old->seconds_since_last_reset; zfcp_adjust_fc_host_stats()
391 fc_stats->tx_frames = data->tx_frames - old->tx_frames; zfcp_adjust_fc_host_stats()
392 fc_stats->tx_words = data->tx_words - old->tx_words; zfcp_adjust_fc_host_stats()
393 fc_stats->rx_frames = data->rx_frames - old->rx_frames; zfcp_adjust_fc_host_stats()
394 fc_stats->rx_words = data->rx_words - old->rx_words; zfcp_adjust_fc_host_stats()
395 fc_stats->lip_count = data->lip - old->lip; zfcp_adjust_fc_host_stats()
396 fc_stats->nos_count = data->nos - old->nos; zfcp_adjust_fc_host_stats()
397 fc_stats->error_frames = data->error_frames - old->error_frames; zfcp_adjust_fc_host_stats()
398 fc_stats->dumped_frames = data->dumped_frames - old->dumped_frames; zfcp_adjust_fc_host_stats()
399 fc_stats->link_failure_count = data->link_failure - old->link_failure; zfcp_adjust_fc_host_stats()
400 fc_stats->loss_of_sync_count = data->loss_of_sync - old->loss_of_sync; zfcp_adjust_fc_host_stats()
402 data->loss_of_signal - old->loss_of_signal; zfcp_adjust_fc_host_stats()
404 data->psp_error_counts - old->psp_error_counts; zfcp_adjust_fc_host_stats()
406 data->invalid_tx_words - old->invalid_tx_words; zfcp_adjust_fc_host_stats()
407 fc_stats->invalid_crc_count = data->invalid_crcs - old->invalid_crcs; zfcp_adjust_fc_host_stats()
409 data->input_requests - old->input_requests; zfcp_adjust_fc_host_stats()
411 data->output_requests - old->output_requests; zfcp_adjust_fc_host_stats()
413 data->control_requests - old->control_requests; zfcp_adjust_fc_host_stats()
414 fc_stats->fcp_input_megabytes = data->input_mb - old->input_mb; zfcp_adjust_fc_host_stats()
415 fc_stats->fcp_output_megabytes = data->output_mb - old->output_mb; zfcp_adjust_fc_host_stats()
385 zfcp_adjust_fc_host_stats(struct fc_host_statistics *fc_stats, struct fsf_qtcb_bottom_port *data, struct fsf_qtcb_bottom_port *old) zfcp_adjust_fc_host_stats() argument
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
H A Dinterval_tree.c424 struct interval_node *old = node; interval_erase() local
433 if (parent == old) interval_erase()
438 node->in_color = old->in_color; interval_erase()
439 node->in_right = old->in_right; interval_erase()
440 node->in_left = old->in_left; interval_erase()
441 node->in_parent = old->in_parent; interval_erase()
443 if (old->in_parent) { interval_erase()
444 if (node_is_left_child(old)) interval_erase()
445 old->in_parent->in_left = node; interval_erase()
447 old->in_parent->in_right = node; interval_erase()
452 old->in_left->in_parent = node; interval_erase()
453 if (old->in_right) interval_erase()
454 old->in_right->in_parent = node; interval_erase()
456 update_maxhigh(node, old->in_max_high); interval_erase()
457 if (parent == old) interval_erase()
/linux-4.4.14/sound/soc/intel/common/
H A Dsst-dsp.c166 unsigned int old, new; sst_dsp_shim_update_bits_unlocked() local
171 old = ret; sst_dsp_shim_update_bits_unlocked()
172 new = (old & (~mask)) | (value & mask); sst_dsp_shim_update_bits_unlocked()
174 change = (old != new); sst_dsp_shim_update_bits_unlocked()
186 u64 old, new; sst_dsp_shim_update_bits64_unlocked() local
188 old = sst_dsp_shim_read64_unlocked(sst, offset); sst_dsp_shim_update_bits64_unlocked()
190 new = (old & (~mask)) | (value & mask); sst_dsp_shim_update_bits64_unlocked()
192 change = (old != new); sst_dsp_shim_update_bits64_unlocked()
204 unsigned int old, new; sst_dsp_shim_update_bits_forced_unlocked() local
209 old = ret; sst_dsp_shim_update_bits_forced_unlocked()
210 new = (old & (~mask)) | (value & mask); sst_dsp_shim_update_bits_forced_unlocked()
/linux-4.4.14/tools/perf/arch/x86/util/
H A Dintel-bts.c367 u64 *head, u64 *old) intel_bts_find_snapshot()
374 pr_debug3("%s: mmap index %d old head %zu new head %zu\n", intel_bts_find_snapshot()
375 __func__, idx, (size_t)*old, (size_t)*head); intel_bts_find_snapshot()
391 * mode 'head' is an offset within the buffer. Here 'old' and 'head' intel_bts_find_snapshot()
392 * are adjusted to match the full trace case which expects that 'old' is intel_bts_find_snapshot()
396 *old = *head; intel_bts_find_snapshot()
400 *old &= mm->mask; intel_bts_find_snapshot()
402 *old %= mm->len; intel_bts_find_snapshot()
403 if (*old > *head) intel_bts_find_snapshot()
407 pr_debug3("%s: wrap-around %sdetected, adjusted old head %zu adjusted new head %zu\n", intel_bts_find_snapshot()
408 __func__, wrapped ? "" : "not ", (size_t)*old, (size_t)*head); intel_bts_find_snapshot()
365 intel_bts_find_snapshot(struct auxtrace_record *itr, int idx, struct auxtrace_mmap *mm, unsigned char *data, u64 *head, u64 *old) intel_bts_find_snapshot() argument
/linux-4.4.14/arch/x86/boot/
H A Dinstall.sh42 mv $4/vmlinuz $4/vmlinuz.old
46 mv $4/System.map $4/System.old
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
H A Dp5.c65 "Intel old style machine check architecture supported.\n"); intel_p5_mcheck_init()
70 "Intel old style machine check reporting enabled on CPU#%d.\n", intel_p5_mcheck_init()
/linux-4.4.14/arch/c6x/include/uapi/asm/
H A Dsigcontext.h16 unsigned long sc_mask; /* old sigmask */
17 unsigned long sc_sp; /* old user stack pointer */
/linux-4.4.14/fs/nilfs2/
H A Dbtnode.h34 * @oldkey: old key of block's moving content
36 * @bh: buffer head of old buffer
/linux-4.4.14/net/802/
H A Dp8023.c9 * 802.3 isn't really a protocol data link layer. Some old IPX stuff
13 * has done anything like the old IPX.
/linux-4.4.14/net/batman-adv/
H A Dbitarray.h44 /* if too old, just drop it */ batadv_set_bit()
52 * new, 0 if old
/linux-4.4.14/arch/parisc/include/uapi/asm/
H A Dstat.h11 unsigned short st_reserved1; /* old st_uid */
12 unsigned short st_reserved2; /* old st_gid */
/linux-4.4.14/arch/parisc/
H A Dinstall.sh57 mv $4/$base-$1 $4/$base-$1.old
63 mv $4/System.map-$1 $4/System.map-$1.old
/linux-4.4.14/arch/h8300/include/asm/
H A Datomic.h66 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument
73 if (likely(ret == old)) atomic_cmpxchg()
/linux-4.4.14/arch/arm/boot/
H A Dinstall.sh52 mv $4/$base-$1 $4/$base-$1.old
58 mv $4/System.map-$1 $4/System.map-$1.old
/linux-4.4.14/drivers/net/irda/
H A Dold_belkin-sir.c5 * Description: Driver for the Belkin (old) SmartBeam dongle
42 * I guess that I've got the old one, because inside I don't have
45 * As far as I can make it from info on their web site, the old dongle
50 * Belkin claim that the correct driver for the old dongle (in Windows)
141 MODULE_DESCRIPTION("Belkin (old) SmartBeam dongle driver");
/linux-4.4.14/drivers/parport/
H A Dparport_amiga.c5 * This is a complete rewrite of the code, but based heaviy upon the old
73 unsigned char old; amiga_frob_control() local
76 old = amiga_read_control(p); amiga_frob_control()
77 amiga_write_control(p, (old & ~mask) ^ val); amiga_frob_control()
78 return old; amiga_frob_control()
/linux-4.4.14/security/apparmor/
H A Dresource.c118 * @old: old profile on task (NOT NULL)
121 void __aa_transition_rlimits(struct aa_profile *old, struct aa_profile *new) __aa_transition_rlimits() argument
130 if (old->rlimits.mask) { __aa_transition_rlimits()
132 if (old->rlimits.mask & mask) { __aa_transition_rlimits()
/linux-4.4.14/fs/notify/inotify/
H A Dinotify_fsnotify.c42 struct inotify_event_info *old, *new; event_compare() local
46 old = INOTIFY_E(old_fsn); event_compare()
50 (old->name_len == new->name_len) && event_compare()
51 (!old->name_len || !strcmp(old->name, new->name))) event_compare()

Completed in 5229 milliseconds

1234567891011>>