| /freebsd-12-stable/sys/dev/nvdimm/ |
| D | nvdimm_nfit.c | 93 *ptrs = mallocarray(count, sizeof(void *), M_NVDIMM, M_WAITOK); in malloc_find_matches() 111 regions = mallocarray(num_spas, sizeof(uint16_t *), M_NVDIMM, in acpi_nfit_get_dimm_ids() 113 region_counts = mallocarray(num_spas, sizeof(int), M_NVDIMM, M_WAITOK); in acpi_nfit_get_dimm_ids() 122 *listp = mallocarray(maxids, sizeof(nfit_handle_t), M_NVDIMM, M_WAITOK); in acpi_nfit_get_dimm_ids() 199 *listp = mallocarray(subtable->HintCount, sizeof(uint64_t *), M_NVDIMM, in acpi_nfit_get_flush_addrs()
|
| D | nvdimm.c | 496 ivars = mallocarray(NVDIMM_ROOT_IVAR_MAX, sizeof(uintptr_t), in nvdimm_root_create_devs()
|
| /freebsd-12-stable/sys/dev/drm2/ |
| D | drm_mem_util.h | 40 return mallocarray(nmemb, size, DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); in drm_calloc_large() 47 return mallocarray(nmemb, size, DRM_MEM_DRIVER, M_NOWAIT); in drm_malloc_ab()
|
| /freebsd-12-stable/sys/dev/zlib/ |
| D | zcalloc.c | 17 return mallocarray(items, size, M_ZLIB, M_WAITOK); in zcalloc_waitok() 24 return mallocarray(items, size, M_ZLIB, M_NOWAIT); in zcalloc_nowait()
|
| /freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
| D | slab.h | 125 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kcalloc() 158 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kmalloc_array() 171 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kvmalloc_array()
|
| /freebsd-12-stable/sys/compat/cloudabi32/ |
| D | cloudabi32_sock.c | 63 iov = mallocarray(ri.ri_data_len, sizeof(struct iovec), in cloudabi32_sys_sock_recv() 107 iov = mallocarray(si.si_data_len, sizeof(struct iovec), in cloudabi32_sys_sock_send()
|
| /freebsd-12-stable/sys/compat/cloudabi64/ |
| D | cloudabi64_sock.c | 63 iov = mallocarray(ri.ri_data_len, sizeof(struct iovec), in cloudabi64_sys_sock_recv() 107 iov = mallocarray(si.si_data_len, sizeof(struct iovec), in cloudabi64_sys_sock_send()
|
| /freebsd-12-stable/sys/contrib/zstd/lib/freebsd/ |
| D | stdlib.h | 41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
|
| /freebsd-12-stable/sys/x86/x86/ |
| D | intr_machdep.c | 173 interrupt_sources = mallocarray(num_io_irqs, sizeof(*interrupt_sources), in intr_init_sources() 176 interrupt_sorted = mallocarray(num_io_irqs, sizeof(*interrupt_sorted), in intr_init_sources() 192 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTR, M_WAITOK | in intr_init_sources() 194 intrnames = mallocarray(nintrcnt, MAXCOMLEN + 1, M_INTR, M_WAITOK | in intr_init_sources()
|
| /freebsd-12-stable/sys/netinet/libalias/ |
| D | alias_mod.h | 46 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
|
| D | alias_sctp.c | 190 #define sn_calloc(n,x) mallocarray((n), (x), M_SCTPNAT, M_NOWAIT|M_ZERO)
|
| /freebsd-12-stable/sys/netpfil/pf/ |
| D | pf_ioctl.c | 531 ts->namehash = mallocarray(hashsize, sizeof(*ts->namehash), M_PFHASH, in pf_init_tagset() 533 ts->taghash = mallocarray(hashsize, sizeof(*ts->taghash), M_PFHASH, in pf_init_tagset() 2918 pstore = mallocarray(slice_count, in pfioctl() 2943 pstore = mallocarray(slice_count, in pfioctl() 2997 pstore = mallocarray(slice_count, in pfioctl() 3022 pstore = mallocarray(slice_count, in pfioctl() 3816 pfrts = mallocarray(io->pfrio_size, sizeof(struct pfr_table), in pfioctl() 3848 pfrts = mallocarray(io->pfrio_size, sizeof(struct pfr_table), in pfioctl() 3884 pfrts = mallocarray(io->pfrio_size, sizeof(struct pfr_table), in pfioctl() 3922 pfrtstats = mallocarray(io->pfrio_size, in pfioctl() [all …]
|
| D | pf.c | 995 V_pf_keyhash = mallocarray(pf_hashsize, sizeof(struct pf_keyhash), in pf_initialize() 997 V_pf_idhash = mallocarray(pf_hashsize, sizeof(struct pf_idhash), in pf_initialize() 1007 V_pf_keyhash = mallocarray(pf_hashsize, in pf_initialize() 1009 V_pf_idhash = mallocarray(pf_hashsize, in pf_initialize() 1028 V_pf_srchash = mallocarray(pf_srchashsize, in pf_initialize() 1035 V_pf_srchash = mallocarray(pf_srchashsize, in pf_initialize()
|
| /freebsd-12-stable/sys/sys/ |
| D | malloc.h | 238 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
|
| /freebsd-12-stable/sys/contrib/libnv/ |
| D | nv_impl.h | 56 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
|
| /freebsd-12-stable/sys/dev/bhnd/nvram/ |
| D | bhnd_nvram_private.h | 77 #define bhnd_nv_calloc(n, size) mallocarray((n), (size), M_BHND_NVRAM, \
|
| /freebsd-12-stable/sys/contrib/vchiq/interface/compat/ |
| D | vchi_bsd.h | 332 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \
|
| /freebsd-12-stable/sys/netpfil/ipfw/ |
| D | dn_heap.c | 97 p = mallocarray(new_size, sizeof(*p), M_DN_HEAP, M_NOWAIT); in heap_resize()
|
| D | dn_sched_fq_codel.c | 455 si->flows = mallocarray(schk->cfg.flows_cnt, in fq_codel_new_sched()
|
| D | dn_sched_fq_pie.c | 1040 si->si_extra->flows = mallocarray(schk->cfg.flows_cnt, in fq_pie_new_sched()
|
| /freebsd-12-stable/sys/dev/bhnd/siba/ |
| D | siba_erom.c | 625 out = mallocarray(sc->io.ncores, sizeof(*out), M_BHND, M_NOWAIT); in siba_erom_get_core_table()
|
| /freebsd-12-stable/sys/netinet/ |
| D | ip_mroute.c | 2832 V_viftable = mallocarray(MAXVIFS, sizeof(*V_viftable), in vnet_mroute_init() 2834 V_bw_meter_timers = mallocarray(BW_METER_BUCKETS, in vnet_mroute_init() 2836 V_bw_upcalls = mallocarray(BW_UPCALLS_MAX, sizeof(*V_bw_upcalls), in vnet_mroute_init()
|
| /freebsd-12-stable/sys/dev/bhnd/bcma/ |
| D | bcma_erom.c | 396 buffer = mallocarray(count, sizeof(struct bhnd_core_info), M_BHND, in bcma_erom_get_core_table()
|
| /freebsd-12-stable/sys/kern/ |
| D | kern_malloc.c | 700 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() function
|
| /freebsd-12-stable/sys/dev/bxe/ |
| D | ecore_sp.h | 162 mallocarray(_len, _size, M_TEMP, (M_NOWAIT | M_ZERO))
|