Home
last modified time | relevance | path

Searched refs:mflags (Results 1 – 25 of 58) sorted by relevance

123

/freebsd-12.1/sys/netinet/
H A Dip_encap.c189 void *arg, int mflags) in encap_register_srcaddr() argument
195 p = malloc(sizeof(*p), M_NETADDR, mflags); in encap_register_srcaddr()
239 void *arg, int mflags) in encap_attach() argument
249 ep = malloc(sizeof(*ep), M_NETADDR, mflags); in encap_attach()
343 ip_encap_register_srcaddr(encap_srcaddr_t func, void *arg, int mflags) in ip_encap_register_srcaddr() argument
346 return (encap_register_srcaddr(&ipv4_srcaddrtab, func, arg, mflags)); in ip_encap_register_srcaddr()
357 ip_encap_attach(const struct encap_config *cfg, void *arg, int mflags) in ip_encap_attach() argument
360 return (encap_attach(&ipv4_encaptab, cfg, arg, mflags)); in ip_encap_attach()
382 ip6_encap_register_srcaddr(encap_srcaddr_t func, void *arg, int mflags) in ip6_encap_register_srcaddr() argument
385 return (encap_register_srcaddr(&ipv6_srcaddrtab, func, arg, mflags)); in ip6_encap_register_srcaddr()
[all …]
H A Dip_encap.h67 void *arg, int mflags);
69 void *arg, int mflags);
72 void *arg, int mflags);
74 void *arg, int mflags);
/freebsd-12.1/sys/mips/nlm/
H A Dcms.c181 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-12.1/contrib/ntp/ntpd/
H A Dntp_restrict.c145 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-12.1/sys/kern/
H A Dsubr_kobj.c129 kobj_class_compile1(kobj_class_t cls, int mflags) in kobj_class_compile1() argument
135 ops = malloc(sizeof(struct kobj_ops), M_KOBJ, mflags); in kobj_class_compile1()
271 kobj_init1(kobj_t obj, kobj_class_t cls, int mflags) in kobj_init1() argument
283 error = kobj_class_compile1(cls, mflags); in kobj_init1()
294 kobj_create(kobj_class_t cls, struct malloc_type *mtype, int mflags) in kobj_create() argument
298 obj = malloc(cls->size, mtype, mflags | M_ZERO); in kobj_create()
301 if (kobj_init1(obj, cls, mflags) != 0) { in kobj_create()
H A Dsubr_sglist.c227 sglist_alloc(int nsegs, int mflags) in sglist_alloc() argument
232 M_SGLIST, mflags); in sglist_alloc()
564 sglist_build(void *buf, size_t len, int mflags) in sglist_build() argument
573 sg = sglist_alloc(nsegs, mflags); in sglist_build()
587 sglist_clone(struct sglist *sg, int mflags) in sglist_clone() argument
593 new = sglist_alloc(sg->sg_maxseg, mflags); in sglist_clone()
637 int mflags) in sglist_split() argument
670 sg = sglist_alloc(count, mflags); in sglist_split()
768 size_t length, int mflags) in sglist_slice() argument
820 sg = sglist_alloc(count, mflags); in sglist_slice()
H A Dsubr_taskqueue.c128 _taskqueue_create(const char *name, int mflags, in _taskqueue_create() argument
135 tq_name = malloc(TASKQUEUE_NAMELEN, M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create()
139 queue = malloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags | M_ZERO); in _taskqueue_create()
165 taskqueue_create(const char *name, int mflags, in taskqueue_create() argument
169 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create()
821 taskqueue_create_fast(const char *name, int mflags, in taskqueue_create_fast() argument
824 return _taskqueue_create(name, mflags, enqueue, context, in taskqueue_create_fast()
H A Dkern_conf.c541 int namelen, mflags; in notify() local
545 mflags = (flags & MAKEDEV_NOWAIT) ? M_NOWAIT : M_WAITOK; in notify()
547 data = malloc(namelen + sizeof(prefix), M_TEMP, mflags); in notify()
552 devctl_notify_f("DEVFS", "CDEV", ev, data, mflags); in notify()
1032 int mflags; in make_dev_physpath_alias() local
1060 mflags = (flags & MAKEDEV_NOWAIT) ? M_NOWAIT : M_WAITOK; in make_dev_physpath_alias()
1062 devfspath = malloc(devfspathbuf_len, M_DEVBUF, mflags); in make_dev_physpath_alias()
H A Dsubr_gtaskqueue.c128 _gtaskqueue_create(const char *name, int mflags, in _gtaskqueue_create() argument
135 tq_name = malloc(TASKQUEUE_NAMELEN, M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create()
141 queue = malloc(sizeof(struct gtaskqueue), M_GTASKQUEUE, mflags | M_ZERO); in _gtaskqueue_create()
598 gtaskqueue_create_fast(const char *name, int mflags, in gtaskqueue_create_fast() argument
601 return _gtaskqueue_create(name, mflags, enqueue, context, in gtaskqueue_create_fast()
/freebsd-12.1/sys/sys/
H A Dsglist.h87 struct sglist *sglist_alloc(int nsegs, int mflags);
100 struct sglist *sglist_build(void *buf, size_t len, int mflags);
101 struct sglist *sglist_clone(struct sglist *sg, int mflags);
109 size_t offset, size_t length, int mflags);
111 size_t length, int mflags);
H A Dtaskqueue.h74 struct taskqueue *taskqueue_create(const char *name, int mflags,
210 struct taskqueue *taskqueue_create_fast(const char *name, int mflags,
/freebsd-12.1/contrib/tcpdump/
H A Dprint-decnet.c505 register int mflags; in decnet_print() local
529 mflags = EXTRACT_LE_8BITS(rhp->rh_short.sh_flags); in decnet_print()
531 if (mflags & RMF_PAD) { in decnet_print()
533 u_int padlen = mflags & RMF_PADMASK; in decnet_print()
549 if (mflags & RMF_FVER) { in decnet_print()
556 if (mflags & RMF_CTLMSG) { in decnet_print()
562 switch (mflags & RMF_MASK) { in decnet_print()
594 if (mflags & RMF_RQR) in decnet_print()
596 if (mflags & RMF_RTS) in decnet_print()
598 if (mflags & RMF_IE) in decnet_print()
[all …]
/freebsd-12.1/sys/sparc64/sparc64/
H A Dbus_machdep.c512 int mflags; in nexus_dmamem_alloc() local
515 mflags = M_NOWAIT; in nexus_dmamem_alloc()
517 mflags = M_WAITOK; in nexus_dmamem_alloc()
519 mflags |= M_ZERO; in nexus_dmamem_alloc()
531 *vaddr = malloc(dmat->dt_maxsize, M_DEVBUF, mflags); in nexus_dmamem_alloc()
538 *vaddr = contigmalloc(dmat->dt_maxsize, M_DEVBUF, mflags, in nexus_dmamem_alloc()
/freebsd-12.1/sys/contrib/zstd/tests/fuzz/
H A Dfuzz.py353 mflags = [args.mflags] if args.mflags else []
363 mflags += ['LIB_FUZZING_ENGINE={}'.format(args.lib_fuzzing_engine)]
420 print('MFLAGS={}'.format(' '.join(mflags)))
429 clean_cmd = ['make', 'clean'] + mflags
440 ] + mflags + targets
/freebsd-12.1/sys/riscv/riscv/
H A Dbusdma_bounce.c420 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-12.1/sys/arm64/arm64/
H A Dbusdma_bounce.c420 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-12.1/sys/arm/arm/
H A Dbusdma_machdep-v4.c598 allocate_map(bus_dma_tag_t dmat, int mflags) in allocate_map() argument
613 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map()
696 int mflags; in bus_dmamem_alloc() local
699 mflags = M_NOWAIT; in bus_dmamem_alloc()
701 mflags = M_WAITOK; in bus_dmamem_alloc()
703 mflags |= M_ZERO; in bus_dmamem_alloc()
705 *mapp = map = allocate_map(dmat, mflags); in bus_dmamem_alloc()
745 *vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc()
750 *vaddr = (void *)kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
753 *vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
H A Dbusdma_machdep-v6.c664 allocate_map(bus_dma_tag_t dmat, int mflags) in allocate_map() argument
679 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map()
762 int mflags; in bus_dmamem_alloc() local
765 mflags = M_NOWAIT; in bus_dmamem_alloc()
767 mflags = M_WAITOK; in bus_dmamem_alloc()
769 mflags |= M_ZERO; in bus_dmamem_alloc()
771 *mapp = map = allocate_map(dmat, mflags); in bus_dmamem_alloc()
821 *vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc()
826 *vaddr = (void *)kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
829 *vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
/freebsd-12.1/sys/x86/x86/
H A Dbusdma_bounce.c396 int mflags; in bounce_bus_dmamem_alloc() local
401 mflags = M_NOWAIT; in bounce_bus_dmamem_alloc()
403 mflags = M_WAITOK; in bounce_bus_dmamem_alloc()
411 M_DEVBUF, DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc()
419 mflags |= M_ZERO; in bounce_bus_dmamem_alloc()
451 DOMAINSET_PREF(dmat->common.domain), mflags); in bounce_bus_dmamem_alloc()
460 mflags, 0ul, dmat->common.lowaddr, attr); in bounce_bus_dmamem_alloc()
465 mflags, 0ul, dmat->common.lowaddr, in bounce_bus_dmamem_alloc()
/freebsd-12.1/sys/mips/mips/
H A Dbusdma_machdep.c643 int mflags; in bus_dmamem_alloc() local
646 mflags = M_NOWAIT; in bus_dmamem_alloc()
648 mflags = M_WAITOK; in bus_dmamem_alloc()
652 mflags); in bus_dmamem_alloc()
686 mflags |= M_ZERO; in bus_dmamem_alloc()
712 vaddr = uma_zalloc(bufzone->umazone, mflags); in bus_dmamem_alloc()
717 vaddr = (void *)kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
720 vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc()
/freebsd-12.1/sys/net/
H A Difq.h248 short mflags; \
251 mflags = (m)->m_flags; \
255 if (mflags & M_MCAST) \
/freebsd-12.1/sys/x86/iommu/
H A Dbusdma_dmar.c431 int error, mflags; in dmar_bus_dmamem_alloc() local
438 mflags = (flags & BUS_DMA_NOWAIT) != 0 ? M_NOWAIT : M_WAITOK; in dmar_bus_dmamem_alloc()
439 mflags |= (flags & BUS_DMA_ZERO) != 0 ? M_ZERO : 0; in dmar_bus_dmamem_alloc()
450 DOMAINSET_PREF(tag->common.domain), mflags); in dmar_bus_dmamem_alloc()
455 mflags, 0ul, BUS_SPACE_MAXADDR, attr); in dmar_bus_dmamem_alloc()
/freebsd-12.1/sys/powerpc/powerpc/
H A Dbusdma_machdep.c507 int mflags; in bus_dmamem_alloc() local
510 mflags = M_NOWAIT; in bus_dmamem_alloc()
512 mflags = M_WAITOK; in bus_dmamem_alloc()
517 mflags |= M_ZERO; in bus_dmamem_alloc()
537 *vaddr = malloc(dmat->maxsize, M_DEVBUF, mflags); in bus_dmamem_alloc()
545 *vaddr = (void *)kmem_alloc_contig(dmat->maxsize, mflags, 0ul, in bus_dmamem_alloc()
/freebsd-12.1/sys/dev/ioat/
H A Dioat.c85 static int ioat_reserve_space(struct ioat_softc *, uint32_t, int mflags);
956 ioat_acquire_reserve(bus_dmaengine_t dmaengine, unsigned n, int mflags) in ioat_acquire_reserve() argument
964 error = ioat_reserve_space(ioat, n, mflags); in ioat_acquire_reserve()
1002 int mflags; in ioat_op_generic() local
1009 mflags = M_NOWAIT; in ioat_op_generic()
1011 mflags = M_WAITOK; in ioat_op_generic()
1019 if (ioat_reserve_space(ioat, 1, mflags) != 0) in ioat_op_generic()
1371 ioat_reserve_space(struct ioat_softc *ioat, uint32_t num_descs, int mflags) in ioat_reserve_space() argument
1414 if ((mflags & M_WAITOK) == 0) { in ioat_reserve_space()
/freebsd-12.1/sys/dev/ntb/if_ntb/
H A Dif_ntb.c324 short mflags; in ntb_transmit_locked() local
331 mflags = m->m_flags; in ntb_transmit_locked()
350 if (mflags & M_MCAST) in ntb_transmit_locked()

123