| /freebsd-13.1/sys/dev/nvdimm/ |
| H A 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()
|
| H A D | nvdimm_acpi.c | 114 ivars = mallocarray(NVDIMM_ROOT_IVAR_MAX, sizeof(uintptr_t), in nvdimm_root_create_devs()
|
| /freebsd-13.1/sys/dev/drm2/ |
| H A 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-13.1/sys/dev/zlib/ |
| H A 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-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A 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-13.1/sys/compat/cloudabi32/ |
| H A 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-13.1/sys/compat/cloudabi64/ |
| H A 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-13.1/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-13.1/sys/mips/mips/ |
| H A D | intr_machdep.c | 138 intrcnt = mallocarray(INTRCNT_COUNT, sizeof(u_long), M_MIPSINTR, in cpu_init_interrupts() 140 intrnames = mallocarray(INTRCNT_COUNT, INTRNAME_LEN, M_MIPSINTR, in cpu_init_interrupts()
|
| /freebsd-13.1/sys/mips/nlm/ |
| H A D | intr_machdep.c | 309 intrcnt = mallocarray(INTRCNT_COUNT, sizeof(u_long), M_MIPSINTR, in cpu_init_interrupts() 311 intrnames = mallocarray(INTRCNT_COUNT, INTRNAME_LEN, M_MIPSINTR, in cpu_init_interrupts()
|
| /freebsd-13.1/sys/x86/x86/ |
| H A 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-13.1/sys/netinet/libalias/ |
| H A D | alias_mod.h | 46 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
|
| /freebsd-13.1/sys/powerpc/powerpc/ |
| H A D | intr_machdep.c | 175 powerpc_intrs = mallocarray(num_io_irqs, sizeof(*powerpc_intrs), in intr_init_sources() 182 intrcnt = mallocarray(nintrcnt, sizeof(u_long), M_INTR, M_WAITOK | in intr_init_sources() 184 intrnames = mallocarray(nintrcnt, MAXCOMLEN + 1, M_INTR, M_WAITOK | in intr_init_sources()
|
| /freebsd-13.1/sys/tests/fib_lookup/ |
| H A D | fib_lookup.c | 87 struct in_addr *paddr = mallocarray(size_old + 1, in add_addr() 107 struct in6_addr *paddr = mallocarray(size_old + 1, in add_addr() 491 pa->arr = mallocarray(pa->alloc_items, sizeof(struct in_addr), in prepare_list() 684 pa->arr = mallocarray(pa->alloc_items, sizeof(struct in6_addr), in prepare_list6()
|
| /freebsd-13.1/sys/netpfil/pf/ |
| H A D | pf_ioctl.c | 2943 pstore = mallocarray(slice_count, in pfioctl() 2968 pstore = mallocarray(slice_count, in pfioctl() 3021 pstore = mallocarray(slice_count, in pfioctl() 3046 pstore = mallocarray(slice_count, in pfioctl() 3959 pfrtstats = mallocarray(io->pfrio_size, in pfioctl() 4084 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl() 4156 pfras = mallocarray(count, sizeof(struct pfr_addr), M_TEMP, in pfioctl() 4219 pfrastats = mallocarray(io->pfrio_size, in pfioctl() 4364 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl() 4438 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl() [all …]
|
| /freebsd-13.1/sys/netinet/ |
| H A D | in_fib_algo.c | 176 bd->rr = mallocarray(count, sizeof(struct bsearch4_record), M_TEMP, M_NOWAIT | M_ZERO); in bsearch4_init() 395 .arr = mallocarray(32, sizeof(struct bsearch4_record), M_TEMP, M_NOWAIT | M_ZERO), in bsearch4_build_array()
|
| /freebsd-13.1/sys/net/route/ |
| H A D | route_tables.c | 183 new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *), in grow_rtables()
|
| /freebsd-13.1/sys/contrib/libnv/ |
| H A D | nv_impl.h | 56 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
|
| /freebsd-13.1/sys/sys/ |
| H A D | malloc.h | 246 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
|
| /freebsd-13.1/sys/kern/ |
| H A D | subr_intr.c | 185 intrcnt = mallocarray(intrcnt_count, sizeof(u_long), M_INTRNG, in intr_irq_init() 187 intrnames = mallocarray(intrcnt_count, INTRNAME_LEN, M_INTRNG, in intr_irq_init() 191 irq_sources = mallocarray(intr_nirq, sizeof(struct intr_irqsrc*), in intr_irq_init() 1740 irq_map = mallocarray(irq_map_count, sizeof(struct intr_map_entry*),
|
| /freebsd-13.1/sys/net/ |
| H A D | if_epair.c | 536 sca->queues = mallocarray(sca->num_queues, sizeof(struct epair_queue), in epair_clone_create() 559 scb->queues = mallocarray(scb->num_queues, sizeof(struct epair_queue), in epair_clone_create()
|
| /freebsd-13.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_private.h | 77 #define bhnd_nv_calloc(n, size) mallocarray((n), (size), M_BHND_NVRAM, \
|
| /freebsd-13.1/sys/contrib/vchiq/interface/compat/ |
| H A D | vchi_bsd.h | 328 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \
|
| /freebsd-13.1/sys/netpfil/ipfw/ |
| H A D | dn_heap.c | 97 p = mallocarray(new_size, sizeof(*p), M_DN_HEAP, M_NOWAIT); in heap_resize()
|
| H A D | dn_sched_fq_codel.c | 455 si->flows = mallocarray(schk->cfg.flows_cnt, in fq_codel_new_sched()
|