Lines Matching refs:new_tbl

214 	struct bucket_table *new_tbl;  in rhashtable_last_table()  local
217 new_tbl = tbl; in rhashtable_last_table()
221 return new_tbl; in rhashtable_last_table()
229 struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl); in rhashtable_rehash_one() local
235 if (new_tbl->nest) in rhashtable_rehash_one()
254 new_hash = head_hashfn(ht, new_tbl, entry); in rhashtable_rehash_one()
256 rht_lock_nested(new_tbl, &new_tbl->buckets[new_hash], SINGLE_DEPTH_NESTING); in rhashtable_rehash_one()
258 head = rht_ptr(new_tbl->buckets + new_hash, new_tbl, new_hash); in rhashtable_rehash_one()
262 rht_assign_unlock(new_tbl, &new_tbl->buckets[new_hash], entry); in rhashtable_rehash_one()
297 struct bucket_table *new_tbl) in rhashtable_rehash_attach() argument
306 new_tbl) != NULL) in rhashtable_rehash_attach()
315 struct bucket_table *new_tbl; in rhashtable_rehash_table() local
320 new_tbl = rht_dereference(old_tbl->future_tbl, ht); in rhashtable_rehash_table()
321 if (!new_tbl) in rhashtable_rehash_table()
332 rcu_assign_pointer(ht->tbl, new_tbl); in rhashtable_rehash_table()
348 return rht_dereference(new_tbl->future_tbl, ht) ? -EAGAIN : 0; in rhashtable_rehash_table()
355 struct bucket_table *new_tbl; in rhashtable_rehash_alloc() local
360 new_tbl = bucket_table_alloc(ht, size, GFP_KERNEL); in rhashtable_rehash_alloc()
361 if (new_tbl == NULL) in rhashtable_rehash_alloc()
364 err = rhashtable_rehash_attach(ht, old_tbl, new_tbl); in rhashtable_rehash_alloc()
366 bucket_table_free(new_tbl); in rhashtable_rehash_alloc()
443 struct bucket_table *new_tbl; in rhashtable_insert_rehash() local
461 new_tbl = bucket_table_alloc(ht, size, GFP_ATOMIC | __GFP_NOWARN); in rhashtable_insert_rehash()
462 if (new_tbl == NULL) in rhashtable_insert_rehash()
465 err = rhashtable_rehash_attach(ht, tbl, new_tbl); in rhashtable_insert_rehash()
467 bucket_table_free(new_tbl); in rhashtable_insert_rehash()
543 struct bucket_table *new_tbl; in rhashtable_insert_one() local
552 new_tbl = rht_dereference_rcu(tbl->future_tbl, ht); in rhashtable_insert_one()
553 if (new_tbl) in rhashtable_insert_one()
554 return new_tbl; in rhashtable_insert_one()
590 struct bucket_table *new_tbl; in rhashtable_try_insert() local
596 new_tbl = rcu_dereference(ht->tbl); in rhashtable_try_insert()
599 tbl = new_tbl; in rhashtable_try_insert()
607 new_tbl = rht_dereference_rcu(tbl->future_tbl, ht); in rhashtable_try_insert()
613 new_tbl = rhashtable_insert_one(ht, bkt, tbl, in rhashtable_try_insert()
615 if (PTR_ERR(new_tbl) != -EEXIST) in rhashtable_try_insert()
616 data = ERR_CAST(new_tbl); in rhashtable_try_insert()
620 } while (!IS_ERR_OR_NULL(new_tbl)); in rhashtable_try_insert()