| /freebsd-13.1/sys/mips/nlm/ |
| H A D | cms.c | 181 uint32_t mflags, status; in xlp_handle_msg_vc() local 188 mflags = nlm_save_flags_cop2(); in xlp_handle_msg_vc() 190 nlm_restore_flags(mflags); in xlp_handle_msg_vc() 201 mflags = nlm_save_flags_cop2(); in xlp_handle_msg_vc() 204 nlm_restore_flags(mflags); in xlp_handle_msg_vc() 241 uint32_t mflags, status; in xlp_discard_msg_vc() local 248 nlm_restore_flags(mflags); in xlp_discard_msg_vc() 307 uint32_t mflags, msgstatus1; in msgring_process() local 328 mflags = nlm_save_flags_cop2(); in msgring_process() 330 nlm_restore_flags(mflags); in msgring_process() [all …]
|
| /freebsd-13.1/sys/netinet/ |
| H A D | ip_encap.c | 187 void *arg, int mflags) in encap_register_srcaddr() argument 193 p = malloc(sizeof(*p), M_NETADDR, mflags); in encap_register_srcaddr() 237 void *arg, int mflags) in encap_attach() argument 247 ep = malloc(sizeof(*ep), M_NETADDR, mflags); in encap_attach() 341 ip_encap_register_srcaddr(encap_srcaddr_t func, void *arg, int mflags) in ip_encap_register_srcaddr() argument 344 return (encap_register_srcaddr(&ipv4_srcaddrtab, func, arg, mflags)); in ip_encap_register_srcaddr() 355 ip_encap_attach(const struct encap_config *cfg, void *arg, int mflags) in ip_encap_attach() argument 358 return (encap_attach(&ipv4_encaptab, cfg, arg, mflags)); in ip_encap_attach() 380 ip6_encap_register_srcaddr(encap_srcaddr_t func, void *arg, int mflags) in ip6_encap_register_srcaddr() argument 383 return (encap_register_srcaddr(&ipv6_srcaddrtab, func, arg, mflags)); in ip6_encap_register_srcaddr() [all …]
|
| H A D | ip_encap.h | 67 void *arg, int mflags); 69 void *arg, int mflags); 72 void *arg, int mflags); 74 void *arg, int mflags);
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntp_restrict.c | 145 res, as, ms, res->count, res->rflags, res->mflags, in dump_restrict() 355 && ( !(RESM_NTPONLY & res->mflags) in match_restrict4_addr() 385 && (!(RESM_NTPONLY & res->mflags) in match_restrict6_addr() 421 if (res->mflags == pmatch->mflags && in match_restrict_entry() 451 else if (r1->mflags > r2->mflags) in res_sorts_before4() 487 else if (r1->mflags > r2->mflags) in res_sorts_before6() 604 u_short mflags, in hack_restrict() argument 615 roptoa(op), stoa(resaddr), stoa(resmask), ippeerlimit, mflags, rflags)); in hack_restrict() 621 restrict_source_mflags = mflags; in hack_restrict() 660 match.mflags = mflags; in hack_restrict() [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | subr_kobj.c | 130 kobj_class_compile1(kobj_class_t cls, int mflags) in kobj_class_compile1() argument 136 ops = malloc(sizeof(struct kobj_ops), M_KOBJ, mflags); in kobj_class_compile1() 272 kobj_init1(kobj_t obj, kobj_class_t cls, int mflags) in kobj_init1() argument 284 error = kobj_class_compile1(cls, mflags); in kobj_init1() 295 kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags) in kobj_create() argument 299 obj = malloc(cls->size, mtype, mflags | M_ZERO); in kobj_create() 302 if (kobj_init1(obj, cls, mflags) != 0) { in kobj_create()
|
| H A D | subr_sglist.c | 284 sglist_alloc(int nsegs, int mflags) in sglist_alloc() argument 289 M_SGLIST, mflags); in sglist_alloc() 697 sglist_build(void *buf, size_t len, int mflags) in sglist_build() argument 706 sg = sglist_alloc(nsegs, mflags); in sglist_build() 720 sglist_clone(struct sglist *sg, int mflags) in sglist_clone() argument 726 new = sglist_alloc(sg->sg_maxseg, mflags); in sglist_clone() 770 int mflags) in sglist_split() argument 803 sg = sglist_alloc(count, mflags); in sglist_split() 901 size_t length, int mflags) in sglist_slice() argument 953 sg = sglist_alloc(count, mflags); in sglist_slice()
|
| H A D | subr_taskqueue.c | 129 _taskqueue_create(const char *name, int mflags, in _taskqueue_create() argument 136 tq_name = malloc(TASKQUEUE_NAMELEN, M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create() 140 queue = malloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create() 166 taskqueue_create(const char *name, int mflags, in taskqueue_create() argument 170 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create() 842 taskqueue_create_fast(const char *name, int mflags, in taskqueue_create_fast() argument 845 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create_fast()
|
| H A D | subr_gtaskqueue.c | 126 _gtaskqueue_create(const char *name, int mflags, in _gtaskqueue_create() argument 133 tq_name = malloc(TASKQUEUE_NAMELEN, M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create() 139 queue = malloc(sizeof(struct gtaskqueue), M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create() 585 gtaskqueue_create_fast(const char *name, int mflags, in gtaskqueue_create_fast() argument 588 return _gtaskqueue_create(name, mflags, enqueue, context, in gtaskqueue_create_fast()
|
| /freebsd-13.1/sys/sys/ |
| H A D | sglist.h | 87 struct sglist *sglist_alloc(int nsegs, int mflags); 103 struct sglist *sglist_build(void *buf, size_t len, int mflags); 104 struct sglist *sglist_clone(struct sglist *sg, int mflags); 113 size_t offset, size_t length, int mflags); 115 size_t length, int mflags);
|
| H A D | taskqueue.h | 75 struct taskqueue *taskqueue_create(const char *name, int mflags, 218 struct taskqueue *taskqueue_create_fast(const char *name, int mflags,
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-decnet.c | 491 register int mflags; in decnet_print() local 515 mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in decnet_print() 517 if (mflags & RMF_PAD) { in decnet_print() 519 u_int padlen = mflags & RMF_PADMASK; in decnet_print() 535 if (mflags & RMF_FVER) { in decnet_print() 542 if (mflags & RMF_CTLMSG) { in decnet_print() 548 switch (mflags & RMF_MASK) { in decnet_print() 580 if (mflags & RMF_RQR) in decnet_print() 582 if (mflags & RMF_RTS) in decnet_print() 584 if (mflags & RMF_IE) in decnet_print() [all …]
|
| /freebsd-13.1/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() 737 int error, i, ma_cnt, mflags, offset; in iommu_bus_dmamap_load_phys() local 745 mflags = map->cansleep ? M_WAITOK : M_NOWAIT; in iommu_bus_dmamap_load_phys() 746 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, mflags); in iommu_bus_dmamap_load_phys() 761 M_DEVBUF, M_ZERO | mflags); in iommu_bus_dmamap_load_phys() 788 int error, i, ma_cnt, mflags, offset; in iommu_bus_dmamap_load_buffer() local 796 mflags = map->cansleep ? M_WAITOK : M_NOWAIT; in iommu_bus_dmamap_load_buffer() [all …]
|
| /freebsd-13.1/sys/riscv/riscv/ |
| H A D | busdma_bounce.c | 420 int mflags; in bounce_bus_dmamem_alloc() local 423 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 425 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 430 M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 438 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 455 *mapp = alloc_dmamap(dmat, mflags); in bounce_bus_dmamem_alloc() 488 *vaddr = malloc(dmat->common.maxsize, M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 494 *vaddr = (void *)kmem_alloc_attr(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc() 498 *vaddr = (void *)kmem_alloc_contig(dmat->common.maxsize, mflags, in bounce_bus_dmamem_alloc()
|
| /freebsd-13.1/sys/net/ |
| H A D | if_epair.c | 191 short mflags; in epair_menq() local 212 mflags = m->m_flags; in epair_menq() 258 if (mflags & (M_BCAST|M_MCAST)) in epair_menq() 311 short mflags; in epair_transmit() local 349 mflags = m->m_flags; in epair_transmit() 361 if (mflags & (M_BCAST|M_MCAST)) in epair_transmit()
|
| H A D | ifq.h | 248 short mflags; \ 251 mflags = (m)->m_flags; \ 255 if (mflags & M_MCAST) \
|
| /freebsd-13.1/sys/vm/ |
| H A D | vm_domainset.h | 53 int vm_wait_doms(const domainset_t *, int mflags);
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | busdma_machdep.c | 692 allocate_map(bus_dma_tag_t dmat, int mflags) in allocate_map() argument 707 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map() 791 int mflags; in bus_dmamem_alloc() local 794 mflags = M_NOWAIT; in bus_dmamem_alloc() 796 mflags = M_WAITOK; in bus_dmamem_alloc() 798 mflags |= M_ZERO; in bus_dmamem_alloc() 800 *mapp = map = allocate_map(dmat, mflags); in bus_dmamem_alloc() 850 *vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc() 855 *vaddr = (void *)kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc() 858 *vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | busdma_bounce.c | 517 int mflags; in bounce_bus_dmamem_alloc() local 520 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 522 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 527 M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 535 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 552 *mapp = alloc_dmamap(dmat, mflags); in bounce_bus_dmamem_alloc() 594 *vaddr = malloc(dmat->alloc_size, M_DEVBUF, mflags); in bounce_bus_dmamem_alloc() 600 *vaddr = (void *)kmem_alloc_attr(dmat->alloc_size, mflags, in bounce_bus_dmamem_alloc() 604 *vaddr = (void *)kmem_alloc_contig(dmat->alloc_size, mflags, in bounce_bus_dmamem_alloc()
|
| /freebsd-13.1/sys/x86/x86/ |
| H A D | busdma_bounce.c | 407 int mflags; in bounce_bus_dmamem_alloc() local 410 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc() 412 mflags = M_WAITOK; in bounce_bus_dmamem_alloc() 420 M_DEVBUF, DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 428 mflags |= M_ZERO; in bounce_bus_dmamem_alloc() 457 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc() 471 mflags, 0ul, dmat->common.lowaddr, attr); in bounce_bus_dmamem_alloc() 476 mflags, 0ul, dmat->common.lowaddr, in bounce_bus_dmamem_alloc()
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | busdma_machdep.c | 657 int mflags; in bus_dmamem_alloc() local 660 mflags = M_NOWAIT; in bus_dmamem_alloc() 662 mflags = M_WAITOK; in bus_dmamem_alloc() 666 mflags); in bus_dmamem_alloc() 700 mflags |= M_ZERO; in bus_dmamem_alloc() 726 vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc() 731 vaddr = (void *)kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc() 734 vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
|
| /freebsd-13.1/sys/crypto/ccp/ |
| H A D | ccp.c | 655 ccp_queue_reserve_space(struct ccp_queue *qp, unsigned n, int mflags) in ccp_queue_reserve_space() argument 668 if ((mflags & M_WAITOK) == 0) in ccp_queue_reserve_space() 676 ccp_queue_acquire_reserve(struct ccp_queue *qp, unsigned n, int mflags) in ccp_queue_acquire_reserve() argument 682 error = ccp_queue_reserve_space(qp, n, mflags); in ccp_queue_acquire_reserve()
|
| /freebsd-13.1/sys/powerpc/powerpc/ |
| H A D | busdma_machdep.c | 522 int mflags; in bus_dmamem_alloc() local 525 mflags = M_NOWAIT; in bus_dmamem_alloc() 527 mflags = M_WAITOK; in bus_dmamem_alloc() 532 mflags |= M_ZERO; in bus_dmamem_alloc() 550 *vaddr = malloc(dmat->maxsize, M_DEVBUF, mflags); in bus_dmamem_alloc() 558 *vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0ul, in bus_dmamem_alloc()
|
| /freebsd-13.1/sys/dev/ntb/if_ntb/ |
| H A D | if_ntb.c | 326 short mflags; in ntb_transmit_locked() local 333 mflags = m->m_flags; in ntb_transmit_locked() 352 if (mflags & M_MCAST) in ntb_transmit_locked()
|
| /freebsd-13.1/sys/dev/ioat/ |
| H A D | ioat.c | 92 static int ioat_reserve_space(struct ioat_softc *, uint32_t, int mflags); 1101 ioat_acquire_reserve(bus_dmaengine_t dmaengine, unsigned n, int mflags) in ioat_acquire_reserve() argument 1109 error = ioat_reserve_space(ioat, n, mflags); in ioat_acquire_reserve() 1148 int mflags, nseg, error; in ioat_op_generic() local 1158 mflags = M_NOWAIT; in ioat_op_generic() 1160 mflags = M_WAITOK; in ioat_op_generic() 1162 if (ioat_reserve_space(ioat, 1, mflags) != 0) in ioat_op_generic() 1536 ioat_reserve_space(struct ioat_softc *ioat, uint32_t num_descs, int mflags) in ioat_reserve_space() argument 1579 if ((mflags & M_WAITOK) == 0) { in ioat_reserve_space()
|
| H A D | ioat.h | 177 int ioat_acquire_reserve(bus_dmaengine_t dmaengine, unsigned n, int mflags)
|