Lines Matching refs:nr_entries

369 static inline size_t depot_stack_record_size(struct stack_record *s, unsigned int nr_entries)  in depot_stack_record_size()  argument
371 const size_t used = flex_array_size(s, entries, nr_entries); in depot_stack_record_size()
381 depot_alloc_stack(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, v… in depot_alloc_stack() argument
389 if (WARN_ON_ONCE(!nr_entries)) in depot_alloc_stack()
393 if (nr_entries > CONFIG_STACKDEPOT_MAX_FRAMES) in depot_alloc_stack()
394 nr_entries = CONFIG_STACKDEPOT_MAX_FRAMES; in depot_alloc_stack()
404 record_size = depot_stack_record_size(stack, nr_entries); in depot_alloc_stack()
415 stack->size = nr_entries; in depot_alloc_stack()
417 memcpy(stack->entries, entries, flex_array_size(stack, entries, nr_entries)); in depot_alloc_stack()
585 unsigned int nr_entries, in stack_depot_save_flags() argument
609 nr_entries = filter_irq_stacks(entries, nr_entries); in stack_depot_save_flags()
611 if (unlikely(nr_entries == 0) || stack_depot_disabled) in stack_depot_save_flags()
614 hash = hash_stack(entries, nr_entries); in stack_depot_save_flags()
618 found = find_stack(bucket, entries, nr_entries, hash, depot_flags); in stack_depot_save_flags()
637 found = find_stack(bucket, entries, nr_entries, hash, depot_flags); in stack_depot_save_flags()
640 depot_alloc_stack(entries, nr_entries, hash, depot_flags, &prealloc); in stack_depot_save_flags()
675 unsigned int nr_entries, in stack_depot_save() argument
678 return stack_depot_save_flags(entries, nr_entries, alloc_flags, in stack_depot_save()
742 unsigned int nr_entries; in stack_depot_print() local
744 nr_entries = stack_depot_fetch(stack, &entries); in stack_depot_print()
745 if (nr_entries > 0) in stack_depot_print()
746 stack_trace_print(entries, nr_entries, 0); in stack_depot_print()
754 unsigned int nr_entries; in stack_depot_snprint() local
756 nr_entries = stack_depot_fetch(handle, &entries); in stack_depot_snprint()
757 return nr_entries ? stack_trace_snprint(buf, size, entries, nr_entries, in stack_depot_snprint()