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

/linux-4.4.14/include/linux/
H A Dflex_array.h11 struct flex_array_part;
27 struct flex_array_part *parts[];
41 /* Number of pointers in base to struct flex_array_part pages */
43 (FLEX_ARRAY_BASE_BYTES_LEFT / sizeof(struct flex_array_part *))
45 /* Number of elements of size that fit in struct flex_array_part */
/linux-4.4.14/lib/
H A Dflex_array.c29 struct flex_array_part { struct
165 static struct flex_array_part * __fa_get_part()
168 struct flex_array_part *part = fa->parts[part_nr]; __fa_get_part()
170 part = kmalloc(sizeof(struct flex_array_part), flags); __fa_get_part()
175 sizeof(struct flex_array_part)); __fa_get_part()
202 struct flex_array_part *part; flex_array_put()
210 part = (struct flex_array_part *)&fa->parts[0]; flex_array_put()
233 struct flex_array_part *part; flex_array_clear()
241 part = (struct flex_array_part *)&fa->parts[0]; flex_array_clear()
275 struct flex_array_part *part; flex_array_prealloc()
318 struct flex_array_part *part; flex_array_get()
325 part = (struct flex_array_part *)&fa->parts[0]; flex_array_get()
357 static int part_is_free(struct flex_array_part *part) part_is_free()
361 for (i = 0; i < sizeof(struct flex_array_part); i++) part_is_free()
378 struct flex_array_part *part; flex_array_shrink()

Completed in 35 milliseconds