Home
last modified time | relevance | path

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

/lib/
Derrseq.c61 errseq_t cur, old; in errseq_set() local
72 old = READ_ONCE(*eseq); in errseq_set()
76 return old; in errseq_set()
82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set()
85 if (old & ERRSEQ_SEEN) in errseq_set()
89 if (new == old) { in errseq_set()
95 cur = cmpxchg(eseq, old, new); in errseq_set()
101 if (likely(cur == old || cur == new)) in errseq_set()
105 old = cur; in errseq_set()
125 errseq_t old = READ_ONCE(*eseq); in errseq_sample() local
[all …]
Dlockref.c13 struct lockref old; \
14 BUILD_BUG_ON(sizeof(old) != 8); \
15 old.lock_count = READ_ONCE(lockref->lock_count); \
16 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \
17 struct lockref new = old, prev = old; \
19 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
20 old.lock_count, \
22 if (likely(old.lock_count == prev.lock_count)) { \
68 if (old.count <= 0) in lockref_get_not_zero()
96 if (old.count <= 1) in lockref_put_not_zero()
[all …]
Dcrc-t10dif.c38 struct crypto_shash *new, *old; in crc_t10dif_rehash() local
41 old = rcu_dereference_protected(crct10dif_tfm, in crc_t10dif_rehash()
51 if (old) { in crc_t10dif_rehash()
53 crypto_free_shash(old); in crc_t10dif_rehash()
Drbtree.c75 __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, in __rb_rotate_set_parents() argument
78 struct rb_node *parent = rb_parent(old); in __rb_rotate_set_parents()
79 new->__rb_parent_color = old->__rb_parent_color; in __rb_rotate_set_parents()
80 rb_set_parent_color(old, new, color); in __rb_rotate_set_parents()
81 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents()
86 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_insert() argument
228 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in ____rb_erase_color() argument
411 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_erase_color() argument
425 static inline void dummy_copy(struct rb_node *old, struct rb_node *new) {} in dummy_copy() argument
426 static inline void dummy_rotate(struct rb_node *old, struct rb_node *new) {} in dummy_rotate() argument
[all …]
Dradix-tree.c668 struct radix_tree_node *old = child; in radix_tree_free_nodes() local
671 WARN_ON_ONCE(!list_empty(&old->private_list)); in radix_tree_free_nodes()
672 radix_tree_node_free(old); in radix_tree_free_nodes()
673 if (old == entry_to_node(node)) in radix_tree_free_nodes()
850 void *item, void *old) in calculate_count() argument
857 if (!old) in calculate_count()
860 return !!item - !!old; in calculate_count()
877 void *old = rcu_dereference_raw(*slot); in __radix_tree_replace() local
878 int values = !!xa_is_value(item) - !!xa_is_value(old); in __radix_tree_replace()
879 int count = calculate_count(root, node, slot, item, old); in __radix_tree_replace()
[all …]
Dlru_cache.c66 unsigned long old, new, val; in lc_try_lock()
68 old = lc->flags & LC_PARANOIA; in lc_try_lock()
69 new = old | LC_LOCKED; in lc_try_lock()
70 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
71 } while (unlikely (val == (old ^ LC_PARANOIA))); in lc_try_lock()
72 return old == val; in lc_try_lock()
Dbitmap.c295 const unsigned long *old, const unsigned long *new, in __bitmap_replace() argument
302 dst[k] = (old[k] & ~mask[k]) | (new[k] & mask[k]); in __bitmap_replace()
1006 const unsigned long *old, const unsigned long *new, in bitmap_remap() argument
1017 int n = bitmap_pos_to_ord(old, oldbit, nbits); in bitmap_remap()
1053 int bitmap_bitremap(int oldbit, const unsigned long *old, in bitmap_bitremap() argument
1057 int n = bitmap_pos_to_ord(old, oldbit, bits); in bitmap_bitremap()
Dstring.c1153 char *strreplace(char *s, char old, char new) in strreplace() argument
1156 if (*s == old) in strreplace()
Dtest_bpf.c5532 #define BPF_ATOMIC_OP_TEST1(width, op, logic, old, update, result) \ argument
5535 #old " " #logic " " #update " = " #result, \
5538 BPF_ST_MEM(width, R10, -40, old), \
5548 #define BPF_ATOMIC_OP_TEST2(width, op, logic, old, update, result) \ argument
5551 #old " " #logic " " #update " = " #result, \
5555 BPF_ST_MEM(BPF_W, R10, -40, old), \
5566 #define BPF_ATOMIC_OP_TEST3(width, op, logic, old, update, result) \ argument
5569 #old " " #logic " " #update " = " #result, \
5573 BPF_ST_MEM(width, R10, -40, old), \
5583 #define BPF_ATOMIC_OP_TEST4(width, op, logic, old, update, result) \ argument
[all …]
Dtest_xarray.c1448 void *old = xas_store(&xas, xa_mk_index(base + i)); in check_create_range_4() local
1450 XA_BUG_ON(xa, old != xa_mk_index(base + i)); in check_create_range_4()
1452 XA_BUG_ON(xa, old != NULL); in check_create_range_4()
Dxarray.c1603 void *old, void *entry, gfp_t gfp) in __xa_cmpxchg() argument
1613 if (curr == old) { in __xa_cmpxchg()
Diov_iter.c1834 const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags) in dup_iter() argument
1836 *new = *old; in dup_iter()
/lib/fonts/
DKconfig64 bool "Pearl (old m68k) console 8x8 font" if FONTS