| /freebsd-14.2/sys/dev/nvdimm/ |
| H A D | nvdimm_nfit.c | 91 *ptrs = mallocarray(count, sizeof(void *), M_NVDIMM, M_WAITOK); in malloc_find_matches() 109 regions = mallocarray(num_spas, sizeof(uint16_t *), M_NVDIMM, in acpi_nfit_get_dimm_ids() 111 region_counts = mallocarray(num_spas, sizeof(int), M_NVDIMM, M_WAITOK); in acpi_nfit_get_dimm_ids() 120 *listp = mallocarray(maxids, sizeof(nfit_handle_t), M_NVDIMM, M_WAITOK); in acpi_nfit_get_dimm_ids() 197 *listp = mallocarray(subtable->HintCount, sizeof(uint64_t *), M_NVDIMM, in acpi_nfit_get_flush_addrs()
|
| H A D | nvdimm_acpi.c | 117 ivars = mallocarray(NVDIMM_ROOT_IVAR_MAX, sizeof(uintptr_t), in nvdimm_root_create_devs()
|
| /freebsd-14.2/sys/dev/drm2/ |
| H A D | drm_mem_util.h | 38 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-14.2/sys/dev/zlib/ |
| H A D | zcalloc.c | 16 return mallocarray(items, size, M_ZLIB, M_WAITOK); in zcalloc_waitok() 23 return mallocarray(items, size, M_ZLIB, M_NOWAIT); in zcalloc_nowait()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/ |
| H A D | slab.h | 124 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kcalloc() 157 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kmalloc_array() 170 return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags))); in kvmalloc_array()
|
| /freebsd-14.2/sys/contrib/zstd/lib/freebsd/ |
| H A D | stdlib.h | 41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
|
| /freebsd-14.2/sys/x86/x86/ |
| H A D | intr_machdep.c | 170 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-14.2/sys/netinet/libalias/ |
| H A D | alias_mod.h | 44 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
|
| /freebsd-14.2/sys/dev/extres/hwreset/ |
| H A D | hwreset_array.c | 116 resets->rst_array = mallocarray(count, sizeof(hwreset_t), M_HWRESET, in hwreset_array_get_ofw()
|
| /freebsd-14.2/sys/powerpc/powerpc/ |
| H A D | intr_machdep.c | 172 powerpc_intrs = mallocarray(num_io_irqs, sizeof(*powerpc_intrs), in intr_init_sources() 179 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTR, M_WAITOK | in intr_init_sources() 181 intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTR, M_WAITOK | in intr_init_sources()
|
| /freebsd-14.2/sys/tests/fib_lookup/ |
| H A D | fib_lookup.c | 86 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-14.2/sys/netpfil/pf/ |
| H A D | pf_ioctl.c | 1465 mallocarray(rs->rules[rs_cnt].inactive.rcount, in pf_setup_pfsync_matching() 3773 pstore = mallocarray(slice_count, in pfioctl() 3798 pstore = mallocarray(slice_count, in pfioctl() 3852 pstore = mallocarray(slice_count, in pfioctl() 3877 pstore = mallocarray(slice_count, in pfioctl() 4793 pfrtstats = mallocarray(io->pfrio_size, in pfioctl() 4990 pfras = mallocarray(count, sizeof(struct pfr_addr), M_TEMP, in pfioctl() 5053 pfrastats = mallocarray(io->pfrio_size, in pfioctl() 5198 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl() 5281 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl() [all …]
|
| /freebsd-14.2/sys/netinet/ |
| H A D | in_fib_algo.c | 175 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-14.2/sys/kern/ |
| H A D | subr_smp.c | 183 stoppcbs = mallocarray(mp_maxid + 1, sizeof(struct pcb), M_DEVBUF, in mp_start() 731 group = mallocarray((mp_maxid + 1) * MAX_CACHE_LEVELS + 1, in smp_topo_alloc() 994 gen = mallocarray(sizeof(u_int), mp_maxid + 1, M_TEMP, in quiesce_cpus()
|
| H A D | subr_intr.c | 207 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTRNG, in intr_irq_init() 209 intrnames = mallocarray(nintrcnt, INTRNAME_LEN, M_INTRNG, in intr_irq_init() 217 irq_sources = mallocarray(intr_nirq, sizeof(struct intr_irqsrc*), in intr_irq_init() 1765 irq_map = mallocarray(irq_map_count, sizeof(struct intr_map_entry*),
|
| /freebsd-14.2/sys/dev/xen/cpu/ |
| H A D | xen_acpi_cpu.c | 288 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-14.2/sys/contrib/libnv/ |
| H A D | nv_impl.h | 56 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
|
| /freebsd-14.2/sys/sys/ |
| H A D | malloc.h | 245 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
|
| /freebsd-14.2/sys/dev/acpica/ |
| H A D | acpi_ged.c | 173 sc->evts = mallocarray(sc->numevts, sizeof(*sc->evts), M_ACPIGED, in acpi_ged_attach()
|
| /freebsd-14.2/sys/net/route/ |
| H A D | route_tables.c | 232 new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *), in grow_rtables()
|
| /freebsd-14.2/sys/contrib/vchiq/interface/compat/ |
| H A D | vchi_bsd.h | 328 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \
|
| /freebsd-14.2/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_private.h | 76 #define bhnd_nv_calloc(n, size) mallocarray((n), (size), M_BHND_NVRAM, \
|
| /freebsd-14.2/sys/netpfil/ipfw/ |
| H A D | dn_heap.c | 94 p = mallocarray(new_size, sizeof(*p), M_DN_HEAP, M_NOWAIT); in heap_resize()
|
| H A D | dn_sched_fq_codel.c | 456 si->flows = mallocarray(schk->cfg.flows_cnt, in fq_codel_new_sched()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/src/ |
| H A D | linux_compat.c | 2722 __cpu_data = mallocarray(mp_maxid + 1, in linux_compat_init() 2765 static_single_cpu_mask = mallocarray(mp_maxid + 1, in linux_compat_init() 2785 static_single_cpu_mask_lcs = mallocarray(mp_ncpus, in linux_compat_init() 2806 static_single_cpu_mask_lcs = mallocarray(_BITSET_BITS, in linux_compat_init()
|