Lines Matching refs:ntbl
75 static void nested_table_free(union nested_table *ntbl, unsigned int size) in nested_table_free() argument
81 ntbl = rcu_dereference_protected(ntbl->table, 1); in nested_table_free()
82 if (!ntbl) in nested_table_free()
88 nested_table_free(ntbl + i, size); in nested_table_free()
91 kfree(ntbl); in nested_table_free()
98 union nested_table *ntbl; in nested_bucket_table_free() local
101 ntbl = nested_table_top(tbl); in nested_bucket_table_free()
104 nested_table_free(ntbl + i, size); in nested_bucket_table_free()
106 kfree(ntbl); in nested_bucket_table_free()
126 union nested_table *ntbl; in nested_table_alloc() local
129 ntbl = rcu_dereference(*prev); in nested_table_alloc()
130 if (ntbl) in nested_table_alloc()
131 return ntbl; in nested_table_alloc()
133 ntbl = alloc_hooks_tag(ht->alloc_tag, in nested_table_alloc()
136 if (ntbl && leaf) { in nested_table_alloc()
137 for (i = 0; i < PAGE_SIZE / sizeof(ntbl[0]); i++) in nested_table_alloc()
138 INIT_RHT_NULLS_HEAD(ntbl[i].bucket); in nested_table_alloc()
141 if (cmpxchg((union nested_table **)prev, NULL, ntbl) == NULL) in nested_table_alloc()
142 return ntbl; in nested_table_alloc()
144 kfree(ntbl); in nested_table_alloc()
1195 union nested_table *ntbl; in __rht_bucket_nested() local
1197 ntbl = nested_table_top(tbl); in __rht_bucket_nested()
1198 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash); in __rht_bucket_nested()
1201 while (ntbl && size > (1 << shift)) { in __rht_bucket_nested()
1203 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, in __rht_bucket_nested()
1209 if (!ntbl) in __rht_bucket_nested()
1212 return &ntbl[subhash].bucket; in __rht_bucket_nested()
1234 union nested_table *ntbl; in rht_bucket_nested_insert() local
1236 ntbl = nested_table_top(tbl); in rht_bucket_nested_insert()
1238 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1241 while (ntbl && size > (1 << shift)) { in rht_bucket_nested_insert()
1245 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1249 if (!ntbl) in rht_bucket_nested_insert()
1252 return &ntbl[hash].bucket; in rht_bucket_nested_insert()