Home
last modified time | relevance | path

Searched refs:nmemb (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/tools/include/tools/
Dlibc_compat.h11 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/
Dutil.c91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument
93 void *p = calloc(nmemb, size); in xcalloc()
Dlkc.h58 void *xcalloc(size_t nmemb, size_t size);
/linux-6.6.21/tools/include/nolibc/
Dstdlib.h148 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()
Dstdio.h163 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/
Dlibbpf_internal.h180 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/
Dnouveau_drv.h190 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/
Dannotate.c714 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/
Dbuiltin-trace.c1178 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 …]