Lines Matching defs:ntbl
75 static void nested_table_free(union nested_table *ntbl, unsigned int size)
81 ntbl = rcu_dereference_protected(ntbl->table, 1);
82 if (!ntbl)
88 nested_table_free(ntbl + i, size);
91 kfree(ntbl);
98 union nested_table *ntbl;
101 ntbl = nested_table_top(tbl);
104 nested_table_free(ntbl + i, size);
106 kfree(ntbl);
134 union nested_table *ntbl;
137 ntbl = rcu_dereference(*prev);
138 if (ntbl)
139 return ntbl;
141 ntbl = alloc_hooks_tag(ht->alloc_tag,
144 if (ntbl && leaf) {
145 for (i = 0; i < PAGE_SIZE / sizeof(ntbl[0]); i++)
146 INIT_RHT_NULLS_HEAD(ntbl[i].bucket);
149 if (cmpxchg((union nested_table **)prev, NULL, ntbl) == NULL)
150 return ntbl;
152 kfree(ntbl);
1346 union nested_table *ntbl;
1348 ntbl = nested_table_top(tbl);
1349 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash);
1352 while (ntbl && size > (1 << shift)) {
1354 ntbl = rht_dereference_bucket_rcu(ntbl[index].table,
1360 if (!ntbl)
1363 return &ntbl[subhash].bucket;
1385 union nested_table *ntbl;
1387 ntbl = nested_table_top(tbl);
1389 ntbl = nested_table_alloc(ht, &ntbl[index].table,
1392 while (ntbl && size > (1 << shift)) {
1396 ntbl = nested_table_alloc(ht, &ntbl[index].table,
1400 if (!ntbl)
1403 return &ntbl[hash].bucket;