| /f-stack/freebsd/contrib/zstd/lib/freebsd/ |
| H A D | stdlib.h | 41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/netinet/libalias/ |
| H A D | alias_mod.h | 46 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
|
| H A D | alias_sctp.c | 190 #define sn_calloc(n,x) mallocarray((n), (x), M_SCTPNAT, M_NOWAIT|M_ZERO)
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_ioctl.c | 3369 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 D | pf.c | 845 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 D | if_pfsync.c | 362 sc->sc_buckets = mallocarray(pfsync_buckets, sizeof(*sc->sc_buckets), in pfsync_clone_create()
|
| /f-stack/freebsd/net/route/ |
| H A D | route_tables.c | 183 new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *), in grow_rtables()
|
| H A D | route_ctl.c | 993 wn_new = mallocarray(num_nhops, sizeof(struct weightened_nhop), in change_mpath_route()
|
| /f-stack/freebsd/sys/ |
| H A D | malloc.h | 248 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type,
|
| /f-stack/freebsd/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()
|
| H A D | ip_mroute.c | 2832 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 D | nv_impl.h | 56 #define nv_calloc(n, size) mallocarray((n), (size), M_NVLIST, \
|
| /f-stack/freebsd/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() 1731 irq_map = mallocarray(irq_map_count, sizeof(struct intr_map_entry*),
|
| H A D | kern_malloc.c | 798 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() function
|
| H A D | sys_generic.c | 1467 kfds = mallocarray(nfds, sizeof(*kfds), M_TEMP, M_WAITOK); in kern_poll()
|
| /f-stack/freebsd/contrib/vchiq/interface/compat/ |
| H A D | vchi_bsd.h | 328 #define kcalloc(n, size, flags) mallocarray((n), (size), M_VCHI, \
|
| /f-stack/freebsd/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 | 457 si->flows = mallocarray(schk->cfg.flows_cnt, in fq_codel_new_sched()
|
| H A D | dn_sched_fq_pie.c | 1035 si->si_extra->flows = mallocarray(schk->cfg.flows_cnt, in fq_pie_new_sched()
|
| /f-stack/lib/ |
| H A D | ff_glue.c | 1246 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() function
|
| /f-stack/freebsd/opencrypto/ |
| H A D | crypto.c | 357 crypto_ret_workers = mallocarray(crypto_workers_num, in crypto_init()
|