Searched refs:flex_array (Results 1 – 13 of 13) sorted by relevance
/linux-4.4.14/include/linux/ |
D | flex_array.h | 20 struct flex_array { struct 39 (FLEX_ARRAY_BASE_SIZE - offsetof(struct flex_array, parts)) 54 struct flex_array __arrayname = { { { \ 64 struct flex_array *flex_array_alloc(int element_size, unsigned int total, 66 int flex_array_prealloc(struct flex_array *fa, unsigned int start, 68 void flex_array_free(struct flex_array *fa); 69 void flex_array_free_parts(struct flex_array *fa); 70 int flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src, 72 int flex_array_clear(struct flex_array *fa, unsigned int element_nr); 73 void *flex_array_get(struct flex_array *fa, unsigned int element_nr); [all …]
|
/linux-4.4.14/lib/ |
D | flex_array.c | 39 static inline int elements_fit_in_base(struct flex_array *fa) in elements_fit_in_base() 88 struct flex_array *flex_array_alloc(int element_size, unsigned int total, in flex_array_alloc() 91 struct flex_array *ret; in flex_array_alloc() 105 ret = kzalloc(sizeof(struct flex_array), flags); in flex_array_alloc() 119 static int fa_element_to_part_nr(struct flex_array *fa, in fa_element_to_part_nr() 137 void flex_array_free_parts(struct flex_array *fa) in flex_array_free_parts() 148 void flex_array_free(struct flex_array *fa) in flex_array_free() 155 static unsigned int index_inside_part(struct flex_array *fa, in index_inside_part() 166 __fa_get_part(struct flex_array *fa, int part_nr, gfp_t flags) in __fa_get_part() 198 int flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src, in flex_array_put() [all …]
|
D | Makefile | 27 gcd.o lcm.o list_sort.o uuid.o flex_array.o iov_iter.o clz_ctz.o \
|
/linux-4.4.14/Documentation/ |
D | flexible-arrays.txt | 31 #include <linux/flex_array.h> 33 struct flex_array *flex_array_alloc(int element_size, 52 int flex_array_put(struct flex_array *array, unsigned int element_nr, 68 int flex_array_prealloc(struct flex_array *array, unsigned int start, 78 void *flex_array_get(struct flex_array *fa, unsigned int element_nr); 94 int flex_array_clear(struct flex_array *array, unsigned int element_nr); 102 int flex_array_shrink(struct flex_array *array); 111 void flex_array_free_parts(struct flex_array *array); 116 void flex_array_free(struct flex_array *array);
|
/linux-4.4.14/security/selinux/ss/ |
D | policydb.h | 243 struct flex_array *sym_val_to_name[SYM_NUM]; 249 struct flex_array *type_val_to_struct_array; 286 struct flex_array *type_attr_map_array; 361 struct flex_array *fa = p->sym_val_to_name[sym_num]; in sym_name()
|
D | avtab.h | 87 struct flex_array *htable;
|
D | policydb.c | 335 struct flex_array *fa; in common_index() 353 struct flex_array *fa; in class_index() 371 struct flex_array *fa; in role_index() 392 struct flex_array *fa; in type_index() 420 struct flex_array *fa; in user_index() 441 struct flex_array *fa; in sens_index() 463 struct flex_array *fa; in cat_index()
|
D | conditional.c | 197 struct flex_array *fa; in cond_index_bool()
|
/linux-4.4.14/net/openvswitch/ |
D | flow_table.h | 40 struct flex_array *buckets;
|
D | flow_table.c | 120 static struct flex_array *alloc_buckets(unsigned int n_buckets) in alloc_buckets() 122 struct flex_array *buckets; in alloc_buckets() 176 static void free_buckets(struct flex_array *buckets) in free_buckets()
|
/linux-4.4.14/drivers/md/ |
D | raid5.h | 508 struct flex_array *scribble; /* space for constructing buffer
|
D | raid5.c | 2063 static struct flex_array *scribble_alloc(int num, int cnt, gfp_t flags) in scribble_alloc() 2065 struct flex_array *ret; in scribble_alloc() 2097 struct flex_array *scribble; in resize_chunks()
|
/linux-4.4.14/fs/proc/ |
D | base.c | 2054 struct flex_array *fa = NULL; in proc_map_files_readdir()
|