Home
last modified time | relevance | path

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

123

/freebsd/sys/dev/nvdimm/
H A Dnvdimm_nfit.c90 *ptrs = mallocarray(count, sizeof(void *), M_NVDIMM, M_WAITOK); in malloc_find_matches()
108 regions = mallocarray(num_spas, sizeof(uint16_t *), M_NVDIMM, in acpi_nfit_get_dimm_ids()
110 region_counts = mallocarray(num_spas, sizeof(int), M_NVDIMM, M_WAITOK); in acpi_nfit_get_dimm_ids()
119 *listp = mallocarray(maxids, sizeof(nfit_handle_t), M_NVDIMM, M_WAITOK); in acpi_nfit_get_dimm_ids()
196 *listp = mallocarray(subtable->HintCount, sizeof(uint64_t *), M_NVDIMM, in acpi_nfit_get_flush_addrs()
H A Dnvdimm_acpi.c117 ivars = mallocarray(NVDIMM_ROOT_IVAR_MAX, sizeof(uintptr_t), in nvdimm_root_create_devs()
/freebsd/sys/dev/drm2/
H A Ddrm_mem_util.h38 return mallocarray(nmemb, size, DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); in drm_calloc_large()
45 return mallocarray(nmemb, size, DRM_MEM_DRIVER, M_NOWAIT); in drm_malloc_ab()
/freebsd/sys/dev/zlib/
H A Dzcalloc.c16 return mallocarray(items, size, M_ZLIB, M_WAITOK); in zcalloc_waitok()
23 return mallocarray(items, size, M_ZLIB, M_NOWAIT); in zcalloc_nowait()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dslab.h124 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags)));
157 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in vmalloc_32()
170 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kmalloc_array_node()
/freebsd/sys/contrib/zstd/lib/freebsd/
H A Dstdlib.h41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
/freebsd/sys/x86/x86/
H A Dintr_machdep.c170 interrupt_sources = mallocarray(num_io_irqs, sizeof(*interrupt_sources), in intr_init_sources()
173 interrupt_sorted = mallocarray(num_io_irqs, sizeof(*interrupt_sorted), in intr_init_sources()
189 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTR, M_WAITOK | in intr_init_sources()
191 intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTR, M_WAITOK | in intr_init_sources()
/freebsd/sys/netinet/libalias/
H A Dalias_mod.h44 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
/freebsd/sys/dev/hwreset/
H A Dhwreset_array.c116 resets->rst_array = mallocarray(count, sizeof(hwreset_t), M_HWRESET, in hwreset_array_get_ofw()
/freebsd/sys/tests/fib_lookup/
H A Dfib_lookup.c86 struct in_addr *paddr = mallocarray(size_old + 1, in add_addr()
106 struct in6_addr *paddr = mallocarray(size_old + 1, in add_addr()
490 pa->arr = mallocarray(pa->alloc_items, sizeof(struct in_addr), in prepare_list()
683 pa->arr = mallocarray(pa->alloc_items, sizeof(struct in6_addr), in prepare_list6()
/freebsd/sys/powerpc/powerpc/
H A Dintr_machdep.c174 powerpc_intrs = mallocarray(num_io_irqs, sizeof(*powerpc_intrs), in intr_init_sources()
181 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTR, M_WAITOK | in intr_init_sources()
183 intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTR, M_WAITOK | in intr_init_sources()
/freebsd/sys/netpfil/pf/
H A Dpf_ioctl.c637 ts->namehash = mallocarray(hashsize, sizeof(*ts->namehash), M_PFHASH, in pf_init_tagset()
639 ts->taghash = mallocarray(hashsize, sizeof(*ts->taghash), M_PFHASH, in pf_init_tagset()
1465 mallocarray(rs->rules[rs_cnt].inactive.rcount, in pf_setup_pfsync_matching()
3952 pstore = mallocarray(slice_count, in pfioctl()
3977 pstore = mallocarray(slice_count, in pfioctl()
4031 pstore = mallocarray(slice_count, in pfioctl()
4056 pstore = mallocarray(slice_count, in pfioctl()
4654 pfrts = mallocarray(io->pfrio_size, sizeof(struct pfr_table), in pfioctl()
4686 pfrts = mallocarray(io->pfrio_size, sizeof(struct pfr_table), in pfioctl()
4722 pfrts = mallocarray(io->pfrio_size, sizeof(struct pfr_table), in pfioctl()
[all …]
/freebsd/sys/kern/
H A Dsubr_smp.c176 stoppcbs = mallocarray(mp_maxid + 1, sizeof(struct pcb), M_DEVBUF, in mp_start()
722 group = mallocarray((mp_maxid + 1) * MAX_CACHE_LEVELS + 1, in smp_topo_alloc()
985 gen = mallocarray(sizeof(u_int), mp_maxid + 1, M_TEMP, in quiesce_cpus()
H A Dsubr_intr.c209 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTRNG, in intr_irq_init()
211 intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTRNG, in intr_irq_init()
219 irq_sources = mallocarray(intr_nirq, sizeof(struct intr_irqsrc*), in intr_irq_init()
1790 irq_map = mallocarray(irq_map_count, sizeof(struct intr_map_entry*),
/freebsd/sys/netinet/
H A Din_fib_algo.c175 bd->rr = mallocarray(count, sizeof(struct bsearch4_record), M_TEMP, M_NOWAIT | M_ZERO); in bsearch4_init()
394 .arr = mallocarray(32, sizeof(struct bsearch4_record), M_TEMP, M_NOWAIT | M_ZERO), in bsearch4_build_array()
/freebsd/sys/dev/firmware/arm/
H A Dscmi_virtio.c93 pool = mallocarray(max_msg, max_msg_sz, M_DEVBUF, M_ZERO | M_WAITOK); in scmi_virtio_p2a_pool_init()
/freebsd/sys/dev/xen/cpu/
H A Dxen_acpi_cpu.c288 sc->cpu_cx_states = mallocarray(count, sizeof(struct xen_processor_cx), in acpi_fetch_cx()
357 sc->cpu_px_states = mallocarray(count, sizeof(struct xen_processor_px), in acpi_fetch_px()
/freebsd/sys/sys/
H A Dmalloc.h248 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
/freebsd/sys/contrib/libnv/
H A Dnv_impl.h64 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
/freebsd/sys/dev/qcom_ess_edma/
H A Dqcom_ess_edma_desc.c157 ring->sw_desc = mallocarray(count, sw_desc_size, M_TEMP, in qcom_ess_edma_desc_ring_setup()
/freebsd/sys/net/route/
H A Droute_tables.c231 new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *), in grow_rtables()
/freebsd/sys/dev/acpica/
H A Dacpi_ged.c173 sc->evts = mallocarray(sc->numevts, sizeof(*sc->evts), M_ACPIGED, in acpi_ged_attach()
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_aer.c245 sc->aer = mallocarray(sc->num_aer, sizeof(*sc->aer), M_NVMF, in nvmf_init_aer()
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_private.h76 #define bhnd_nv_calloc(n, size) mallocarray((n), (size), M_BHND_NVRAM, \
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h328 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \

123