Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf_internal.h93 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/
Dutil.c91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument
93 void *p = calloc(nmemb, size); in xcalloc()
Dlkc.h72 void *xcalloc(size_t nmemb, size_t size);
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-trace.c1162 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/
Dannotate.c684 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/
Ddevice-mapper.h557 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
/kernel/linux/linux-5.10/drivers/md/
Ddm-table.c97 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/
Dnouveau_gem.c573 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/
Ddrivers.patch25013 +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,