Searched refs:layer_idr (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/lib/
H A Didr.c84 * @layer_idr: optional idr to allocate from
86 * If @layer_idr is %NULL, directly allocate one using @gfp_mask or fetch
87 * one from the per-cpu preload buffer. If @layer_idr is not %NULL, fetch
90 * @layer_idr is to maintain backward compatibility with the old alloc
94 static struct idr_layer *idr_layer_alloc(gfp_t gfp_mask, struct idr *layer_idr) idr_layer_alloc() argument
99 if (layer_idr) idr_layer_alloc()
100 return get_from_free_list(layer_idr); idr_layer_alloc()
210 * @layer_idr: optional idr passed to idr_layer_alloc()
221 gfp_t gfp_mask, struct idr *layer_idr) sub_alloc()
273 new = idr_layer_alloc(gfp_mask, layer_idr); sub_alloc()
291 struct idr *layer_idr) idr_get_empty_slot()
302 if (!(p = idr_layer_alloc(gfp_mask, layer_idr))) idr_get_empty_slot()
322 if (!(new = idr_layer_alloc(gfp_mask, layer_idr))) { idr_get_empty_slot()
348 v = sub_alloc(idp, &id, pa, gfp_mask, layer_idr); idr_get_empty_slot()
220 sub_alloc(struct idr *idp, int *starting_id, struct idr_layer **pa, gfp_t gfp_mask, struct idr *layer_idr) sub_alloc() argument
289 idr_get_empty_slot(struct idr *idp, int starting_id, struct idr_layer **pa, gfp_t gfp_mask, struct idr *layer_idr) idr_get_empty_slot() argument

Completed in 97 milliseconds