Lines Matching refs:ntbl

68 static void nested_table_free(union nested_table *ntbl, unsigned int size)  in nested_table_free()  argument
74 ntbl = rcu_dereference_raw(ntbl->table); in nested_table_free()
75 if (!ntbl) in nested_table_free()
81 nested_table_free(ntbl + i, size); in nested_table_free()
84 kfree(ntbl); in nested_table_free()
91 union nested_table *ntbl; in nested_bucket_table_free() local
94 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in nested_bucket_table_free()
97 nested_table_free(ntbl + i, size); in nested_bucket_table_free()
99 kfree(ntbl); in nested_bucket_table_free()
120 union nested_table *ntbl; in nested_table_alloc() local
123 ntbl = rcu_dereference(*prev); in nested_table_alloc()
124 if (ntbl) in nested_table_alloc()
125 return ntbl; in nested_table_alloc()
127 ntbl = kzalloc(PAGE_SIZE, GFP_ATOMIC); in nested_table_alloc()
129 if (ntbl && leaf) { in nested_table_alloc()
130 for (i = 0; i < PAGE_SIZE / sizeof(ntbl[0]); i++) in nested_table_alloc()
131 INIT_RHT_NULLS_HEAD(ntbl[i].bucket); in nested_table_alloc()
134 rcu_assign_pointer(*prev, ntbl); in nested_table_alloc()
136 return ntbl; in nested_table_alloc()
1187 union nested_table *ntbl; in rht_bucket_nested() local
1189 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in rht_bucket_nested()
1190 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash); in rht_bucket_nested()
1193 while (ntbl && size > (1 << shift)) { in rht_bucket_nested()
1195 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, in rht_bucket_nested()
1201 if (!ntbl) in rht_bucket_nested()
1204 return &ntbl[subhash].bucket; in rht_bucket_nested()
1216 union nested_table *ntbl; in rht_bucket_nested_insert() local
1218 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in rht_bucket_nested_insert()
1220 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1223 while (ntbl && size > (1 << shift)) { in rht_bucket_nested_insert()
1227 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1231 if (!ntbl) in rht_bucket_nested_insert()
1234 return &ntbl[hash].bucket; in rht_bucket_nested_insert()