• Home
  • Raw
  • Download

Lines Matching refs:ntbl

66 static void nested_table_free(union nested_table *ntbl, unsigned int size)  in nested_table_free()  argument
72 ntbl = rcu_dereference_raw(ntbl->table); in nested_table_free()
73 if (!ntbl) in nested_table_free()
79 nested_table_free(ntbl + i, size); in nested_table_free()
82 kfree(ntbl); in nested_table_free()
89 union nested_table *ntbl; in nested_bucket_table_free() local
92 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in nested_bucket_table_free()
95 nested_table_free(ntbl + i, size); in nested_bucket_table_free()
97 kfree(ntbl); in nested_bucket_table_free()
117 union nested_table *ntbl; in nested_table_alloc() local
120 ntbl = rcu_dereference(*prev); in nested_table_alloc()
121 if (ntbl) in nested_table_alloc()
122 return ntbl; in nested_table_alloc()
124 ntbl = kzalloc(PAGE_SIZE, GFP_ATOMIC); in nested_table_alloc()
126 if (ntbl && leaf) { in nested_table_alloc()
127 for (i = 0; i < PAGE_SIZE / sizeof(ntbl[0]); i++) in nested_table_alloc()
128 INIT_RHT_NULLS_HEAD(ntbl[i].bucket); in nested_table_alloc()
131 if (cmpxchg((union nested_table **)prev, NULL, ntbl) == NULL) in nested_table_alloc()
132 return ntbl; in nested_table_alloc()
134 kfree(ntbl); in nested_table_alloc()
1174 union nested_table *ntbl; in __rht_bucket_nested() local
1176 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in __rht_bucket_nested()
1177 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash); in __rht_bucket_nested()
1180 while (ntbl && size > (1 << shift)) { in __rht_bucket_nested()
1182 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, in __rht_bucket_nested()
1188 if (!ntbl) in __rht_bucket_nested()
1191 return &ntbl[subhash].bucket; in __rht_bucket_nested()
1214 union nested_table *ntbl; in rht_bucket_nested_insert() local
1216 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in rht_bucket_nested_insert()
1218 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1221 while (ntbl && size > (1 << shift)) { in rht_bucket_nested_insert()
1225 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1229 if (!ntbl) in rht_bucket_nested_insert()
1232 return &ntbl[hash].bucket; in rht_bucket_nested_insert()