Home
last modified time | relevance | path

Searched full:old (Results 1 – 25 of 4901) sorted by relevance

12345678910>>...197

/openbmc/linux/arch/sh/include/asm/
H A Dbitops-cas.h5 static inline unsigned __bo_cas(volatile unsigned *p, unsigned old, unsigned new) in __bo_cas() argument
9 : "r"(old), "z"(p) in __bo_cas()
16 unsigned mask, old; in set_bit() local
22 do old = *a; in set_bit()
23 while (__bo_cas(a, old, old|mask) != old); in set_bit()
28 unsigned mask, old; in clear_bit() local
34 do old = *a; in clear_bit()
35 while (__bo_cas(a, old, old&~mask) != old); in clear_bit()
40 unsigned mask, old; in change_bit() local
46 do old = *a; in change_bit()
[all …]
H A Dspinlock-cas.h13 static inline unsigned __sl_cas(volatile unsigned *p, unsigned old, unsigned new) in __sl_cas() argument
17 : "r"(old), "z"(p) in __sl_cas()
54 unsigned old; in arch_read_lock() local
55 do old = rw->lock; in arch_read_lock()
56 while (!old || __sl_cas(&rw->lock, old, old-1) != old); in arch_read_lock()
61 unsigned old; in arch_read_unlock() local
62 do old = rw->lock; in arch_read_unlock()
63 while (__sl_cas(&rw->lock, old, old+1) != old); in arch_read_unlock()
78 unsigned old; in arch_read_trylock() local
79 do old = rw->lock; in arch_read_trylock()
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Datomic_ops.h50 op_type old; \
53 op_string " %[old],%[val],%[ptr]\n" \
55 : [old] "=d" (old), [ptr] "+QS" (*ptr) \
57 return old; \
101 int old, new; \
104 "0: lr %[new],%[old]\n" \
106 " cs %[old],%[new],%[ptr]\n" \
108 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
110 return old; \
127 long old, new; \
[all …]
H A Dcmpxchg.h20 unsigned long old; in __arch_xchg() local
34 : "=&d" (old), "+Q" (*(int *) address) in __arch_xchg()
37 return old >> shift; in __arch_xchg()
48 : "=&d" (old), "+Q" (*(int *) address) in __arch_xchg()
51 return old >> shift; in __arch_xchg()
57 : "=&d" (old), "+Q" (*(int *) address) in __arch_xchg()
60 return old; in __arch_xchg()
66 : "=&d" (old), "+QS" (*(long *) address) in __arch_xchg()
69 return old; in __arch_xchg()
88 unsigned long old, in __cmpxchg() argument
[all …]
/openbmc/openbmc/poky/bitbake/lib/simplediff/
H A D__init__.py17 def diff(old, new): argument
25 old the old list of immutable, comparable values (ie. a list
32 the original old and/or new lists. The first part of the pair
55 # Create a map from old values to their indices
57 for i, val in enumerate(old):
60 # Find the largest substring common to old and new.
65 # length of the largest suffix of `old[:i]` equal to a suffix
66 # of `new[:inew]` (or unset when `old[i]` != `new[inew]`).
70 # is built from the old one.
78 # substring in the old list. `sub_start_new` is the index of the beginning
[all …]
/openbmc/linux/arch/ia64/include/asm/
H A Dbitops.h42 __u32 bit, old, new; in set_bit() local
50 old = *m; in set_bit()
51 new = old | bit; in set_bit()
52 } while (cmpxchg_acq(m, old, new) != old); in set_bit()
83 __u32 mask, old, new; in clear_bit() local
91 old = *m; in clear_bit()
92 new = old & mask; in clear_bit()
93 } while (cmpxchg_acq(m, old, new) != old); in clear_bit()
107 __u32 mask, old, new; in clear_bit_unlock() local
115 old = *m; in clear_bit_unlock()
[all …]
H A Dacenv.h22 unsigned int old, new, val; in ia64_acpi_acquire_global_lock() local
24 old = *lock; in ia64_acpi_acquire_global_lock()
25 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1)); in ia64_acpi_acquire_global_lock()
26 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_acquire_global_lock()
27 } while (unlikely (val != old)); in ia64_acpi_acquire_global_lock()
34 unsigned int old, new, val; in ia64_acpi_release_global_lock() local
36 old = *lock; in ia64_acpi_release_global_lock()
37 new = old & ~0x3; in ia64_acpi_release_global_lock()
38 val = ia64_cmpxchg4_acq(lock, new, old); in ia64_acpi_release_global_lock()
39 } while (unlikely (val != old)); in ia64_acpi_release_global_lock()
[all …]
H A Datomic.h34 __s32 old, new; \
39 old = arch_atomic_read(v); \
40 new = old c_op i; \
41 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \
49 __s32 old, new; \
54 old = arch_atomic_read(v); \
55 new = old c_op i; \
56 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \
57 return old; \
129 s64 old, new; \
[all …]
/openbmc/linux/security/safesetid/
H A Dlsm.c144 * Check whether a caller with old credentials @old is allowed to switch to
147 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) in id_permitted_for_cred() argument
151 /* If our old creds already had this ID in it, it's fine. */ in id_permitted_for_cred()
153 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred()
154 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
157 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred()
158 gid_eq(new_id.gid, old->sgid)) in id_permitted_for_cred()
164 * Transitions to new UIDs require a check against the policy of the old in id_permitted_for_cred()
168 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; in id_permitted_for_cred()
173 __kuid_val(old->uid), __kuid_val(old->euid), in id_permitted_for_cred()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dftrace.c26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument
32 "1: cas [%[ip]], %[old], %[new]\n" in ftrace_modify_code()
47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code()
50 if (replaced != old && replaced != new) in ftrace_modify_code()
59 u32 old, new; in ftrace_make_nop() local
61 old = ftrace_call_replace(ip, addr); in ftrace_make_nop()
63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
69 u32 old, new; in ftrace_make_call() local
71 old = ftrace_nop; in ftrace_make_call()
73 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dcmpxchg.h42 u32 __cmpxchg_##type##sfx(volatile void *p, u32 old, u32 new) \
49 old <<= bitoff; \
67 : "r" (p), "r" (old), "r" (new), "r" (prev_mask) \
269 * Compare and exchange - if *p == old, set it to new,
270 * and return the old value of *p.
283 __cmpxchg_u8(volatile unsigned char *p, unsigned long old, unsigned long new) in __cmpxchg_u8() argument
298 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8()
305 __cmpxchg_u8_local(volatile unsigned char *p, unsigned long old, in __cmpxchg_u8_local() argument
318 : "r" (p), "r" (old), "r" (new) in __cmpxchg_u8_local()
325 __cmpxchg_u8_relaxed(u8 *p, unsigned long old, unsigned long new) in __cmpxchg_u8_relaxed() argument
[all …]
/openbmc/linux/drivers/input/joystick/iforce/
H A Diforce-ff.c182 struct ff_effect *old, in need_condition_modifier() argument
195 ret |= old->u.condition[i].right_saturation != new->u.condition[i].right_saturation in need_condition_modifier()
196 || old->u.condition[i].left_saturation != new->u.condition[i].left_saturation in need_condition_modifier()
197 || old->u.condition[i].right_coeff != new->u.condition[i].right_coeff in need_condition_modifier()
198 || old->u.condition[i].left_coeff != new->u.condition[i].left_coeff in need_condition_modifier()
199 || old->u.condition[i].deadband != new->u.condition[i].deadband in need_condition_modifier()
200 || old->u.condition[i].center != new->u.condition[i].center; in need_condition_modifier()
210 struct ff_effect *old, in need_magnitude_modifier() argument
219 return old->u.constant.level != effect->u.constant.level; in need_magnitude_modifier()
226 static int need_envelope_modifier(struct iforce *iforce, struct ff_effect *old, in need_envelope_modifier() argument
[all …]
/openbmc/qemu/bsd-user/freebsd/
H A Dsyscall_nr.h16 /* 8 is old creat */
27 /* 19 is old lseek */
46 /* 38 is old stat */
48 /* 40 is old lstat */
54 /* 46 is old sigaction */
56 /* 48 is old sigprocmask */
60 /* 52 is old sigpending */
70 /* 62 is old fstat */
71 /* 63 is old getkerninfo */
72 /* 64 is old getpagesize */
[all …]
/openbmc/linux/kernel/
H A Dtracepoint.c142 static inline void release_probes(struct tracepoint_func *old) in release_probes() argument
144 if (old) { in release_probes()
145 struct tp_probes *tp_probes = container_of(old, in release_probes()
183 struct tracepoint_func *old, *new; in func_add() local
184 int iter_probes; /* Iterate over old probe array. */ in func_add()
192 old = *funcs; in func_add()
193 if (old) { in func_add()
195 for (iter_probes = 0; old[iter_probes].func; iter_probes++) { in func_add()
196 if (old[iter_probes].func == tp_stub_func) in func_add()
198 if (old[iter_probes].func == tp_func->func && in func_add()
[all …]
H A Dcred.c204 const struct cred *old; in prepare_creds() local
213 old = task->cred; in prepare_creds()
214 memcpy(new, old, sizeof(struct cred)); in prepare_creds()
237 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_creds()
379 * the old set. Both the objective and the subjective credentials pointers are
391 const struct cred *old = task->real_cred; in commit_creds() local
396 BUG_ON(task->cred != old); in commit_creds()
402 if (!uid_eq(old->euid, new->euid) || in commit_creds()
403 !gid_eq(old->egid, new->egid) || in commit_creds()
404 !uid_eq(old->fsuid, new->fsuid) || in commit_creds()
[all …]
/openbmc/linux/arch/s390/lib/
H A Dspinlock.c84 static inline int arch_cmpxchg_niai8(int *lock, int old, int new) in arch_cmpxchg_niai8() argument
86 int expected = old; in arch_cmpxchg_niai8()
91 : "=d" (old), "=Q" (*lock) in arch_cmpxchg_niai8()
92 : "0" (old), "d" (new), "Q" (*lock) in arch_cmpxchg_niai8()
94 return expected == old; in arch_cmpxchg_niai8()
120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local
131 old = READ_ONCE(lp->lock); in arch_spin_lock_queued()
132 if ((old & _Q_LOCK_CPU_MASK) == 0 && in arch_spin_lock_queued()
133 (old & _Q_LOCK_STEAL_MASK) != _Q_LOCK_STEAL_MASK) { in arch_spin_lock_queued()
141 new = (old ? (old + _Q_LOCK_STEAL_ADD) : 0) | lockval; in arch_spin_lock_queued()
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Datomic64_32.h198 s64 old, c = 0; in arch_atomic64_and() local
200 while ((old = arch_atomic64_cmpxchg(v, c, c & i)) != c) in arch_atomic64_and()
201 c = old; in arch_atomic64_and()
206 s64 old, c = 0; in arch_atomic64_fetch_and() local
208 while ((old = arch_atomic64_cmpxchg(v, c, c & i)) != c) in arch_atomic64_fetch_and()
209 c = old; in arch_atomic64_fetch_and()
211 return old; in arch_atomic64_fetch_and()
217 s64 old, c = 0; in arch_atomic64_or() local
219 while ((old = arch_atomic64_cmpxchg(v, c, c | i)) != c) in arch_atomic64_or()
220 c = old; in arch_atomic64_or()
[all …]
/openbmc/linux/net/smc/
H A Dsmc_cdc.h146 /* calculate cursor difference between old and new, where old <= new and
150 union smc_host_cursor *old, in smc_curs_diff() argument
153 if (old->wrap != new->wrap) in smc_curs_diff()
155 ((size - old->count) + new->count)); in smc_curs_diff()
157 return max_t(int, 0, (new->count - old->count)); in smc_curs_diff()
160 /* calculate cursor difference between old and new - returns negative
161 * value in case old > new
164 union smc_host_cursor *old, in smc_curs_comp() argument
167 if (old->wrap > new->wrap || in smc_curs_comp()
168 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp()
[all …]
/openbmc/linux/arch/sparc/lib/
H A Datomic32.c83 int arch_atomic_cmpxchg(atomic_t *v, int old, int new) in arch_atomic_cmpxchg() argument
90 if (likely(ret == old)) in arch_atomic_cmpxchg()
125 unsigned long old, flags; in sp32___set_bit() local
128 old = *addr; in sp32___set_bit()
129 *addr = old | mask; in sp32___set_bit()
132 return old & mask; in sp32___set_bit()
138 unsigned long old, flags; in sp32___clear_bit() local
141 old = *addr; in sp32___clear_bit()
142 *addr = old & ~mask; in sp32___clear_bit()
145 return old & mask; in sp32___clear_bit()
[all …]
/openbmc/linux/arch/arm/kernel/
H A Dftrace.c98 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument
104 old = __opcode_to_mem_thumb32(old); in ftrace_modify_code()
106 old = __opcode_to_mem_arm(old); in ftrace_modify_code()
113 if (replaced != old) in ftrace_modify_code()
147 unsigned long new, old; in ftrace_make_call() local
156 old = ftrace_nop_replace(rec); in ftrace_make_call()
166 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call()
174 unsigned long new, old; in ftrace_modify_call() local
177 old = ftrace_call_replace(ip, adjust_address(rec, old_addr), true); in ftrace_modify_call()
181 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_modify_call()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dcmpxchg_64.h11 __cmpxchg_u32(volatile int *m, int old, int new) in __cmpxchg_u32() argument
15 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u32()
78 /* Read the old value */ in xchg16()
106 * Atomic compare and exchange. Compare OLD with MEM, if identical,
108 * indicated by comparing RETURN with OLD.
115 __cmpxchg_u64(volatile long *m, unsigned long old, unsigned long new) in __cmpxchg_u64() argument
119 : "0" (new), "r" (m), "r" (old) in __cmpxchg_u64()
131 __cmpxchg_u8(volatile unsigned char *m, unsigned char old, unsigned char new) in __cmpxchg_u8() argument
142 old32 = (load32 & ~mask) | (old << bit_shift); in __cmpxchg_u8()
145 return old; in __cmpxchg_u8()
[all …]
/openbmc/linux/Documentation/
H A Datomic_t.txt279 int atomic_cmpxchg(atomic_t *ptr, int old, int new);
287 int ret, old = *oldp;
288 ret = atomic_cmpxchg(ptr, old, new);
289 if (ret != old)
291 return ret == old;
296 int atomic_cmpxchg(atomic_t *ptr, int old, int new)
298 (void)atomic_try_cmpxchg(ptr, &old, new);
299 return old;
304 old = atomic_read(&v); old = atomic_read(&v);
306 new = func(old); new = func(old);
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/rsync/files/
H A Dmakefile-no-rebuild.patch27 - @if test -f configure.sh; then cp -p configure.sh configure.sh.old; else touch configure.sh.old; …
28 - @if test -f config.h.in; then cp -p config.h.in config.h.in.old; else touch config.h.in.old; fi
31 - @if diff configure.sh configure.sh.old >/dev/null 2>&1; then \
33 - rm configure.sh.old; \
37 - @if diff config.h.in config.h.in.old >/dev/null 2>&1; then \
39 - rm config.h.in.old; \
43 - @if test -f configure.sh.old || test -f config.h.in.old; then \
63 - @if test -f Makefile; then cp -p Makefile Makefile.old; else touch Makefile.old; fi
65 - @if diff Makefile Makefile.old >/dev/null 2>&1; then \
67 - rm Makefile.old; \
/openbmc/qemu/linux-user/hppa/
H A Dcpu_loop.c31 abi_ulong old = env->gr[25]; in hppa_lws() local
43 old = tswap32(old); in hppa_lws()
45 ret = qatomic_cmpxchg((uint32_t *)g2h(cs, addr), old, new); in hppa_lws()
54 if (((addr | old | new) & ((1 << size) - 1)) in hppa_lws()
56 || !access_ok(cs, VERIFY_READ, old, 1 << size) in hppa_lws()
64 old = *(uint8_t *)g2h(cs, old); in hppa_lws()
66 ret = qatomic_cmpxchg((uint8_t *)g2h(cs, addr), old, new); in hppa_lws()
67 ret = ret != old; in hppa_lws()
70 old = *(uint16_t *)g2h(cs, old); in hppa_lws()
72 ret = qatomic_cmpxchg((uint16_t *)g2h(cs, addr), old, new); in hppa_lws()
[all …]
/openbmc/qemu/host/include/generic/host/
H A Dstore-insert-al16.h.inc24 Int128Alias old, new;
28 old.u = *pu;
31 new.s = int128_and(old.s, msk);
33 } while (!__atomic_compare_exchange_n(pu, &old.u, new.u, true,
36 Int128 old, new, cmp;
39 old = *ps;
42 cmp = old;
43 new = int128_and(old, msk);
45 old = atomic16_cmpxchg(ps, cmp, new);
46 } while (int128_ne(cmp, old));

12345678910>>...197