/linux-4.1.27/tools/build/feature/ |
H A D | test-sync-compare-and-swap.c | 7 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.1.27/arch/ia64/include/asm/ |
H A D | acenv.h | 25 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 D | atomic.h | 34 __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); \ 78 __s64 old, new; \ 83 old = atomic64_read(v); \ 84 new = old c_op i; \ 85 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old); \ 118 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 121 #define atomic64_cmpxchg(v, old, new) \ 122 (cmpxchg(&((v)->counter), old, new)) 127 int c, old; __atomic_add_unless() local 132 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless() 133 if (likely(old == c)) __atomic_add_unless() 135 c = old; __atomic_add_unless() 143 long c, old; atomic64_add_unless() local 148 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless() 149 if (likely(old == c)) atomic64_add_unless() 151 c = old; atomic64_add_unless()
|
H A D | segment.h | 4 /* Only here because we have some old header files that expect it.. */
|
H A D | rwsem.h | 55 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 D | bitops.h | 41 __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.1.27/arch/avr32/include/asm/ |
H A D | cmpxchg.h | 46 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); 75 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument 80 return __cmpxchg_u32(ptr, old, new); __cmpxchg() 82 return __cmpxchg_u64(ptr, old, new); __cmpxchg() 86 return old; __cmpxchg() 89 #define cmpxchg(ptr, old, new) \ 90 ((typeof(*(ptr)))__cmpxchg((ptr), (unsigned long)(old), \ 97 unsigned long old, __cmpxchg_local() 102 return __cmpxchg_u32(ptr, old, new); __cmpxchg_local() 104 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local() 107 return old; __cmpxchg_local() 110 #define cmpxchg_local(ptr, old, new) \ 111 ((typeof(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(old), \ 96 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
|
H A D | bitops.h | 124 * 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()
|
H A D | atomic.h | 100 * Returns the old value of @v. 104 int tmp, old = atomic_read(v); __atomic_add_unless() local 136 return old; __atomic_add_unless() 147 * The function returns the old value of @v minus @i.
|
/linux-4.1.27/arch/s390/lib/ |
H A D | spinlock.c | 35 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.1.27/arch/metag/include/asm/ |
H A D | cmpxchg_lnkget.h | 6 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 D | bitops.h | 54 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 D | cmpxchg.h | 43 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 D | cmpxchg_irq.h | 28 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument 36 if (retval == old) __cmpxchg_u32()
|
H A D | cmpxchg_lock1.h | 32 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument 40 if (retval == old) { __cmpxchg_u32()
|
H A D | atomic_lnkget.h | 115 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument 132 : "da" (&v->counter), "bd" (old), "da" (new) atomic_cmpxchg() 142 int temp, old; atomic_xchg() local 151 : "=&d" (temp), "=&d" (old) atomic_xchg() 155 return old; atomic_xchg()
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | segment.h | 4 /* Only here because we have some old header files that expect it.. */
|
H A D | atomic.h | 119 #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 122 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 132 * Returns the old value of @v. 136 int c, new, old; __atomic_add_unless() local 139 "1: ldl_l %[old],%[mem]\n" __atomic_add_unless() 140 " cmpeq %[old],%[u],%[c]\n" __atomic_add_unless() 141 " addl %[old],%[a],%[new]\n" __atomic_add_unless() 149 : [old] "=&r"(old), [new] "=&r"(new), [c] "=&r"(c) __atomic_add_unless() 153 return old; __atomic_add_unless() 189 * atomic64_dec_if_positive - decrement by 1 if old value positive 192 * The function returns the old value of *v minus 1, even if 197 long old, tmp; atomic64_dec_if_positive() local 200 "1: ldq_l %[old],%[mem]\n" atomic64_dec_if_positive() 201 " subq %[old],1,%[tmp]\n" atomic64_dec_if_positive() 202 " ble %[old],2f\n" atomic64_dec_if_positive() 209 : [old] "=&r"(old), [tmp] "=&r"(tmp) atomic64_dec_if_positive() 213 return old - 1; atomic64_dec_if_positive()
|
H A D | xchg.h | 132 * 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 D | local.h | 69 long c, old; \ 74 old = local_cmpxchg((l), c, c + (a)); \ 75 if (likely(old == c)) \ 77 c = old; \
|
H A D | bitops.h | 193 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 D | rwsem.h | 53 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.1.27/include/linux/ |
H A D | kd.h | 6 #define KD_FONT_FLAG_OLD 0x80000000 /* Invoked via old interface [compat] */
|
H A D | atomic.h | 90 * atomic_dec_if_positive - decrement by 1 if old value positive 93 * The function returns the old value of *v minus 1, even if 99 int c, old, dec; atomic_dec_if_positive() local 105 old = atomic_cmpxchg((v), c, dec); atomic_dec_if_positive() 106 if (likely(old == c)) atomic_dec_if_positive() 108 c = old; atomic_dec_if_positive() 117 int old; atomic_or() local 121 old = atomic_read(v); atomic_or() 122 new = old | i; atomic_or() 123 } while (atomic_cmpxchg(v, old, new) != old); atomic_or()
|
H A D | dqblk_v1.h | 2 * File with in-memory structures of old quota format
|
H A D | rbtree_augmented.h | 40 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 D | flat.h | 18 * 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 D | swap_cgroup.h | 9 unsigned short old, unsigned short new);
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | ftrace.c | 25 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.1.27/tools/perf/util/ |
H A D | sigchain.c | 7 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()
|
H A D | comm.c | 100 struct comm_str *new, *old = comm->comm_str; comm__override() local 107 comm_str__put(old); comm__override()
|
/linux-4.1.27/arch/sparc/lib/ |
H A D | atomic32.c | 61 int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument 68 if (likely(ret == old)) atomic_cmpxchg() 103 unsigned long old, flags; ___set_bit() local 106 old = *addr; ___set_bit() 107 *addr = old | mask; ___set_bit() 110 return old & mask; ___set_bit() 116 unsigned long old, flags; ___clear_bit() local 119 old = *addr; ___clear_bit() 120 *addr = old & ~mask; ___clear_bit() 123 return old & mask; ___clear_bit() 129 unsigned long old, flags; ___change_bit() local 132 old = *addr; ___change_bit() 133 *addr = old ^ mask; ___change_bit() 136 return old & mask; ___change_bit() 140 unsigned long __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new) __cmpxchg_u32() argument 146 if ((prev = *ptr) == old) __cmpxchg_u32()
|
/linux-4.1.27/include/asm-generic/ |
H A D | segment.h | 4 * Only here because we have some old header files that expect it...
|
H A D | cmpxchg-local.h | 15 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 D | atomic.h | 45 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; \ 176 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) 180 int c, old; __atomic_add_unless() local 182 while (c != u && (old = atomic_cmpxchg(v, c, c + a)) != c) __atomic_add_unless() 183 c = old; __atomic_add_unless()
|
H A D | atomic-long.h | 134 #define atomic_long_cmpxchg(l, old, new) \ 135 (atomic64_cmpxchg((atomic64_t *)(l), (old), (new))) 251 #define atomic_long_cmpxchg(l, old, new) \ 252 (atomic_cmpxchg((atomic_t *)(l), (old), (new)))
|
H A D | cputime_jiffies.h | 6 #define cmpxchg_cputime(ptr, old, new) cmpxchg(ptr, old, new)
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | rwsem.h | 20 * 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 D | spinlock.h | 19 _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() 134 unsigned int old = ACCESS_ONCE(rw->lock); arch_read_trylock_once() local 135 return likely((int) old >= 0 && arch_read_trylock_once() 136 _raw_compare_and_swap(&rw->lock, old, old + 1)); arch_read_trylock_once() 141 unsigned int old = ACCESS_ONCE(rw->lock); arch_write_trylock_once() local 142 return likely(old == 0 && arch_write_trylock_once() 185 unsigned int old; arch_read_lock() local 187 old = __RAW_LOCK(&rw->lock, 1, __RAW_OP_ADD); arch_read_lock() 188 if ((int) old < 0) arch_read_lock() 199 unsigned int old; arch_write_lock() local 201 old = __RAW_LOCK(&rw->lock, 0x80000000, __RAW_OP_OR); arch_write_lock() 202 if (old != 0) arch_write_lock() 203 _raw_write_lock_wait(rw, old); arch_write_lock() 226 unsigned int old; arch_read_unlock() local 229 old = ACCESS_ONCE(rw->lock); arch_read_unlock() 230 } while (!_raw_compare_and_swap(&rw->lock, old, old - 1)); arch_read_unlock()
|
H A D | atomic.h | 133 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument 137 : "+d" (old), "+Q" (v->counter) atomic_cmpxchg() 140 return old; atomic_cmpxchg() 145 int c, old; __atomic_add_unless() local 150 old = atomic_cmpxchg(v, c, c + a); __atomic_add_unless() 151 if (likely(old == c)) __atomic_add_unless() 153 c = old; __atomic_add_unless() 263 long long old, long long new) atomic64_cmpxchg() 267 : "+d" (old), "+Q" (v->counter) atomic64_cmpxchg() 270 return old; atomic64_cmpxchg() 277 long long c, old; atomic64_add_unless() local 283 old = atomic64_cmpxchg(v, c, c + i); atomic64_add_unless() 284 if (likely(old == c)) atomic64_add_unless() 286 c = old; atomic64_add_unless() 293 long long c, old, dec; atomic64_dec_if_positive() local 300 old = atomic64_cmpxchg((v), c, dec); atomic64_dec_if_positive() 301 if (likely(old == c)) atomic64_dec_if_positive() 303 c = old; atomic64_dec_if_positive() 262 atomic64_cmpxchg(atomic64_t *v, long long old, long long new) atomic64_cmpxchg() argument
|
H A D | cmpxchg.h | 45 insn " %[old],%[new],%[ptr]\n" \ 48 : [cc] "=d" (cc), [old] "+d" (__old1), "+d" (__old2) \
|
/linux-4.1.27/lib/ |
H A D | lockref.c | 15 * Note that the "cmpxchg()" reloads the "old" value for the 19 struct lockref old; \ 20 BUILD_BUG_ON(sizeof(old) != 8); \ 21 old.lock_count = READ_ONCE(lockref->lock_count); \ 22 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \ 23 struct lockref new = old, prev = old; \ 25 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \ 26 old.lock_count, \ 28 if (likely(old.lock_count == prev.lock_count)) { \ 73 if (old.count <= 0) lockref_get_not_zero() 100 if (old.count <= 0) lockref_get_or_lock() 126 if (old.count <= 0) lockref_put_return() 144 if (old.count <= 1) lockref_put_or_lock() 181 if (old.count < 0) lockref_get_not_dead()
|
H A D | dump_stack.c | 30 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.1.27/arch/s390/kernel/ |
H A D | syscalls.S | 24 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 D | jump_label.c | 65 struct insn old, new; __jump_label_transform() local 68 jump_label_make_nop(entry, &old); __jump_label_transform() 71 jump_label_make_branch(entry, &old); __jump_label_transform() 78 if (memcmp((void *)entry->code, &old, sizeof(old))) __jump_label_transform() 79 jump_label_bug(entry, &old, &new); __jump_label_transform()
|
H A D | ftrace.c | 107 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.1.27/arch/arm/kernel/ |
H A D | ftrace.c | 102 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 D | crash_dump.c | 22 * 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.1.27/arch/sparc/include/asm/ |
H A D | atomic_64.h | 77 int c, old; __atomic_add_unless() local 82 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless() 83 if (likely(old == c)) __atomic_add_unless() 85 c = old; __atomic_add_unless() 96 long c, old; atomic64_add_unless() local 101 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless() 102 if (likely(old == c)) atomic64_add_unless() 104 c = old; atomic64_add_unless()
|
H A D | cmpxchg_64.h | 71 __cmpxchg_u32(volatile int *m, int old, int new) __cmpxchg_u32() argument 75 : "0" (new), "r" (m), "r" (old) __cmpxchg_u32() 82 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) __cmpxchg_u64() argument 86 : "0" (new), "r" (m), "r" (old) __cmpxchg_u64() 97 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument 101 return __cmpxchg_u32(ptr, old, new); __cmpxchg() 103 return __cmpxchg_u64(ptr, old, new); __cmpxchg() 106 return old; __cmpxchg() 123 unsigned long old, __cmpxchg_local() 128 case 8: return __cmpxchg(ptr, old, new, size); __cmpxchg_local() 130 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local() 133 return old; __cmpxchg_local() 122 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
|
H A D | cmpxchg_32.h | 42 unsigned long __cmpxchg_u32(volatile u32 *m, u32 old, u32 new_); 46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg() argument 50 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_); __cmpxchg() 55 return old; __cmpxchg()
|
/linux-4.1.27/arch/m68k/include/uapi/asm/ |
H A D | sigcontext.h | 5 unsigned long sc_mask; /* old sigmask */ 6 unsigned long sc_usp; /* old user stack pointer */
|
/linux-4.1.27/scripts/ |
H A D | bloat-o-meter | 31 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 D | diffconfig | 21 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:
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | atomic.h | 48 * 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 D | cmpxchg-grb.h | 14 " 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 D | cmpxchg.h | 51 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, __cmpxchg() argument 56 return __cmpxchg_u32(ptr, old, new); __cmpxchg() 59 return old; __cmpxchg()
|
H A D | cmpxchg-irq.h | 28 static inline unsigned long __cmpxchg_u32(volatile int *m, unsigned long old, __cmpxchg_u32() argument 36 if (retval == old) __cmpxchg_u32()
|
H A D | cmpxchg-llsc.h | 47 __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 D | bitops-op32.h | 83 * __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 D | atomic-grb.h | 14 " mov.l @%1, %0 \n\t" /* load old value */ \ 34 " mov.l @%1, %0 \n\t" /* load old value */ \ 65 " mov.l @%1, %0 \n\t" /* load old value */ atomic_clear_mask() 84 " mov.l @%1, %0 \n\t" /* load old value */ atomic_set_mask()
|
H A D | bitops-grb.h | 18 " 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()
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | cmpxchg.h | 95 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, __cmpxchg() argument 101 : "=d" (old), "=m" (*(char *)p) __cmpxchg() 102 : "d" (new), "0" (old), "m" (*(char *)p)); __cmpxchg() 106 : "=d" (old), "=m" (*(short *)p) __cmpxchg() 107 : "d" (new), "0" (old), "m" (*(short *)p)); __cmpxchg() 111 : "=d" (old), "=m" (*(int *)p) __cmpxchg() 112 : "d" (new), "0" (old), "m" (*(int *)p)); __cmpxchg() 115 old = __invalid_cmpxchg_size(p, old, new, size); __cmpxchg() 118 return old; __cmpxchg()
|
H A D | atomic.h | 125 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument 132 if (prev == old) atomic_cmpxchg() 185 int c, old; __atomic_add_unless() local 190 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless() 191 if (likely(old == c)) __atomic_add_unless() 193 c = old; __atomic_add_unless()
|
/linux-4.1.27/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 201 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.1.27/arch/powerpc/include/asm/ |
H A D | cmpxchg.h | 144 * Compare and exchange - if *p == old, set it to new, 145 * and return the old value of *p. 150 __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new) __cmpxchg_u32() argument 166 : "r" (p), "r" (old), "r" (new) __cmpxchg_u32() 173 __cmpxchg_u32_local(volatile unsigned int *p, unsigned long old, __cmpxchg_u32_local() argument 188 : "r" (p), "r" (old), "r" (new) __cmpxchg_u32_local() 196 __cmpxchg_u64(volatile unsigned long *p, unsigned long old, unsigned long new) __cmpxchg_u64() argument 211 : "r" (p), "r" (old), "r" (new) __cmpxchg_u64() 218 __cmpxchg_u64_local(volatile unsigned long *p, unsigned long old, __cmpxchg_u64_local() argument 232 : "r" (p), "r" (old), "r" (new) __cmpxchg_u64_local() 244 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, __cmpxchg() argument 249 return __cmpxchg_u32(ptr, old, new); __cmpxchg() 252 return __cmpxchg_u64(ptr, old, new); __cmpxchg() 256 return old; __cmpxchg() 260 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, __cmpxchg_local() argument 265 return __cmpxchg_u32_local(ptr, old, new); __cmpxchg_local() 268 return __cmpxchg_u64_local(ptr, old, new); __cmpxchg_local() 272 return old; __cmpxchg_local()
|
H A D | pgtable-ppc32.h | 171 unsigned long old, tmp; pte_update() local 187 : "=&r" (old), "=&r" (tmp), "=m" (*p), "=&r" (tmp2) pte_update() 198 : "=&r" (old), "=&r" (tmp), "=m" (*p) pte_update() 203 unsigned long old = pte_val(*p); pte_update() 204 *p = __pte((old & ~clr) | set); pte_update() 208 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) pte_update() 211 return old; pte_update() 219 unsigned long long old; pte_update() local 230 : "=&r" (old), "=&r" (tmp), "=m" (*p) pte_update() 234 unsigned long long old = pte_val(*p); pte_update() 235 *p = __pte((old & ~(unsigned long long)clr) | set); pte_update() 239 if ((old & _PAGE_USER) && (old & _PAGE_EXEC)) pte_update() 242 return old; pte_update() 253 unsigned long old; __ptep_test_and_clear_young() local 254 old = pte_update(ptep, _PAGE_ACCESSED, 0); __ptep_test_and_clear_young() 256 if (old & _PAGE_HASHPTE) { __ptep_test_and_clear_young() 261 return (old & _PAGE_ACCESSED) != 0; __ptep_test_and_clear_young()
|
H A D | pgtable-ppc64.h | 226 unsigned long old, tmp; pte_update() local 236 : "=&r" (old), "=&r" (tmp), "=m" (*ptep) pte_update() 240 unsigned long old = pte_val(*ptep); pte_update() 241 *ptep = __pte((old & ~clr) | set); pte_update() 243 /* huge pages use the old page table lock */ pte_update() 248 if (old & _PAGE_HASHPTE) pte_update() 249 hpte_need_flush(mm, addr, ptep, old, huge); pte_update() 252 return old; pte_update() 258 unsigned long old; __ptep_test_and_clear_young() local 262 old = pte_update(mm, addr, ptep, _PAGE_ACCESSED, 0, 0); __ptep_test_and_clear_young() 263 return (old & _PAGE_ACCESSED) != 0; __ptep_test_and_clear_young() 313 unsigned long old = pte_update(mm, addr, ptep, ~0UL, 0, 0); ptep_get_and_clear() local 314 return __pte(old); ptep_get_and_clear() 333 unsigned long old, tmp; __ptep_set_access_flags() local 342 :"=&r" (old), "=&r" (tmp), "=m" (*ptep) __ptep_set_access_flags() 346 unsigned long old = pte_val(*ptep); __ptep_set_access_flags() local 347 *ptep = __pte(old | bits); __ptep_set_access_flags() 553 unsigned long old; __pmdp_test_and_clear_young() local 557 old = pmd_hugepage_update(mm, addr, pmdp, _PAGE_ACCESSED, 0); __pmdp_test_and_clear_young() 558 return ((old & _PAGE_ACCESSED) != 0); __pmdp_test_and_clear_young()
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | cmpxchg.h | 23 __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
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | cmpxchg.h | 113 __cmpxchg_u32(volatile unsigned int *p, unsigned int old, unsigned int new) __cmpxchg_u32() argument 131 : "r" (p), "r" (old), "r" (new) __cmpxchg_u32() 143 __cmpxchg_local_u32(volatile unsigned int *p, unsigned int old, __cmpxchg_local_u32() argument 162 : "r" (p), "r" (old), "r" (new) __cmpxchg_local_u32() 178 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument 182 return __cmpxchg_u32(ptr, old, new); __cmpxchg() 185 return __cmpxchg_u64(ptr, old, new); __cmpxchg() 189 return old; __cmpxchg() 199 unsigned long old, __cmpxchg_local() 204 return __cmpxchg_local_u32(ptr, old, new); __cmpxchg_local() 206 return __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local() 209 return old; __cmpxchg_local() 198 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument
|
H A D | switch_to.h | 32 " st lr, @%4 ; store old LR \n" \ 35 " st sp, @%2 ; store old SP \n" \
|
H A D | atomic.h | 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()
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | ftrace.c | 110 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.1.27/arch/parisc/include/asm/ |
H A D | atomic.h | 84 * 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() 234 * Returns the old value of @v. 238 long c, old; atomic64_add_unless() local 243 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless() 244 if (likely(old == c)) atomic64_add_unless() 246 c = old; atomic64_add_unless() 254 * atomic64_dec_if_positive - decrement by 1 if old value positive 257 * The function returns the old value of *v minus 1, even if 262 long c, old, dec; atomic64_dec_if_positive() local 268 old = atomic64_cmpxchg((v), c, dec); atomic64_dec_if_positive() 269 if (likely(old == c)) atomic64_dec_if_positive() 271 c = old; atomic64_dec_if_positive()
|
H A D | cmpxchg.h | 55 extern unsigned long __cmpxchg_u32(volatile unsigned int *m, unsigned int old, 58 unsigned long old, unsigned long new_); 62 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg() argument 66 case 8: return __cmpxchg_u64((unsigned long *)ptr, old, new_); __cmpxchg() 69 (unsigned int)old, (unsigned int)new_); __cmpxchg() 72 return old; __cmpxchg() 86 unsigned long old, __cmpxchg_local() 91 case 8: return __cmpxchg_u64((unsigned long *)ptr, old, new_); __cmpxchg_local() 93 case 4: return __cmpxchg_u32(ptr, old, new_); __cmpxchg_local() 95 return __cmpxchg_local_generic(ptr, old, new_, size); __cmpxchg_local() 85 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new_, int size) __cmpxchg_local() argument
|
H A D | bitops.h | 65 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.1.27/init/ |
H A D | do_mounts_initrd.c | 59 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.1.27/fs/ |
H A D | fs_struct.c | 10 * 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.1.27/include/asm-generic/bitops/ |
H A D | non-atomic.h | 49 * __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 D | atomic.h | 119 * 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.1.27/drivers/gpu/drm/ |
H A D | drm_lock.c | 189 unsigned int old, new, prev; drm_lock_take() local 194 old = *lock; drm_lock_take() 195 if (old & _DRM_LOCK_HELD) drm_lock_take() 196 new = old | _DRM_LOCK_CONT; drm_lock_take() 202 prev = cmpxchg(lock, old, new); drm_lock_take() 203 } while (prev != old); drm_lock_take() 206 if (_DRM_LOCKING_CONTEXT(old) == context) { drm_lock_take() 207 if (old & _DRM_LOCK_HELD) { drm_lock_take() 238 unsigned int old, new, prev; drm_lock_transfer() local 243 old = *lock; drm_lock_transfer() 245 prev = cmpxchg(lock, old, new); drm_lock_transfer() 246 } while (prev != old); drm_lock_transfer() 263 unsigned int old, new, prev; drm_legacy_lock_free() local 276 old = *lock; drm_legacy_lock_free() 277 new = _DRM_LOCKING_CONTEXT(old); drm_legacy_lock_free() 278 prev = cmpxchg(lock, old, new); drm_legacy_lock_free() 279 } while (prev != old); drm_legacy_lock_free() 281 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { drm_legacy_lock_free() 283 context, _DRM_LOCKING_CONTEXT(old)); drm_legacy_lock_free() 305 unsigned int old, new, prev; drm_notifier() local 315 old = lock->lock; drm_notifier() 316 new = old | _DRM_LOCK_CONT; drm_notifier() 317 prev = cmpxchg(&lock->lock, old, new); drm_notifier() 318 } while (prev != old); drm_notifier() 356 unsigned int old, prev; drm_legacy_idlelock_release() local 363 old = *lock; drm_legacy_idlelock_release() 364 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); drm_legacy_idlelock_release() 365 } while (prev != old); drm_legacy_idlelock_release()
|
/linux-4.1.27/drivers/dma-buf/ |
H A D | reservation.c | 52 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() 452 * 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.1.27/kernel/ |
H A D | cred.c | 241 const struct cred *old; prepare_creds() local 252 old = task->cred; prepare_creds() 253 memcpy(new, old, sizeof(struct cred)); prepare_creds() 272 if (security_prepare_creds(new, old, GFP_KERNEL) < 0) prepare_creds() 408 * the old set. Both the objective and the subjective credentials pointers are 420 const struct cred *old = task->real_cred; commit_creds() local 426 BUG_ON(task->cred != old); commit_creds() 428 BUG_ON(read_cred_subscribers(old) < 2); commit_creds() 429 validate_creds(old); commit_creds() 437 if (!uid_eq(old->euid, new->euid) || commit_creds() 438 !gid_eq(old->egid, new->egid) || commit_creds() 439 !uid_eq(old->fsuid, new->fsuid) || commit_creds() 440 !gid_eq(old->fsgid, new->fsgid) || commit_creds() 441 !cred_cap_issubset(old, new)) { commit_creds() 449 if (!uid_eq(new->fsuid, old->fsuid)) commit_creds() 451 if (!gid_eq(new->fsgid, old->fsgid)) commit_creds() 459 if (new->user != old->user) commit_creds() 463 if (new->user != old->user) commit_creds() 464 atomic_dec(&old->user->processes); commit_creds() 465 alter_cred_subscribers(old, -2); commit_creds() 468 if (!uid_eq(new->uid, old->uid) || commit_creds() 469 !uid_eq(new->euid, old->euid) || commit_creds() 470 !uid_eq(new->suid, old->suid) || commit_creds() 471 !uid_eq(new->fsuid, old->fsuid)) commit_creds() 474 if (!gid_eq(new->gid, old->gid) || commit_creds() 475 !gid_eq(new->egid, old->egid) || commit_creds() 476 !gid_eq(new->sgid, old->sgid) || commit_creds() 477 !gid_eq(new->fsgid, old->fsgid)) commit_creds() 480 /* release the old obj and subj refs both */ commit_creds() 481 put_cred(old); commit_creds() 482 put_cred(old); commit_creds() 513 * process, returning the old set for later reversion. 517 const struct cred *old = current->cred; override_creds() local 523 validate_creds(old); override_creds() 528 alter_cred_subscribers(old, -1); override_creds() 530 kdebug("override_creds() = %p{%d,%d}", old, override_creds() 531 atomic_read(&old->usage), override_creds() 532 read_cred_subscribers(old)); override_creds() 533 return old; override_creds() 539 * @old: The credentials to be restored 541 * Revert a temporary set of override subjective credentials to an old set, 544 void revert_creds(const struct cred *old) revert_creds() argument 548 kdebug("revert_creds(%p{%d,%d})", old, revert_creds() 549 atomic_read(&old->usage), revert_creds() 550 read_cred_subscribers(old)); revert_creds() 552 validate_creds(old); revert_creds() 554 alter_cred_subscribers(old, 1); revert_creds() 555 rcu_assign_pointer(current->cred, old); revert_creds() 591 const struct cred *old; prepare_kernel_cred() local 601 old = get_task_cred(daemon); prepare_kernel_cred() 603 old = get_cred(&init_cred); prepare_kernel_cred() 605 validate_creds(old); prepare_kernel_cred() 607 *new = *old; prepare_kernel_cred() 625 if (security_prepare_creds(new, old, GFP_KERNEL) < 0) prepare_kernel_cred() 628 put_cred(old); prepare_kernel_cred() 634 put_cred(old); prepare_kernel_cred()
|
H A D | tracepoint.c | 74 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 104 old = *funcs; func_add() 105 if (old) { func_add() 107 for (nr_probes = 0; old[nr_probes].func; nr_probes++) func_add() 108 if (old[nr_probes].func == tp_func->func && func_add() 109 old[nr_probes].data == tp_func->data) func_add() 116 if (old) func_add() 117 memcpy(new, old, nr_probes * sizeof(struct tracepoint_func)); func_add() 122 return old; func_add() 129 struct tracepoint_func *old, *new; func_remove() local 131 old = *funcs; func_remove() 133 if (!old) func_remove() 139 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { func_remove() 140 if (old[nr_probes].func == tp_func->func && func_remove() 141 old[nr_probes].data == tp_func->data) func_remove() 154 return old; func_remove() 162 for (i = 0; old[i].func; i++) func_remove() 163 if (old[i].func != tp_func->func func_remove() 164 || old[i].data != tp_func->data) func_remove() 165 new[j++] = old[i]; func_remove() 170 return old; func_remove() 179 struct tracepoint_func *old, *tp_funcs; tracepoint_add_func() local 186 old = func_add(&tp_funcs, func); tracepoint_add_func() 187 if (IS_ERR(old)) { tracepoint_add_func() 189 return PTR_ERR(old); tracepoint_add_func() 202 release_probes(old); tracepoint_add_func() 215 struct tracepoint_func *old, *tp_funcs; tracepoint_remove_func() local 219 old = func_remove(&tp_funcs, func); tracepoint_remove_func() 220 if (IS_ERR(old)) { tracepoint_remove_func() 222 return PTR_ERR(old); tracepoint_remove_func() 234 release_probes(old); tracepoint_remove_func()
|
H A D | exec_domain.c | 52 unsigned int old = current->personality; SYSCALL_DEFINE1() local 57 return old; SYSCALL_DEFINE1()
|
H A D | sys.c | 332 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 1680 * Forbid mm->exe_file change if old file still mapped. prctl_set_mm_exe_file()
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | ftrace.c | 23 * 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.1.27/arch/x86/include/asm/ |
H A D | atomic64_64.h | 164 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 D | cmpxchg.h | 40 * returns the old value. 85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ 88 __typeof__(*(ptr)) __old = (old); \ 133 #define __cmpxchg(ptr, old, new, size) \ 134 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX) 136 #define __sync_cmpxchg(ptr, old, new, size) \ 137 __raw_cmpxchg((ptr), (old), (new), (size), "lock; ") 139 #define __cmpxchg_local(ptr, old, new, size) \ 140 __raw_cmpxchg((ptr), (old), (new), (size), "") 148 #define cmpxchg(ptr, old, new) \ 149 __cmpxchg(ptr, old, new, sizeof(*(ptr))) 151 #define sync_cmpxchg(ptr, old, new) \ 152 __sync_cmpxchg(ptr, old, new, sizeof(*(ptr))) 154 #define cmpxchg_local(ptr, old, new) \ 155 __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
|
H A D | cmpxchg_32.h | 46 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 D | spinlock.h | 72 arch_spinlock_t old, new; __ticket_check_and_clear_slowpath() local 74 old.tickets.head = head; __ticket_check_and_clear_slowpath() 76 old.tickets.tail = new.tickets.head + TICKET_LOCK_INC; __ticket_check_and_clear_slowpath() 77 new.tickets.tail = old.tickets.tail; __ticket_check_and_clear_slowpath() 80 cmpxchg(&lock->head_tail, old.head_tail, new.head_tail); __ticket_check_and_clear_slowpath() 129 arch_spinlock_t old, new; arch_spin_trylock() local 131 old.tickets = READ_ONCE(lock->tickets); arch_spin_trylock() 132 if (!__tickets_equal(old.tickets.head, old.tickets.tail)) arch_spin_trylock() 135 new.head_tail = old.head_tail + (TICKET_LOCK_INC << TICKET_SHIFT); arch_spin_trylock() 139 return cmpxchg(&lock->head_tail, old.head_tail, new.head_tail) == old.head_tail; arch_spin_trylock()
|
H A D | atomic.h | 175 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument 177 return cmpxchg(&v->counter, old, new); atomic_cmpxchg() 192 * Returns the old value of @v. 196 int c, old; __atomic_add_unless() local 201 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless() 202 if (likely(old == c)) __atomic_add_unless() 204 c = old; __atomic_add_unless()
|
H A D | rwsem.h | 14 * 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 D | local.h | 138 long c, old; \ 143 old = local_cmpxchg((l), c, c + (a)); \ 144 if (likely(old == c)) \ 146 c = old; \
|
H A D | processor-cyrix.h | 6 * When using the old macros a line like
|
/linux-4.1.27/arch/metag/kernel/ |
H A D | ftrace.c | 86 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.1.27/arch/sh/kernel/cpu/sh3/ |
H A D | swsusp.S | 116 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.1.27/include/uapi/linux/ |
H A D | elf-em.h | 49 /* Bogus old v850 magic number, used by old tools. */ 51 /* Bogus old m32r magic number, used by old tools. */ 53 /* This is the old interim value for S/390 architecture */
|
/linux-4.1.27/tools/perf/util/include/linux/ |
H A D | bitmap.h | 50 * 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.1.27/arch/s390/mm/ |
H A D | hugetlbpage.c | 19 * 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() 56 * prot-none, clean, old 00..1...1...00 -> 111.000000.1 __pmd_to_pte() 58 * prot-none, dirty, old 10..1...1...00 -> 111.000010.1 __pmd_to_pte() 60 * read-only, clean, old 00..1...1...01 -> 111.000100.1 __pmd_to_pte() 62 * read-only, dirty, old 10..1...1...01 -> 111.000110.1 __pmd_to_pte() 64 * read-write, clean, old 00..1...1...11 -> 111.001100.1 __pmd_to_pte() 66 * read-write, dirty, old 10..0...1...11 -> 110.001110.1 __pmd_to_pte()
|
/linux-4.1.27/arch/score/include/asm/ |
H A D | cmpxchg.h | 27 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.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-prim.c | 132 sigset_t old; cfs_block_allsigs() local 135 old = current->blocked; cfs_block_allsigs() 140 return old; cfs_block_allsigs() 147 sigset_t old; cfs_block_sigs() local 150 old = current->blocked; cfs_block_sigs() 154 return old; cfs_block_sigs() 162 sigset_t old; cfs_block_sigsinv() local 165 old = current->blocked; cfs_block_sigsinv() 170 return old; cfs_block_sigsinv() 175 cfs_restore_sigs(sigset_t old) cfs_restore_sigs() argument 180 current->blocked = old; cfs_restore_sigs()
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_extend.c | 75 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 D | nf_conntrack_labels.c | 54 u32 old, tmp; replace_u32() local 57 old = *address; replace_u32() 58 tmp = (old & mask) ^ new; replace_u32() 59 } while (cmpxchg(address, old, tmp) != old); replace_u32()
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 271 * 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
|
H A D | usbkbd.c | 72 * @old: data received in the past from the @irq URB representing which 96 unsigned char old[8]; member in struct:usb_kbd 135 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) { usb_kbd_irq() 136 if (usb_kbd_keycode[kbd->old[i]]) usb_kbd_irq() 137 input_report_key(kbd->dev, usb_kbd_keycode[kbd->old[i]], 0); usb_kbd_irq() 141 kbd->old[i]); usb_kbd_irq() 144 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { usb_kbd_irq() 156 memcpy(kbd->old, kbd->new, 8); usb_kbd_irq()
|
/linux-4.1.27/sound/pci/ice1712/ |
H A D | wtm.c | 81 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()
|
H A D | prodigy192.c | 95 unsigned char new, old; stac9460_dac_mute() local 97 old = stac9460_get(ice, idx); stac9460_dac_mute() 98 new = (~mute << 7 & 0x80) | (old & ~0x80); stac9460_dac_mute() 99 change = (new != old); stac9460_dac_mute() 220 unsigned char new, old; stac9460_adc_mute_put() local 226 old = stac9460_get(ice, reg); stac9460_adc_mute_put() 227 new = (~ucontrol->value.integer.value[i]<<7&0x80) | (old&~0x80); stac9460_adc_mute_put() 228 change = (new != old); stac9460_adc_mute_put() 306 unsigned char new, old; stac9460_mic_sw_put() local 308 old = stac9460_get(ice, STAC946X_GENERAL_PURPOSE); stac9460_mic_sw_put() 309 new = (ucontrol->value.enumerated.item[0] << 7 & 0x80) | (old & ~0x80); stac9460_mic_sw_put() 310 change = (new != old); stac9460_mic_sw_put() 320 unsigned char old, new; stac9460_set_rate_val() local 333 old = stac9460_get(ice, STAC946X_MASTER_CLOCKING); stac9460_set_rate_val() 334 if (old == new) stac9460_set_rate_val() 580 unsigned char new, old, itemvalue; ak4114_input_sw_put() local 583 old = prodigy192_ak4114_read(ice, AK4114_REG_IO1); ak4114_input_sw_put() 587 new = (itemvalue & AK4114_IPS0) | (old & ~AK4114_IPS0); ak4114_input_sw_put() 588 change = (new != old); ak4114_input_sw_put()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
H A D | atomic.h | 10 * The function returns the old value of *v minus 1.
|
/linux-4.1.27/arch/mn10300/unit-asb2364/ |
H A D | Makefile | 5 # removes any old dependencies. DON'T put your own dependencies here
|
/linux-4.1.27/arch/parisc/lib/ |
H A D | bitops.c | 59 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.1.27/sound/oss/ |
H A D | sleep.h | 4 * Do not use. This is a replacement for the old
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | cmpxchg.h | 18 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.1.27/arch/tile/include/asm/ |
H A D | atomic.h | 121 * 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.1.27/arch/mips/include/asm/ |
H A D | cmpxchg.h | 143 #define __cmpxchg_asm(ld, st, m, old, new) \ 162 : GCC_OFF_SMALL_ASM() (*m), "Jr" (old), "Jr" (new) \ 179 : GCC_OFF_SMALL_ASM() (*m), "Jr" (old), "Jr" (new) \ 186 if (__ret == old) \ 200 #define __cmpxchg(ptr, old, new, pre_barrier, post_barrier) \ 203 __typeof__(*(ptr)) __old = (old); \ 229 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb()) 230 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, , )
|
H A D | atomic.h | 150 * The function returns the old value of @v minus @i. 221 * Returns the old value of @v. 225 int c, old; __atomic_add_unless() local 230 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless() 231 if (likely(old == c)) __atomic_add_unless() 233 c = old; __atomic_add_unless() 273 * atomic_dec_if_positive - decrement by 1 if old value positive 431 * The function returns the old value of @v minus @i. 503 * Returns the old value of @v. 507 long c, old; atomic64_add_unless() local 512 old = atomic64_cmpxchg((v), c, c + (a)); atomic64_add_unless() 513 if (likely(old == c)) atomic64_add_unless() 515 c = old; atomic64_add_unless() 557 * atomic64_dec_if_positive - decrement by 1 if old value positive
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | atomic.h | 92 static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new) atomic_cmpxchg() argument 107 : "Ir" (old), "r" (new) atomic_cmpxchg() 118 int c, old; __atomic_add_unless() local 121 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c) __atomic_add_unless() 122 c = old; __atomic_add_unless() 190 static inline long atomic64_cmpxchg(atomic64_t *ptr, long old, long new) atomic64_cmpxchg() argument 205 : "Ir" (old), "r" (new) atomic64_cmpxchg() 236 long c, old; atomic64_add_unless() local 239 while (c != u && (old = atomic64_cmpxchg((v), c, c + a)) != c) atomic64_add_unless() 240 c = old; atomic64_add_unless()
|
H A D | cmpxchg.h | 83 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument 99 : "Ir" (old), "r" (new) __cmpxchg() 114 : "Ir" (old), "r" (new) __cmpxchg() 129 : "Ir" (old), "r" (new) __cmpxchg() 144 : "Ir" (old), "r" (new) __cmpxchg() 201 static inline unsigned long __cmpxchg_mb(volatile void *ptr, unsigned long old, __cmpxchg_mb() argument 207 ret = __cmpxchg(ptr, old, new, size); __cmpxchg_mb()
|
/linux-4.1.27/mm/ |
H A D | swap_cgroup.c | 81 * @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.1.27/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_prim.h | 73 int old = memory_pressure_get(); cfs_memory_pressure_get_and_set() local 75 if (!old) cfs_memory_pressure_get_and_set() 77 return old; cfs_memory_pressure_get_and_set() 80 static inline void cfs_memory_pressure_restore(int old) cfs_memory_pressure_restore() argument 82 if (old) cfs_memory_pressure_restore()
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | ftrace.c | 114 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 D | syscalls_64.S | 23 .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.1.27/arch/mips/kernel/ |
H A D | syscall.c | 101 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.1.27/arch/hexagon/include/asm/ |
H A D | atomic.h | 64 * @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() 145 * Returns old value.
|
/linux-4.1.27/arch/m68k/kernel/ |
H A D | syscalltable.S | 23 .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.1.27/arch/arc/include/asm/ |
H A D | bitops.h | 70 * set it and return 0 (old value) 72 * return 1 (old value). 75 * and the old value of bit is returned 80 unsigned long old, temp; \ 97 : "=&r"(old), "=&r"(temp) \ 103 return (old & (1 << nr)) != 0; \ 144 unsigned long old, flags; \ 149 old = *m; \ 150 *m = old c_op (1UL << (nr & 0x1f)); \ 154 return (old & (1UL << (nr & 0x1f))) != 0; \ 176 unsigned long old; \ 179 old = *m; \ 180 *m = old c_op (1UL << (nr & 0x1f)); \ 182 return (old & (1UL << (nr & 0x1f))) != 0; \
|
H A D | atomic.h | 151 * Returns the old value of @v 155 int c, old; \ 164 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c)\ 165 c = old; \
|
/linux-4.1.27/net/core/ |
H A D | netprio_cgroup.c | 39 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() 259 struct netprio_map *old; netprio_device_event() local 268 old = rtnl_dereference(dev->priomap); netprio_device_event() 270 if (old) netprio_device_event() 271 kfree_rcu(old, rcu); netprio_device_event()
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
H A D | cmpxchg.h | 72 #define ia64_cmpxchg(sem, ptr, old, new, size) \ 78 _o_ = (__u8) (long) (old); \ 81 _o_ = (__u16) (long) (old); \ 84 _o_ = (__u32) (long) (old); \ 87 _o_ = (__u64) (long) (old); \ 113 (__typeof__(old)) _r_; \
|
H A D | gcc_intrin.h | 307 #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 D | param.h | 23 * Technically, this is wrong, but some old apps still refer to it. The proper way to
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | cmpxchg.h | 138 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, __cmpxchg() argument 155 : "r" (ptr), "Ir" (old), "r" (new) __cmpxchg() 167 : "r" (ptr), "Ir" (old), "r" (new) __cmpxchg() 180 : "r" (ptr), "Ir" (old), "r" (new) __cmpxchg() 192 static inline unsigned long __cmpxchg_mb(volatile void *ptr, unsigned long old, __cmpxchg_mb() argument 198 ret = __cmpxchg(ptr, old, new, size); __cmpxchg_mb() 211 unsigned long old, __cmpxchg_local() 220 ret = __cmpxchg_local_generic(ptr, old, new, size); __cmpxchg_local() 224 ret = __cmpxchg(ptr, old, new, size); __cmpxchg_local() 231 unsigned long long old, __cmpxchg64() 249 : "r" (ptr), "r" (old), "r" (new) __cmpxchg64() 256 unsigned long long old, __cmpxchg64_mb() 262 ret = __cmpxchg64(ptr, old, new); __cmpxchg64_mb() 210 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument 230 __cmpxchg64(unsigned long long *ptr, unsigned long long old, unsigned long long new) __cmpxchg64() argument 255 __cmpxchg64_mb(unsigned long long *ptr, unsigned long long old, unsigned long long new) __cmpxchg64_mb() argument
|
H A D | atomic.h | 83 static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new) atomic_cmpxchg() argument 98 : "r" (&ptr->counter), "Ir" (old), "r" (new) atomic_cmpxchg() 164 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) atomic_cmpxchg() argument 171 if (likely(ret == old)) atomic_cmpxchg() 180 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() 328 static inline long long atomic64_cmpxchg(atomic64_t *ptr, long long old, atomic64_cmpxchg() argument 345 : "r" (&ptr->counter), "r" (old), "r" (new) atomic64_cmpxchg()
|
H A D | cache.h | 14 * cache before the transfer is done, causing old data to be seen by
|
/linux-4.1.27/arch/x86/lib/ |
H A D | cmpxchg8b_emu.S | 17 * %eax : low 32 bits of old value 18 * %edx : high 32 bits of old value
|
H A D | cmpxchg16b_emu.S | 17 * %rax : low 64 bits of old value 18 * %rdx : high 64 bits of old value
|
/linux-4.1.27/arch/sparc/boot/ |
H A D | install.sh | 42 mv $4/vmlinuz $4/vmlinuz.old 46 mv $4/System.map $4/System.old
|
/linux-4.1.27/arch/tile/include/gxio/ |
H A D | dma_queue.h | 89 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.1.27/arch/s390/net/ |
H A D | bpf_jit.h | 28 * | old backchain | | 49 * 11 * 8 byte (old backchain + r15 - r6) for storing registers.
|
/linux-4.1.27/arch/nios2/boot/ |
H A D | install.sh | 42 mv $4/vmlinuz $4/vmlinuz.old 46 mv $4/System.map $4/System.old
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | ftrace.c | 96 /* 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.1.27/arch/frv/include/asm/ |
H A D | atomic.h | 179 #define atomic_cmpxchg(v, old, new) (cmpxchg(&(v)->counter, old, new)) 181 #define atomic64_cmpxchg(v, old, new) (__cmpxchg_64(old, new, &(v)->counter)) 186 int c, old; __atomic_add_unless() local 191 old = atomic_cmpxchg((v), c, c + (a)); __atomic_add_unless() 192 if (likely(old == c)) __atomic_add_unless() 194 c = old; __atomic_add_unless()
|
H A D | cmpxchg.h | 150 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 D | mmu_context.h | 26 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.1.27/arch/m68k/amiga/ |
H A D | cia.c | 48 * 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.1.27/arch/m68k/ |
H A D | install.sh | 42 mv $4/vmlinuz $4/vmlinuz.old 46 mv $4/System.map $4/System.old
|
/linux-4.1.27/kernel/locking/ |
H A D | osq_lock.c | 42 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(&lock->tail, curr, old) == curr) { osq_wait_next() 89 int old; osq_lock() local 95 old = atomic_xchg(&lock->tail, curr); osq_lock() 96 if (old == OSQ_UNLOCKED_VAL) osq_lock() 99 prev = decode_cpu(old); osq_lock()
|
/linux-4.1.27/security/keys/ |
H A D | process_keys.c | 146 * 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_bset = old->cap_bset; key_change_session_keyring() 854 new->jit_keyring = old->jit_keyring; key_change_session_keyring() 855 new->thread_keyring = key_get(old->thread_keyring); key_change_session_keyring() 856 new->process_keyring = key_get(old->process_keyring); key_change_session_keyring() 858 security_transfer_creds(new, old); key_change_session_keyring()
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
H A D | resource.h | 23 * old value for compatibility:
|
/linux-4.1.27/drivers/gpu/host1x/hw/ |
H A D | syncpt_hw.c | 60 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.1.27/include/net/ |
H A D | netevent.h | 18 struct dst_entry *old; member in struct:netevent_redirect
|
H A D | atmclip.h | 30 /* keep old push fn for chaining */ 32 /* keep old pop fn for chaining */
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | cmpxchg.h | 40 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
|
H A D | atomic.h | 120 int c, old; \ 122 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \ 123 c = old; \ 128 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
/linux-4.1.27/arch/parisc/include/uapi/asm/ |
H A D | stat.h | 11 unsigned short st_reserved1; /* old st_uid */ 12 unsigned short st_reserved2; /* old st_gid */ 44 unsigned short st_reserved1; /* old st_uid */ 45 unsigned short st_reserved2; /* old st_gid */
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 114 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 D | ftrace.c | 45 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.1.27/arch/arm/mach-sa1100/include/mach/ |
H A D | cerf.h | 8 * Apr-2003 : Removed some old PDA crud [FB]
|
/linux-4.1.27/drivers/staging/i2o/ |
H A D | config-osm.c | 45 * Registers Configuration OSM in the I2O core and if old ioctl's are 60 osm_err("old config handler initialization failed\n"); i2o_config_init() 72 * If old ioctl's are compiled in exit remove them and unregisters
|
/linux-4.1.27/arch/x86/um/ |
H A D | bugs_32.c | 24 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.1.27/fs/pstore/ |
H A D | ram_core.c | 50 /* 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.1.27/drivers/gpu/drm/i915/ |
H A D | intel_fifo_underrun.c | 123 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.1.27/arch/x86/um/os-Linux/ |
H A D | task_size.c | 69 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.1.27/net/sched/ |
H A D | sch_multiq.c | 230 struct Qdisc *child, *old; multiq_tune() local 237 old = q->queues[i]; multiq_tune() 240 if (old != &noop_qdisc) { multiq_tune() 241 qdisc_tree_decrease_qlen(old, multiq_tune() 242 old->q.qlen); multiq_tune() 243 qdisc_destroy(old); multiq_tune() 298 struct Qdisc **old) multiq_graft() 307 *old = q->queues[band]; multiq_graft() 309 qdisc_tree_decrease_qlen(*old, (*old)->q.qlen); multiq_graft() 310 qdisc_reset(*old); multiq_graft() 297 multiq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) multiq_graft() argument
|
H A D | sch_prio.c | 202 struct Qdisc *child, *old; prio_tune() local 209 old = q->queues[i]; prio_tune() 212 if (old != &noop_qdisc) { prio_tune() 213 qdisc_tree_decrease_qlen(old, prio_tune() 214 old->q.qlen); prio_tune() 215 qdisc_destroy(old); prio_tune() 263 struct Qdisc **old) prio_graft() 272 *old = q->queues[band]; prio_graft() 274 qdisc_tree_decrease_qlen(*old, (*old)->q.qlen); prio_graft() 275 qdisc_reset(*old); prio_graft() 262 prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, struct Qdisc **old) prio_graft() argument
|
/linux-4.1.27/sound/aoa/core/ |
H A D | gpio-pmf.c | 136 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.1.27/drivers/mtd/ |
H A D | mtd_blkdevs.c | 461 int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old) del_mtd_blktrans_dev() argument 470 if (old->disk_attributes) del_mtd_blktrans_dev() 471 sysfs_remove_group(&disk_to_dev(old->disk)->kobj, del_mtd_blktrans_dev() 472 old->disk_attributes); del_mtd_blktrans_dev() 475 del_gendisk(old->disk); del_mtd_blktrans_dev() 478 destroy_workqueue(old->wq); del_mtd_blktrans_dev() 481 spin_lock_irqsave(&old->queue_lock, flags); del_mtd_blktrans_dev() 482 old->rq->queuedata = NULL; del_mtd_blktrans_dev() 483 blk_start_queue(old->rq); del_mtd_blktrans_dev() 484 spin_unlock_irqrestore(&old->queue_lock, flags); del_mtd_blktrans_dev() 488 mutex_lock(&old->lock); del_mtd_blktrans_dev() 489 if (old->open) { del_mtd_blktrans_dev() 490 if (old->tr->release) del_mtd_blktrans_dev() 491 old->tr->release(old); del_mtd_blktrans_dev() 492 __put_mtd_device(old->mtd); del_mtd_blktrans_dev() 495 old->mtd = NULL; del_mtd_blktrans_dev() 497 mutex_unlock(&old->lock); del_mtd_blktrans_dev() 498 blktrans_dev_put(old); del_mtd_blktrans_dev()
|
/linux-4.1.27/sound/soc/ |
H A D | soc-io.c | 68 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.1.27/drivers/firewire/ |
H A D | core-iso.c | 238 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.1.27/drivers/md/bcache/ |
H A D | io.c | 166 unsigned old = count; bch_count_io_errors() local 174 count = atomic_cmpxchg(&ca->io_count, old, new); bch_count_io_errors() 176 if (count == old) { bch_count_io_errors() 181 old = errors; bch_count_io_errors() 184 old, new); bch_count_io_errors() 185 } while (old != errors); bch_count_io_errors()
|
/linux-4.1.27/fs/reiserfs/ |
H A D | resize.c | 57 * 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.1.27/arch/frv/mm/ |
H A D | mmu-context.c | 90 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.1.27/arch/arm/plat-samsung/ |
H A D | pm-gpio.c | 133 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.1.27/arch/unicore32/include/asm/ |
H A D | cache.h | 22 * cache before the transfer is done, causing old data to be seen by
|
/linux-4.1.27/drivers/md/persistent-data/ |
H A D | dm-space-map-common.c | 200 * operation, the old entry has already had its reference count sm_ll_init() 388 int (*mutator)(void *context, uint32_t old, uint32_t *new), sm_ll_mutate() 392 uint32_t bit, old, ref_count; sm_ll_mutate() local 413 old = sm_lookup_bitmap(bm_le, bit); sm_ll_mutate() 415 if (old > 2) { sm_ll_mutate() 416 r = sm_ll_lookup_big_ref_count(ll, b, &old); sm_ll_mutate() 423 r = mutator(context, old, &ref_count); sm_ll_mutate() 436 if (old > 2) { sm_ll_mutate() 461 if (ref_count && !old) { sm_ll_mutate() 468 } else if (old && !ref_count) { sm_ll_mutate() 478 static int set_ref_count(void *context, uint32_t old, uint32_t *new) set_ref_count() argument 490 static int inc_ref_count(void *context, uint32_t old, uint32_t *new) inc_ref_count() argument 492 *new = old + 1; inc_ref_count() 501 static int dec_ref_count(void *context, uint32_t old, uint32_t *new) dec_ref_count() argument 503 if (!old) { dec_ref_count() 508 *new = old - 1; dec_ref_count() 387 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.1.27/arch/sh/kernel/cpu/sh2/ |
H A D | entry.S | 105 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.1.27/arch/mips/include/uapi/asm/ |
H A D | ioctl.h | 18 * And this turns out useful to catch old ioctl numbers in header
|
/linux-4.1.27/arch/parisc/math-emu/ |
H A D | Makefile | 17 # other very old or stripped-down PA-RISC CPUs -- not currently supported
|
/linux-4.1.27/arch/powerpc/kvm/ |
H A D | timing.c | 57 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.1.27/arch/frv/include/uapi/asm/ |
H A D | sigcontext.h | 23 unsigned long sc_oldmask; /* old sigmask */
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
H A D | mach-osiris-dvs.c | 60 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.1.27/arch/alpha/include/uapi/asm/ |
H A D | resource.h | 15 * we retain the old value for compatibility, especially with DU.
|
/linux-4.1.27/security/apparmor/include/ |
H A D | policy_unpack.h | 23 struct aa_profile *old; member in struct:aa_load_ent
|
/linux-4.1.27/security/ |
H A D | commoncap.c | 223 * Determine whether the inheritable capabilities are limited to the old 241 * @old: The current task's current credentials 251 const struct cred *old, cap_capset() 258 cap_combine(old->cap_inheritable, cap_capset() 259 old->cap_permitted))) cap_capset() 264 cap_combine(old->cap_inheritable, cap_capset() 265 old->cap_bset))) cap_capset() 270 if (!cap_issubset(*permitted, old->cap_permitted)) cap_capset() 485 const struct cred *old = current_cred(); cap_bprm_set_creds() local 517 new->cap_permitted = cap_combine(old->cap_bset, cap_bprm_set_creds() 518 old->cap_inheritable); cap_bprm_set_creds() 526 if (!cap_issubset(new->cap_permitted, old->cap_permitted)) cap_bprm_set_creds() 535 if ((!uid_eq(new->euid, old->uid) || cap_bprm_set_creds() 536 !gid_eq(new->egid, old->gid) || cap_bprm_set_creds() 537 !cap_issubset(new->cap_permitted, old->cap_permitted)) && cap_bprm_set_creds() 546 old->cap_permitted); cap_bprm_set_creds() 574 ret = audit_log_bprm_fcaps(bprm, new, old); cap_bprm_set_creds() 695 static inline void cap_emulate_setxuid(struct cred *new, const struct cred *old) cap_emulate_setxuid() argument 697 kuid_t root_uid = make_kuid(old->user_ns, 0); cap_emulate_setxuid() 699 if ((uid_eq(old->uid, root_uid) || cap_emulate_setxuid() 700 uid_eq(old->euid, root_uid) || cap_emulate_setxuid() 701 uid_eq(old->suid, root_uid)) && cap_emulate_setxuid() 709 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) cap_emulate_setxuid() 711 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) cap_emulate_setxuid() 718 * @old: The current task's current credentials 724 int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags) cap_task_fix_setuid() argument 733 cap_emulate_setxuid(new, old); cap_task_fix_setuid() 744 kuid_t root_uid = make_kuid(old->user_ns, 0); cap_task_fix_setuid() 745 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) cap_task_fix_setuid() 749 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) cap_task_fix_setuid() 860 const struct cred *old = current_cred(); cap_task_prctl() local 867 return !!cap_raised(old->cap_bset, arg2); cap_task_prctl() 892 if ((((old->securebits & SECURE_ALL_LOCKS) >> 1) cap_task_prctl() 893 & (old->securebits ^ arg2)) /*[1]*/ cap_task_prctl() 894 || ((old->securebits & SECURE_ALL_LOCKS & ~arg2)) /*[2]*/ cap_task_prctl() 917 return old->securebits; cap_task_prctl() 250 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.1.27/drivers/s390/scsi/ |
H A D | zfcp_scsi.c | 172 /* don't access old fsf_req after releasing the abort_lock */ zfcp_scsi_eh_abort_handler() 388 struct fsf_qtcb_bottom_port *old) zfcp_adjust_fc_host_stats() 391 data->seconds_since_last_reset - old->seconds_since_last_reset; zfcp_adjust_fc_host_stats() 392 fc_stats->tx_frames = data->tx_frames - old->tx_frames; zfcp_adjust_fc_host_stats() 393 fc_stats->tx_words = data->tx_words - old->tx_words; zfcp_adjust_fc_host_stats() 394 fc_stats->rx_frames = data->rx_frames - old->rx_frames; zfcp_adjust_fc_host_stats() 395 fc_stats->rx_words = data->rx_words - old->rx_words; zfcp_adjust_fc_host_stats() 396 fc_stats->lip_count = data->lip - old->lip; zfcp_adjust_fc_host_stats() 397 fc_stats->nos_count = data->nos - old->nos; zfcp_adjust_fc_host_stats() 398 fc_stats->error_frames = data->error_frames - old->error_frames; zfcp_adjust_fc_host_stats() 399 fc_stats->dumped_frames = data->dumped_frames - old->dumped_frames; zfcp_adjust_fc_host_stats() 400 fc_stats->link_failure_count = data->link_failure - old->link_failure; zfcp_adjust_fc_host_stats() 401 fc_stats->loss_of_sync_count = data->loss_of_sync - old->loss_of_sync; zfcp_adjust_fc_host_stats() 403 data->loss_of_signal - old->loss_of_signal; zfcp_adjust_fc_host_stats() 405 data->psp_error_counts - old->psp_error_counts; zfcp_adjust_fc_host_stats() 407 data->invalid_tx_words - old->invalid_tx_words; zfcp_adjust_fc_host_stats() 408 fc_stats->invalid_crc_count = data->invalid_crcs - old->invalid_crcs; zfcp_adjust_fc_host_stats() 410 data->input_requests - old->input_requests; zfcp_adjust_fc_host_stats() 412 data->output_requests - old->output_requests; zfcp_adjust_fc_host_stats() 414 data->control_requests - old->control_requests; zfcp_adjust_fc_host_stats() 415 fc_stats->fcp_input_megabytes = data->input_mb - old->input_mb; zfcp_adjust_fc_host_stats() 416 fc_stats->fcp_output_megabytes = data->output_mb - old->output_mb; zfcp_adjust_fc_host_stats() 386 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.1.27/arch/x86/kernel/cpu/mcheck/ |
H A D | p5.c | 66 "Intel old style machine check architecture supported.\n"); intel_p5_mcheck_init() 71 "Intel old style machine check reporting enabled on CPU#%d.\n", intel_p5_mcheck_init()
|
/linux-4.1.27/arch/x86/boot/ |
H A D | install.sh | 42 mv $4/vmlinuz $4/vmlinuz.old 46 mv $4/System.map $4/System.old
|
/linux-4.1.27/fs/nilfs2/ |
H A D | btnode.h | 34 * @oldkey: old key of block's moving content 36 * @bh: buffer head of old buffer
|
/linux-4.1.27/arch/parisc/ |
H A D | install.sh | 57 mv $4/$base-$1 $4/$base-$1.old 63 mv $4/System.map-$1 $4/System.map-$1.old
|
/linux-4.1.27/arch/c6x/include/uapi/asm/ |
H A D | sigcontext.h | 16 unsigned long sc_mask; /* old sigmask */ 17 unsigned long sc_sp; /* old user stack pointer */
|
/linux-4.1.27/arch/arm/boot/ |
H A D | install.sh | 52 mv $4/$base-$1 $4/$base-$1.old 58 mv $4/System.map-$1 $4/System.map-$1.old
|
/linux-4.1.27/net/batman-adv/ |
H A D | bitarray.h | 38 /* if too old, just drop it */ batadv_set_bit() 46 * new, 0 if old
|
/linux-4.1.27/net/802/ |
H A D | p8023.c | 9 * 802.3 isn't really a protocol data link layer. Some old IPX stuff 13 * has done anything like the old IPX.
|
/linux-4.1.27/drivers/net/irda/ |
H A D | old_belkin-sir.c | 5 * 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.1.27/drivers/parport/ |
H A D | parport_amiga.c | 5 * 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.1.27/arch/microblaze/kernel/ |
H A D | ftrace.c | 24 unsigned long old; prepare_ftrace_return() local 53 : "=&r" (old), "=r" (faulted) prepare_ftrace_return() 66 err = ftrace_push_return_trace(old, self_addr, &trace.depth, 0); prepare_ftrace_return() 68 *parent = old; prepare_ftrace_return() 76 *parent = old; prepare_ftrace_return()
|
/linux-4.1.27/fs/notify/inotify/ |
H A D | inotify_fsnotify.c | 42 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()
|
/linux-4.1.27/security/apparmor/ |
H A D | resource.c | 118 * @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.1.27/tools/power/x86/turbostat/ |
H A D | turbostat.c | 669 #define DELTA_WRAP32(new, old) \ 670 if (new > old) { \ 671 old = new - old; \ 673 old = 0x100000000 + new - old; \ 677 delta_package(struct pkg_data *new, struct pkg_data *old) delta_package() argument 681 old->pkg_wtd_core_c0 = new->pkg_wtd_core_c0 - old->pkg_wtd_core_c0; delta_package() 682 old->pkg_any_core_c0 = new->pkg_any_core_c0 - old->pkg_any_core_c0; delta_package() 683 old->pkg_any_gfxe_c0 = new->pkg_any_gfxe_c0 - old->pkg_any_gfxe_c0; delta_package() 684 old->pkg_both_core_gfxe_c0 = new->pkg_both_core_gfxe_c0 - old->pkg_both_core_gfxe_c0; delta_package() 686 old->pc2 = new->pc2 - old->pc2; delta_package() 688 old->pc3 = new->pc3 - old->pc3; delta_package() 690 old->pc6 = new->pc6 - old->pc6; delta_package() 692 old->pc7 = new->pc7 - old->pc7; delta_package() 693 old->pc8 = new->pc8 - old->pc8; delta_package() 694 old->pc9 = new->pc9 - old->pc9; delta_package() 695 old->pc10 = new->pc10 - old->pc10; delta_package() 696 old->pkg_temp_c = new->pkg_temp_c; delta_package() 698 DELTA_WRAP32(new->energy_pkg, old->energy_pkg); delta_package() 699 DELTA_WRAP32(new->energy_cores, old->energy_cores); delta_package() 700 DELTA_WRAP32(new->energy_gfx, old->energy_gfx); delta_package() 701 DELTA_WRAP32(new->energy_dram, old->energy_dram); delta_package() 702 DELTA_WRAP32(new->rapl_pkg_perf_status, old->rapl_pkg_perf_status); delta_package() 703 DELTA_WRAP32(new->rapl_dram_perf_status, old->rapl_dram_perf_status); delta_package() 707 delta_core(struct core_data *new, struct core_data *old) delta_core() argument 709 old->c3 = new->c3 - old->c3; delta_core() 710 old->c6 = new->c6 - old->c6; delta_core() 711 old->c7 = new->c7 - old->c7; delta_core() 712 old->core_temp_c = new->core_temp_c; delta_core() 716 * old = new - old 719 delta_thread(struct thread_data *new, struct thread_data *old, delta_thread() argument 722 old->tsc = new->tsc - old->tsc; delta_thread() 725 if (old->tsc < (1000 * 1000)) delta_thread() 730 old->c1 = new->c1 - old->c1; delta_thread() 733 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) { delta_thread() 734 old->aperf = new->aperf - old->aperf; delta_thread() 735 old->mperf = new->mperf - old->mperf; delta_thread() 766 if ((old->mperf + core_delta->c3 + core_delta->c6 + core_delta->c7) > old->tsc) delta_thread() 767 old->c1 = 0; delta_thread() 770 old->c1 = old->tsc - old->mperf - core_delta->c3 delta_thread() 775 if (old->mperf == 0) { delta_thread() 776 if (debug > 1) fprintf(stderr, "cpu%d MPERF 0!\n", old->cpu_id); delta_thread() 777 old->mperf = 1; /* divide by 0 protection */ delta_thread() 780 old->extra_delta32 = new->extra_delta32 - old->extra_delta32; delta_thread() 781 old->extra_delta32 &= 0xFFFFFFFF; delta_thread() 783 old->extra_delta64 = new->extra_delta64 - old->extra_delta64; delta_thread() 788 old->extra_msr32 = new->extra_msr32; delta_thread() 789 old->extra_msr64 = new->extra_msr64; delta_thread() 792 old->smi_count = new->smi_count - old->smi_count; delta_thread()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | llite_capa.c | 398 struct obd_capa *old = lli->lli_mds_capa; do_add_mds_capa() local 401 if (!old) { do_add_mds_capa() 408 spin_lock(&old->c_lock); do_add_mds_capa() 409 old->c_capa = *capa; do_add_mds_capa() 410 spin_unlock(&old->c_lock); do_add_mds_capa() 415 ocapa = old; do_add_mds_capa() 463 struct obd_capa *old; do_add_oss_capa() local 471 old = do_lookup_oss_capa(inode, capa_opc(capa) & CAPA_OPC_OSS_ONLY); do_add_oss_capa() 472 if (!old) { do_add_oss_capa() 479 spin_lock(&old->c_lock); do_add_oss_capa() 480 old->c_capa = *capa; do_add_oss_capa() 481 spin_unlock(&old->c_lock); do_add_oss_capa() 486 ocapa = old; do_add_oss_capa()
|