Searched refs:nmemb (Results 1 – 7 of 7) sorted by relevance
/linux/tools/include/tools/ |
A D | libc_compat.h | 11 static inline void *reallocarray(void *ptr, size_t nmemb, size_t size) in reallocarray() argument 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
/linux/scripts/kconfig/ |
A D | util.c | 91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 93 void *p = calloc(nmemb, size); in xcalloc()
|
A D | lkc.h | 58 void *xcalloc(size_t nmemb, size_t size);
|
/linux/tools/lib/bpf/ |
A D | libbpf_internal.h | 155 static inline void *libbpf_reallocarray(void *ptr, size_t nmemb, size_t size) in libbpf_reallocarray() argument 160 if (unlikely(__builtin_mul_overflow(nmemb, size, &total))) in libbpf_reallocarray() 163 if (size == 0 || nmemb > ULONG_MAX / size) in libbpf_reallocarray() 165 total = nmemb * size; in libbpf_reallocarray()
|
/linux/tools/perf/ |
A D | builtin-trace.c | 1172 static struct syscall_fmt *__syscall_fmt__find(struct syscall_fmt *fmts, const int nmemb, const cha… in __syscall_fmt__find() argument 1174 return bsearch(name, fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); in __syscall_fmt__find() 1179 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find() local 1180 return __syscall_fmt__find(syscall_fmts, nmemb, name); in syscall_fmt__find() 1187 for (i = 0; i < nmemb; ++i) { in __syscall_fmt__find_by_alias() 1197 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find_by_alias() local 1198 return __syscall_fmt__find_by_alias(syscall_fmts, nmemb, alias); in syscall_fmt__find_by_alias() 1684 __syscall_arg_fmt__find_by_name(struct syscall_arg_fmt *fmts, const int nmemb, const char *name) in __syscall_arg_fmt__find_by_name() argument 1686 return bsearch(name, fmts, nmemb, sizeof(struct syscall_arg_fmt), syscall_arg_fmt__cmp); in __syscall_arg_fmt__find_by_name() 1691 const int nmemb = ARRAY_SIZE(syscall_arg_fmts__by_name); in syscall_arg_fmt__find_by_name() local [all …]
|
/linux/tools/perf/util/ |
A D | annotate.c | 693 const int nmemb = arch->nr_instructions; in ins__sort() local 695 qsort(arch->instructions, nmemb, sizeof(struct ins), ins__cmp); in ins__sort() 701 const int nmemb = arch->nr_instructions; in __ins__find() local 708 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 739 const int nmemb = ARRAY_SIZE(architectures); in arch__sort() local 741 qsort(architectures, nmemb, sizeof(struct arch), arch__cmp); in arch__sort() 746 const int nmemb = ARRAY_SIZE(architectures); in arch__find() local 754 return bsearch(name, architectures, nmemb, sizeof(struct arch), arch__key_cmp); in arch__find()
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_gem.c | 623 u_memcpya(uint64_t user, unsigned nmemb, unsigned size) in u_memcpya() argument 628 size *= nmemb; in u_memcpya()
|
Completed in 31 milliseconds