| /f-stack/lib/ |
| H A D | ff_freebsd_init.c | 97 pcpup = malloc(sizeof(struct pcpu), M_DEVBUF, M_ZERO); in ff_freebsd_init() 105 bootmem = (void *)kmem_malloc(boot_pages*PAGE_SIZE, M_ZERO); in ff_freebsd_init() 111 …_slab_hash = (struct uma_page_head *)kmem_malloc(sizeof(struct uma_page)*num_hash_buckets, M_ZERO); in ff_freebsd_init()
|
| /f-stack/freebsd/netgraph/atm/sscfu/ |
| H A D | ng_sscfu_cust.h | 56 ((PTR) = (CAST)malloc((SIZE), M_NG_SSCFU, M_NOWAIT | M_ZERO)) 73 ((PTR) = (CAST)malloc((SIZE), M_NG_SSCFU_INS, M_NOWAIT | M_ZERO)) 79 M_NG_SSCFU_SIG, M_NOWAIT | M_ZERO))
|
| /f-stack/freebsd/net/route/ |
| H A D | nhop.c | 79 ctl = malloc(sizeof(struct nh_control), M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib() 87 ptr = malloc(alloc_size, M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib() 94 ptr = malloc(bitmask_get_size(num_items), M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib() 246 nh_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize() 252 nh_idx_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
|
| H A D | nhgrp.c | 222 nh_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize() 228 nh_idx_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize() 267 malloc_flags = (malloc_flags & (M_NOWAIT | M_WAITOK)) | M_ZERO; in nhgrp_ctl_alloc_default()
|
| /f-stack/freebsd/contrib/dpdk_rte_lpm/ |
| H A D | rte_shim.h | 6 #define rte_zmalloc(_type, _size, _align) malloc(_size, M_TEMP, M_NOWAIT | M_ZERO) 7 #define rte_zmalloc_socket(_type, _size, _align, _s) malloc(_size, M_TEMP, M_NOWAIT | M_ZERO)
|
| /f-stack/freebsd/kern/ |
| H A D | kern_dtrace.c | 74 p->p_dtrace = malloc(KDTRACE_PROC_SIZE, M_KDTRACE, M_WAITOK|M_ZERO); in kdtrace_proc_ctor() 97 td->td_dtrace = malloc(KDTRACE_THREAD_SIZE, M_KDTRACE, M_WAITOK|M_ZERO); in kdtrace_thread_ctor()
|
| H A D | kern_osd.c | 178 M_NOWAIT | M_ZERO); in osd_deregister() 182 osdm[type].osd_nmethods, M_OSD, M_NOWAIT | M_ZERO); in osd_deregister() 214 return (malloc(sizeof(void *) * slot, M_OSD, M_WAITOK | M_ZERO)); in osd_reserve() 258 M_OSD, M_NOWAIT | M_ZERO); in osd_set_reserved() 368 sizeof(void *) * (i + 1), M_OSD, M_NOWAIT | M_ZERO); in do_osd_del()
|
| H A D | imgact_binmisc.c | 147 ibe->ibe_interpreter = malloc(len, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_populate_interp() 165 ibe = malloc(sizeof(*ibe), M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry() 167 ibe->ibe_name = malloc(namesz, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry() 172 ibe->ibe_magic = malloc(xbe->xbe_msize, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry() 175 ibe->ibe_mask = malloc(xbe->xbe_msize, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry() 416 xbe = malloc(sizeof(*xbe) * count, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_get_all_entries()
|
| H A D | subr_eventhandler.c | 83 M_EVENTHANDLER, M_WAITOK | M_ZERO); in eventhandler_find_or_create_list() 152 M_WAITOK | M_ZERO); in eventhandler_register() 176 M_EVENTHANDLER, M_WAITOK | M_ZERO); in vimage_eventhandler_register()
|
| /f-stack/freebsd/x86/xen/ |
| H A D | pv.c | 363 bootstacks[cpu] = (void *)kmem_malloc(stacksize, M_WAITOK | M_ZERO); in start_xen_ap() 364 doublefault_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap() 365 mce_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap() 366 nmi_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap() 367 dbg_stack = (void *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap() 368 dpcpu = (void *)kmem_malloc(DPCPU_SIZE, M_WAITOK | M_ZERO); in start_xen_ap() 373 ctxt = malloc(sizeof(*ctxt), M_TEMP, M_WAITOK | M_ZERO); in start_xen_ap()
|
| /f-stack/freebsd/sys/ |
| H A D | malloc.h | 57 #define M_ZERO 0x0100 /* bzero the allocation */ macro 233 ((flags) & M_ZERO) != 0) { \ 234 _malloc_item = malloc(_size, type, (flags) &~ M_ZERO); \ 305 #define M_ZERO 0 macro
|
| /f-stack/freebsd/netinet/libalias/ |
| H A D | alias_mod.h | 45 #define malloc(x) malloc(x, M_ALIAS, M_NOWAIT|M_ZERO) 46 #define calloc(n, x) mallocarray((n), (x), M_ALIAS, M_NOWAIT|M_ZERO)
|
| /f-stack/freebsd/contrib/rdma/krping/ |
| H A D | krping_dev.c | 114 s = malloc(sizeof(*s), M_DEVBUF, M_NOWAIT | M_ZERO); in krping_copy_stats() 118 s->stats = malloc(sizeof(*stats), M_DEVBUF, M_NOWAIT | M_ZERO); in krping_copy_stats() 177 krpingmsg = malloc(sizeof *krpingmsg, M_DEVBUF, M_WAITOK|M_ZERO); in krping_write()
|
| /f-stack/freebsd/arm64/coresight/ |
| H A D | coresight_fdt.c | 87 M_CORESIGHT, M_WAITOK | M_ZERO); in coresight_fdt_get_ports() 139 M_CORESIGHT, M_WAITOK | M_ZERO); in coresight_fdt_get_platform_data()
|
| H A D | coresight_acpi.c | 180 buf.Pointer = malloc(buf.Length, M_TEMP, M_NOWAIT | M_ZERO); in cs_get_dsd_graph() 275 M_CORESIGHT, M_WAITOK | M_ZERO); in cs_acpi_record_endpoint() 359 M_CORESIGHT, M_WAITOK | M_ZERO); in coresight_acpi_get_platform_data()
|
| /f-stack/freebsd/vm/ |
| H A D | vm_init.c | 196 firstaddr = kmem_alloc_attr(size, M_ZERO | M_NOWAIT, in vm_ksubmap_init() 200 firstaddr = kmem_malloc(size, M_ZERO | M_WAITOK); in vm_ksubmap_init()
|
| /f-stack/freebsd/netgraph/atm/sscop/ |
| H A D | ng_sscop_cust.h | 64 ((PTR) = (CAST)malloc((SIZE), M_NG_SSCOP, M_NOWAIT | M_ZERO)) 89 ((PTR) = (CAST)malloc((SIZE), M_NG_SSCOP_INS, M_NOWAIT | M_ZERO)) 95 M_NG_SSCOP_MSG, M_NOWAIT | M_ZERO)) 101 M_NG_SSCOP_SIG, M_NOWAIT | M_ZERO))
|
| /f-stack/freebsd/netinet/ |
| H A D | in_fib_algo.c | 161 mem = malloc(sz, M_RTABLE, M_NOWAIT | M_ZERO); in bsearch4_init() 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() 567 lr = malloc(sizeof(struct lradix4_data), M_RTABLE, M_NOWAIT | M_ZERO); in lradix4_init() 574 lr->mem = malloc(sz, M_RTABLE, M_NOWAIT | M_ZERO); in lradix4_init() 715 r4 = malloc(sizeof(struct radix4_data), M_RTABLE, M_NOWAIT | M_ZERO); in radix4_init()
|
| /f-stack/freebsd/arm/ti/clk/ |
| H A D | clock_common.c | 74 clk->clock_cells = malloc(numbytes_clocks, M_DEVBUF, M_WAITOK|M_ZERO); in read_clock_cells() 76 M_DEVBUF, M_WAITOK|M_ZERO); in read_clock_cells()
|
| /f-stack/tools/compat/include/netgraph/ |
| H A D | ng_message.h | 385 + (len), M_NETGRAPH_MSG, (how) | M_ZERO); \ 403 + (len), M_NETGRAPH_MSG, (how) | M_ZERO); \ 422 + (msg)->header.arglen, M_NETGRAPH_MSG, (how) | M_ZERO); \
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_message.h | 382 + (len), M_NETGRAPH_MSG, (how) | M_ZERO); \ 400 + (len), M_NETGRAPH_MSG, (how) | M_ZERO); \ 419 + (msg)->header.arglen, M_NETGRAPH_MSG, (how) | M_ZERO); \
|
| /f-stack/freebsd/mips/nlm/dev/sec/ |
| H A D | nlmrsa.c | 162 M_NOWAIT | M_ZERO); in xlp_rsa_init() 166 (M_WAITOK | M_ZERO), in xlp_rsa_init() 433 M_NOWAIT | M_ZERO); in xlp_rsa_kprocess() 461 M_NOWAIT | M_ZERO); in xlp_rsa_kprocess()
|
| /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/netgraph/atm/ccatm/ |
| H A D | ng_ccatm_cust.h | 53 #define CCZALLOC(S) (malloc((S), M_NG_CCATM, M_NOWAIT | M_ZERO))
|
| /f-stack/freebsd/netinet6/ |
| H A D | in6_fib_algo.c | 135 lr = malloc(sizeof(struct lradix6_data), M_RTABLE, M_NOWAIT | M_ZERO); in lradix6_init() 142 mem = malloc((count + 1) * LRADIX6_ITEM_SZ, M_RTABLE, M_NOWAIT | M_ZERO); in lradix6_init() 299 r6 = malloc(sizeof(struct radix6_data), M_RTABLE, M_NOWAIT | M_ZERO); in radix6_init()
|