/openbmc/qemu/scripts/coverity-scan/ |
H A D | model.c | 91 void *g_malloc_n(size_t nmemb, size_t size) in g_malloc_n() argument 95 __coverity_negative_sink__(nmemb); in g_malloc_n() 97 ptr = __coverity_alloc__(nmemb * size); in g_malloc_n() 106 void *g_malloc0_n(size_t nmemb, size_t size) in g_malloc0_n() argument 110 __coverity_negative_sink__(nmemb); in g_malloc0_n() 112 ptr = __coverity_alloc__(nmemb * size); in g_malloc0_n() 121 void *g_realloc_n(void *ptr, size_t nmemb, size_t size) in g_realloc_n() argument 123 __coverity_negative_sink__(nmemb); in g_realloc_n() 126 ptr = __coverity_alloc__(nmemb * size); in g_realloc_n() 150 void *g_try_malloc_n(size_t nmemb, size_t size) in g_try_malloc_n() argument [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/ |
H A D | 0001-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch | 27 * that only if nmemb > 0. 29 -static inline void qsort_safe(void *base, size_t nmemb, size_t size, comparison_fn_t compar) { 30 +static inline void qsort_safe(void *base, size_t nmemb, size_t size, int (*compar)(const void *, c… 31 if (nmemb <= 1)
|
/openbmc/linux/tools/include/tools/ |
H A 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()
|
/openbmc/u-boot/common/ |
H A D | malloc_simple.c | 63 void *calloc(size_t nmemb, size_t elem_size) in calloc() argument 65 size_t size = nmemb * elem_size; in calloc()
|
/openbmc/linux/scripts/kconfig/ |
H A D | util.c | 91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 93 void *p = calloc(nmemb, size); in xcalloc()
|
H A D | lkc.h | 58 void *xcalloc(size_t nmemb, size_t size);
|
/openbmc/linux/tools/include/nolibc/ |
H A D | stdlib.h | 148 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()
|
H A D | stdio.h | 163 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()
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | util.c | 140 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 142 void *p = calloc(nmemb, size); in xcalloc()
|
H A D | lkc.h | 117 void *xcalloc(size_t nmemb, size_t size);
|
/openbmc/linux/tools/lib/bpf/ |
H A D | libbpf_internal.h | 194 static inline void *libbpf_reallocarray(void *ptr, size_t nmemb, size_t size) in libbpf_reallocarray() argument 199 if (unlikely(__builtin_mul_overflow(nmemb, size, &total))) in libbpf_reallocarray() 202 if (size == 0 || nmemb > ULONG_MAX / size) in libbpf_reallocarray() 204 total = nmemb * size; in libbpf_reallocarray()
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_drv.h | 190 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()
|
/openbmc/qemu/block/ |
H A D | curl.c | 209 static size_t curl_header_cb(void *ptr, size_t size, size_t nmemb, void *opaque) in curl_header_cb() argument 212 size_t realsize = size * nmemb; in curl_header_cb() 240 static size_t curl_read_cb(void *ptr, size_t size, size_t nmemb, void *opaque) in curl_read_cb() argument 243 size_t realsize = size * nmemb; in curl_read_cb() 261 return size * nmemb; in curl_read_cb()
|
/openbmc/openbmc/poky/meta/recipes-extended/libsolv/libsolv/ |
H A D | 0001-utils-Conside-musl-when-wrapping-qsort_r.patch | 31 …solv_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *)…
|
/openbmc/u-boot/include/ |
H A D | common.h | 465 void qsort(void *base, size_t nmemb, size_t size,
|
H A D | malloc.h | 880 void *calloc(size_t nmemb, size_t size);
|
/openbmc/linux/tools/perf/util/ |
H A D | annotate.c | 717 const int nmemb = arch->nr_instructions; in ins__sort() local 719 qsort(arch->instructions, nmemb, sizeof(struct ins), ins__cmp); in ins__sort() 725 const int nmemb = arch->nr_instructions; in __ins__find() local 732 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 751 ins = bsearch(tmp, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 783 const int nmemb = ARRAY_SIZE(architectures); in arch__sort() local 785 qsort(architectures, nmemb, sizeof(struct arch), arch__cmp); in arch__sort() 790 const int nmemb = ARRAY_SIZE(architectures); in arch__find() local 798 return bsearch(name, architectures, nmemb, sizeof(struct arch), arch__key_cmp); in arch__find()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-trace.c | 1178 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 …]
|