Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/freebsd/
H A Dstdlib.h41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
/f-stack/freebsd/mips/mips/
H A Dintr_machdep.c138 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()
/f-stack/freebsd/mips/nlm/
H A Dintr_machdep.c309 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()
/f-stack/freebsd/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)
/f-stack/freebsd/x86/x86/
H A Dintr_machdep.c173 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()
/f-stack/freebsd/netpfil/pf/
H A Dpf_ioctl.c3369 pfrtstats = mallocarray(io->pfrio_size, in pfioctl()
3494 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3532 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3574 pfras = mallocarray(count, sizeof(struct pfr_addr), M_TEMP, in pfioctl()
3613 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3645 pfrastats = mallocarray(io->pfrio_size, in pfioctl()
3677 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3715 pfras = mallocarray(io->pfrio_size, sizeof(struct pfr_addr), in pfioctl()
3806 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl()
3883 ioes = mallocarray(io->size, sizeof(struct pfioc_trans_e), in pfioctl()
[all …]
H A Dpf.c845 V_pf_keyhash = mallocarray(pf_hashsize, sizeof(struct pf_keyhash), in pf_initialize()
847 V_pf_idhash = mallocarray(pf_hashsize, sizeof(struct pf_idhash), in pf_initialize()
857 V_pf_keyhash = mallocarray(pf_hashsize, in pf_initialize()
859 V_pf_idhash = mallocarray(pf_hashsize, in pf_initialize()
878 V_pf_srchash = mallocarray(pf_srchashsize, in pf_initialize()
885 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()
/f-stack/freebsd/net/route/
H A Droute_tables.c183 new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *), in grow_rtables()
H A Droute_ctl.c993 wn_new = mallocarray(num_nhops, sizeof(struct weightened_nhop), in change_mpath_route()
/f-stack/freebsd/sys/
H A Dmalloc.h248 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
/f-stack/freebsd/netinet/
H A Din_fib_algo.c176 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()
H A Dip_mroute.c2832 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()
/f-stack/freebsd/contrib/libnv/
H A Dnv_impl.h56 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
/f-stack/freebsd/kern/
H A Dsubr_intr.c185 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()
1731 irq_map = mallocarray(irq_map_count, sizeof(struct intr_map_entry*),
H A Dkern_malloc.c798 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() function
H A Dsys_generic.c1467 kfds = mallocarray(nfds, sizeof(*kfds), M_TEMP, M_WAITOK); in kern_poll()
/f-stack/freebsd/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h328 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \
/f-stack/freebsd/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.c1035 si->si_extra->flows = mallocarray(schk->cfg.flows_cnt, in fq_pie_new_sched()
/f-stack/lib/
H A Dff_glue.c1246 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() function
/f-stack/freebsd/opencrypto/
H A Dcrypto.c357 crypto_ret_workers = mallocarray(crypto_workers_num, in crypto_init()