Home
last modified time | relevance | path

Searched refs:mallocarray (Results 1 – 25 of 28) sorted by relevance

12

/freebsd-12.1/sys/dev/nvdimm/
H A Dnvdimm_nfit.c93 *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()
H A Dnvdimm.c432 ivars = mallocarray(NVDIMM_ROOT_IVAR_MAX, sizeof(uintptr_t), in nvdimm_root_create_devs()
/freebsd-12.1/sys/dev/drm2/
H A Ddrm_mem_util.h40 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.1/sys/compat/linuxkpi/common/include/linux/
H A Dslab.h118 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kcalloc()
136 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kmalloc_array()
142 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kvmalloc_array()
/freebsd-12.1/sys/compat/cloudabi32/
H A Dcloudabi32_sock.c63 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.1/sys/compat/cloudabi64/
H A Dcloudabi64_sock.c63 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.1/sys/contrib/zstd/lib/freebsd/
H A Dstdlib.h41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
/freebsd-12.1/sys/x86/x86/
H A Dintr_machdep.c174 interrupt_sources = mallocarray(num_io_irqs, sizeof(*interrupt_sources), in intr_init_sources()
177 interrupt_sorted = mallocarray(num_io_irqs, sizeof(*interrupt_sorted), in intr_init_sources()
193 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTR, M_WAITOK | in intr_init_sources()
195 intrnames = mallocarray(nintrcnt, MAXCOMLEN + 1, M_INTR, M_WAITOK | in intr_init_sources()
/freebsd-12.1/sys/netinet/libalias/
H A Dalias_mod.h46 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
H A Dalias_sctp.c190 #define sn_calloc(n,x) mallocarray((n), (x), M_SCTPNAT, M_NOWAIT|M_ZERO)
/freebsd-12.1/sys/netpfil/pf/
H A Dpf_ioctl.c3045 pfrtstats = mallocarray(io->pfrio_size, in pfioctl()
3158 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3196 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3238 pfras = mallocarray(count, sizeof(struct pfr_addr), M_TEMP, in pfioctl()
3277 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3309 pfrastats = mallocarray(io->pfrio_size, in pfioctl()
3341 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3379 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3470 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl()
3547 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl()
[all …]
H A Dpf.c814 V_pf_keyhash = mallocarray(pf_hashsize, sizeof(struct pf_keyhash), in pf_initialize()
816 V_pf_idhash = mallocarray(pf_hashsize, sizeof(struct pf_idhash), in pf_initialize()
826 V_pf_keyhash = mallocarray(pf_hashsize, in pf_initialize()
828 V_pf_idhash = mallocarray(pf_hashsize, in pf_initialize()
847 V_pf_srchash = mallocarray(pf_srchashsize, in pf_initialize()
854 V_pf_srchash = mallocarray(pf_srchashsize, in pf_initialize()
H A Dif_pfsync.c362 sc->sc_buckets = mallocarray(pfsync_buckets, sizeof(*sc->sc_buckets), in pfsync_clone_create()
/freebsd-12.1/sys/sys/
H A Dmalloc.h238 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
/freebsd-12.1/sys/contrib/libnv/
H A Dnv_impl.h56 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
/freebsd-12.1/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_private.h77 #define bhnd_nv_calloc(n, size) mallocarray((n), (size), M_BHND_NVRAM, \
/freebsd-12.1/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h332 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \
/freebsd-12.1/sys/netpfil/ipfw/
H A Ddn_heap.c97 p = mallocarray(new_size, sizeof(*p), M_DN_HEAP, M_NOWAIT); in heap_resize()
H A Ddn_sched_fq_codel.c457 si->flows = mallocarray(schk->cfg.flows_cnt, in fq_codel_new_sched()
H A Ddn_sched_fq_pie.c1037 si->si_extra->flows = mallocarray(schk->cfg.flows_cnt, in fq_pie_new_sched()
/freebsd-12.1/sys/dev/bhnd/siba/
H A Dsiba_erom.c625 out = mallocarray(sc->io.ncores, sizeof(*out), M_BHND, M_NOWAIT); in siba_erom_get_core_table()
/freebsd-12.1/sys/dev/bhnd/bcma/
H A Dbcma_erom.c396 buffer = mallocarray(count, sizeof(struct bhnd_core_info), M_BHND, in bcma_erom_get_core_table()
/freebsd-12.1/sys/kern/
H A Dkern_malloc.c662 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() function
/freebsd-12.1/sys/dev/bxe/
H A Decore_sp.h162 mallocarray(_len, _size, M_TEMP, (M_NOWAIT | M_ZERO))
/freebsd-12.1/share/man/man9/
H A DMakefile1304 malloc.9 mallocarray.9 \

12