| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | ntp_restrict.c | 138 mflags_str(res->mflags), in dump_restrict() 409 if (res->mflags == pmatch->mflags && in match_restrict_entry() 465 r1_before_r2 = mflags_sorts_before(r1->mflags, r2->mflags); in res_sorts_before4() 501 r2->mflags); in res_sorts_before6() 608 u_short mflags, in hack_restrict() argument 675 match.mflags = mflags; in hack_restrict() 922 u_short mflags in mflags_str() argument 931 if (mflags & RESM_NTPONLY) { in mflags_str() 936 if (mflags & RESM_SOURCE) { in mflags_str() 941 if (mflags & RESM_INTERFACE) { in mflags_str() [all …]
|
| H A D | ntp_request.c | 1664 pir->mflags = htons(res->mflags); in list_restrict4() 1695 pir->mflags = htons(res->mflags); in list_restrict6() 1824 cr.mflags = ntohs(cr.mflags); in do_restrict() 1825 if (~RESM_NTPONLY & cr.mflags) in do_restrict() 1859 cr.mflags = ntohs(cr.mflags); in do_restrict() 1873 cr.ippeerlimit, cr.mflags, in do_restrict() 1879 cr.ippeerlimit, mflags_str(cr.mflags), in do_restrict()
|
| /freebsd-14.2/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-14.2/sys/kern/ |
| H A D | subr_kobj.c | 128 kobj_class_compile1(kobj_class_t cls, int mflags) in kobj_class_compile1() argument 134 ops = malloc(sizeof(struct kobj_ops), M_KOBJ, mflags); in kobj_class_compile1() 270 kobj_init1(kobj_t obj, kobj_class_t cls, int mflags) in kobj_init1() argument 282 error = kobj_class_compile1(cls, mflags); in kobj_init1() 293 kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags) in kobj_create() argument 297 obj = malloc(cls->size, mtype, mflags | M_ZERO); in kobj_create() 300 if (kobj_init1(obj, cls, mflags) != 0) { in kobj_create()
|
| H A D | subr_sglist.c | 282 sglist_alloc(int nsegs, int mflags) in sglist_alloc() argument 287 M_SGLIST, mflags); in sglist_alloc() 695 sglist_build(void *buf, size_t len, int mflags) in sglist_build() argument 704 sg = sglist_alloc(nsegs, mflags); in sglist_build() 718 sglist_clone(struct sglist *sg, int mflags) in sglist_clone() argument 724 new = sglist_alloc(sg->sg_maxseg, mflags); in sglist_clone() 768 int mflags) in sglist_split() argument 801 sg = sglist_alloc(count, mflags); in sglist_split() 899 size_t length, int mflags) in sglist_slice() argument 951 sg = sglist_alloc(count, mflags); in sglist_slice()
|
| H A D | subr_taskqueue.c | 141 _taskqueue_create(const char *name, int mflags, in _taskqueue_create() argument 148 tq_name = malloc(TASKQUEUE_NAMELEN, M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create() 152 queue = malloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create() 178 taskqueue_create(const char *name, int mflags, in taskqueue_create() argument 182 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create() 878 taskqueue_create_fast(const char *name, int mflags, in taskqueue_create_fast() argument 881 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create_fast()
|
| H A D | subr_gtaskqueue.c | 124 _gtaskqueue_create(const char *name, int mflags, in _gtaskqueue_create() argument 131 tq_name = malloc(TASKQUEUE_NAMELEN, M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create() 137 queue = malloc(sizeof(struct gtaskqueue), M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create() 583 gtaskqueue_create_fast(const char *name, int mflags, in gtaskqueue_create_fast() argument 586 return _gtaskqueue_create(name, mflags, enqueue, context, in gtaskqueue_create_fast()
|
| /freebsd-14.2/sys/sys/ |
| H A D | sglist.h | 85 struct sglist *sglist_alloc(int nsegs, int mflags); 101 struct sglist *sglist_build(void *buf, size_t len, int mflags); 102 struct sglist *sglist_clone(struct sglist *sg, int mflags); 111 size_t offset, size_t length, int mflags); 113 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-14.2/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() 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() 562 if (mflags & RMF_IE) in decnet_print() [all …]
|
| /freebsd-14.2/sys/dev/iommu/ |
| H A D | busdma_iommu.c | 500 int error, mflags; in iommu_bus_dmamem_alloc() local 508 mflags |= (flags & BUS_DMA_ZERO) != 0 ? M_ZERO : 0; in iommu_bus_dmamem_alloc() 519 DOMAINSET_PREF(tag->common.domain), mflags); in iommu_bus_dmamem_alloc() 524 mflags, 0ul, BUS_SPACE_MAXADDR, attr); in iommu_bus_dmamem_alloc() 709 int error, i, ma_cnt, mflags, offset; in iommu_bus_dmamap_load_phys() local 717 mflags = map->cansleep ? M_WAITOK : M_NOWAIT; in iommu_bus_dmamap_load_phys() 718 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, mflags); in iommu_bus_dmamap_load_phys() 733 M_DEVBUF, M_ZERO | mflags); in iommu_bus_dmamap_load_phys() 760 int error, i, ma_cnt, mflags, offset; in iommu_bus_dmamap_load_buffer() local 768 mflags = map->cansleep ? M_WAITOK : M_NOWAIT; in iommu_bus_dmamap_load_buffer() [all …]
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | busdma_bounce.c | 381 int mflags; in bounce_bus_dmamem_alloc() local 384 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 386 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 391 M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 399 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 416 *mapp = alloc_dmamap(dmat, mflags); in bounce_bus_dmamem_alloc() 449 *vaddr = malloc(dmat->common.maxsize, M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 455 *vaddr = kmem_alloc_attr(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc() 459 *vaddr = kmem_alloc_contig(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc()
|
| /freebsd-14.2/sys/netlink/ |
| H A D | ktest_netlink_message_writer.c | 115 int mflags = attrs->waitok ? M_WAITOK : M_NOWAIT; in test_mbuf_chain_allocation() local 116 struct mbuf *chain = nl_get_mbuf_chain_wrapper(attrs->size, mflags); in test_mbuf_chain_allocation()
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | busdma_bounce.c | 514 int mflags; in bounce_bus_dmamem_alloc() local 517 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 519 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 524 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 532 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 549 *mapp = alloc_dmamap(dmat, mflags); in bounce_bus_dmamem_alloc() 594 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 602 mflags, 0ul, dmat->common.lowaddr, attr); in bounce_bus_dmamem_alloc() 607 mflags, 0ul, dmat->common.lowaddr, in bounce_bus_dmamem_alloc()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | busdma_machdep.c | 618 allocate_map(bus_dma_tag_t dmat, int mflags) in allocate_map() argument 633 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map() 717 int mflags; in bus_dmamem_alloc() local 720 mflags = M_NOWAIT; in bus_dmamem_alloc() 722 mflags = M_WAITOK; in bus_dmamem_alloc() 724 mflags |= M_ZERO; in bus_dmamem_alloc() 726 *mapp = map = allocate_map(dmat, mflags); in bus_dmamem_alloc() 776 *vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc() 781 *vaddr = kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc() 784 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
|
| /freebsd-14.2/sys/x86/x86/ |
| H A D | busdma_bounce.c | 389 int mflags; in bounce_bus_dmamem_alloc() local 392 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 394 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 402 M_DEVBUF, DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 410 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 439 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 453 mflags, 0ul, dmat->common.lowaddr, attr); in bounce_bus_dmamem_alloc() 458 mflags, 0ul, dmat->common.lowaddr, in bounce_bus_dmamem_alloc()
|
| /freebsd-14.2/sys/powerpc/powerpc/ |
| H A D | busdma_machdep.c | 452 int mflags; in bus_dmamem_alloc() local 455 mflags = M_NOWAIT; in bus_dmamem_alloc() 457 mflags = M_WAITOK; in bus_dmamem_alloc() 462 mflags |= M_ZERO; in bus_dmamem_alloc() 480 *vaddr = malloc(dmat->maxsize, M_DEVBUF, mflags); in bus_dmamem_alloc() 488 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, 0ul, in bus_dmamem_alloc()
|
| /freebsd-14.2/sys/vm/ |
| H A D | vm_domainset.h | 51 int vm_wait_doms(const domainset_t *, int mflags);
|
| /freebsd-14.2/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-14.2/sys/net/ |
| H A D | ifq.h | 247 short mflags; \ 250 mflags = (m)->m_flags; \ 254 if (mflags & M_MCAST) \
|
| /freebsd-14.2/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-14.2/sys/dev/ntb/if_ntb/ |
| H A D | if_ntb.c | 320 short mflags; in ntb_transmit_locked() local 327 mflags = m->m_flags; in ntb_transmit_locked() 346 if (mflags & M_MCAST) in ntb_transmit_locked()
|
| /freebsd-14.2/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)
|