Home
last modified time | relevance | path

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

/linux-4.1.27/include/drm/
Ddrm_mem_util.h32 static __inline__ void *drm_calloc_large(size_t nmemb, size_t size) in drm_calloc_large() argument
34 if (size != 0 && nmemb > SIZE_MAX / size) in drm_calloc_large()
37 if (size * nmemb <= PAGE_SIZE) in drm_calloc_large()
38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
40 return __vmalloc(size * nmemb, in drm_calloc_large()
45 static __inline__ void *drm_malloc_ab(size_t nmemb, size_t size) in drm_malloc_ab() argument
47 if (size != 0 && nmemb > SIZE_MAX / size) in drm_malloc_ab()
50 if (size * nmemb <= PAGE_SIZE) in drm_malloc_ab()
51 return kmalloc(nmemb * size, GFP_KERNEL); in drm_malloc_ab()
53 return __vmalloc(size * nmemb, in drm_malloc_ab()
/linux-4.1.27/drivers/pcmcia/
Dm32r_cfc.c105 size_t nmemb, int flag) in pcc_ioread_byte() argument
113 sock, port, buf, size, nmemb, flag); in pcc_ioread_byte()
124 while (nmemb--) in pcc_ioread_byte()
130 size_t nmemb, int flag) in pcc_ioread_word() argument
138 sock, port, buf, size, nmemb, flag); in pcc_ioread_word()
155 while (nmemb--) in pcc_ioread_word()
161 size_t nmemb, int flag) in pcc_iowrite_byte() argument
169 sock, port, buf, size, nmemb, flag); in pcc_iowrite_byte()
180 while (nmemb--) in pcc_iowrite_byte()
186 size_t nmemb, int flag) in pcc_iowrite_word() argument
[all …]
Dm32r_pcc.c84 void pcc_iorw(int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int wr, int flag) in pcc_iorw() argument
162 while (nmemb--) { in pcc_iorw()
167 while (nmemb--) { in pcc_iorw()
182 while (nmemb--) { in pcc_iorw()
196 while (nmemb--) { in pcc_iorw()
233 void pcc_ioread(int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int flag) { in pcc_ioread() argument
234 pcc_iorw(sock, port, buf, size, nmemb, 0, flag); in pcc_ioread()
237 void pcc_iowrite(int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int flag) { in pcc_iowrite() argument
238 pcc_iorw(sock, port, buf, size, nmemb, 1, flag); in pcc_iowrite()
/linux-4.1.27/scripts/kconfig/
Dutil.c140 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument
142 void *p = calloc(nmemb, size); in xcalloc()
Dlkc.h117 void *xcalloc(size_t nmemb, size_t size);
/linux-4.1.27/drivers/md/
Ddm-table.c134 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size) in dm_vcalloc() argument
142 if (nmemb > (ULONG_MAX / elem_size)) in dm_vcalloc()
145 size = nmemb * elem_size; in dm_vcalloc()
/linux-4.1.27/include/linux/
Ddevice-mapper.h486 void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size);
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_gem.c566 u_memcpya(uint64_t user, unsigned nmemb, unsigned size) in u_memcpya() argument
571 size *= nmemb; in u_memcpya()
/linux-4.1.27/tools/perf/util/
Dannotate.c438 const int nmemb = ARRAY_SIZE(instructions); in ins__find() local
440 return bsearch(name, instructions, nmemb, sizeof(struct ins), ins__cmp); in ins__find()
/linux-4.1.27/tools/perf/
Dbuiltin-trace.c1132 const int nmemb = ARRAY_SIZE(syscall_fmts); in syscall_fmt__find() local
1133 return bsearch(name, syscall_fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp); in syscall_fmt__find()