Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/
H A Dmalloc.h16 void *mdbg_calloc(const char *fname, int lineno, size_t nmemb, size_t size);
24 #define calloc(nmemb, size) \ argument
25 mdbg_calloc(__FILE__, __LINE__, (nmemb), (size))
34 void *calloc(size_t nmemb, size_t size);
95 void *nex_mdbg_calloc(const char *fname, int lineno, size_t nmemb, size_t size);
103 #define nex_calloc(nmemb, size) \ argument
104 nex_mdbg_calloc(__FILE__, __LINE__, (nmemb), (size))
113 void *nex_calloc(size_t nmemb, size_t size);
138 #define nex_calloc(nmemb, size) calloc(nmemb, size) argument
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/
H A Dmalloc.h16 void *mdbg_calloc(const char *fname, int lineno, size_t nmemb, size_t size);
24 #define calloc(nmemb, size) \ argument
25 mdbg_calloc(__FILE__, __LINE__, (nmemb), (size))
34 void *calloc(size_t nmemb, size_t size);
95 void *nex_mdbg_calloc(const char *fname, int lineno, size_t nmemb, size_t size);
103 #define nex_calloc(nmemb, size) \ argument
104 nex_mdbg_calloc(__FILE__, __LINE__, (nmemb), (size))
113 void *nex_calloc(size_t nmemb, size_t size);
138 #define nex_calloc(nmemb, size) calloc(nmemb, size) argument
/OK3568_Linux_fs/external/xserver/os/
H A Dreallocarray.c35 reallocarray(void *optr, size_t nmemb, size_t size) in reallocarray() argument
37 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in reallocarray()
38 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()
42 return realloc(optr, size * nmemb); in reallocarray()
/OK3568_Linux_fs/buildroot/boot/grub2/
H A D0004-calloc-Make-sure-we-always-have-an-overflow-checking.patch37 +xcalloc (grub_size_t nmemb, grub_size_t size)
41 + p = calloc (nmemb, size);
60 +grub_calloc (grub_size_t nmemb, grub_size_t size)
63 + ret = calloc (nmemb, size);
96 +grub_calloc (grub_size_t nmemb, grub_size_t size)
101 + if (grub_mul (nmemb, size, &sz))
123 +grub_debug_calloc (const char *file, int line, grub_size_t nmemb, grub_size_t size)
130 + ptr = grub_calloc (nmemb, size);
209 +void * EXPORT_FUNC(xcalloc) (grub_size_t nmemb, grub_size_t size) WARN_UNUSED_RESULT;
221 +void *EXPORT_FUNC(grub_calloc) (grub_size_t nmemb, grub_size_t size);
[all …]
H A D0149-kern-mm-Fix-grub_debug_calloc-compilation-error.patch22 @@ -594,7 +594,7 @@ grub_debug_calloc (const char *file, int line, grub_size_t nmemb, grub_size_t si
27 + file, line, nmemb, size);
28 ptr = grub_calloc (nmemb, size);
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/
H A Dmalloc.h38 void *mdbg_calloc(const char *fname, int lineno, size_t nmemb, size_t size);
46 #define calloc(nmemb, size) \ argument
47 mdbg_calloc(__FILE__, __LINE__, (nmemb), (size))
56 void *calloc(size_t nmemb, size_t size);
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/
H A D0001-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch27 * 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)
/OK3568_Linux_fs/external/recovery/mtdutils/
H A Drk29.c182 size_t rk29_fread(void *ptr, size_t size, size_t nmemb, FILE *stream) in rk29_fread() argument
194 if (!size || !nmemb) in rk29_fread()
206 total = size * nmemb; in rk29_fread()
246 size_t rk29_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) in rk29_fwrite() argument
258 if (!size || !nmemb) in rk29_fwrite()
270 total = size * nmemb; in rk29_fwrite()
H A Drk29.h35 size_t rk29_fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
36 size_t rk29_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/mtdutils/
H A Drk29.c207 size_t rk29_fread(void *ptr, size_t size, size_t nmemb, FILE *stream) in rk29_fread() argument
219 if (!size || !nmemb) in rk29_fread()
231 total = size * nmemb; in rk29_fread()
271 size_t rk29_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) in rk29_fwrite() argument
283 if (!size || !nmemb) in rk29_fwrite()
295 total = size * nmemb; in rk29_fwrite()
H A Drk29.h37 size_t rk29_fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
38 size_t rk29_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
/OK3568_Linux_fs/kernel/tools/include/tools/
H A 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()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A 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()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/
H A Dhttp_file_source.cpp152 …static size_t headerCallback(char *const buffer, const size_t size, const size_t nmemb, void *user…
153 …static size_t writeCallback(void *const contents, const size_t size, const size_t nmemb, void *use…
360 size_t HTTPRequest::writeCallback(void *const contents, const size_t size, const size_t nmemb, void… in writeCallback() argument
368 impl->data->append((char *)contents, size * nmemb); in writeCallback()
369 return size * nmemb; in writeCallback()
388 size_t HTTPRequest::headerCallback(char *const buffer, const size_t size, const size_t nmemb, void … in headerCallback() argument
396 const size_t length = size * nmemb; in headerCallback()
/OK3568_Linux_fs/external/recovery/update_engine/
H A Ddownload.c23 size_t my_write_func(void *ptr, size_t size, size_t nmemb, FILE *stream) in my_write_func() argument
25 return fwrite(ptr, size, nmemb, stream); in my_write_func()
/OK3568_Linux_fs/u-boot/common/
H A Dmalloc_simple.c55 void *calloc(size_t nmemb, size_t elem_size) in calloc() argument
57 size_t size = nmemb * elem_size; in calloc()
/OK3568_Linux_fs/kernel/scripts/kconfig/
H A Dutil.c91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument
93 void *p = calloc(nmemb, size); in xcalloc()
/OK3568_Linux_fs/u-boot/scripts/kconfig/
H A Dutil.c140 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument
142 void *p = calloc(nmemb, size); in xcalloc()
/OK3568_Linux_fs/buildroot/package/iwd/
H A D0001-build-Add-reallocarray-to-missing-h.patch48 +static inline void *reallocarray(void *ptr, size_t nmemb, size_t size)
50 + return realloc(ptr, nmemb * size);
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/libcxx/include/
H A Dcstdlib48 void* calloc(size_t nmemb, size_t size);
58 void* bsearch(const void* key, const void* base, size_t nmemb, size_t size,
60 void qsort(void* base, size_t nmemb, size_t size,
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/libcxx/include/
H A Dcstdlib48 void* calloc(size_t nmemb, size_t size);
58 void* bsearch(const void* key, const void* base, size_t nmemb, size_t size,
60 void qsort(void* base, size_t nmemb, size_t size,
/OK3568_Linux_fs/buildroot/support/kconfig/
H A Dutil.c152 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument
154 void *p = calloc(nmemb, size); in xcalloc()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0002-don-t-use-glibc-specific-qsort_r.patch28 -static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, comparison_userdata_fn_t co…
29 - if (nmemb <= 1)
33 - qsort_r(base, nmemb, size, compar, userdata);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.c256 static inline void *drm_calloc_large(size_t nmemb, size_t size);
332 static inline void *drm_calloc_large(size_t nmemb, size_t size) in drm_calloc_large() argument
334 if (size != 0 && nmemb > SIZE_MAX / size) in drm_calloc_large()
337 if (size * nmemb <= PAGE_SIZE) in drm_calloc_large()
338 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
340 return __vmalloc(size * nmemb, in drm_calloc_large()
/OK3568_Linux_fs/app/forlinx/DWKeyboard/include/pinyin/include/
H A Dmystdlib.h28 size_t nmemb, size_t size,

123