/linux-master/tools/include/tools/ |
H A D | libc_compat.h | 11 static inline void *reallocarray(void *ptr, size_t nmemb, size_t size) argument 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes)))
|
/linux-master/scripts/kconfig/ |
H A D | util.c | 115 void *xcalloc(size_t nmemb, size_t size) argument 117 void *p = calloc(nmemb, size);
|
H A D | lkc.h | 58 void *xcalloc(size_t nmemb, size_t size);
|
/linux-master/tools/include/nolibc/ |
H A D | stdlib.h | 148 void *calloc(size_t size, size_t nmemb) argument 150 size_t x = size * nmemb; 152 if (__builtin_expect(size && ((x / size) != nmemb), 0)) {
|
H A D | stdio.h | 162 size_t fwrite(const void *s, size_t size, size_t nmemb, FILE *stream) argument 166 for (written = 0; written < nmemb; written++) {
|
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_drv.h | 190 u_memcpya(uint64_t user, unsigned int nmemb, unsigned int size) argument 195 if (unlikely(check_mul_overflow(nmemb, size, &bytes)))
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf_internal.h | 195 static inline void *libbpf_reallocarray(void *ptr, size_t nmemb, size_t size) argument 200 if (unlikely(__builtin_mul_overflow(nmemb, size, &total))) 203 if (size == 0 || nmemb > ULONG_MAX / size) 205 total = nmemb * size;
|
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 1179 const int nmemb, 1182 return bsearch(name, fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); 1187 const int nmemb = ARRAY_SIZE(syscall_fmts); local 1188 return __syscall_fmt__find(syscall_fmts, nmemb, name); 1192 const int nmemb, const char *alias) 1196 for (i = 0; i < nmemb; ++i) { 1206 const int nmemb = ARRAY_SIZE(syscall_fmts); local 1207 return __syscall_fmt__find_by_alias(syscall_fmts, nmemb, alias); 1720 __syscall_arg_fmt__find_by_name(const struct syscall_arg_fmt *fmts, const int nmemb, argument 1723 return bsearch(name, fmts, nmemb, sizeo 1178 __syscall_fmt__find(const struct syscall_fmt *fmts, const int nmemb, const char *name) argument 1191 __syscall_fmt__find_by_alias(const struct syscall_fmt *fmts, const int nmemb, const char *alias) argument 1728 const int nmemb = ARRAY_SIZE(syscall_arg_fmts__by_name); local [all...] |
/linux-master/tools/perf/util/ |
H A D | annotate.c | 778 const int nmemb = arch->nr_instructions; local 780 qsort(arch->instructions, nmemb, sizeof(struct ins), ins__cmp); 786 const int nmemb = arch->nr_instructions; local 793 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); 812 ins = bsearch(tmp, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); 844 const int nmemb = ARRAY_SIZE(architectures); local 846 qsort(architectures, nmemb, sizeof(struct arch), arch__cmp); 851 const int nmemb = ARRAY_SIZE(architectures); local 859 return bsearch(name, architectures, nmemb, sizeof(struct arch), arch__key_cmp);
|