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 = kzalloc(PAGE_SIZE, GFP_ATOMIC); in nested_table_alloc()
135 if (ntbl && leaf) { in nested_table_alloc()
136 for (i = 0; i < PAGE_SIZE / sizeof(ntbl[0]); i++) in nested_table_alloc()
137 INIT_RHT_NULLS_HEAD(ntbl[i].bucket); in nested_table_alloc()
140 if (cmpxchg((union nested_table **)prev, NULL, ntbl) == NULL) in nested_table_alloc()
141 return ntbl; in nested_table_alloc()
143 kfree(ntbl); in nested_table_alloc()
1185 union nested_table *ntbl; in __rht_bucket_nested() local
1187 ntbl = nested_table_top(tbl); in __rht_bucket_nested()
1188 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash); in __rht_bucket_nested()
1191 while (ntbl && size > (1 << shift)) { in __rht_bucket_nested()
1193 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, in __rht_bucket_nested()
1199 if (!ntbl) in __rht_bucket_nested()
1202 return &ntbl[subhash].bucket; in __rht_bucket_nested()
1224 union nested_table *ntbl; in rht_bucket_nested_insert() local
1226 ntbl = nested_table_top(tbl); in rht_bucket_nested_insert()
1228 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1231 while (ntbl && size > (1 << shift)) { in rht_bucket_nested_insert()
1235 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1239 if (!ntbl) in rht_bucket_nested_insert()
1242 return &ntbl[hash].bucket; in rht_bucket_nested_insert()