/linux-6.6.21/tools/include/tools/ |
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-6.6.21/scripts/kconfig/ |
D | util.c | 91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 93 void *p = calloc(nmemb, size); in xcalloc()
|
D | lkc.h | 58 void *xcalloc(size_t nmemb, size_t size);
|
/linux-6.6.21/tools/include/nolibc/ |
D | stdlib.h | 148 void *calloc(size_t size, size_t nmemb) in calloc() argument 150 size_t x = size * nmemb; in calloc() 152 if (__builtin_expect(size && ((x / size) != nmemb), 0)) { in calloc()
|
D | stdio.h | 163 size_t fwrite(const void *s, size_t size, size_t nmemb, FILE *stream) in fwrite() argument 167 for (written = 0; written < nmemb; written++) { in fwrite()
|
/linux-6.6.21/tools/lib/bpf/ |
D | libbpf_internal.h | 180 static inline void *libbpf_reallocarray(void *ptr, size_t nmemb, size_t size) in libbpf_reallocarray() argument 185 if (unlikely(__builtin_mul_overflow(nmemb, size, &total))) in libbpf_reallocarray() 188 if (size == 0 || nmemb > ULONG_MAX / size) in libbpf_reallocarray() 190 total = nmemb * size; in libbpf_reallocarray()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_drv.h | 190 u_memcpya(uint64_t user, unsigned int nmemb, unsigned int size) in u_memcpya() argument 195 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in u_memcpya()
|
/linux-6.6.21/tools/perf/util/ |
D | annotate.c | 714 const int nmemb = arch->nr_instructions; in ins__sort() local 716 qsort(arch->instructions, nmemb, sizeof(struct ins), ins__cmp); in ins__sort() 722 const int nmemb = arch->nr_instructions; in __ins__find() local 729 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 748 ins = bsearch(tmp, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 780 const int nmemb = ARRAY_SIZE(architectures); in arch__sort() local 782 qsort(architectures, nmemb, sizeof(struct arch), arch__cmp); in arch__sort() 787 const int nmemb = ARRAY_SIZE(architectures); in arch__find() local 795 return bsearch(name, architectures, nmemb, sizeof(struct arch), arch__key_cmp); in arch__find()
|
/linux-6.6.21/tools/perf/ |
D | builtin-trace.c | 1178 const int nmemb, in __syscall_fmt__find() argument 1181 return bsearch(name, fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); in __syscall_fmt__find() 1186 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find() local 1187 return __syscall_fmt__find(syscall_fmts, nmemb, name); in syscall_fmt__find() 1191 const int nmemb, const char *alias) in __syscall_fmt__find_by_alias() argument 1195 for (i = 0; i < nmemb; ++i) { in __syscall_fmt__find_by_alias() 1205 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find_by_alias() local 1206 return __syscall_fmt__find_by_alias(syscall_fmts, nmemb, alias); in syscall_fmt__find_by_alias() 1719 __syscall_arg_fmt__find_by_name(const struct syscall_arg_fmt *fmts, const int nmemb, in __syscall_arg_fmt__find_by_name() argument 1722 return bsearch(name, fmts, nmemb, sizeof(struct syscall_arg_fmt), syscall_arg_fmt__cmp); in __syscall_arg_fmt__find_by_name() [all …]
|