Lines Matching refs:new
197 static void qht_do_resize_reset(struct qht *ht, struct qht_map *new,
526 static inline void qht_do_resize(struct qht *ht, struct qht_map *new) in qht_do_resize() argument
528 qht_do_resize_reset(ht, new, false); in qht_do_resize()
531 static inline void qht_do_resize_and_reset(struct qht *ht, struct qht_map *new) in qht_do_resize_and_reset() argument
533 qht_do_resize_reset(ht, new, true); in qht_do_resize_and_reset()
538 struct qht_map *new = NULL; in qht_reset_size() local
547 new = qht_map_create(n_buckets); in qht_reset_size()
549 qht_do_resize_and_reset(ht, new); in qht_reset_size()
552 return !!new; in qht_reset_size()
634 struct qht_bucket *new = NULL; in qht_insert__locked() local
654 new = b; in qht_insert__locked()
664 if (new) { in qht_insert__locked()
688 struct qht_map *new = qht_map_create(map->n_buckets * 2); in qht_grow_maybe() local
690 qht_do_resize(ht, new); in qht_grow_maybe()
903 struct qht_map *new; member
910 struct qht_map *new = data->new; in qht_map_copy() local
911 struct qht_bucket *b = qht_map_to_bucket(new, hash); in qht_map_copy()
914 qht_insert__locked(ht, new, b, p, hash, NULL); in qht_map_copy()
921 static void qht_do_resize_reset(struct qht *ht, struct qht_map *new, bool reset) in qht_do_resize_reset() argument
937 if (new == NULL) { in qht_do_resize_reset()
942 g_assert(new->n_buckets != old->n_buckets); in qht_do_resize_reset()
944 data.new = new; in qht_do_resize_reset()
946 qht_map_debug__all_locked(new); in qht_do_resize_reset()
948 qatomic_rcu_set(&ht->map, new); in qht_do_resize_reset()
960 struct qht_map *new; in qht_resize() local
962 new = qht_map_create(n_buckets); in qht_resize()
963 qht_do_resize(ht, new); in qht_resize()