/freebsd/sys/netinet/ |
H A D | ip_encap.c | 185 void *arg, int mflags) in encap_register_srcaddr() argument 191 p = malloc(sizeof(*p), M_NETADDR, mflags); in encap_register_srcaddr() 235 void *arg, int mflags) in encap_attach() argument 245 ep = malloc(sizeof(*ep), M_NETADDR, mflags); in encap_attach() 339 ip_encap_register_srcaddr(encap_srcaddr_t func, void *arg, int mflags) in ip_encap_register_srcaddr() argument 342 return (encap_register_srcaddr(&ipv4_srcaddrtab, func, arg, mflags)); in ip_encap_register_srcaddr() 353 ip_encap_attach(const struct encap_config *cfg, void *arg, int mflags) in ip_encap_attach() argument 356 return (encap_attach(&ipv4_encaptab, cfg, arg, mflags)); in ip_encap_attach() 378 ip6_encap_register_srcaddr(encap_srcaddr_t func, void *arg, int mflags) in ip6_encap_register_srcaddr() argument 381 return (encap_register_srcaddr(&ipv6_srcaddrtab, func, arg, mflags)); in ip6_encap_register_srcaddr() [all …]
|
H A D | ip_encap.h | 66 void *arg, int mflags); 68 void *arg, int mflags); 71 void *arg, int mflags); 73 void *arg, int mflags);
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_restrict.c | 136 printf("%s/%s: hits %u ippeerlimit %hd mflags %s rflags %s", in dump_restrict() 138 mflags_str(res->mflags), in dump_restrict() 198 * the same address and mask but differing match flags (mflags). in init_restrict() 210 * have no RESM_ bits set, so the sort order for mflags is first in init_restrict() 343 && ( !(RESM_NTPONLY & res->mflags) in match_restrict4_addr() 371 && ( !(RESM_NTPONLY & res->mflags) in match_restrict6_addr() 384 * Exact match is addr, mask, and mflags all equal. in match_restrict6_addr() 386 * requires the caller to populate a restrict_u with mflags and either in match_restrict6_addr() 409 if (res->mflags == pmatch->mflags in match_restrict_entry() 604 hack_restrict(restrict_op op,sockaddr_u * resaddr,sockaddr_u * resmask,short ippeerlimit,u_short mflags,u_short rflags,u_long expire) hack_restrict() argument [all...] |
H A D | ntp_config.c | 2647 u_short mflags; in config_access() 2777 mflags = 0; in config_access() 2787 mflags |= RESM_NTPONLY; in config_access() 2791 mflags |= RESM_SOURCE; in config_access() 2869 : (mflags & RESM_SOURCE) in config_access() 2889 if (!(RESM_SOURCE & mflags)) { in config_access() 2901 mflags, rflags, in config_access() 2984 mflags, in config_access() 3005 mflags, in config_access() 2617 u_short mflags; config_access() local 5766 build_mflags(u_short mflags) build_mflags() argument
|
/freebsd/sys/kern/ |
H A D | subr_kobj.c | 127 kobj_class_compile1(kobj_class_t cls, int mflags) in kobj_class_compile1() argument 133 ops = malloc(sizeof(struct kobj_ops), M_KOBJ, mflags); in kobj_class_compile1() 269 kobj_init1(kobj_t obj, kobj_class_t cls, int mflags) in kobj_init1() argument 281 error = kobj_class_compile1(cls, mflags); in kobj_init1() 292 kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags) in kobj_create() argument 296 obj = malloc(cls->size, mtype, mflags | M_ZERO); in kobj_create() 299 if (kobj_init1(obj, cls, mflags) != 0) { in kobj_create()
|
H A D | subr_sglist.c | 281 sglist_alloc(int nsegs, int mflags) in sglist_alloc() argument 286 M_SGLIST, mflags); in sglist_alloc() 694 sglist_build(void *buf, size_t len, int mflags) in sglist_build() argument 703 sg = sglist_alloc(nsegs, mflags); in sglist_build() 717 sglist_clone(struct sglist *sg, int mflags) in sglist_clone() argument 723 new = sglist_alloc(sg->sg_maxseg, mflags); in sglist_clone() 767 int mflags) in sglist_split() argument 800 sg = sglist_alloc(count, mflags); in sglist_split() 898 size_t length, int mflags) in sglist_slice() argument 950 sg = sglist_alloc(count, mflags); in sglist_slice()
|
H A D | subr_taskqueue.c | 140 _taskqueue_create(const char *name, int mflags, in _taskqueue_create() argument 147 tq_name = malloc(TASKQUEUE_NAMELEN, M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create() 151 queue = malloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create() 177 taskqueue_create(const char *name, int mflags, in taskqueue_create() argument 181 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create() 877 taskqueue_create_fast(const char *name, int mflags, in taskqueue_create_fast() argument 880 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create_fast()
|
H A D | subr_gtaskqueue.c | 123 _gtaskqueue_create(const char *name, int mflags, in _gtaskqueue_create() argument 130 tq_name = malloc(TASKQUEUE_NAMELEN, M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create() 136 queue = malloc(sizeof(struct gtaskqueue), M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create() 582 gtaskqueue_create_fast(const char *name, int mflags, in gtaskqueue_create_fast() argument 585 return _gtaskqueue_create(name, mflags, enqueue, context, in gtaskqueue_create_fast()
|
H A D | kern_conf.c | 534 int namelen, mflags; in notify() local 538 mflags = (flags & MAKEDEV_NOWAIT) ? M_NOWAIT : M_WAITOK; in notify() 540 data = malloc(namelen + sizeof(prefix), M_TEMP, mflags); in notify() 1037 int mflags; in make_dev_physpath_alias() local 1065 mflags = (flags & MAKEDEV_NOWAIT) ? M_NOWAIT : M_WAITOK; in make_dev_physpath_alias() 1067 devfspath = malloc(devfspathbuf_len, M_DEVBUF, mflags); in make_dev_physpath_alias()
|
/freebsd/sys/sys/ |
H A D | sglist.h | 86 struct sglist *sglist_alloc(int nsegs, int mflags); 102 struct sglist *sglist_build(void *buf, size_t len, int mflags); 103 struct sglist *sglist_clone(struct sglist *sg, int mflags); 112 size_t offset, size_t length, int mflags); 114 size_t length, int mflags);
|
H A D | taskqueue.h | 69 struct taskqueue *taskqueue_create(const char *name, int mflags, 214 struct taskqueue *taskqueue_create_fast(const char *name, int mflags,
|
/freebsd/contrib/tcpdump/ |
H A D | print-decnet.c | 471 u_int mflags; in decnet_print() local 495 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print() 497 if (mflags & RMF_PAD) { in decnet_print() 499 u_int padlen = mflags & RMF_PADMASK; in decnet_print() 511 mflags = GET_U_1(rhp->rh_short.sh_flags); in decnet_print() 514 if (mflags & RMF_FVER) { in decnet_print() 521 if (mflags & RMF_CTLMSG) { in decnet_print() 527 switch (mflags & RMF_MASK) { in decnet_print() 558 if (mflags & RMF_RQR) in decnet_print() 560 if (mflags & RMF_RTS) in decnet_print() [all …]
|
/freebsd/sys/dev/iommu/ |
H A D | busdma_iommu.c | 495 int error, mflags; in iommu_bus_dmamem_alloc() local 502 mflags = (flags & BUS_DMA_NOWAIT) != 0 ? M_NOWAIT : M_WAITOK; in iommu_bus_dmamem_alloc() 503 mflags |= (flags & BUS_DMA_ZERO) != 0 ? M_ZERO : 0; in iommu_bus_dmamem_alloc() 514 DOMAINSET_PREF(tag->common.domain), mflags); in iommu_bus_dmamem_alloc() 519 mflags, 0ul, BUS_SPACE_MAXADDR, attr); in iommu_bus_dmamem_alloc() 704 int error, i, ma_cnt, mflags, offset; in iommu_bus_dmamap_load_phys() local 712 mflags = map->cansleep ? M_WAITOK : M_NOWAIT; in iommu_bus_dmamap_load_phys() 713 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, mflags); in iommu_bus_dmamap_load_phys() 728 M_DEVBUF, M_ZERO | mflags); in iommu_bus_dmamap_load_phys() 755 int error, i, ma_cnt, mflags, offset; in iommu_bus_dmamap_load_buffer() local [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 364 int mflags; in bounce_bus_dmamem_alloc() 367 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 369 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 374 M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 382 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 399 *mapp = alloc_dmamap(dmat, mflags); in bounce_bus_dmamem_alloc() 432 *vaddr = malloc(dmat->common.maxsize, M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 438 *vaddr = kmem_alloc_attr(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc() 442 *vaddr = kmem_alloc_contig(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc() 360 int mflags; bounce_bus_dmamem_alloc() local
|
/freebsd/sys/arm64/arm64/ |
H A D | busdma_bounce.c | 496 int mflags; in bounce_bus_dmamem_alloc() local 499 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 501 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 506 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 514 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 531 *mapp = alloc_dmamap(dmat, mflags); in bounce_bus_dmamem_alloc() 576 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 584 mflags, 0ul, dmat->common.lowaddr, attr); in bounce_bus_dmamem_alloc() 589 mflags, 0ul, dmat->common.lowaddr, in bounce_bus_dmamem_alloc()
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 561 allocate_map(bus_dma_tag_t dmat, int mflags) in allocate_map() 576 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map() 660 int mflags; in bus_dmamem_alloc() 663 mflags = M_NOWAIT; in bus_dmamem_alloc() 665 mflags = M_WAITOK; in bus_dmamem_alloc() 667 mflags |= M_ZERO; in bus_dmamem_alloc() 669 *mapp = map = allocate_map(dmat, mflags); in bus_dmamem_alloc() 719 *vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc() 724 *vaddr = kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc() 727 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, in bus_dmamem_alloc() 557 allocate_map(bus_dma_tag_t dmat,int mflags) allocate_map() argument 656 int mflags; bus_dmamem_alloc() local [all...] |
/freebsd/sys/powerpc/powerpc/ |
H A D | busdma_machdep.c | 403 int mflags; in bus_dmamem_alloc() 406 mflags = M_NOWAIT; in bus_dmamem_alloc() 408 mflags = M_WAITOK; in bus_dmamem_alloc() 413 mflags |= M_ZERO; in bus_dmamem_alloc() 431 *vaddr = malloc(dmat->maxsize, M_DEVBUF, mflags); in bus_dmamem_alloc() 439 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, 0ul, in bus_dmamem_alloc() 399 int mflags; bus_dmamem_alloc() local
|
/freebsd/sys/x86/x86/ |
H A D | busdma_bounce.c | 391 int mflags; in bounce_bus_dmamem_alloc() 394 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 396 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 404 M_DEVBUF, DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 412 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 441 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 455 mflags, 0ul, dmat->common.lowaddr, attr); in bounce_bus_dmamem_alloc() 460 mflags, 0ul, dmat->common.lowaddr, in bounce_bus_dmamem_alloc() 387 int mflags; bounce_bus_dmamem_alloc() local
|
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_mcp.c | 66 const int mflags = flags & DPAA2_PORTAL_NOWAIT_ALLOC in dpaa2_mcp_init_portal() local 73 p = malloc(sizeof(struct dpaa2_mcp), M_DPAA2_MCP, mflags); in dpaa2_mcp_init_portal()
|
/freebsd/sys/vm/ |
H A D | vm_domainset.h | 53 int vm_wait_doms(const domainset_t *, int mflags);
|
/freebsd/sys/net/ |
H A D | ifq.h | 245 short mflags; \ 248 mflags = (m)->m_flags; \ 252 if (mflags & M_MCAST) \
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp.c | 647 ccp_queue_reserve_space(struct ccp_queue *qp, unsigned n, int mflags) in ccp_queue_reserve_space() argument 660 if ((mflags & M_WAITOK) == 0) in ccp_queue_reserve_space() 668 ccp_queue_acquire_reserve(struct ccp_queue *qp, unsigned n, int mflags) in ccp_queue_acquire_reserve() argument 674 error = ccp_queue_reserve_space(qp, n, mflags); in ccp_queue_acquire_reserve()
|
/freebsd/sys/dev/ntb/if_ntb/ |
H A D | if_ntb.c | 319 short mflags; in ntb_transmit_locked() local 326 mflags = m->m_flags; in ntb_transmit_locked() 345 if (mflags & M_MCAST) in ntb_transmit_locked()
|
/freebsd/sys/dev/ioat/ |
H A D | ioat.c | 90 static int ioat_reserve_space(struct ioat_softc *, uint32_t, int mflags); 1097 ioat_acquire_reserve(bus_dmaengine_t dmaengine, unsigned n, int mflags) in ioat_acquire_reserve() argument 1105 error = ioat_reserve_space(ioat, n, mflags); in ioat_acquire_reserve() 1144 int mflags, nseg, error; in ioat_op_generic() local 1154 mflags = M_NOWAIT; in ioat_op_generic() 1156 mflags = M_WAITOK; in ioat_op_generic() 1158 if (ioat_reserve_space(ioat, 1, mflags) != 0) in ioat_op_generic() 1532 ioat_reserve_space(struct ioat_softc *ioat, uint32_t num_descs, int mflags) in ioat_reserve_space() argument 1575 if ((mflags & M_WAITOK) == 0) { in ioat_reserve_space()
|
H A D | ioat.h | 174 int ioat_acquire_reserve(bus_dmaengine_t dmaengine, unsigned n, int mflags)
|