/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf_internal.h | 93 static inline void *libbpf_reallocarray(void *ptr, size_t nmemb, size_t size) in libbpf_reallocarray() argument 98 if (unlikely(__builtin_mul_overflow(nmemb, size, &total))) in libbpf_reallocarray() 101 if (size == 0 || nmemb > ULONG_MAX / size) in libbpf_reallocarray() 103 total = nmemb * size; in libbpf_reallocarray()
|
/kernel/linux/linux-5.10/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 | 72 void *xcalloc(size_t nmemb, size_t size);
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-trace.c | 1162 static struct syscall_fmt *__syscall_fmt__find(struct syscall_fmt *fmts, const int nmemb, const cha… in __syscall_fmt__find() argument 1164 return bsearch(name, fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); in __syscall_fmt__find() 1169 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find() local 1170 return __syscall_fmt__find(syscall_fmts, nmemb, name); in syscall_fmt__find() 1173 static struct syscall_fmt *__syscall_fmt__find_by_alias(struct syscall_fmt *fmts, const int nmemb, … in __syscall_fmt__find_by_alias() argument 1177 for (i = 0; i < nmemb; ++i) { in __syscall_fmt__find_by_alias() 1187 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find_by_alias() local 1188 return __syscall_fmt__find_by_alias(syscall_fmts, nmemb, alias); in syscall_fmt__find_by_alias() 1674 __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 1676 return bsearch(name, fmts, nmemb, sizeof(struct syscall_arg_fmt), syscall_arg_fmt__cmp); in __syscall_arg_fmt__find_by_name() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | annotate.c | 684 const int nmemb = arch->nr_instructions; in ins__sort() local 686 qsort(arch->instructions, nmemb, sizeof(struct ins), ins__cmp); in ins__sort() 692 const int nmemb = arch->nr_instructions; in __ins__find() local 699 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 730 const int nmemb = ARRAY_SIZE(architectures); in arch__sort() local 732 qsort(architectures, nmemb, sizeof(struct arch), arch__cmp); in arch__sort() 737 const int nmemb = ARRAY_SIZE(architectures); in arch__find() local 745 return bsearch(name, architectures, nmemb, sizeof(struct arch), arch__key_cmp); in arch__find()
|
/kernel/linux/linux-5.10/include/linux/ |
D | device-mapper.h | 557 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-table.c | 97 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size) in dm_vcalloc() argument 105 if (nmemb > (ULONG_MAX / elem_size)) in dm_vcalloc() 108 size = nmemb * elem_size; in dm_vcalloc()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_gem.c | 573 u_memcpya(uint64_t user, unsigned nmemb, unsigned size) in u_memcpya() argument 578 size *= nmemb; in u_memcpya()
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | drivers.patch | 25013 +static inline void *drm_calloc_large(size_t nmemb, size_t size); 25110 +static inline void *drm_calloc_large(size_t nmemb, size_t size) 25112 + if (size != 0 && nmemb > SIZE_MAX / size) 25115 + if (size * nmemb <= PAGE_SIZE) 25116 + return kcalloc(nmemb, size, GFP_KERNEL); 25118 + return __vmalloc(size * nmemb,
|