• Home
  • Raw
  • Download

Lines Matching refs:new

103 	struct idr_layer *new;  in idr_layer_alloc()  local
116 new = kmem_cache_zalloc(idr_layer_cache, gfp_mask | __GFP_NOWARN); in idr_layer_alloc()
117 if (new) in idr_layer_alloc()
118 return new; in idr_layer_alloc()
126 new = __this_cpu_read(idr_preload_head); in idr_layer_alloc()
127 if (new) { in idr_layer_alloc()
128 __this_cpu_write(idr_preload_head, new->ary[0]); in idr_layer_alloc()
130 new->ary[0] = NULL; in idr_layer_alloc()
133 if (new) in idr_layer_alloc()
134 return new; in idr_layer_alloc()
202 struct idr_layer *new; in __idr_pre_get() local
203 new = kmem_cache_zalloc(idr_layer_cache, gfp_mask); in __idr_pre_get()
204 if (new == NULL) in __idr_pre_get()
206 move_to_free_list(idp, new); in __idr_pre_get()
232 struct idr_layer *p, *new; in sub_alloc() local
281 new = idr_layer_alloc(gfp_mask, layer_idr); in sub_alloc()
282 if (!new) in sub_alloc()
284 new->layer = l-1; in sub_alloc()
285 new->prefix = id & idr_layer_prefix_mask(new->layer); in sub_alloc()
286 rcu_assign_pointer(p->ary[m], new); in sub_alloc()
301 struct idr_layer *p, *new; in idr_get_empty_slot() local
330 if (!(new = idr_layer_alloc(gfp_mask, layer_idr))) { in idr_get_empty_slot()
336 for (new = p; p && p != idp->top; new = p) { in idr_get_empty_slot()
338 new->ary[0] = NULL; in idr_get_empty_slot()
339 new->count = 0; in idr_get_empty_slot()
340 bitmap_clear(new->bitmap, 0, IDR_SIZE); in idr_get_empty_slot()
341 __move_to_free_list(idp, new); in idr_get_empty_slot()
346 new->ary[0] = p; in idr_get_empty_slot()
347 new->count = 1; in idr_get_empty_slot()
348 new->layer = layers-1; in idr_get_empty_slot()
349 new->prefix = id & idr_layer_prefix_mask(new->layer); in idr_get_empty_slot()
351 __set_bit(0, new->bitmap); in idr_get_empty_slot()
352 p = new; in idr_get_empty_slot()
436 struct idr_layer *new; in idr_preload() local
439 new = kmem_cache_zalloc(idr_layer_cache, gfp_mask); in idr_preload()
441 if (!new) in idr_preload()
445 new->ary[0] = __this_cpu_read(idr_preload_head); in idr_preload()
446 __this_cpu_write(idr_preload_head, new); in idr_preload()