Searched refs:part_nr (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/lib/ |
H A D | flex_array.c | 139 int part_nr; flex_array_free_parts() local 143 for (part_nr = 0; part_nr < FLEX_ARRAY_NR_BASE_PTRS; part_nr++) flex_array_free_parts() 144 kfree(fa->parts[part_nr]); flex_array_free_parts() 157 unsigned int part_nr) index_inside_part() 161 part_offset = element_nr - part_nr * fa->elems_per_part; index_inside_part() 166 __fa_get_part(struct flex_array *fa, int part_nr, gfp_t flags) __fa_get_part() argument 168 struct flex_array_part *part = fa->parts[part_nr]; __fa_get_part() 176 fa->parts[part_nr] = part; __fa_get_part() 201 int part_nr = 0; flex_array_put() local 212 part_nr = fa_element_to_part_nr(fa, element_nr); flex_array_put() 213 part = __fa_get_part(fa, part_nr, flags); flex_array_put() 217 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; flex_array_put() 232 int part_nr = 0; flex_array_clear() local 243 part_nr = fa_element_to_part_nr(fa, element_nr); flex_array_clear() 244 part = fa->parts[part_nr]; flex_array_clear() 248 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; flex_array_clear() 273 int part_nr; flex_array_prealloc() local 294 for (part_nr = start_part; part_nr <= end_part; part_nr++) { flex_array_prealloc() 295 part = __fa_get_part(fa, part_nr, flags); flex_array_prealloc() 317 int part_nr = 0; flex_array_get() local 327 part_nr = fa_element_to_part_nr(fa, element_nr); flex_array_get() 328 part = fa->parts[part_nr]; flex_array_get() 332 return &part->elements[index_inside_part(fa, element_nr, part_nr)]; flex_array_get() 379 int part_nr; flex_array_shrink() local 386 for (part_nr = 0; part_nr < FLEX_ARRAY_NR_BASE_PTRS; part_nr++) { flex_array_shrink() 387 part = fa->parts[part_nr]; flex_array_shrink() 391 fa->parts[part_nr] = NULL; flex_array_shrink() 155 index_inside_part(struct flex_array *fa, unsigned int element_nr, unsigned int part_nr) index_inside_part() argument
|
Completed in 114 milliseconds