Lines Matching refs:entries
65 unsigned long entries[]; /* Variable-sized array of entries. */ member
105 depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc) in depot_alloc_stack() argument
108 size_t required_size = struct_size(stack, entries, size); in depot_alloc_stack()
138 memcpy(stack->entries, entries, flex_array_size(stack, entries, size)); in depot_alloc_stack()
178 static inline u32 hash_stack(unsigned long *entries, unsigned int size) in hash_stack() argument
180 return jhash2((u32 *)entries, in hash_stack()
181 array_size(size, sizeof(*entries)) / sizeof(u32), in hash_stack()
202 unsigned long *entries, int size, in find_stack() argument
210 !stackdepot_memcmp(entries, found->entries, size)) in find_stack()
232 unsigned long *entries; in stack_depot_snprint() local
235 nr_entries = stack_depot_fetch(handle, &entries); in stack_depot_snprint()
236 return nr_entries ? stack_trace_snprint(buf, size, entries, nr_entries, in stack_depot_snprint()
250 unsigned long *entries; in stack_depot_print() local
253 nr_entries = stack_depot_fetch(stack, &entries); in stack_depot_print()
255 stack_trace_print(entries, nr_entries, 0); in stack_depot_print()
269 unsigned long **entries) in stack_depot_fetch() argument
276 *entries = NULL; in stack_depot_fetch()
290 *entries = stack->entries; in stack_depot_fetch()
315 depot_stack_handle_t __stack_depot_save(unsigned long *entries, in __stack_depot_save() argument
329 hash = hash_stack(entries, nr_entries); in __stack_depot_save()
337 found = find_stack(smp_load_acquire(bucket), entries, in __stack_depot_save()
366 found = find_stack(*bucket, entries, nr_entries, hash); in __stack_depot_save()
368 struct stack_record *new = depot_alloc_stack(entries, nr_entries, hash, &prealloc); in __stack_depot_save()
412 depot_stack_handle_t stack_depot_save(unsigned long *entries, in stack_depot_save() argument
416 return __stack_depot_save(entries, nr_entries, alloc_flags, true); in stack_depot_save()