Searched refs:nmemb (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.4/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-v5.4/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 | 86 void *xcalloc(size_t nmemb, size_t size);
|
| /Linux-v5.4/tools/perf/util/ |
| D | annotate.c | 676 const int nmemb = arch->nr_instructions; in ins__sort() local 678 qsort(arch->instructions, nmemb, sizeof(struct ins), ins__cmp); in ins__sort() 684 const int nmemb = arch->nr_instructions; in __ins__find() local 691 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 722 const int nmemb = ARRAY_SIZE(architectures); in arch__sort() local 724 qsort(architectures, nmemb, sizeof(struct arch), arch__cmp); in arch__sort() 729 const int nmemb = ARRAY_SIZE(architectures); in arch__find() local 737 return bsearch(name, architectures, nmemb, sizeof(struct arch), arch__key_cmp); in arch__find()
|
| /Linux-v5.4/include/linux/ |
| D | device-mapper.h | 525 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
|
| /Linux-v5.4/drivers/gpu/drm/nouveau/ |
| D | nouveau_gem.c | 586 u_memcpya(uint64_t user, unsigned nmemb, unsigned size) in u_memcpya() argument 591 size *= nmemb; in u_memcpya()
|
| /Linux-v5.4/drivers/md/ |
| D | dm-table.c | 137 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size) in dm_vcalloc() argument 145 if (nmemb > (ULONG_MAX / elem_size)) in dm_vcalloc() 148 size = nmemb * elem_size; in dm_vcalloc()
|
| /Linux-v5.4/tools/perf/ |
| D | builtin-trace.c | 969 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find() local 970 return bsearch(name, syscall_fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); in syscall_fmt__find() 975 int i, nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find_by_alias() local 977 for (i = 0; i < nmemb; ++i) { in syscall_fmt__find_by_alias()
|