Home
last modified time | relevance | path

Searched refs:new (Results 1 – 22 of 22) sorted by relevance

/lib/
Derrseq.c78 errseq_t new; in errseq_set() local
81 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set()
85 new += ERRSEQ_CTR_INC; in errseq_set()
88 if (new == old) { in errseq_set()
89 cur = new; in errseq_set()
94 cur = cmpxchg(eseq, old, new); in errseq_set()
100 if (likely(cur == old || cur == new)) in errseq_set()
177 errseq_t old, new; in errseq_check_and_advance() local
198 new = old | ERRSEQ_SEEN; in errseq_check_and_advance()
199 if (new != old) in errseq_check_and_advance()
[all …]
Dlockref.c17 struct lockref new = old, prev = old; \
21 new.lock_count); \
46 new.count++; in lockref_get()
67 new.count++; in lockref_get_not_zero()
95 new.count--; in lockref_put_not_zero()
122 new.count++; in lockref_get_or_lock()
148 new.count--; in lockref_put_return()
152 return new.count; in lockref_put_return()
166 new.count--; in lockref_put_or_lock()
203 new.count++; in lockref_get_not_dead()
Drbtree_test.c34 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert() local
37 while (*new) { in insert()
38 parent = *new; in insert()
40 new = &parent->rb_left; in insert()
42 new = &parent->rb_right; in insert()
45 rb_link_node(&node->rb, parent, new); in insert()
51 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert_cached() local
55 while (*new) { in insert_cached()
56 parent = *new; in insert_cached()
58 new = &parent->rb_left; in insert_cached()
[all …]
Dmemcat_p.c12 void **p = a, **new; in __memcat_p() local
23 new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL); in __memcat_p()
24 if (!new) in __memcat_p()
29 new[nr] = *p; in __memcat_p()
31 return new; in __memcat_p()
Drbtree.c75 __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, in __rb_rotate_set_parents() argument
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
457 void (*augment_rotate)(struct rb_node *old, struct rb_node *new)) in __rb_insert_augmented() argument
[all …]
Drefcount.c76 unsigned int new, val = atomic_read(&r->refs); in refcount_dec_not_one() local
85 new = val - 1; in refcount_dec_not_one()
86 if (new > val) { in refcount_dec_not_one()
87 WARN_ONCE(new > val, "refcount_t: underflow; use-after-free.\n"); in refcount_dec_not_one()
91 } while (!atomic_try_cmpxchg_release(&r->refs, &val, new)); in refcount_dec_not_one()
Dlist_debug.c20 bool __list_add_valid(struct list_head *new, struct list_head *prev, in __list_add_valid() argument
33 CHECK_DATA_CORRUPTION(new == prev || new == next, in __list_add_valid()
35 new, prev, next)) in __list_add_valid()
Dcrc-t10dif.c39 struct crypto_shash *new, *old; in crc_t10dif_rehash() local
48 new = crypto_alloc_shash("crct10dif", 0, 0); in crc_t10dif_rehash()
49 if (IS_ERR(new)) { in crc_t10dif_rehash()
53 rcu_assign_pointer(crct10dif_tfm, new); in crc_t10dif_rehash()
Dstackdepot.c276 struct stack_record *new = in stack_depot_save() local
279 if (new) { in stack_depot_save()
280 new->next = *bucket; in stack_depot_save()
285 smp_store_release(bucket, new); in stack_depot_save()
286 found = new; in stack_depot_save()
Datomic64_test.c79 #define XCHG_FAMILY_TEST(bit, init, new) \ argument
81 FAMILY_TEST(TEST_ARGS, bit, xchg, init, init, new, new); \
84 #define CMPXCHG_FAMILY_TEST(bit, init, new, wrong) \ argument
87 init, init, new, init, new); \
89 init, init, init, wrong, new); \
Dtest_kmod.c880 unsigned long new; in test_dev_config_update_uint_sync() local
883 ret = kstrtoul(buf, 10, &new); in test_dev_config_update_uint_sync()
887 if (new > UINT_MAX) in test_dev_config_update_uint_sync()
893 *(unsigned int *)config = new; in test_dev_config_update_uint_sync()
918 unsigned long new; in test_dev_config_update_uint_range() local
920 ret = kstrtoul(buf, 10, &new); in test_dev_config_update_uint_range()
924 if (new < min || new > max) in test_dev_config_update_uint_range()
928 *config = new; in test_dev_config_update_uint_range()
940 long new; in test_dev_config_update_int() local
942 ret = kstrtol(buf, 10, &new); in test_dev_config_update_int()
[all …]
Ddebugobjects.c166 struct debug_obj *new[ODEBUG_BATCH_SIZE]; in fill_pool() local
170 new[cnt] = kmem_cache_zalloc(obj_cache, gfp); in fill_pool()
171 if (!new[cnt]) in fill_pool()
179 hlist_add_head(&new[--cnt]->node, &obj_pool); in fill_pool()
1329 struct debug_obj *obj, *new; in debug_objects_replace_static_objects() local
1357 new = hlist_entry(obj_pool.first, typeof(*obj), node); in debug_objects_replace_static_objects()
1358 hlist_del(&new->node); in debug_objects_replace_static_objects()
1360 *new = *obj; in debug_objects_replace_static_objects()
1361 hlist_add_head(&new->node, &db->list); in debug_objects_replace_static_objects()
Dbitmap.c792 const unsigned long *old, const unsigned long *new, in bitmap_remap() argument
801 w = bitmap_weight(new, nbits); in bitmap_remap()
808 set_bit(bitmap_ord_to_pos(new, n % w, nbits), dst); in bitmap_remap()
839 const unsigned long *new, int bits) in bitmap_bitremap() argument
841 int w = bitmap_weight(new, bits); in bitmap_bitremap()
846 return bitmap_ord_to_pos(new, n % w, bits); in bitmap_bitremap()
Dbtree.c471 unsigned long *new; in btree_insert_level() local
473 new = btree_node_alloc(head, gfp); in btree_insert_level()
474 if (!new) in btree_insert_level()
478 new, level + 1, gfp); in btree_insert_level()
480 mempool_free(new, head->mempool); in btree_insert_level()
484 setkey(geo, new, i, bkey(geo, node, i)); in btree_insert_level()
485 setval(geo, new, i, bval(geo, node, i)); in btree_insert_level()
Datomic64.c163 s64 atomic64_xchg(atomic64_t *v, s64 new) in atomic64_xchg() argument
171 v->counter = new; in atomic64_xchg()
Dlru_cache.c66 unsigned long old, new, val; in lc_try_lock()
69 new = old | LC_LOCKED; in lc_try_lock()
70 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
Diov_iter.c1592 const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags) in dup_iter() argument
1594 *new = *old; in dup_iter()
1595 if (unlikely(iov_iter_is_pipe(new))) { in dup_iter()
1599 if (unlikely(iov_iter_is_discard(new))) in dup_iter()
1601 if (iov_iter_is_bvec(new)) in dup_iter()
1602 return new->bvec = kmemdup(new->bvec, in dup_iter()
1603 new->nr_segs * sizeof(struct bio_vec), in dup_iter()
1607 return new->iov = kmemdup(new->iov, in dup_iter()
1608 new->nr_segs * sizeof(struct iovec), in dup_iter()
Dtest_firmware.c356 long new; in __test_dev_config_update_u8() local
358 ret = kstrtol(buf, 10, &new); in __test_dev_config_update_u8()
362 if (new > U8_MAX) in __test_dev_config_update_u8()
365 *(u8 *)cfg = new; in __test_dev_config_update_u8()
Dstring.c1108 char *strreplace(char *s, char old, char new) in strreplace() argument
1112 *s = new; in strreplace()
DKconfig.kgdb38 intended to for the development of new kgdb stubs
DKconfig.debug1891 stress and performance analysis. So, any new change for vmalloc
/lib/math/
Dprime_numbers.c112 struct primes *new; in expand_to_next_prime() local
128 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
130 if (!new) in expand_to_next_prime()
136 kfree(new); in expand_to_next_prime()
144 bitmap_fill(new->primes, sz); in expand_to_next_prime()
145 bitmap_copy(new->primes, p->primes, p->sz); in expand_to_next_prime()
146 for (y = 2UL; y < sz; y = find_next_bit(new->primes, sz, y + 1)) in expand_to_next_prime()
147 new->last = clear_multiples(y, new->primes, p->sz, sz); in expand_to_next_prime()
148 new->sz = sz; in expand_to_next_prime()
150 BUG_ON(new->last <= x); in expand_to_next_prime()
[all …]