m                 440 altq/altq_cbq.c cbq_enqueue(struct ifaltq *ifq, struct mbuf *m, struct altq_pktattr *pktattr)
m                 447 altq/altq_cbq.c 	if ((m->m_flags & M_PKTHDR) == 0) {
m                 451 altq/altq_cbq.c 		m_freem(m);
m                 454 altq/altq_cbq.c 	if ((cl = clh_to_clp(cbqp, m->m_pkthdr.pf.qid)) == NULL) {
m                 457 altq/altq_cbq.c 			m_freem(m);
m                 463 altq/altq_cbq.c 	len = m_pktlen(m);
m                 464 altq/altq_cbq.c 	if (rmc_queue_packet(cl, m) != 0) {
m                 480 altq/altq_cbq.c 	struct mbuf	*m;
m                 482 altq/altq_cbq.c 	m = rmc_dequeue_next(&cbqp->ifnp, op);
m                 484 altq/altq_cbq.c 	if (m && op == ALTDQ_REMOVE) {
m                 491 altq/altq_cbq.c 	return (m);
m                 143 altq/altq_cdnr.c altq_cdnr_input(m, af)
m                 144 altq/altq_cdnr.c 	struct mbuf	*m;
m                 154 altq/altq_cdnr.c 	ifp = m->m_pkthdr.rcvif;
m                 161 altq/altq_cdnr.c 	ip = mtod(m, struct ip *);
m                 171 altq/altq_cdnr.c 	pktinfo.pkt_len = m_pktlen(m);
m                 176 altq/altq_cdnr.c 	cb = acc_classify(&top->tc_classifier, m, af);
m                 191 altq/altq_cdnr.c 			m_freem(m);
m                  93 altq/altq_classq.h _addq(class_queue_t *q, struct mbuf *m)
m                  98 altq/altq_classq.h 		m->m_nextpkt = m0->m_nextpkt;
m                 100 altq/altq_classq.h 		m0 = m;
m                 101 altq/altq_classq.h 	m0->m_nextpkt = m;
m                 102 altq/altq_classq.h 	qtail(q) = m;
m                 109 altq/altq_classq.h 	struct mbuf  *m, *m0;
m                 111 altq/altq_classq.h 	if ((m = qtail(q)) == NULL)
m                 113 altq/altq_classq.h 	if ((m0 = m->m_nextpkt) != m)
m                 114 altq/altq_classq.h 		m->m_nextpkt = m0->m_nextpkt;
m                 126 altq/altq_classq.h 	struct mbuf *m, *m0, *prev;
m                 128 altq/altq_classq.h 	if ((m = m0 = qtail(q)) == NULL)
m                 133 altq/altq_classq.h 	} while (m0 != m);
m                 134 altq/altq_classq.h 	prev->m_nextpkt = m->m_nextpkt;
m                 135 altq/altq_classq.h 	if (prev == m)
m                 140 altq/altq_classq.h 	m->m_nextpkt = NULL;
m                 141 altq/altq_classq.h 	return (m);
m                 148 altq/altq_classq.h 	struct mbuf *m;
m                 151 altq/altq_classq.h 	if ((m = qtail(q)) == NULL)
m                 153 altq/altq_classq.h 	if (m->m_nextpkt == m)
m                 160 altq/altq_classq.h 			prev = m;
m                 161 altq/altq_classq.h 			m = m->m_nextpkt;
m                 163 altq/altq_classq.h 		prev->m_nextpkt = m->m_nextpkt;
m                 164 altq/altq_classq.h 		if (m == qtail(q))
m                 168 altq/altq_classq.h 	m->m_nextpkt = NULL;
m                 169 altq/altq_classq.h 	return (m);
m                 173 altq/altq_classq.h _removeq(class_queue_t *q, struct mbuf *m)
m                 181 altq/altq_classq.h 	} while (m0 != m);
m                 182 altq/altq_classq.h 	prev->m_nextpkt = m->m_nextpkt;
m                 183 altq/altq_classq.h 	if (prev == m)
m                 185 altq/altq_classq.h 	else if (qtail(q) == m)
m                 193 altq/altq_classq.h 	struct mbuf *m;
m                 195 altq/altq_classq.h 	while ((m = _getq(q)) != NULL)
m                 196 altq/altq_classq.h 		m_freem(m);
m                 617 altq/altq_hfsc.c hfsc_enqueue(struct ifaltq *ifq, struct mbuf *m, struct altq_pktattr *pktattr)
m                 624 altq/altq_hfsc.c 	if ((m->m_flags & M_PKTHDR) == 0) {
m                 628 altq/altq_hfsc.c 		m_freem(m);
m                 631 altq/altq_hfsc.c 	if ((cl = clh_to_clp(hif, m->m_pkthdr.pf.qid)) == NULL ||
m                 635 altq/altq_hfsc.c 			m_freem(m);
m                 641 altq/altq_hfsc.c 	len = m_pktlen(m);
m                 642 altq/altq_hfsc.c 	if (hfsc_addq(cl, m) != 0) {
m                 652 altq/altq_hfsc.c 		set_active(cl, m_pktlen(m));
m                 671 altq/altq_hfsc.c 	struct mbuf *m;
m                 731 altq/altq_hfsc.c 			m = hfsc_pollq(cl);
m                 732 altq/altq_hfsc.c 			return (m);
m                 736 altq/altq_hfsc.c 	m = hfsc_getq(cl);
m                 737 altq/altq_hfsc.c 	if (m == NULL)
m                 739 altq/altq_hfsc.c 	len = m_pktlen(m);
m                 763 altq/altq_hfsc.c 	return (m);
m                 767 altq/altq_hfsc.c hfsc_addq(struct hfsc_class *cl, struct mbuf *m)
m                 773 altq/altq_hfsc.c 				m, cl->cl_pktattr);
m                 777 altq/altq_hfsc.c 		return red_addq(cl->cl_red, cl->cl_q, m, cl->cl_pktattr);
m                 780 altq/altq_hfsc.c 		m_freem(m);
m                 785 altq/altq_hfsc.c 		write_dsfield(m, cl->cl_pktattr, 0);
m                 787 altq/altq_hfsc.c 	_addq(cl->cl_q, m);
m                 815 altq/altq_hfsc.c 	struct mbuf *m;
m                 820 altq/altq_hfsc.c 	while ((m = _getq(cl->cl_q)) != NULL) {
m                 821 altq/altq_hfsc.c 		PKTCNTR_ADD(&cl->cl_stats.drop_cnt, m_pktlen(m));
m                 822 altq/altq_hfsc.c 		m_freem(m);
m                1362 altq/altq_hfsc.c m2sm(u_int m)
m                1366 altq/altq_hfsc.c 	sm = ((u_int64_t)m << SM_SHIFT) / 8 / machclk_freq;
m                1371 altq/altq_hfsc.c m2ism(u_int m)
m                1375 altq/altq_hfsc.c 	if (m == 0)
m                1378 altq/altq_hfsc.c 		ism = ((u_int64_t)machclk_freq << ISM_SHIFT) * 8 / m;
m                1394 altq/altq_hfsc.c 	u_int64_t m;
m                1396 altq/altq_hfsc.c 	m = (sm * 8 * machclk_freq) >> SM_SHIFT;
m                1397 altq/altq_hfsc.c 	return ((u_int)m);
m                 395 altq/altq_priq.c priq_enqueue(struct ifaltq *ifq, struct mbuf *m, struct altq_pktattr *pktattr)
m                 402 altq/altq_priq.c 	if ((m->m_flags & M_PKTHDR) == 0) {
m                 406 altq/altq_priq.c 		m_freem(m);
m                 409 altq/altq_priq.c 	if ((cl = clh_to_clp(pif, m->m_pkthdr.pf.qid)) == NULL) {
m                 412 altq/altq_priq.c 			m_freem(m);
m                 418 altq/altq_priq.c 	len = m_pktlen(m);
m                 419 altq/altq_priq.c 	if (priq_addq(cl, m) != 0) {
m                 444 altq/altq_priq.c 	struct mbuf *m;
m                 457 altq/altq_priq.c 			m = priq_getq(cl);
m                 458 altq/altq_priq.c 			if (m != NULL) {
m                 462 altq/altq_priq.c 				PKTCNTR_ADD(&cl->cl_xmitcnt, m_pktlen(m));
m                 464 altq/altq_priq.c 			return (m);
m                 471 altq/altq_priq.c priq_addq(struct priq_class *cl, struct mbuf *m)
m                 476 altq/altq_priq.c 		return rio_addq((rio_t *)cl->cl_red, cl->cl_q, m,
m                 481 altq/altq_priq.c 		return red_addq(cl->cl_red, cl->cl_q, m, cl->cl_pktattr);
m                 484 altq/altq_priq.c 		m_freem(m);
m                 489 altq/altq_priq.c 		write_dsfield(m, cl->cl_pktattr, 0);
m                 491 altq/altq_priq.c 	_addq(cl->cl_q, m);
m                 520 altq/altq_priq.c 	struct mbuf *m;
m                 525 altq/altq_priq.c 	while ((m = _getq(cl->cl_q)) != NULL) {
m                 526 altq/altq_priq.c 		PKTCNTR_ADD(&cl->cl_dropcnt, m_pktlen(m));
m                 527 altq/altq_priq.c 		m_freem(m);
m                 262 altq/altq_red.c red_addq(red_t *rp, class_queue_t *q, struct mbuf *m,
m                 322 altq/altq_red.c 			    mark_ecn(m, pktattr, rp->red_flags)) {
m                 347 altq/altq_red.c 		_addq(q, m);
m                 351 altq/altq_red.c 		_addq(q, m);
m                 362 altq/altq_red.c 			m = _getq_random(q);
m                 369 altq/altq_red.c 		PKTCNTR_ADD(&rp->red_stats.drop_cnt, m_pktlen(m));
m                 372 altq/altq_red.c 		m_freem(m);
m                 377 altq/altq_red.c 	PKTCNTR_ADD(&rp->red_stats.xmit_cnt, m_pktlen(m));
m                 420 altq/altq_red.c mark_ecn(struct mbuf *m, struct altq_pktattr *pktattr, int flags)
m                 425 altq/altq_red.c 	hdr = m->m_pkthdr.pf.hdr;
m                 428 altq/altq_red.c 	for (m0 = m; m0 != NULL; m0 = m0->m_next)
m                 502 altq/altq_red.c 	struct mbuf *m;
m                 504 altq/altq_red.c 	if ((m = _getq(q)) == NULL) {
m                 513 altq/altq_red.c 	return (m);
m                 299 altq/altq_rio.c #define	RIOM_SET_PRECINDEX(m, idx)	\
m                 300 altq/altq_rio.c 	do { (m)->m_pkthdr.rcvif = (struct ifnet *)((long)(idx)); } while (0)
m                 301 altq/altq_rio.c #define	RIOM_GET_PRECINDEX(m)	\
m                 302 altq/altq_rio.c 	({ long idx; idx = (long)((m)->m_pkthdr.rcvif); \
m                 303 altq/altq_rio.c 	(m)->m_pkthdr.rcvif = NULL; idx; })
m                 307 altq/altq_rio.c rio_addq(rio_t *rp, class_queue_t *q, struct mbuf *m,
m                 316 altq/altq_rio.c 	dsfield = odsfield = read_dsfield(m, pktattr);
m                 393 altq/altq_rio.c 		PKTCNTR_ADD(&rp->q_stats[dpindex].drop_cnt, m_pktlen(m));
m                 395 altq/altq_rio.c 		m_freem(m);
m                 403 altq/altq_rio.c 	RIOM_SET_PRECINDEX(m, dpindex);
m                 409 altq/altq_rio.c 		write_dsfield(m, pktattr, dsfield);
m                 411 altq/altq_rio.c 	_addq(q, m);
m                 414 altq/altq_rio.c 	PKTCNTR_ADD(&rp->q_stats[dpindex].xmit_cnt, m_pktlen(m));
m                 422 altq/altq_rio.c 	struct mbuf	*m;
m                 425 altq/altq_rio.c 	if ((m = _getq(q)) == NULL)
m                 428 altq/altq_rio.c 	dpindex = RIOM_GET_PRECINDEX(m);
m                 437 altq/altq_rio.c 	return (m);
m                 722 altq/altq_rmclass.c rmc_queue_packet(struct rm_class *cl, mbuf_t *m)
m                 766 altq/altq_rmclass.c 	if (_rmc_addq(cl, m) < 0)
m                 936 altq/altq_rmclass.c 	mbuf_t		*m;
m                1050 altq/altq_rmclass.c 		m = _rmc_getq(cl);
m                1051 altq/altq_rmclass.c 		if (m == NULL)
m                1060 altq/altq_rmclass.c 			cl->bytes_alloc_ -= m_pktlen(m);
m                1068 altq/altq_rmclass.c 		ifd->curlen_[ifd->qi_] = m_pktlen(m);
m                1074 altq/altq_rmclass.c 		m = _rmc_pollq(cl);
m                1077 altq/altq_rmclass.c 	return (m);
m                1089 altq/altq_rmclass.c 	mbuf_t		*m;
m                1165 altq/altq_rmclass.c 		m = _rmc_getq(cl);
m                1166 altq/altq_rmclass.c 		if (m == NULL)
m                1174 altq/altq_rmclass.c 		ifd->curlen_[ifd->qi_] = m_pktlen(m);
m                1180 altq/altq_rmclass.c 		m = _rmc_pollq(cl);
m                1183 altq/altq_rmclass.c 	return (m);
m                1555 altq/altq_rmclass.c _rmc_addq(rm_class_t *cl, mbuf_t *m)
m                1559 altq/altq_rmclass.c 		return rio_addq((rio_t *)cl->red_, cl->q_, m, cl->pktattr_);
m                1563 altq/altq_rmclass.c 		return red_addq(cl->red_, cl->q_, m, cl->pktattr_);
m                1567 altq/altq_rmclass.c 		write_dsfield(m, cl->pktattr_, 0);
m                1569 altq/altq_rmclass.c 	_addq(cl->q_, m);
m                1577 altq/altq_rmclass.c 	mbuf_t	*m;
m                1579 altq/altq_rmclass.c 	if ((m = _getq(cl->q_)) != NULL)
m                1580 altq/altq_rmclass.c 		m_freem(m);
m                1667 altq/altq_rmclass.c _addq(class_queue_t *q, mbuf_t *m)
m                1672 altq/altq_rmclass.c 		m->m_nextpkt = m0->m_nextpkt;
m                1674 altq/altq_rmclass.c 		m0 = m;
m                1675 altq/altq_rmclass.c 	m0->m_nextpkt = m;
m                1676 altq/altq_rmclass.c 	qtail(q) = m;
m                1683 altq/altq_rmclass.c 	mbuf_t	*m, *m0;
m                1685 altq/altq_rmclass.c 	if ((m = qtail(q)) == NULL)
m                1687 altq/altq_rmclass.c 	if ((m0 = m->m_nextpkt) != m)
m                1688 altq/altq_rmclass.c 		m->m_nextpkt = m0->m_nextpkt;
m                1702 altq/altq_rmclass.c 	mbuf_t	*m, *m0, *prev;
m                1704 altq/altq_rmclass.c 	if ((m = m0 = qtail(q)) == NULL)
m                1709 altq/altq_rmclass.c 	} while (m0 != m);
m                1710 altq/altq_rmclass.c 	prev->m_nextpkt = m->m_nextpkt;
m                1711 altq/altq_rmclass.c 	if (prev == m)  {
m                1717 altq/altq_rmclass.c 	m->m_nextpkt = NULL;
m                1718 altq/altq_rmclass.c 	return (m);
m                1725 altq/altq_rmclass.c 	struct mbuf	*m;
m                1728 altq/altq_rmclass.c 	if ((m = qtail(q)) == NULL)
m                1730 altq/altq_rmclass.c 	if (m->m_nextpkt == m) {
m                1738 altq/altq_rmclass.c 			prev = m;
m                1739 altq/altq_rmclass.c 			m = m->m_nextpkt;
m                1741 altq/altq_rmclass.c 		prev->m_nextpkt = m->m_nextpkt;
m                1742 altq/altq_rmclass.c 		if (m == qtail(q))
m                1746 altq/altq_rmclass.c 	m->m_nextpkt = NULL;
m                1747 altq/altq_rmclass.c 	return (m);
m                1751 altq/altq_rmclass.c _removeq(class_queue_t *q, mbuf_t *m)
m                1759 altq/altq_rmclass.c 	} while (m0 != m);
m                1760 altq/altq_rmclass.c 	prev->m_nextpkt = m->m_nextpkt;
m                1761 altq/altq_rmclass.c 	if (prev == m)
m                1763 altq/altq_rmclass.c 	else if (qtail(q) == m)
m                1771 altq/altq_rmclass.c 	mbuf_t *m;
m                1773 altq/altq_rmclass.c 	while ((m = _getq(q)) != NULL)
m                1774 altq/altq_rmclass.c 		m_freem(m);
m                 214 altq/altq_subr.c 	struct mbuf *m;
m                 241 altq/altq_subr.c 		m = (*ifq->altq_dequeue)(ifq, op);
m                 244 altq/altq_subr.c 			IF_POLL(ifq, m);
m                 246 altq/altq_subr.c 			IF_DEQUEUE(ifq, m);
m                 249 altq/altq_subr.c 	if (m != NULL && op == ALTDQ_REMOVE)
m                 250 altq/altq_subr.c 		tbr->tbr_token -= TBR_SCALE(m_pktlen(m));
m                 252 altq/altq_subr.c 	return (m);
m                 606 altq/altq_subr.c read_dsfield(m, pktattr)
m                 607 altq/altq_subr.c 	struct mbuf *m;
m                 618 altq/altq_subr.c 	for (m0 = m; m0 != NULL; m0 = m0->m_next)
m                 653 altq/altq_subr.c write_dsfield(m, pktattr, dsfield)
m                 654 altq/altq_subr.c 	struct mbuf *m;
m                 665 altq/altq_subr.c 	for (m0 = m; m0 != NULL; m0 = m0->m_next)
m                  93 altq/altq_var.h #define	m_pktlen(m)		((m)->m_pkthdr.len)
m                 141 altq/if_altq.h #define	ALTQ_ENQUEUE(ifq, m, pa, err)					\
m                 142 altq/if_altq.h 	(err) = (*(ifq)->altq_enqueue)((ifq),(m),(pa))
m                 143 altq/if_altq.h #define	ALTQ_DEQUEUE(ifq, m)						\
m                 144 altq/if_altq.h 	(m) = (*(ifq)->altq_dequeue)((ifq), ALTDQ_REMOVE)
m                 145 altq/if_altq.h #define	ALTQ_POLL(ifq, m)						\
m                 146 altq/if_altq.h 	(m) = (*(ifq)->altq_dequeue)((ifq), ALTDQ_POLL)
m                3737 arch/i386/i386/machdep.c 	struct mbuf *m;
m                3756 arch/i386/i386/machdep.c 	for (m = m0; m != NULL && error == 0; m = m->m_next) {
m                3757 arch/i386/i386/machdep.c 		if (m->m_len == 0)
m                3759 arch/i386/i386/machdep.c 		error = _bus_dmamap_load_buffer(t, map, m->m_data, m->m_len,
m                3897 arch/i386/i386/machdep.c 	struct vm_page *m;
m                3910 arch/i386/i386/machdep.c 			m = PHYS_TO_VM_PAGE(addr);
m                3911 arch/i386/i386/machdep.c 			TAILQ_INSERT_TAIL(&mlist, m, pageq);
m                4102 arch/i386/i386/machdep.c 	struct vm_page *m;
m                4126 arch/i386/i386/machdep.c 	m = TAILQ_FIRST(&mlist);
m                4128 arch/i386/i386/machdep.c 	lastaddr = segs[curseg].ds_addr = VM_PAGE_TO_PHYS(m);
m                4131 arch/i386/i386/machdep.c 	for (m = TAILQ_NEXT(m, pageq); m != NULL; m = TAILQ_NEXT(m, pageq)) {
m                4132 arch/i386/i386/machdep.c 		curaddr = VM_PAGE_TO_PHYS(m);
m                 415 arch/i386/i386/mpbios.c 	const struct mpbios_fps *m;
m                 416 arch/i386/i386/mpbios.c 	int end = count - sizeof(*m);
m                 421 arch/i386/i386/mpbios.c 		    self->dv_xname, start, start + count - sizeof(*m));
m                 424 arch/i386/i386/mpbios.c 		m = (struct mpbios_fps *)&base[i];
m                 426 arch/i386/i386/mpbios.c 		if ((m->signature == MP_FP_SIG) &&
m                 427 arch/i386/i386/mpbios.c 		    ((len = m->length << 4) != 0) &&
m                 428 arch/i386/i386/mpbios.c 		    mpbios_cksum(m, (m->length << 4)) == 0) {
m                 820 arch/i386/include/bus.h #define	bus_dmamap_create(t, s, n, m, b, f, p)			\
m                 821 arch/i386/include/bus.h 	(*(t)->_dmamap_create)((t), (s), (n), (m), (b), (f), (p))
m                 824 arch/i386/include/bus.h #define	bus_dmamap_load(t, m, b, s, p, f)			\
m                 825 arch/i386/include/bus.h 	(*(t)->_dmamap_load)((t), (m), (b), (s), (p), (f))
m                 826 arch/i386/include/bus.h #define	bus_dmamap_load_mbuf(t, m, b, f)			\
m                 827 arch/i386/include/bus.h 	(*(t)->_dmamap_load_mbuf)((t), (m), (b), (f))
m                 828 arch/i386/include/bus.h #define	bus_dmamap_load_uio(t, m, u, f)				\
m                 829 arch/i386/include/bus.h 	(*(t)->_dmamap_load_uio)((t), (m), (u), (f))
m                 830 arch/i386/include/bus.h #define	bus_dmamap_load_raw(t, m, sg, n, s, f)			\
m                 831 arch/i386/include/bus.h 	(*(t)->_dmamap_load_raw)((t), (m), (sg), (n), (s), (f))
m                 831 arch/i386/isa/isa_machdep.c _isa_bus_dmamap_load_mbuf(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m,
m                 810 arch/i386/isa/pccom.c 	u_char m = 0;
m                 813 arch/i386/isa/pccom.c 		SET(m, MCR_DTR);
m                 815 arch/i386/isa/pccom.c 		SET(m, MCR_RTS);
m                 816 arch/i386/isa/pccom.c 	return m;
m                 864 arch/i386/isa/pccom.c 		u_char m;
m                 867 arch/i386/isa/pccom.c 		m = sc->sc_mcr;
m                 868 arch/i386/isa/pccom.c 		if (ISSET(m, MCR_DTR))
m                 870 arch/i386/isa/pccom.c 		if (ISSET(m, MCR_RTS))
m                 872 arch/i386/isa/pccom.c 		m = sc->sc_msr;
m                 873 arch/i386/isa/pccom.c 		if (ISSET(m, MSR_DCD))
m                 875 arch/i386/isa/pccom.c 		if (ISSET(m, MSR_CTS))
m                 877 arch/i386/isa/pccom.c 		if (ISSET(m, MSR_DSR))
m                 879 arch/i386/isa/pccom.c 		if (ISSET(m, MSR_RI | MSR_TERI))
m                 306 arch/i386/pci/via8231.c via8231_pir_dump(const char *m, struct via8231_handle *ph)
m                 313 arch/i386/pci/via8231.c 	printf("%s STATE: trigger(%02x), routing(%08x)\n", m, a, b);
m                  87 compat/hpux/m68k/hpux_exec.h #define	HPUX_TXTOFF(x, m)						\
m                  88 compat/hpux/m68k/hpux_exec.h 	((((m) == ZMAGIC) ||						\
m                  89 compat/hpux/m68k/hpux_exec.h 	  ((m) == HPUX_MAGIC_SHL) ||					\
m                  90 compat/hpux/m68k/hpux_exec.h 	  ((m) == HPUX_MAGIC_DL)) ?					\
m                  93 compat/hpux/m68k/hpux_exec.h #define	HPUX_DATAOFF(x, m)						\
m                  94 compat/hpux/m68k/hpux_exec.h 	((((m) == ZMAGIC) ||						\
m                  95 compat/hpux/m68k/hpux_exec.h 	  ((m) == HPUX_MAGIC_SHL) ||					\
m                  96 compat/hpux/m68k/hpux_exec.h 	  ((m) == HPUX_MAGIC_DL)) ?					\
m                 100 compat/hpux/m68k/hpux_exec.h #define	HPUX_PASOFF(x, m)						\
m                 101 compat/hpux/m68k/hpux_exec.h 	((((m) == ZMAGIC) ||						\
m                 102 compat/hpux/m68k/hpux_exec.h 	  ((m) == HPUX_MAGIC_SHL) ||					\
m                 103 compat/hpux/m68k/hpux_exec.h 	  ((m) == HPUX_MAGIC_DL)) ?					\
m                 108 compat/hpux/m68k/hpux_exec.h #define	HPUX_SYMOFF(x, m)	(HPUX_PASOFF((x), (m)) + (x).ha_pascal)
m                 109 compat/hpux/m68k/hpux_exec.h #define	HPUX_SUPSYMOFF(x, m)	(HPUX_SYMOFF((x), (m)) + (x).ha_symbols)
m                 110 compat/hpux/m68k/hpux_exec.h #define	HPUX_RTEXTOFF(x, m)	(HPUX_SUPSYMOFF((x), (m)) + (x).ha_supsyms)
m                 111 compat/hpux/m68k/hpux_exec.h #define	HPUX_RDATAOFF(x, m)	(HPUX_RTEXTOFF((x), (m)) + (x).ha_trsize)
m                 112 compat/hpux/m68k/hpux_exec.h #define	HPUX_EXTOFF(x, m)	((x).ha_extentions)
m                 165 compat/hpux/m68k/hpux_net.c socksetsize(size, m)
m                 167 compat/hpux/m68k/hpux_net.c 	struct mbuf *m;
m                 174 compat/hpux/m68k/hpux_net.c 			tmp = (int) *mtod(m, char *);
m                 177 compat/hpux/m68k/hpux_net.c 			tmp = (int) *mtod(m, short *);
m                 181 compat/hpux/m68k/hpux_net.c 			tmp = (((int) *mtod(m, int *)) >> 8) & 0xffffff;
m                 184 compat/hpux/m68k/hpux_net.c 		*mtod(m, int *) = tmp;
m                 185 compat/hpux/m68k/hpux_net.c 		m->m_len = sizeof(int);
m                 187 compat/hpux/m68k/hpux_net.c 		m->m_len = size;
m                 200 compat/hpux/m68k/hpux_net.c 	struct mbuf *m = NULL;
m                 210 compat/hpux/m68k/hpux_net.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 211 compat/hpux/m68k/hpux_net.c 		if ((error = copyin(SCARG(uap, val), mtod(m, caddr_t),
m                 213 compat/hpux/m68k/hpux_net.c 			(void) m_free(m);
m                 217 compat/hpux/m68k/hpux_net.c 			tmp = *mtod(m, int *);
m                 218 compat/hpux/m68k/hpux_net.c 			mtod(m, struct linger *)->l_onoff = 1;
m                 219 compat/hpux/m68k/hpux_net.c 			mtod(m, struct linger *)->l_linger = tmp;
m                 220 compat/hpux/m68k/hpux_net.c 			m->m_len = sizeof(struct linger);
m                 222 compat/hpux/m68k/hpux_net.c 			socksetsize(SCARG(uap, valsize), m);
m                 224 compat/hpux/m68k/hpux_net.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 226 compat/hpux/m68k/hpux_net.c 		mtod(m, struct linger *)->l_onoff = 0;
m                 227 compat/hpux/m68k/hpux_net.c 		m->m_len = sizeof(struct linger);
m                 230 compat/hpux/m68k/hpux_net.c 	    SCARG(uap, name), m);
m                 245 compat/hpux/m68k/hpux_net.c 	struct mbuf *m = NULL;
m                 255 compat/hpux/m68k/hpux_net.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 256 compat/hpux/m68k/hpux_net.c 		if ((error = copyin(SCARG(uap, val), mtod(m, caddr_t),
m                 258 compat/hpux/m68k/hpux_net.c 			m_free(m);
m                 261 compat/hpux/m68k/hpux_net.c 		socksetsize(SCARG(uap, valsize), m);
m                 264 compat/hpux/m68k/hpux_net.c 	    SCARG(uap, name), m);
m                 278 compat/hpux/m68k/hpux_net.c 	struct mbuf *m = NULL;
m                 291 compat/hpux/m68k/hpux_net.c 	    SCARG(uap, name), &m)))
m                 293 compat/hpux/m68k/hpux_net.c 	if (SCARG(uap, val) && valsize && m != NULL) {
m                 295 compat/hpux/m68k/hpux_net.c 			if (mtod(m, struct linger *)->l_onoff)
m                 296 compat/hpux/m68k/hpux_net.c 				*mtod(m, int *) = mtod(m, struct linger *)->l_linger;
m                 298 compat/hpux/m68k/hpux_net.c 				*mtod(m, int *) = 0;
m                 299 compat/hpux/m68k/hpux_net.c 			m->m_len = sizeof(int);
m                 301 compat/hpux/m68k/hpux_net.c 		if (valsize > m->m_len)
m                 302 compat/hpux/m68k/hpux_net.c 			valsize = m->m_len;
m                 303 compat/hpux/m68k/hpux_net.c 		error = copyout(mtod(m, caddr_t), SCARG(uap, val),
m                 311 compat/hpux/m68k/hpux_net.c 	if (m != NULL)
m                 312 compat/hpux/m68k/hpux_net.c 		m_free(m);
m                  52 compat/linux/linux_exec.h #define LINUX_N_TXTOFF(x,m) \
m                  53 compat/linux/linux_exec.h  ((m) == ZMAGIC ? 1024 : ((m) == QMAGIC ? 0 : sizeof (struct exec)))
m                  55 compat/linux/linux_exec.h #define LINUX_N_DATOFF(x,m) (LINUX_N_TXTOFF(x,m) + (x).a_text)
m                  57 compat/linux/linux_exec.h #define LINUX_N_TXTADDR(x,m) ((m) == QMAGIC ? PAGE_SIZE : 0)
m                  61 compat/linux/linux_exec.h #define LINUX__N_TXTENDADDR(x,m) (LINUX_N_TXTADDR(x,m)+(x).a_text)
m                  63 compat/linux/linux_exec.h #define LINUX_N_DATADDR(x,m) \
m                  64 compat/linux/linux_exec.h     ((m)==OMAGIC? (LINUX__N_TXTENDADDR(x,m)) \
m                  65 compat/linux/linux_exec.h      : (LINUX__N_SEGMENT_ROUND (LINUX__N_TXTENDADDR(x,m))))
m                  67 compat/linux/linux_exec.h #define LINUX_N_BSSADDR(x,m) (LINUX_N_DATADDR(x,m) + (x).a_data)
m                 135 compat/sunos/sunos_exec.c #define SUNOS_N_TXTADDR(x,m)	__LDPGSZ
m                 136 compat/sunos/sunos_exec.c #define SUNOS_N_DATADDR(x,m)	(((m)==OMAGIC) ? \
m                 137 compat/sunos/sunos_exec.c 	(SUNOS_N_TXTADDR(x,m) + (x).a_text) : \
m                 138 compat/sunos/sunos_exec.c 	(SEGSIZ + ((SUNOS_N_TXTADDR(x,m) + (x).a_text - 1) & ~(SEGSIZ-1))))
m                 139 compat/sunos/sunos_exec.c #define SUNOS_N_BSSADDR(x,m)	(SUNOS_N_DATADDR(x,m)+(x).a_data)
m                 141 compat/sunos/sunos_exec.c #define SUNOS_N_TXTOFF(x,m)	((m)==ZMAGIC ? 0 : sizeof (struct exec))
m                 142 compat/sunos/sunos_exec.c #define SUNOS_N_DATOFF(x,m)	(SUNOS_N_TXTOFF(x,m) + (x).a_text)
m                 525 compat/sunos/sunos_misc.c 	struct mbuf *m = NULL;
m                 532 compat/sunos/sunos_misc.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 533 compat/sunos/sunos_misc.c 		mtod(m, struct linger *)->l_onoff = 0;
m                 534 compat/sunos/sunos_misc.c 		m->m_len = sizeof(struct linger);
m                 536 compat/sunos/sunos_misc.c 		    SO_LINGER, m));
m                 563 compat/sunos/sunos_misc.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 564 compat/sunos/sunos_misc.c 		error = copyin(SCARG(uap, val), mtod(m, caddr_t),
m                 567 compat/sunos/sunos_misc.c 			(void) m_free(m);
m                 570 compat/sunos/sunos_misc.c 		m->m_len = SCARG(uap, valsize);
m                 573 compat/sunos/sunos_misc.c 	    SCARG(uap, name), m));
m                 347 compat/ultrix/ultrix_misc.c 	struct mbuf *m = NULL;
m                 354 compat/ultrix/ultrix_misc.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 355 compat/ultrix/ultrix_misc.c 		mtod(m, struct linger *)->l_onoff = 0;
m                 356 compat/ultrix/ultrix_misc.c 		m->m_len = sizeof(struct linger);
m                 358 compat/ultrix/ultrix_misc.c 		    SO_LINGER, m));
m                 366 compat/ultrix/ultrix_misc.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 367 compat/ultrix/ultrix_misc.c 		if ((error = copyin(SCARG(uap, val), mtod(m, caddr_t),
m                 369 compat/ultrix/ultrix_misc.c 			(void) m_free(m);
m                 372 compat/ultrix/ultrix_misc.c 		m->m_len = SCARG(uap, valsize);
m                 375 compat/ultrix/ultrix_misc.c 	    SCARG(uap, name), m));
m                  86 crypto/cryptosoft.c 	struct mbuf *m = NULL;
m                  98 crypto/cryptosoft.c 		m = (struct mbuf *) buf;
m                 132 crypto/cryptosoft.c 		m = m_getptr(m, crd->crd_skip, &k);
m                 133 crypto/cryptosoft.c 		if (m == NULL)
m                 143 crypto/cryptosoft.c 			if (m->m_len < k + blks && m->m_len != k) {
m                 144 crypto/cryptosoft.c 				m_copydata(m, k, blks, blk);
m                 185 crypto/cryptosoft.c 				m_copyback(m, k, blks, blk);
m                 188 crypto/cryptosoft.c 				m = m_getptr(m, k + blks, &k);
m                 189 crypto/cryptosoft.c 				if (m == NULL)
m                 200 crypto/cryptosoft.c 			if (k == m->m_len) {
m                 201 crypto/cryptosoft.c 				for (m = m->m_next; m && m->m_len == 0;
m                 202 crypto/cryptosoft.c 				    m = m->m_next)
m                 208 crypto/cryptosoft.c 			if (m == NULL)
m                 216 crypto/cryptosoft.c 			idat = mtod(m, unsigned char *) + k;
m                 218 crypto/cryptosoft.c 			while (m->m_len >= k + blks && i > 0) {
m                 215 crypto/des_locl.h #define PERM_OP(a,b,t,n,m) ((t)=((((a)>>(n))^(b))&(m)),\
m                 142 crypto/set_key.c #define HPERM_OP(a,t,n,m) ((t)=((((a)<<(16-(n)))^(a))&(m)),\
m                 147 ddb/db_hangman.c 	int m;
m                 165 ddb/db_hangman.c 	m = sabc->wrong;
m                 166 ddb/db_hangman.c 	for (i = 'a'; i <= 'z'; ++i, m >>= 1)
m                 167 ddb/db_hangman.c 		if (m&1)
m                1257 dev/acpi/dsdt.c #define aml_derefterm(s, v, m)	aml_derefvalue(s, v, ACPI_IOREAD)
m                2857 dev/audio.c    	struct mixer_asyncs **pm, *m;
m                2861 dev/audio.c    			m = *pm;
m                2862 dev/audio.c    			*pm = m->next;
m                2863 dev/audio.c    			free(m, M_DEVBUF);
m                2875 dev/audio.c    	struct mixer_asyncs *m;
m                2877 dev/audio.c    	for(m = sc->sc_async_mixer; m; m = m->next)
m                2878 dev/audio.c    		psignal(m->proc, SIGIO);
m                 147 dev/ccd.c      #define CCD_DCALL(m,c)		if (ccddebug & (m)) c
m                 148 dev/ccd.c      #define CCD_DPRINTF(m,a)	CCD_DCALL(m, printf a)
m                 156 dev/ccd.c      #define CCD_DCALL(m,c)		/* m, c */
m                 157 dev/ccd.c      #define CCD_DPRINTF(m,a)	/* m, a */
m                 206 dev/i2c/tsl2560.c 	u_int32_t b, m;
m                 214 dev/i2c/tsl2560.c 	b = 0, m = 0;
m                 216 dev/i2c/tsl2560.c 		b = TSL2560_B1T, m = TSL2560_M1T;
m                 218 dev/i2c/tsl2560.c 		b = TSL2560_B2T, m = TSL2560_M2T;
m                 220 dev/i2c/tsl2560.c 		b = TSL2560_B3T, m = TSL2560_M3T;
m                 222 dev/i2c/tsl2560.c 		b = TSL2560_B4T, m = TSL2560_M4T;
m                 224 dev/i2c/tsl2560.c 		b = TSL2560_B5T, m = TSL2560_M5T;
m                 226 dev/i2c/tsl2560.c 		b = TSL2560_B6T, m = TSL2560_M6T;
m                 228 dev/i2c/tsl2560.c 		b = TSL2560_B7T, m = TSL2560_M7T;
m                 230 dev/i2c/tsl2560.c 	lux = b * chan0 - m * chan1;
m                 922 dev/ic/acx.c   		struct mbuf *m;
m                 925 dev/ic/acx.c   		IF_DEQUEUE(&ic->ic_mgtq, m);
m                 926 dev/ic/acx.c   		if (m != NULL) {
m                 927 dev/ic/acx.c   			ni = (struct ieee80211_node *)m->m_pkthdr.rcvif;
m                 928 dev/ic/acx.c   			m->m_pkthdr.rcvif = NULL;
m                 934 dev/ic/acx.c   			wh = mtod(m, struct ieee80211_frame *);
m                 939 dev/ic/acx.c                                   m_freem(m);
m                 952 dev/ic/acx.c   			IFQ_DEQUEUE(&ifp->if_snd, m);
m                 953 dev/ic/acx.c   			if (m == NULL)
m                 960 dev/ic/acx.c   				m_freem(m);
m                 964 dev/ic/acx.c   			if (m->m_len < sizeof(struct ether_header)) {
m                 965 dev/ic/acx.c   				m = m_pullup(m, sizeof(struct ether_header));
m                 966 dev/ic/acx.c   				if (m == NULL) {
m                 971 dev/ic/acx.c   			eh = mtod(m, struct ether_header *);
m                 977 dev/ic/acx.c   				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 980 dev/ic/acx.c   			if ((m = ieee80211_encap(ifp, m, &ni)) == NULL) {
m                 987 dev/ic/acx.c   				bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_OUT);
m                 999 dev/ic/acx.c   		wh = mtod(m, struct ieee80211_frame *);
m                1001 dev/ic/acx.c   			m = ieee80211_wep_crypt(ifp, m, 1);
m                1002 dev/ic/acx.c   			if (m == NULL) {
m                1004 dev/ic/acx.c   				m_freem(m);
m                1024 dev/ic/acx.c   			mb.m_next = m;
m                1032 dev/ic/acx.c   		if (acx_encap(sc, buf, m, ni, rate) != 0) {
m                1316 dev/ic/acx.c   		struct mbuf *m;
m                1332 dev/ic/acx.c   		m = buf->rb_mbuf;
m                1340 dev/ic/acx.c   		head = mtod(m, struct acx_rxbuf_hdr *);
m                1348 dev/ic/acx.c   			m_adj(m, sizeof(struct acx_rxbuf_hdr) +
m                1350 dev/ic/acx.c   			wh = mtod(m, struct ieee80211_frame *);
m                1359 dev/ic/acx.c   					sc->chip_proc_wep_rxbuf(sc, m, &len);
m                1360 dev/ic/acx.c   					wh = mtod(m, struct ieee80211_frame *);
m                1364 dev/ic/acx.c   			m->m_len = m->m_pkthdr.len = len;
m                1365 dev/ic/acx.c   			m->m_pkthdr.rcvif = &ic->ic_if;
m                1382 dev/ic/acx.c   				mb.m_next = m;
m                1392 dev/ic/acx.c   			ieee80211_input(ifp, m, ni, head->rbh_level,
m                1398 dev/ic/acx.c   			m_freem(m);
m                2126 dev/ic/acx.c   	struct mbuf *m;
m                2133 dev/ic/acx.c   	MGETHDR(m, wait ? M_WAITOK : M_DONTWAIT, MT_DATA);
m                2134 dev/ic/acx.c   	if (m == NULL)
m                2137 dev/ic/acx.c   	MCLGET(m, wait ? M_WAITOK : M_DONTWAIT);
m                2138 dev/ic/acx.c   	if (!(m->m_flags & M_EXT)) {
m                2139 dev/ic/acx.c   		m_freem(m);
m                2143 dev/ic/acx.c   	m->m_len = m->m_pkthdr.len = MCLBYTES;
m                2145 dev/ic/acx.c   	error = bus_dmamap_load_mbuf(sc->sc_dmat, bd->mbuf_tmp_dmamap, m,
m                2148 dev/ic/acx.c   		m_freem(m);
m                2164 dev/ic/acx.c   	rb->rb_mbuf = m;
m                2166 dev/ic/acx.c   	rb->rb_desc->h_data_len = htole16(m->m_len);
m                2175 dev/ic/acx.c   acx_encap(struct acx_softc *sc, struct acx_txbuf *txbuf, struct mbuf *m,
m                2190 dev/ic/acx.c   	if (m->m_pkthdr.len > MCLBYTES) {
m                2194 dev/ic/acx.c   	} else if (m->m_pkthdr.len < ACX_FRAME_HDRLEN) {
m                2200 dev/ic/acx.c   	error = bus_dmamap_load_mbuf(sc->sc_dmat, txbuf->tb_mbuf_dmamap, m,
m                2217 dev/ic/acx.c   			m_freem(m);
m                2223 dev/ic/acx.c   		M_DUP_PKTHDR(mnew, m);
m                2224 dev/ic/acx.c   		if (m->m_pkthdr.len > MHLEN) {
m                2227 dev/ic/acx.c   				m_freem(m);
m                2238 dev/ic/acx.c   		m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t));
m                2239 dev/ic/acx.c   		m_freem(m);
m                2241 dev/ic/acx.c   		m = mnew;
m                2244 dev/ic/acx.c   		    txbuf->tb_mbuf_dmamap, m, BUS_DMA_NOWAIT);
m                2257 dev/ic/acx.c   	txbuf->tb_mbuf = m;
m                2286 dev/ic/acx.c   	    : m->m_pkthdr.len);
m                2288 dev/ic/acx.c   	    htole16(m->m_pkthdr.len - ACX_FRAME_HDRLEN);
m                2299 dev/ic/acx.c   	FW_TXDESC_SETFIELD_2(sc, txbuf, f_tx_len, m->m_pkthdr.len);
m                2318 dev/ic/acx.c   		m_freem(m);
m                2381 dev/ic/acx.c   	struct mbuf *m;
m                2386 dev/ic/acx.c   	m = ieee80211_get_probe_resp(ic, ni);
m                2387 dev/ic/acx.c   	if (m == NULL)
m                2389 dev/ic/acx.c   	M_PREPEND(m, sizeof(struct ieee80211_frame), M_DONTWAIT);
m                2390 dev/ic/acx.c   	if (m == NULL)
m                2392 dev/ic/acx.c   	wh = mtod(m, struct ieee80211_frame *);
m                2402 dev/ic/acx.c   	m_copydata(m, 0, m->m_pkthdr.len, (caddr_t)&resp.data);
m                2403 dev/ic/acx.c   	len = m->m_pkthdr.len + sizeof(resp.size);
m                2404 dev/ic/acx.c   	m_freem(m); 
m                2410 dev/ic/acx.c   acx_beacon_locate(struct mbuf *m, u_int8_t type)
m                2422 dev/ic/acx.c   	if (m->m_len != m->m_pkthdr.len)
m                2426 dev/ic/acx.c   	frm = mtod(m, u_int8_t *);
m                2427 dev/ic/acx.c   	for (; off + 1 < m->m_len; off += frm[off + 1] + 2) {
m                2432 dev/ic/acx.c   	return (m->m_len);
m                2441 dev/ic/acx.c   	struct mbuf *m;
m                2447 dev/ic/acx.c   	m = ieee80211_beacon_alloc(ic, ni);
m                2448 dev/ic/acx.c   	if (m == NULL)
m                2451 dev/ic/acx.c   	off = acx_beacon_locate(m, IEEE80211_ELEMID_TIM);
m                2453 dev/ic/acx.c   	m_copydata(m, 0, off, (caddr_t)&beacon.data);
m                2457 dev/ic/acx.c   		m_freem(m);
m                2461 dev/ic/acx.c   	len = m->m_pkthdr.len - off;
m                2464 dev/ic/acx.c   		m_freem(m);
m                2468 dev/ic/acx.c   	m_copydata(m, off, len, (caddr_t)&tim.data);
m                2470 dev/ic/acx.c   	m_freem(m);
m                 712 dev/ic/acx100.c acx100_proc_wep_rxbuf(struct acx_softc *sc, struct mbuf *m, int *len)
m                 720 dev/ic/acx100.c 	f = mtod(m, struct ieee80211_frame *);
m                 734 dev/ic/acx100.c 	m_adj(m, IEEEWEP_IVLEN);
m                 606 dev/ic/aic6360.c aic_sched_msgout(struct aic_softc *sc, u_char m)
m                 613 dev/ic/aic6360.c 	sc->sc_msgpriq |= m;
m                 886 dev/ic/aic6360.c #define IS1BYTEMSG(m) (((m) != 0x01 && (m) < 0x20) || (m) >= 0x80)
m                 887 dev/ic/aic6360.c #define IS2BYTEMSG(m) (((m) & 0xf0) == 0x20)
m                 888 dev/ic/aic6360.c #define ISEXTMSG(m) ((m) == 0x01)
m                 376 dev/ic/aic6915.c 	struct mbuf *m0, *m;
m                 406 dev/ic/aic6915.c 		m = NULL;
m                 423 dev/ic/aic6915.c 			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 424 dev/ic/aic6915.c 			if (m == NULL) {
m                 430 dev/ic/aic6915.c 				MCLGET(m, M_DONTWAIT);
m                 431 dev/ic/aic6915.c 				if ((m->m_flags & M_EXT) == 0) {
m                 434 dev/ic/aic6915.c 					m_freem(m);
m                 438 dev/ic/aic6915.c 			m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                 439 dev/ic/aic6915.c 			m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
m                 441 dev/ic/aic6915.c 			    m, BUS_DMA_WRITE|BUS_DMA_NOWAIT);
m                 453 dev/ic/aic6915.c 		if (m != NULL) {
m                 455 dev/ic/aic6915.c 			m0 = m;
m                 776 dev/ic/aic6915.c 	struct mbuf *m;
m                 828 dev/ic/aic6915.c 		m = ds->ds_mbuf;
m                 843 dev/ic/aic6915.c 		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 844 dev/ic/aic6915.c 		if (m == NULL) {
m                 853 dev/ic/aic6915.c 			MCLGET(m, M_DONTWAIT);
m                 854 dev/ic/aic6915.c 			if ((m->m_flags & M_EXT) == 0) {
m                 855 dev/ic/aic6915.c 				m_freem(m);
m                 859 dev/ic/aic6915.c 		m->m_data += 2;
m                 865 dev/ic/aic6915.c 		memcpy(mtod(m, caddr_t), mtod(ds->ds_mbuf, caddr_t), len);
m                 873 dev/ic/aic6915.c 		m->m_pkthdr.rcvif = ifp;
m                 874 dev/ic/aic6915.c 		m->m_pkthdr.len = m->m_len = len;
m                 881 dev/ic/aic6915.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 885 dev/ic/aic6915.c 		ether_input_mbuf(ifp, m);
m                1283 dev/ic/aic6915.c 	struct mbuf *m;
m                1286 dev/ic/aic6915.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1287 dev/ic/aic6915.c 	if (m == NULL)
m                1290 dev/ic/aic6915.c 	MCLGET(m, M_DONTWAIT);
m                1291 dev/ic/aic6915.c 	if ((m->m_flags & M_EXT) == 0) {
m                1292 dev/ic/aic6915.c 		m_freem(m);
m                1299 dev/ic/aic6915.c 	ds->ds_mbuf = m;
m                1302 dev/ic/aic6915.c 	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                 357 dev/ic/am7990.c am7990_put(sc, boff, m)
m                 360 dev/ic/am7990.c 	register struct mbuf *m;
m                 365 dev/ic/am7990.c 	for (; m; m = n) {
m                 366 dev/ic/am7990.c 		len = m->m_len;
m                 368 dev/ic/am7990.c 			MFREE(m, n);
m                 371 dev/ic/am7990.c 		(*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len);
m                 374 dev/ic/am7990.c 		MFREE(m, n);
m                 394 dev/ic/am7990.c 	register struct mbuf *m;
m                 398 dev/ic/am7990.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 399 dev/ic/am7990.c 	if (m == 0)
m                 401 dev/ic/am7990.c 	m->m_pkthdr.rcvif = ifp;
m                 402 dev/ic/am7990.c 	m->m_pkthdr.len = totlen;
m                 404 dev/ic/am7990.c 	m->m_data += pad;
m                 411 dev/ic/am7990.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 412 dev/ic/am7990.c 			if (m == 0) {
m                 419 dev/ic/am7990.c 			MCLGET(m, M_DONTWAIT);
m                 420 dev/ic/am7990.c 			if (m->m_flags & M_EXT) {
m                 423 dev/ic/am7990.c 					m->m_data += pad;
m                 428 dev/ic/am7990.c 		m->m_len = len = min(totlen, len);
m                 429 dev/ic/am7990.c 		(*sc->sc_copyfrombuf)(sc, mtod(m, caddr_t), boff, len);
m                 432 dev/ic/am7990.c 		*mp = m;
m                 433 dev/ic/am7990.c 		mp = &m->m_next;
m                 447 dev/ic/am7990.c 	struct mbuf *m;
m                 463 dev/ic/am7990.c 	m = am7990_get(sc, boff, len);
m                 464 dev/ic/am7990.c 	if (m == 0) {
m                 477 dev/ic/am7990.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 488 dev/ic/am7990.c 	eh = mtod(m, struct ether_header *);
m                 491 dev/ic/am7990.c 		m_freem(m);
m                 497 dev/ic/am7990.c 	ether_input_mbuf(ifp, m);
m                 753 dev/ic/am7990.c 	register struct mbuf *m;
m                 773 dev/ic/am7990.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 774 dev/ic/am7990.c 		if (m == 0)
m                 783 dev/ic/am7990.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 789 dev/ic/am7990.c 		len = am7990_put(sc, LE_TBUFADDR(sc, bix), m);
m                  79 dev/ic/ami.c   #define	AMI_DPRINTF(m,a)	do { if (ami_debug & (m)) printf a; } while (0)
m                  93 dev/ic/ami.c   #define	AMI_DPRINTF(m,a)	/* m, a */
m                 362 dev/ic/an.c    	struct mbuf *m;
m                 401 dev/ic/an.c    	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 402 dev/ic/an.c    	if (m == NULL) {
m                 409 dev/ic/an.c    		MCLGET(m, M_DONTWAIT);
m                 410 dev/ic/an.c    		if ((m->m_flags & M_EXT) == 0) {
m                 412 dev/ic/an.c    			m_freem(m);
m                 418 dev/ic/an.c    	m->m_data += off - sizeof(struct ieee80211_frame);
m                 424 dev/ic/an.c    			m_freem(m);
m                 438 dev/ic/an.c    		gap = m->m_data + sizeof(struct ieee80211_frame) -
m                 446 dev/ic/an.c    	    m->m_data + sizeof(struct ieee80211_frame) + gaplen, len, len);
m                 447 dev/ic/an.c    	an_swap16((u_int16_t *)(m->m_data + sizeof(struct ieee80211_frame) + gaplen), (len+1)/2);
m                 448 dev/ic/an.c    	m->m_pkthdr.len = m->m_len = sizeof(struct ieee80211_frame) + gaplen +
m                 451 dev/ic/an.c    	memcpy(m->m_data, &frmhdr.an_whdr, sizeof(struct ieee80211_frame));
m                 452 dev/ic/an.c    	m->m_pkthdr.rcvif = ifp;
m                 468 dev/ic/an.c    		mb.m_next = m;
m                 476 dev/ic/an.c    	wh = mtod(m, struct ieee80211_frame *);
m                 486 dev/ic/an.c    	ieee80211_input(ifp, m, ni, frmhdr.an_rx_signal_strength,
m                 774 dev/ic/an.c    an_mwrite_bap(struct an_softc *sc, int id, int off, struct mbuf *m, int totlen)
m                 785 dev/ic/an.c    	for (len = 0; m != NULL; m = m->m_next) {
m                 786 dev/ic/an.c    		if (m->m_len == 0)
m                 788 dev/ic/an.c    		len = min(m->m_len, totlen);
m                 790 dev/ic/an.c    		if ((mtod(m, u_long) & 0x1) || (len & 0x1)) {
m                 791 dev/ic/an.c    			m_copydata(m, 0, totlen, (caddr_t)&sc->sc_buf.sc_txbuf);
m                 800 dev/ic/an.c    		an_swap16((u_int16_t *)mtod(m, u_int16_t *), cnt); 
m                 801 dev/ic/an.c    		CSR_WRITE_MULTI_STREAM_2(sc, AN_DATA0, mtod(m, u_int16_t *),
m                1094 dev/ic/an.c    	struct mbuf *m;
m                1111 dev/ic/an.c    		IFQ_POLL(&ifp->if_snd, m);
m                1112 dev/ic/an.c    		if (m == NULL) {
m                1122 dev/ic/an.c    		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1126 dev/ic/an.c    			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1128 dev/ic/an.c    		if ((m = ieee80211_encap(ifp, m, &ni)) == NULL) {
m                1136 dev/ic/an.c    			bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_OUT);
m                1139 dev/ic/an.c    		wh = mtod(m, struct ieee80211_frame *);
m                1142 dev/ic/an.c    		m_copydata(m, 0, sizeof(struct ieee80211_frame),
m                1147 dev/ic/an.c    		len = htons(m->m_pkthdr.len - sizeof(struct ieee80211_frame));
m                1148 dev/ic/an.c    		m_adj(m, sizeof(struct ieee80211_frame) - sizeof(len));
m                1149 dev/ic/an.c    		if (mtod(m, u_long) & 0x01)
m                1150 dev/ic/an.c    			memcpy(mtod(m, caddr_t), &len, sizeof(len));
m                1152 dev/ic/an.c    			*mtod(m, u_int16_t *) = len;
m                1164 dev/ic/an.c    		m_adj(m, sizeof(struct llc));
m                1167 dev/ic/an.c    		frmhdr.an_tx_payload_len = m->m_pkthdr.len;
m                1178 dev/ic/an.c    		    m->m_pkthdr.len > AN_TX_MAX_LEN) {
m                1180 dev/ic/an.c    			m_freem(m);
m                1198 dev/ic/an.c    			mb.m_next = m;
m                1202 dev/ic/an.c    			bpf_mtap(sc->sc_drvbpf, m, BPF_DIRECTION_OUT);
m                1209 dev/ic/an.c    			m_freem(m);
m                1214 dev/ic/an.c    		an_mwrite_bap(sc, fid, -1, m, m->m_pkthdr.len);
m                1215 dev/ic/an.c    		m_freem(m);
m                 898 dev/ic/ath.c   	struct mbuf *m;
m                 925 dev/ic/ath.c   		IF_DEQUEUE(&ic->ic_mgtq, m);
m                 926 dev/ic/ath.c   		if (m == NULL) {
m                 940 dev/ic/ath.c   			IFQ_DEQUEUE(&ifp->if_snd, m);
m                 941 dev/ic/ath.c   			if (m == NULL) {
m                 951 dev/ic/ath.c   				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 957 dev/ic/ath.c   			m = ieee80211_encap(ifp, m, &ni);
m                 958 dev/ic/ath.c   			if (m == NULL) {
m                 965 dev/ic/ath.c   			wh = mtod(m, struct ieee80211_frame *);
m                 976 dev/ic/ath.c   			ni = (struct ieee80211_node *) m->m_pkthdr.rcvif;
m                 977 dev/ic/ath.c   			m->m_pkthdr.rcvif = NULL;
m                 979 dev/ic/ath.c   			wh = mtod(m, struct ieee80211_frame *);
m                 996 dev/ic/ath.c   		if (ath_tx_start(sc, ni, bf, m)) {
m                1273 dev/ic/ath.c   	struct mbuf *m;
m                1278 dev/ic/ath.c   		MGETHDR(m, flags, type);
m                1280 dev/ic/ath.c   		m = m_getcl(flags, type, M_PKTHDR);
m                1283 dev/ic/ath.c   	MGETHDR(m, flags, type);
m                1284 dev/ic/ath.c   	if (m != NULL && pktlen > MHLEN) {
m                1285 dev/ic/ath.c   		MCLGET(m, flags);
m                1286 dev/ic/ath.c   		if ((m->m_flags & M_EXT) == 0) {
m                1287 dev/ic/ath.c   			m_free(m);
m                1288 dev/ic/ath.c   			m = NULL;
m                1292 dev/ic/ath.c   	return m;
m                1302 dev/ic/ath.c   	struct mbuf *m;
m                1320 dev/ic/ath.c   	m = ieee80211_beacon_alloc(ic, ni);
m                1321 dev/ic/ath.c   	if (m == NULL) {
m                1328 dev/ic/ath.c   	DPRINTF(ATH_DEBUG_BEACON, ("%s: m %p len %u\n", __func__, m, m->m_len));
m                1329 dev/ic/ath.c   	error = bus_dmamap_load_mbuf(sc->sc_dmat, bf->bf_dmamap, m,
m                1332 dev/ic/ath.c   		m_freem(m);
m                1337 dev/ic/ath.c   	bf->bf_m = m;
m                1371 dev/ic/ath.c   		, m->m_pkthdr.len + IEEE80211_CRC_LEN	/* packet length */
m                1809 dev/ic/ath.c   	struct mbuf *m;
m                1812 dev/ic/ath.c   	m = bf->bf_m;
m                1813 dev/ic/ath.c   	if (m == NULL) {
m                1821 dev/ic/ath.c   		m = ath_getmbuf(M_DONTWAIT, MT_DATA, MCLBYTES);
m                1822 dev/ic/ath.c   		if (m == NULL) {
m                1828 dev/ic/ath.c   		bf->bf_m = m;
m                1829 dev/ic/ath.c   		m->m_pkthdr.len = m->m_len = m->m_ext.ext_size;
m                1831 dev/ic/ath.c   		error = bus_dmamap_load_mbuf(sc->sc_dmat, bf->bf_dmamap, m,
m                1868 dev/ic/ath.c   		, m->m_len		/* buffer size */
m                1890 dev/ic/ath.c   	struct mbuf *m;
m                1911 dev/ic/ath.c   		m = bf->bf_m;
m                1912 dev/ic/ath.c   		if (m == NULL) {		/* NB: shouldn't happen */
m                2001 dev/ic/ath.c   		m->m_pkthdr.rcvif = ifp;
m                2002 dev/ic/ath.c   		m->m_pkthdr.len = m->m_len = len;
m                2017 dev/ic/ath.c   			mb.m_next = m;
m                2025 dev/ic/ath.c   		m_adj(m, -IEEE80211_CRC_LEN);
m                2026 dev/ic/ath.c   		wh = mtod(m, struct ieee80211_frame *);
m                2034 dev/ic/ath.c   			m_adj(m, IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN);
m                2035 dev/ic/ath.c   			wh = mtod(m, struct ieee80211_frame *);
m                2040 dev/ic/ath.c   			m_adj(m, -IEEE80211_WEP_CRCLEN);
m                2044 dev/ic/ath.c   			wh = mtod(m, struct ieee80211_frame *);
m                2068 dev/ic/ath.c   		ieee80211_input(ifp, m, ni,
m                2109 dev/ic/ath.c   	struct mbuf *m;
m                2203 dev/ic/ath.c   		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2204 dev/ic/ath.c   		if (m == NULL) {
m                2210 dev/ic/ath.c   		M_DUP_PKTHDR(m, m0);
m                2211 dev/ic/ath.c   		MCLGET(m, M_DONTWAIT);
m                2212 dev/ic/ath.c   		if ((m->m_flags & M_EXT) == 0) {
m                2215 dev/ic/ath.c   			m_free(m);
m                2218 dev/ic/ath.c   		m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                2220 dev/ic/ath.c   		m->m_len = m->m_pkthdr.len;
m                2221 dev/ic/ath.c   		m0 = m;
m                2987 dev/ic/ath.c   ath_recv_mgmt(struct ieee80211com *ic, struct mbuf *m,
m                2993 dev/ic/ath.c   	(*sc->sc_recv_mgmt)(ic, m, ni, subtype, rssi, rstamp);
m                2276 dev/ic/atw.c   atw_recv_mgmt(struct ieee80211com *ic, struct mbuf *m,
m                2286 dev/ic/atw.c   	(*sc->sc_recv_mgmt)(ic, m, ni, subtype, rssi, rstamp);
m                2611 dev/ic/atw.c   	struct mbuf *m;
m                2614 dev/ic/atw.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2615 dev/ic/atw.c   	if (m == NULL)
m                2618 dev/ic/atw.c   	MCLGET(m, M_DONTWAIT);
m                2619 dev/ic/atw.c   	if ((m->m_flags & M_EXT) == 0) {
m                2620 dev/ic/atw.c   		m_freem(m);
m                2627 dev/ic/atw.c   	rxs->rxs_mbuf = m;
m                2630 dev/ic/atw.c   	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                3085 dev/ic/atw.c   	struct mbuf *m;
m                3170 dev/ic/atw.c   		m = rxs->rxs_mbuf;
m                3182 dev/ic/atw.c   		m->m_pkthdr.rcvif = ifp;
m                3183 dev/ic/atw.c   		m->m_pkthdr.len = m->m_len = MIN(m->m_ext.ext_size, len);
m                3219 dev/ic/atw.c   			mb.m_next = m;
m                3227 dev/ic/atw.c   		wh = mtod(m, struct ieee80211_frame *);
m                3233 dev/ic/atw.c   		ieee80211_input(ifp, m, ni, (int)rssi, 0);
m                3586 dev/ic/atw.c   	struct mbuf *m;
m                3592 dev/ic/atw.c   	for (m = m0; m; m = m->m_next) {
m                3593 dev/ic/atw.c   		if (m->m_len == 0)
m                3595 dev/ic/atw.c   		for (i = 0; i < m->m_len; i++) {
m                3596 dev/ic/atw.c   			printf(" %02x", ((u_int8_t*)m->m_data)[i]);
m                3619 dev/ic/atw.c   	struct mbuf *m0, *m;
m                3847 dev/ic/atw.c   			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                3848 dev/ic/atw.c   			if (m == NULL) {
m                3854 dev/ic/atw.c   				MCLGET(m, M_DONTWAIT);
m                3855 dev/ic/atw.c   				if ((m->m_flags & M_EXT) == 0) {
m                3858 dev/ic/atw.c   					m_freem(m);
m                3862 dev/ic/atw.c   			m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                3863 dev/ic/atw.c   			m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
m                3865 dev/ic/atw.c   			m0 = m;
m                3866 dev/ic/atw.c   			m = NULL;
m                  59 dev/ic/atwreg.h #define BITS(m, n) ((BIT(MAX((m), (n)) + 1) - 1) ^ (BIT(MIN((m), (n))) - 1))
m                  67 dev/ic/atwreg.h #define MASK_TO_SHIFT2(m) (GTEQ_POWER(LOWEST_SET_BIT((m)), 1) ? 1 : 0)
m                  69 dev/ic/atwreg.h #define MASK_TO_SHIFT4(m) \
m                  70 dev/ic/atwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 2) \
m                  71 dev/ic/atwreg.h 	    ? 2 + MASK_TO_SHIFT2((m) >> 2) \
m                  72 dev/ic/atwreg.h 	    : MASK_TO_SHIFT2((m)))
m                  74 dev/ic/atwreg.h #define MASK_TO_SHIFT8(m) \
m                  75 dev/ic/atwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 4) \
m                  76 dev/ic/atwreg.h 	    ? 4 + MASK_TO_SHIFT4((m) >> 4) \
m                  77 dev/ic/atwreg.h 	    : MASK_TO_SHIFT4((m)))
m                  79 dev/ic/atwreg.h #define MASK_TO_SHIFT16(m) \
m                  80 dev/ic/atwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 8) \
m                  81 dev/ic/atwreg.h 	    ? 8 + MASK_TO_SHIFT8((m) >> 8) \
m                  82 dev/ic/atwreg.h 	    : MASK_TO_SHIFT8((m)))
m                  84 dev/ic/atwreg.h #define MASK_TO_SHIFT(m) \
m                  85 dev/ic/atwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 16) \
m                  86 dev/ic/atwreg.h 	    ? 16 + MASK_TO_SHIFT16((m) >> 16) \
m                  87 dev/ic/atwreg.h 	    : MASK_TO_SHIFT16((m)))
m                  92 dev/ic/atwreg.h #define PRESHIFT(m) MASK_AND_RSHIFT((m), (m))
m                 178 dev/ic/awi.c   static void awi_input(struct awi_softc *sc, struct mbuf *m, u_int32_t rxts, u_int8_t rssi);
m                 210 dev/ic/awi.c   static void awi_dump_pkt(struct awi_softc *sc, struct mbuf *m, int rssi);
m                 223 dev/ic/awi.c   #define	AWI_BPF_MTAP(sc, m, raw, dir) do {				\
m                 225 dev/ic/awi.c   		bpf_mtap((sc)->sc_ifp, (m));				\
m                 228 dev/ic/awi.c   #define	AWI_BPF_MTAP(sc, m, raw, dir) do {				\
m                 230 dev/ic/awi.c   		bpf_mtap((sc)->sc_ifp->if_bpf, (m), dir);		\
m                 234 dev/ic/awi.c   #define	AWI_BPF_MTAP(sc, m, raw, dir)
m                 880 dev/ic/awi.c   	struct mbuf *m;
m                 894 dev/ic/awi.c   		IF_DEQUEUE(&sc->sc_mgtq, m);
m                 895 dev/ic/awi.c   		if (m == NULL)
m                 897 dev/ic/awi.c   		m_freem(m);
m                 961 dev/ic/awi.c   	struct mbuf *m0, *m;
m                1009 dev/ic/awi.c   		for (m = m0; m != NULL; m = m->m_next) {
m                1010 dev/ic/awi.c   			awi_write_bytes(sc, frame + len, mtod(m, u_int8_t *),
m                1011 dev/ic/awi.c   			    m->m_len);
m                1012 dev/ic/awi.c   			len += m->m_len;
m                1210 dev/ic/awi.c   awi_input(sc, m, rxts, rssi)
m                1212 dev/ic/awi.c   	struct mbuf *m;
m                1220 dev/ic/awi.c   	m_adj(m, -ETHER_CRC_LEN);
m                1221 dev/ic/awi.c   	AWI_BPF_MTAP(sc, m, AWI_BPF_RAW, BPF_DIRECTION_IN);
m                1222 dev/ic/awi.c   	wh = mtod(m, struct ieee80211_frame *);
m                1227 dev/ic/awi.c   		m_freem(m);
m                1232 dev/ic/awi.c   		m = awi_wep_encrypt(sc, m, 0);
m                1233 dev/ic/awi.c   		if (m == NULL) {
m                1237 dev/ic/awi.c   		wh = mtod(m, struct ieee80211_frame *);
m                1241 dev/ic/awi.c   		awi_dump_pkt(sc, m, rssi);
m                1256 dev/ic/awi.c   				m_freem(m);
m                1262 dev/ic/awi.c   				m_freem(m);
m                1266 dev/ic/awi.c   		m = awi_fix_rxhdr(sc, m);
m                1267 dev/ic/awi.c   		if (m == NULL) {
m                1273 dev/ic/awi.c   		AWI_BPF_MTAP(sc, m, AWI_BPF_NORM, BPF_DIRECTION_IN);
m                1276 dev/ic/awi.c   		(*ifp->if_input)(ifp, m);
m                1278 dev/ic/awi.c   		ether_input_mbuf(ifp, m);
m                1284 dev/ic/awi.c   			m_freem(m);
m                1290 dev/ic/awi.c   			awi_recv_beacon(sc, m, rxts, rssi);
m                1293 dev/ic/awi.c   			awi_recv_auth(sc, m);
m                1297 dev/ic/awi.c   			awi_recv_asresp(sc, m);
m                1308 dev/ic/awi.c   		m_freem(m);
m                1313 dev/ic/awi.c   		m_freem(m);
m                1325 dev/ic/awi.c   	struct mbuf *m;
m                1341 dev/ic/awi.c   				m = awi_devget(sc, frame, len);
m                1343 dev/ic/awi.c   					awi_input(sc, m, rxts, rssi);
m                1345 dev/ic/awi.c   					sc->sc_rxpend = m;
m                1369 dev/ic/awi.c   	struct mbuf *m;
m                1378 dev/ic/awi.c   		m = top;
m                1380 dev/ic/awi.c   			m = *mp;
m                1381 dev/ic/awi.c   			mp = &m->m_next;
m                1383 dev/ic/awi.c   		if (m->m_flags & M_EXT)
m                1384 dev/ic/awi.c   			tlen = m->m_ext.ext_size;
m                1385 dev/ic/awi.c   		else if (m->m_flags & M_PKTHDR)
m                1389 dev/ic/awi.c   		tlen -= m->m_len;
m                1392 dev/ic/awi.c   		awi_read_bytes(sc, off, mtod(m, u_int8_t *) + m->m_len, tlen);
m                1399 dev/ic/awi.c   			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1400 dev/ic/awi.c   			if (m == NULL)
m                1402 dev/ic/awi.c   			m->m_pkthdr.rcvif = sc->sc_ifp;
m                1403 dev/ic/awi.c   			m->m_pkthdr.len = len;
m                1404 dev/ic/awi.c   			m->m_len = MHLEN;
m                1406 dev/ic/awi.c   			MGET(m, M_DONTWAIT, MT_DATA);
m                1407 dev/ic/awi.c   			if (m == NULL) {
m                1411 dev/ic/awi.c   			m->m_len = MLEN;
m                1414 dev/ic/awi.c   			MCLGET(m, M_DONTWAIT);
m                1415 dev/ic/awi.c   			if (m->m_flags & M_EXT)
m                1416 dev/ic/awi.c   				m->m_len = m->m_ext.ext_size;
m                1423 dev/ic/awi.c   			    ALIGN(m->m_data + hdrlen) - hdrlen;
m                1424 dev/ic/awi.c   			m->m_len -= newdata - m->m_data;
m                1425 dev/ic/awi.c   			m->m_data = newdata;
m                1427 dev/ic/awi.c   		if (m->m_len > len)
m                1428 dev/ic/awi.c   			m->m_len = len;
m                1429 dev/ic/awi.c   		awi_read_bytes(sc, off, mtod(m, u_int8_t *), m->m_len);
m                1430 dev/ic/awi.c   		off += m->m_len;
m                1431 dev/ic/awi.c   		len -= m->m_len;
m                1432 dev/ic/awi.c   		*mp = m;
m                1433 dev/ic/awi.c   		mp = &m->m_next;
m                2079 dev/ic/awi.c   	struct mbuf *m;
m                2083 dev/ic/awi.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2084 dev/ic/awi.c   	if (m == NULL)
m                2090 dev/ic/awi.c   	wh = mtod(m, struct ieee80211_frame *);
m                2104 dev/ic/awi.c   	m->m_pkthdr.len = m->m_len = deauth - mtod(m, u_int8_t *);
m                2105 dev/ic/awi.c   	IF_ENQUEUE(&sc->sc_mgtq, m);
m                2116 dev/ic/awi.c   	struct mbuf *m;
m                2120 dev/ic/awi.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2121 dev/ic/awi.c   	if (m == NULL)
m                2128 dev/ic/awi.c   	wh = mtod(m, struct ieee80211_frame *);
m                2149 dev/ic/awi.c   	m->m_pkthdr.len = m->m_len = auth - mtod(m, u_int8_t *);
m                2150 dev/ic/awi.c   	IF_ENQUEUE(&sc->sc_mgtq, m);
m                2217 dev/ic/awi.c   	struct mbuf *m;
m                2222 dev/ic/awi.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2223 dev/ic/awi.c   	if (m == NULL)
m                2231 dev/ic/awi.c   	wh = mtod(m, struct ieee80211_frame *);
m                2269 dev/ic/awi.c   	m->m_pkthdr.len = m->m_len = asreq - mtod(m, u_int8_t *);
m                2270 dev/ic/awi.c   	IF_ENQUEUE(&sc->sc_mgtq, m);
m                2725 dev/ic/awi.c   awi_dump_pkt(sc, m, rssi)
m                2727 dev/ic/awi.c   	struct mbuf *m;
m                2733 dev/ic/awi.c   	wh = mtod(m, struct ieee80211_frame *);
m                2825 dev/ic/awi.c   		l = m->m_len;
m                2834 dev/ic/awi.c   			printf("%02x", mtod(m, u_int8_t *)[i]);
m                 325 dev/ic/awi_wep.c 	struct mbuf *m, *n, *n0;
m                 339 dev/ic/awi_wep.c 	m = m0;
m                 340 dev/ic/awi_wep.c 	left = m->m_pkthdr.len;
m                 341 dev/ic/awi_wep.c 	MGET(n, M_DONTWAIT, m->m_type);
m                 345 dev/ic/awi_wep.c 	M_DUP_PKTHDR(n, m);
m                 362 dev/ic/awi_wep.c 	memcpy(mtod(n, caddr_t), mtod(m, caddr_t), len);
m                 382 dev/ic/awi_wep.c 		ivp = mtod(m, u_int8_t *) + moff;
m                 397 dev/ic/awi_wep.c 		len = m->m_len - moff;
m                 399 dev/ic/awi_wep.c 			m = m->m_next;
m                 424 dev/ic/awi_wep.c 			    mtod(m, caddr_t) + moff, len);
m                 425 dev/ic/awi_wep.c 			crc = awi_crc_update(crc, mtod(m, caddr_t) + moff, len);
m                 428 dev/ic/awi_wep.c 			    mtod(m, caddr_t) + moff, len);
m                 454 dev/ic/awi_wep.c 		for (; noff < sizeof(crcbuf); noff += len, m = m->m_next) {
m                 455 dev/ic/awi_wep.c 			if (m->m_len < moff + len)
m                 456 dev/ic/awi_wep.c 				len = m->m_len - moff;
m                 460 dev/ic/awi_wep.c 			    mtod(m, caddr_t) + moff, len);
m                 104 dev/ic/bhavar.h #define	BHA_MBI_OFF(m)	(offsetof(struct bha_control, bc_mbx.mbi[0]) +	\
m                 105 dev/ic/bhavar.h 			    (((u_long)(m)) - ((u_long)&wmbx->mbi[0])))
m                 110 dev/ic/bhavar.h #define	BHA_MBO_OFF(m)	(offsetof(struct bha_control, bc_mbx.mbo[0]) +	\
m                 111 dev/ic/bhavar.h 			    (((u_long)(m)) - ((u_long)&wmbx->mbo[0])))
m                  49 dev/ic/ciss.c  #define	CISS_DPRINTF(m,a)	if (ciss_debug & (m)) printf a
m                  65 dev/ic/ciss.c  #define	CISS_DPRINTF(m,a)	/* m, a */
m                 613 dev/ic/com.c   	u_char m = 0;
m                 616 dev/ic/com.c   		SET(m, MCR_DTR);
m                 618 dev/ic/com.c   		SET(m, MCR_RTS);
m                 619 dev/ic/com.c   	return m;
m                 667 dev/ic/com.c   		u_char m;
m                 670 dev/ic/com.c   		m = sc->sc_mcr;
m                 671 dev/ic/com.c   		if (ISSET(m, MCR_DTR))
m                 673 dev/ic/com.c   		if (ISSET(m, MCR_RTS))
m                 675 dev/ic/com.c   		m = sc->sc_msr;
m                 676 dev/ic/com.c   		if (ISSET(m, MSR_DCD))
m                 678 dev/ic/com.c   		if (ISSET(m, MSR_CTS))
m                 680 dev/ic/com.c   		if (ISSET(m, MSR_DSR))
m                 682 dev/ic/com.c   		if (ISSET(m, MSR_RI | MSR_TERI))
m                1444 dev/ic/dc.c    	struct dc_mediainfo *m;
m                1449 dev/ic/dc.c    	m = sc->dc_mi;
m                1451 dev/ic/dc.c    	while (m != NULL) {
m                1452 dev/ic/dc.c    		if (m->dc_media == media)
m                1454 dev/ic/dc.c    		m = m->dc_next;
m                1457 dev/ic/dc.c    	if (m == NULL)
m                1460 dev/ic/dc.c    	for (i = 0, p = m->dc_reset_ptr; i < m->dc_reset_len; i++, p += 2) {
m                1465 dev/ic/dc.c    	for (i = 0, p = m->dc_gp_ptr; i < m->dc_gp_len; i++, p += 2) {
m                1476 dev/ic/dc.c    	struct dc_mediainfo *m;
m                1478 dev/ic/dc.c    	m = malloc(sizeof(struct dc_mediainfo), M_DEVBUF, M_NOWAIT);
m                1479 dev/ic/dc.c    	if (m == NULL)
m                1481 dev/ic/dc.c    	bzero(m, sizeof(struct dc_mediainfo));
m                1484 dev/ic/dc.c    		m->dc_media = IFM_10_T;
m                1487 dev/ic/dc.c    		m->dc_media = IFM_10_T|IFM_FDX;
m                1490 dev/ic/dc.c    		m->dc_media = IFM_10_2;
m                1493 dev/ic/dc.c    		m->dc_media = IFM_10_5;
m                1505 dev/ic/dc.c    		m->dc_gp_len = 2;
m                1506 dev/ic/dc.c    		m->dc_gp_ptr =
m                1509 dev/ic/dc.c    		m->dc_gp_len = 2;
m                1510 dev/ic/dc.c    		m->dc_gp_ptr =
m                1514 dev/ic/dc.c    	m->dc_next = sc->dc_mi;
m                1515 dev/ic/dc.c    	sc->dc_mi = m;
m                1525 dev/ic/dc.c    	struct dc_mediainfo *m;
m                1527 dev/ic/dc.c    	m = malloc(sizeof(struct dc_mediainfo), M_DEVBUF, M_NOWAIT);
m                1528 dev/ic/dc.c    	if (m == NULL)
m                1530 dev/ic/dc.c    	bzero(m, sizeof(struct dc_mediainfo));
m                1532 dev/ic/dc.c    		m->dc_media = IFM_100_TX;
m                1535 dev/ic/dc.c    		m->dc_media = IFM_100_TX|IFM_FDX;
m                1537 dev/ic/dc.c    	m->dc_gp_len = 2;
m                1538 dev/ic/dc.c    	m->dc_gp_ptr = (u_int8_t *)&l->dc_sym_gpio_ctl;
m                1540 dev/ic/dc.c    	m->dc_next = sc->dc_mi;
m                1541 dev/ic/dc.c    	sc->dc_mi = m;
m                1552 dev/ic/dc.c    	struct dc_mediainfo *m;
m                1554 dev/ic/dc.c    	m = malloc(sizeof(struct dc_mediainfo), M_DEVBUF, M_NOWAIT);
m                1555 dev/ic/dc.c    	if (m == NULL)
m                1557 dev/ic/dc.c    	bzero(m, sizeof(struct dc_mediainfo));
m                1559 dev/ic/dc.c    	m->dc_media = IFM_AUTO;
m                1560 dev/ic/dc.c    	m->dc_gp_len = l->dc_gpr_len;
m                1564 dev/ic/dc.c    	m->dc_gp_ptr = p;
m                1566 dev/ic/dc.c    	m->dc_reset_len = *p;
m                1568 dev/ic/dc.c    	m->dc_reset_ptr = p;
m                1570 dev/ic/dc.c    	m->dc_next = sc->dc_mi;
m                1571 dev/ic/dc.c    	sc->dc_mi = m;
m                1935 dev/ic/dc.c    dc_newbuf(sc, i, m)
m                1938 dev/ic/dc.c    	struct mbuf *m;
m                1946 dev/ic/dc.c    	if (m == NULL) {
m                1971 dev/ic/dc.c    		m_new = m;
m                2065 dev/ic/dc.c    	struct mbuf		*m = NULL;
m                2079 dev/ic/dc.c    		m = sc->dc_cdata.dc_rx_chain[i].sd_mbuf;
m                2080 dev/ic/dc.c    		bcopy(mtod(m, char *), ptr, ETHER_MAX_DIX_LEN);
m                2085 dev/ic/dc.c    		dc_newbuf(sc, i, m);
m                2110 dev/ic/dc.c    	dc_newbuf(sc, i, m);
m                2111 dev/ic/dc.c    	bcopy(ptr, mtod(m, char *), total_len);	
m                2166 dev/ic/dc.c    	struct mbuf *m;
m                2188 dev/ic/dc.c    		m = sc->dc_cdata.dc_rx_chain[i].sd_mbuf;
m                2226 dev/ic/dc.c    				dc_newbuf(sc, i, m);
m                2240 dev/ic/dc.c    		m->m_pkthdr.rcvif = ifp;
m                2241 dev/ic/dc.c    		m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                2243 dev/ic/dc.c    		dc_newbuf(sc, i, m);
m                2250 dev/ic/dc.c    		m = m0;
m                2255 dev/ic/dc.c    			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                2257 dev/ic/dc.c    		ether_input_mbuf(ifp, m);
m                2689 dev/ic/dc.c    	struct mbuf		*m_new, *m;
m                2691 dev/ic/dc.c    	m = *m_head;
m                2695 dev/ic/dc.c    	if (m->m_pkthdr.len > MHLEN) {
m                2702 dev/ic/dc.c    	m_copydata(m, 0, m->m_pkthdr.len, mtod(m_new, caddr_t));
m                2703 dev/ic/dc.c    	m_new->m_pkthdr.len = m_new->m_len = m->m_pkthdr.len;
m                2704 dev/ic/dc.c    	m_freem(m);
m                 927 dev/ic/dp8390.c 	struct mbuf *m;
m                 930 dev/ic/dp8390.c 	m = dp8390_get(sc, buf, len);
m                 931 dev/ic/dp8390.c 	if (m == 0) {
m                 944 dev/ic/dp8390.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 947 dev/ic/dp8390.c 	ether_input_mbuf(ifp, m);
m                1024 dev/ic/dp8390.c 	struct mbuf *m, *m0, *newm;
m                1033 dev/ic/dp8390.c 	m = m0;
m                1037 dev/ic/dp8390.c 			MCLGET(m, M_DONTWAIT);
m                1038 dev/ic/dp8390.c 			if (!(m->m_flags & M_EXT))
m                1046 dev/ic/dp8390.c 		if (m == m0) {
m                1048 dev/ic/dp8390.c 			    ALIGN(m->m_data + sizeof(struct ether_header)) -
m                1050 dev/ic/dp8390.c 			len -= newdata - m->m_data;
m                1051 dev/ic/dp8390.c 			m->m_data = newdata;
m                1054 dev/ic/dp8390.c 		m->m_len = len = min(total_len, len);
m                1056 dev/ic/dp8390.c 			src = (*sc->ring_copy)(sc, src, mtod(m, caddr_t), len);
m                1058 dev/ic/dp8390.c 			src = dp8390_ring_copy(sc, src, mtod(m, caddr_t), len);
m                1066 dev/ic/dp8390.c 			m = m->m_next = newm;
m                1160 dev/ic/dp8390.c dp8390_write_mbuf(struct dp8390_softc *sc, struct mbuf *m, int buf)
m                1167 dev/ic/dp8390.c 	for (; m ; m = m->m_next) {
m                1168 dev/ic/dp8390.c 		data = mtod(m, u_char *);
m                1169 dev/ic/dp8390.c 		len = m->m_len;
m                  35 dev/ic/dptvar.h #define	CCB_OFF(sc,m)	((u_long)(m) - (u_long)((sc)->sc_ccbs))
m                 976 dev/ic/elink3.c 	struct mbuf *m, *m0;
m                1044 dev/ic/elink3.c 		for (m = m0; m; ) {
m                1045 dev/ic/elink3.c 			if (m->m_len > 3)
m                1047 dev/ic/elink3.c 				    mtod(m, u_int8_t *), m->m_len & ~3);
m                1048 dev/ic/elink3.c 			if (m->m_len & 3)
m                1050 dev/ic/elink3.c 				    mtod(m, u_int8_t *) + (m->m_len & ~3),
m                1051 dev/ic/elink3.c 				    m->m_len & 3);
m                1052 dev/ic/elink3.c 			MFREE(m, m0);
m                1053 dev/ic/elink3.c 			m = m0;
m                1056 dev/ic/elink3.c 		for (m = m0; m; ) {
m                1057 dev/ic/elink3.c 			if (m->m_len > 1)
m                1059 dev/ic/elink3.c 				    mtod(m, u_int8_t *), m->m_len & ~1);
m                1060 dev/ic/elink3.c 			if (m->m_len & 1)
m                1062 dev/ic/elink3.c 				     *(mtod(m, u_int8_t *) + m->m_len - 1));
m                1063 dev/ic/elink3.c 			MFREE(m, m0);
m                1064 dev/ic/elink3.c 			m = m0;
m                1270 dev/ic/elink3.c 	struct mbuf *m;
m                1312 dev/ic/elink3.c 	m = epget(sc, len);
m                1313 dev/ic/elink3.c 	if (m == NULL) {
m                1326 dev/ic/elink3.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1329 dev/ic/elink3.c 	ether_input_mbuf(ifp, m);
m                1377 dev/ic/elink3.c 	struct mbuf *top, **mp, *m;
m                1380 dev/ic/elink3.c 	m = sc->mb[sc->next_mb];
m                1382 dev/ic/elink3.c 	if (m == NULL) {
m                1383 dev/ic/elink3.c 		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1384 dev/ic/elink3.c 		if (m == NULL)
m                1392 dev/ic/elink3.c 		m->m_data = m->m_pktdat;
m                1393 dev/ic/elink3.c 		m->m_flags = M_PKTHDR;
m                1394 dev/ic/elink3.c 		m_tag_init(m);
m                1395 dev/ic/elink3.c 		m->m_pkthdr.csum_flags = 0;
m                1397 dev/ic/elink3.c 	m->m_pkthdr.rcvif = ifp;
m                1398 dev/ic/elink3.c 	m->m_pkthdr.len = totlen;
m                1402 dev/ic/elink3.c 		MCLGET(m, M_DONTWAIT);
m                1403 dev/ic/elink3.c 		if (m->m_flags & M_EXT)
m                1406 dev/ic/elink3.c 	m->m_data += pad;
m                1422 dev/ic/elink3.c 			m = sc->mb[sc->next_mb];
m                1424 dev/ic/elink3.c 			if (m == NULL) {
m                1425 dev/ic/elink3.c 				MGET(m, M_DONTWAIT, MT_DATA);
m                1426 dev/ic/elink3.c 				if (m == NULL) {
m                1437 dev/ic/elink3.c 			MCLGET(m, M_DONTWAIT);
m                1438 dev/ic/elink3.c 			if (m->m_flags & M_EXT)
m                1446 dev/ic/elink3.c 				    mtod(m, u_int8_t *), len);
m                1449 dev/ic/elink3.c 				    mtod(m, u_int8_t *), len);
m                1454 dev/ic/elink3.c 				    mtod(m, u_int8_t *), len);
m                1456 dev/ic/elink3.c 				*(mtod(m, u_int8_t *)) =
m                1459 dev/ic/elink3.c 		m->m_len = len;
m                1461 dev/ic/elink3.c 		*mp = m;
m                1462 dev/ic/elink3.c 		mp = &m->m_next;
m                 340 dev/ic/fxp.c   	struct mbuf *m;
m                 541 dev/ic/fxp.c   	m = sc->rfa_headm;
m                 542 dev/ic/fxp.c   	while (m != NULL) {
m                 543 dev/ic/fxp.c   		rxmap = *((bus_dmamap_t *)m->m_ext.ext_buf);
m                 546 dev/ic/fxp.c   		m = m_free(m);
m                 699 dev/ic/fxp.c   	struct mbuf *m0, *m = NULL;
m                 719 dev/ic/fxp.c   			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 720 dev/ic/fxp.c   			if (m == NULL)
m                 723 dev/ic/fxp.c   				MCLGET(m, M_DONTWAIT);
m                 724 dev/ic/fxp.c   				if (!(m->m_flags & M_EXT)) {
m                 725 dev/ic/fxp.c   					m_freem(m);
m                 729 dev/ic/fxp.c   			m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                 730 dev/ic/fxp.c   			m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
m                 732 dev/ic/fxp.c   			    m, BUS_DMA_NOWAIT) != 0) {
m                 733 dev/ic/fxp.c   				m_freem(m);
m                 739 dev/ic/fxp.c   		if (m != NULL) {
m                 741 dev/ic/fxp.c   			m0 = m;
m                 742 dev/ic/fxp.c   			m = NULL;
m                 880 dev/ic/fxp.c   			struct mbuf *m;
m                 883 dev/ic/fxp.c   			m = sc->rfa_headm;
m                 884 dev/ic/fxp.c   			rfap = m->m_ext.ext_buf + RFA_ALIGNMENT_FUDGE;
m                 885 dev/ic/fxp.c   			rxmap = *((bus_dmamap_t *)m->m_ext.ext_buf);
m                 901 dev/ic/fxp.c   				sc->rfa_headm = m->m_next;
m                 902 dev/ic/fxp.c   				m->m_next = NULL;
m                 909 dev/ic/fxp.c   				if (fxp_add_rfabuf(sc, m) == 0) {
m                 918 dev/ic/fxp.c   						m_freem(m);
m                 925 dev/ic/fxp.c   						m_freem(m);
m                 929 dev/ic/fxp.c   					m->m_pkthdr.rcvif = ifp;
m                 930 dev/ic/fxp.c   					m->m_pkthdr.len = m->m_len =
m                 934 dev/ic/fxp.c   						bpf_mtap(ifp->if_bpf, m,
m                 937 dev/ic/fxp.c   					ether_input_mbuf(ifp, m);
m                1094 dev/ic/fxp.c   		struct mbuf *m;
m                1099 dev/ic/fxp.c   		m = sc->rfa_headm;
m                1100 dev/ic/fxp.c   		while (m != NULL) {
m                1101 dev/ic/fxp.c   			rxmap = *((bus_dmamap_t *)m->m_ext.ext_buf);
m                1104 dev/ic/fxp.c   			m = m_free(m);
m                1466 dev/ic/fxp.c   	struct mbuf *m;
m                1470 dev/ic/fxp.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1471 dev/ic/fxp.c   	if (m != NULL) {
m                1472 dev/ic/fxp.c   		MCLGET(m, M_DONTWAIT);
m                1473 dev/ic/fxp.c   		if ((m->m_flags & M_EXT) == 0) {
m                1474 dev/ic/fxp.c   			m_freem(m);
m                1477 dev/ic/fxp.c   			m = oldm;
m                1478 dev/ic/fxp.c   			m->m_data = m->m_ext.ext_buf;
m                1482 dev/ic/fxp.c   			*((bus_dmamap_t *)m->m_ext.ext_buf) = rxmap;
m                1484 dev/ic/fxp.c   			    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                1486 dev/ic/fxp.c   		} else if (oldm == m)
m                1492 dev/ic/fxp.c   			    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                1494 dev/ic/fxp.c   			*mtod(m, bus_dmamap_t *) = rxmap;
m                1499 dev/ic/fxp.c   		m = oldm;
m                1500 dev/ic/fxp.c   		m->m_data = m->m_ext.ext_buf;
m                1501 dev/ic/fxp.c   		rxmap = *mtod(m, bus_dmamap_t *);
m                1508 dev/ic/fxp.c   	m->m_data += RFA_ALIGNMENT_FUDGE;
m                1514 dev/ic/fxp.c   	rfap = m->m_data;
m                1515 dev/ic/fxp.c   	m->m_data += sizeof(struct fxp_rfa);
m                1543 dev/ic/fxp.c   		sc->rfa_tailm->m_next = m;
m                1555 dev/ic/fxp.c   		sc->rfa_headm = m;
m                1557 dev/ic/fxp.c   	sc->rfa_tailm = m;
m                1559 dev/ic/fxp.c   	return (m == oldm);
m                 192 dev/ic/fxpvar.h #define	FXP_MBUF_SYNC(sc, m, p)						\
m                 193 dev/ic/fxpvar.h     bus_dmamap_sync((sc)->sc_dmat, (m), 0, (m)->dm_mapsize, (p))
m                 917 dev/ic/gem.c   	struct mbuf *m;
m                 965 dev/ic/gem.c   		m = rxs->rxs_mbuf;
m                 973 dev/ic/gem.c   		m->m_data += 2; /* We're already off by two */
m                 976 dev/ic/gem.c   		eh = mtod(m, struct ether_header *);
m                 977 dev/ic/gem.c   		m->m_pkthdr.rcvif = ifp;
m                 978 dev/ic/gem.c   		m->m_pkthdr.len = m->m_len = len;
m                 986 dev/ic/gem.c   			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 990 dev/ic/gem.c   		ether_input_mbuf(ifp, m);
m                1011 dev/ic/gem.c   	struct mbuf *m;
m                1014 dev/ic/gem.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1015 dev/ic/gem.c   	if (m == NULL)
m                1018 dev/ic/gem.c   	MCLGET(m, M_DONTWAIT);
m                1019 dev/ic/gem.c   	if ((m->m_flags & M_EXT) == 0) {
m                1020 dev/ic/gem.c   		m_freem(m);
m                1026 dev/ic/gem.c   	memset(m->m_ext.ext_buf, 0, m->m_ext.ext_size);
m                1032 dev/ic/gem.c   	rxs->rxs_mbuf = m;
m                1035 dev/ic/gem.c   	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                1695 dev/ic/gem.c   	struct mbuf *m;
m                1703 dev/ic/gem.c   		IFQ_POLL(&ifp->if_snd, m);
m                1704 dev/ic/gem.c   		if (m == NULL)
m                1713 dev/ic/gem.c   			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1720 dev/ic/gem.c   		if (gem_encap(sc, m, &bix)) {
m                1725 dev/ic/gem.c   		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 639 dev/ic/hme.c   	struct mbuf *m;
m                 647 dev/ic/hme.c   		IFQ_POLL(&ifp->if_snd, m);
m                 648 dev/ic/hme.c   		if (m == NULL)
m                 657 dev/ic/hme.c   			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 660 dev/ic/hme.c   		if (hme_encap(sc, m, &bix)) {
m                 665 dev/ic/hme.c   		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 747 dev/ic/hme.c   hme_rxcksum(struct mbuf *m, u_int32_t flags)
m                 766 dev/ic/hme.c   	pktlen = m->m_pkthdr.len;
m                 769 dev/ic/hme.c   	eh = mtod(m, struct ether_header *);
m                 827 dev/ic/hme.c   		m->m_pkthdr.csum_flags |=
m                 840 dev/ic/hme.c   	struct mbuf *m;
m                 862 dev/ic/hme.c   		m = sd->sd_mbuf;
m                 864 dev/ic/hme.c   		m->m_pkthdr.len = m->m_len = len;
m                 876 dev/ic/hme.c   		hme_rxcksum(m, flags);
m                 880 dev/ic/hme.c   			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 883 dev/ic/hme.c   		ether_input_mbuf(ifp, m);
m                1408 dev/ic/hme.c   	struct mbuf *m;
m                1416 dev/ic/hme.c   	for (m = mhead; m != NULL; m = m->m_next) {
m                1417 dev/ic/hme.c   		if (m->m_len == 0)
m                1424 dev/ic/hme.c   		    mtod(m, caddr_t), m->m_len, NULL, BUS_DMA_NOWAIT) != 0)
m                1433 dev/ic/hme.c   		flags = HME_XD_ENCODE_TSIZE(m->m_len);
m                1494 dev/ic/hme.c   	struct mbuf *m;
m                1502 dev/ic/hme.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1503 dev/ic/hme.c   	if (m == NULL)
m                1505 dev/ic/hme.c   	m->m_pkthdr.rcvif = &sc->sc_arpcom.ac_if;
m                1507 dev/ic/hme.c   	MCLGET(m, M_DONTWAIT);
m                1508 dev/ic/hme.c   	if ((m->m_flags & M_EXT) == 0) {
m                1509 dev/ic/hme.c   		m_freem(m);
m                1514 dev/ic/hme.c   	    mtod(m, caddr_t), MCLBYTES - HME_RX_OFFSET, NULL,
m                1516 dev/ic/hme.c   		m_freem(m);
m                1547 dev/ic/hme.c   	m->m_data += HME_RX_OFFSET;
m                1548 dev/ic/hme.c   	d->sd_mbuf = m;
m                 981 dev/ic/i82596.c 	struct mbuf *m, *m0, *newm;
m                1000 dev/ic/i82596.c 	m = m0;
m                1008 dev/ic/i82596.c 			MCLGET(m, M_DONTWAIT);
m                1009 dev/ic/i82596.c 			if ((m->m_flags & M_EXT) == 0)
m                1014 dev/ic/i82596.c 		if (m == m0) {
m                1016 dev/ic/i82596.c 			    ALIGN(m->m_data + sizeof(struct ether_header)) -
m                1018 dev/ic/i82596.c 			len -= newdata - m->m_data;
m                1019 dev/ic/i82596.c 			m->m_data = newdata;
m                1022 dev/ic/i82596.c 		m->m_len = len = min(totlen, len);
m                1030 dev/ic/i82596.c 			m = m->m_next = newm;
m                1034 dev/ic/i82596.c 	m = m0;
m                1040 dev/ic/i82596.c 	bcopy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
m                1052 dev/ic/i82596.c 		    thismblen = m->m_len - thismboff;
m                1056 dev/ic/i82596.c 		(sc->memcopyin)(sc, mtod(m, caddr_t) + thismboff, off, len);
m                1060 dev/ic/i82596.c 			m = m->m_next;
m                1100 dev/ic/i82596.c 	struct mbuf *m;
m                1109 dev/ic/i82596.c 	m = i82596_get(sc, bstart, pktlen);
m                1112 dev/ic/i82596.c 	if (m == 0) {
m                1119 dev/ic/i82596.c 		struct ether_header *eh = mtod(m, struct ether_header *);
m                1130 dev/ic/i82596.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1136 dev/ic/i82596.c 	ether_input_mbuf(ifp, m);
m                1232 dev/ic/i82596.c 	struct mbuf *m0, *m;
m                1277 dev/ic/i82596.c 		for (m = m0; m != 0; m = m->m_next) {
m                1280 dev/ic/i82596.c 				u_int8_t *e, *p = mtod(m, u_int8_t *);
m                1282 dev/ic/i82596.c 				if (m == m0)
m                1284 dev/ic/i82596.c 				for (e = p + m->m_len; p < e; i++, p += 2) {
m                1292 dev/ic/i82596.c 			(sc->memcopyout)(sc, mtod(m,caddr_t), buffer, m->m_len);
m                1293 dev/ic/i82596.c 			buffer += m->m_len;
m                1553 dev/ic/i82596.c 		int m = (n == sc->nframes - 1) ? 0 : n + 1;
m                1564 dev/ic/i82596.c 				       IE_RFRAME_ADDR(sc->rframes,m));
m                1568 dev/ic/i82596.c 				       ((m==0)? (IE_FD_EOL|IE_FD_SUSP) : 0));
m                1575 dev/ic/i82596.c 		int m = (n == sc->nrxbuf - 1) ? 0 : n + 1;
m                1582 dev/ic/i82596.c 				       IE_RBD_ADDR(sc->rbds,m));
m                1588 dev/ic/i82596.c 				       IE_RBUF_SIZE | ((m==0)?IE_RBD_EOL:0));
m                 178 dev/ic/ibm525reg.h #define	MHZ_TO_PLL(m) \
m                 179 dev/ic/ibm525reg.h 	(m) < 32 ? 0x00 | (4 * (m) - 65) : \
m                 180 dev/ic/ibm525reg.h 	  (m) < 64 ? 0x40 | (2 * (m) - 65) : \
m                 181 dev/ic/ibm525reg.h 	    (m) < 128 ? 0x80 | ((m) - 65) : \
m                 182 dev/ic/ibm525reg.h 	      0xc0 | ((m) / 2 - 65)
m                 361 dev/ic/if_wi.c #define	ADD(m, c)	ifmedia_add(&sc->sc_media, (m), (c), NULL)
m                 547 dev/ic/if_wi.c 	struct mbuf		*m;
m                 561 dev/ic/if_wi.c 		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 562 dev/ic/if_wi.c 		if (m == NULL) {
m                 566 dev/ic/if_wi.c 		MCLGET(m, M_DONTWAIT);
m                 567 dev/ic/if_wi.c 		if (!(m->m_flags & M_EXT)) {
m                 568 dev/ic/if_wi.c 			m_freem(m);
m                 573 dev/ic/if_wi.c 		m->m_pkthdr.rcvif = ifp;
m                 575 dev/ic/if_wi.c 		if (wi_read_data(sc, id, 0, mtod(m, caddr_t),
m                 577 dev/ic/if_wi.c 			m_freem(m);
m                 582 dev/ic/if_wi.c 		rx_frame = mtod(m, struct wi_frame *);
m                 585 dev/ic/if_wi.c 			m_freem(m);
m                 610 dev/ic/if_wi.c 				m_freem(m);
m                 623 dev/ic/if_wi.c 			m_freem(m);
m                 629 dev/ic/if_wi.c 			m_freem(m);
m                 634 dev/ic/if_wi.c 		if (wi_read_data(sc, id, hdrlen, mtod(m, caddr_t) + hdrlen,
m                 636 dev/ic/if_wi.c 			m_freem(m);
m                 641 dev/ic/if_wi.c 		m->m_pkthdr.len = m->m_len = hdrlen + datlen;
m                 661 dev/ic/if_wi.c 		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 662 dev/ic/if_wi.c 		if (m == NULL) {
m                 666 dev/ic/if_wi.c 		MCLGET(m, M_DONTWAIT);
m                 667 dev/ic/if_wi.c 		if (!(m->m_flags & M_EXT)) {
m                 668 dev/ic/if_wi.c 			m_freem(m);
m                 673 dev/ic/if_wi.c 		olddata = m->m_data;
m                 675 dev/ic/if_wi.c 		m->m_data = (caddr_t)ALIGN(m->m_data +
m                 678 dev/ic/if_wi.c 		eh = mtod(m, struct ether_header *);
m                 679 dev/ic/if_wi.c 		maxlen = MCLBYTES - (m->m_data - olddata);
m                 680 dev/ic/if_wi.c 		m->m_pkthdr.rcvif = ifp;
m                 692 dev/ic/if_wi.c 				m_freem(m);
m                 698 dev/ic/if_wi.c 			bcopy(&rx_frame, mtod(m, void *),
m                 701 dev/ic/if_wi.c 			    mtod(m, caddr_t) + WI_802_11_OFFSET_RAW,
m                 703 dev/ic/if_wi.c 				m_freem(m);
m                 710 dev/ic/if_wi.c 			m->m_pkthdr.len = m->m_len =
m                 715 dev/ic/if_wi.c 			wihap_mgmt_input(sc, &rx_frame, m);
m                 731 dev/ic/if_wi.c 				m_freem(m);
m                 735 dev/ic/if_wi.c 			m->m_pkthdr.len = m->m_len =
m                 746 dev/ic/if_wi.c 			    mtod(m, caddr_t) + sizeof(struct ether_header),
m                 747 dev/ic/if_wi.c 			    m->m_len + 2)) {
m                 749 dev/ic/if_wi.c 				m_freem(m);
m                 761 dev/ic/if_wi.c 				m_freem(m);
m                 765 dev/ic/if_wi.c 			m->m_pkthdr.len = m->m_len =
m                 770 dev/ic/if_wi.c 			    mtod(m, caddr_t), m->m_len + 2)) {
m                 771 dev/ic/if_wi.c 				m_freem(m);
m                 788 dev/ic/if_wi.c 				m_copydata(m, 0, m->m_pkthdr.len,
m                 790 dev/ic/if_wi.c 				len = m->m_pkthdr.len -
m                 796 dev/ic/if_wi.c 					m_freem(m);
m                 808 dev/ic/if_wi.c 				m_copyback(m, sizeof(struct ether_header) -
m                 814 dev/ic/if_wi.c 				m_adj(m, -(WI_ETHERTYPE_LEN +
m                 828 dev/ic/if_wi.c 			if (wihap_data_input(sc, &rx_frame, m))
m                 836 dev/ic/if_wi.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 841 dev/ic/if_wi.c 		m_freem(m);
m                 843 dev/ic/if_wi.c 		ether_input_mbuf(ifp, m);
m                 995 dev/ic/if_wi_hostap.c wihap_mgmt_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m)
m                1003 dev/ic/if_wi_hostap.c 	pkt = mtod(m, caddr_t) + WI_802_11_OFFSET_RAW;
m                1004 dev/ic/if_wi_hostap.c 	len = m->m_len - WI_802_11_OFFSET_RAW;
m                1043 dev/ic/if_wi_hostap.c 	m_freem(m);
m                1108 dev/ic/if_wi_hostap.c wihap_data_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m)
m                1127 dev/ic/if_wi_hostap.c 		m_freem(m);
m                1136 dev/ic/if_wi_hostap.c 		m_freem(m);
m                1153 dev/ic/if_wi_hostap.c 		m_freem(m);
m                1169 dev/ic/if_wi_hostap.c 			m = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                1170 dev/ic/if_wi_hostap.c 			if (m == NULL)
m                1172 dev/ic/if_wi_hostap.c 			m->m_flags |= M_MCAST; /* XXX */
m                1179 dev/ic/if_wi_hostap.c 			m_freem(m);
m                1182 dev/ic/if_wi_hostap.c 			ifp->if_obytes += m->m_pkthdr.len;
m                1183 dev/ic/if_wi_hostap.c 			if (m->m_flags & M_MCAST)
m                1185 dev/ic/if_wi_hostap.c 			IF_ENQUEUE(&ifp->if_snd, m);
m                1392 dev/ic/if_wi_hostap.c wihap_mgmt_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m)
m                1398 dev/ic/if_wi_hostap.c wihap_data_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m)
m                 277 dev/ic/isp.c   		static const char m[] = "bus %d is in %s Mode";
m                 298 dev/ic/isp.c   			isp_prt(isp, ISP_LOGCONFIG, m, 0, "LVD");
m                 302 dev/ic/isp.c   			isp_prt(isp, ISP_LOGCONFIG, m, 0, "Differential");
m                 306 dev/ic/isp.c   			isp_prt(isp, ISP_LOGCONFIG, m, 0, "Single-Ended");
m                 321 dev/ic/isp.c   				isp_prt(isp, ISP_LOGCONFIG, m, 1, "LVD");
m                 326 dev/ic/isp.c   				    m, 1, "Differential");
m                 331 dev/ic/isp.c   				    m, 1, "Single-Ended");
m                2374 dev/ic/isp.c   			char *m;
m                2377 dev/ic/isp.c   				m = "No Loop";
m                2380 dev/ic/isp.c   				m = "Failed to allocate IOCB buffer";
m                2383 dev/ic/isp.c   				m = "Failed to allocate XCB buffer";
m                2386 dev/ic/isp.c   				m = "timeout or transmit failed";
m                2389 dev/ic/isp.c   				m = "no fabric loop";
m                2392 dev/ic/isp.c   				m = "remote device not a target";
m                2397 dev/ic/isp.c   				m = tbuf;
m                2400 dev/ic/isp.c   			isp_prt(isp, ISP_LOGERR, "SNS Failed- %s", m);
m                 125 dev/ic/ispvar.h #define	ISP_DUMPREGS(isp, m)	\
m                 126 dev/ic/ispvar.h 	if ((isp)->isp_mdvec->dv_dregs) (*(isp)->isp_mdvec->dv_dregs)((isp),(m))
m                 271 dev/ic/lemac.c 	struct mbuf *m;
m                 284 dev/ic/lemac.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 285 dev/ic/lemac.c 	if (m == NULL) {
m                 290 dev/ic/lemac.c 		MCLGET(m, M_DONTWAIT);
m                 291 dev/ic/lemac.c 		if ((m->m_flags & M_EXT) == 0) {
m                 292 dev/ic/lemac.c 			m_free(m);
m                 297 dev/ic/lemac.c 	m->m_data += 2;
m                 298 dev/ic/lemac.c 	bcopy((caddr_t)&eh, m->m_data, sizeof(eh));
m                 301 dev/ic/lemac.c 		    mtod(m, caddr_t) + sizeof(eh));
m                 305 dev/ic/lemac.c 		    (void *)(mtod(m, caddr_t) + sizeof(eh)));
m                 307 dev/ic/lemac.c 			m->m_data[length - 1] = LEMAC_GET8(sc,
m                 312 dev/ic/lemac.c 		m->m_pkthdr.len = m->m_len = length;
m                 313 dev/ic/lemac.c 		bpf_mtap(sc->sc_if.if_bpf, m, BPF_DIRECTION_IN);
m                 322 dev/ic/lemac.c 		m_freem(m);
m                 326 dev/ic/lemac.c 	m->m_pkthdr.len = m->m_len = length;
m                 327 dev/ic/lemac.c 	m->m_pkthdr.rcvif = &sc->sc_if;
m                 328 dev/ic/lemac.c 	ether_input_mbuf(&sc->sc_if, m);
m                 661 dev/ic/lemac.c 		struct mbuf *m;
m                 665 dev/ic/lemac.c 		IFQ_POLL(&ifp->if_snd, m);
m                 666 dev/ic/lemac.c 		if (m == NULL)
m                 690 dev/ic/lemac.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 706 dev/ic/lemac.c 			    (m->m_pkthdr.len >> 0) & 0xFF);
m                 708 dev/ic/lemac.c 			    (m->m_pkthdr.len >> 8) & 0xFF);
m                 710 dev/ic/lemac.c 			for (m0 = m; m0 != NULL; m0 = m0->m_next)
m                 719 dev/ic/lemac.c 			LEMAC_PUT8(sc, 1, (m->m_pkthdr.len >> 0) & 0xFF);
m                 720 dev/ic/lemac.c 			LEMAC_PUT8(sc, 2, (m->m_pkthdr.len >> 8) & 0xFF);
m                 726 dev/ic/lemac.c 			for (m0 = m; m0 != NULL; m0 = m0->m_next) {
m                 784 dev/ic/lemac.c 			bpf_mtap(sc->sc_if.if_bpf, m, BPF_DIRECTION_OUT);
m                 786 dev/ic/lemac.c 		m_freem(m);			/* free the mbuf */
m                  71 dev/ic/malo.c  	struct mbuf	*m;
m                  76 dev/ic/malo.c  	struct mbuf		*m;
m                 626 dev/ic/malo.c  		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 627 dev/ic/malo.c  		if (data->m == NULL) {
m                 634 dev/ic/malo.c  		MCLGET(data->m, M_DONTWAIT);
m                 635 dev/ic/malo.c  		if (!(data->m->m_flags & M_EXT)) {
m                 643 dev/ic/malo.c  		    mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 698 dev/ic/malo.c  			if (data->m != NULL) {
m                 703 dev/ic/malo.c  				m_freem(data->m);
m                 801 dev/ic/malo.c  		if (data->m != NULL) {
m                 805 dev/ic/malo.c  			m_freem(data->m);
m                 806 dev/ic/malo.c  			data->m = NULL;
m                 844 dev/ic/malo.c  			if (data->m != NULL) {
m                 849 dev/ic/malo.c  				m_freem(data->m);
m                1396 dev/ic/malo.c  		m_freem(data->m);
m                1398 dev/ic/malo.c  		data->m = NULL;
m                1503 dev/ic/malo.c  	data->m = m0;
m                1621 dev/ic/malo.c  	data->m = m0;
m                1666 dev/ic/malo.c  	struct mbuf *mnew, *m;
m                1715 dev/ic/malo.c  			    mtod(data->m, void *), MCLBYTES, NULL,
m                1728 dev/ic/malo.c  		m = data->m;
m                1729 dev/ic/malo.c  		data->m = mnew;
m                1733 dev/ic/malo.c  		m->m_pkthdr.rcvif = ifp;
m                1734 dev/ic/malo.c  		m->m_pkthdr.len = m->m_len = letoh16(desc->len);
m                1744 dev/ic/malo.c  		bcopy(m->m_data, m->m_data + 6, 26);
m                1745 dev/ic/malo.c  		m_adj(m, 8);
m                1762 dev/ic/malo.c  			mb.m_next = m;
m                1770 dev/ic/malo.c  		wh = mtod(m, struct ieee80211_frame *);
m                1774 dev/ic/malo.c  		ieee80211_input(ifp, m, ni, desc->rssi, 0);
m                 613 dev/ic/midway.c   struct mbuf *m;
m                 617 dev/ic/midway.c   MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 618 dev/ic/midway.c   if (m == NULL)
m                 620 dev/ic/midway.c   m->m_pkthdr.rcvif = &sc->enif;
m                 621 dev/ic/midway.c   m->m_pkthdr.len = totlen;
m                 622 dev/ic/midway.c   m->m_len = MHLEN;
m                 629 dev/ic/midway.c       MGET(m, M_DONTWAIT, MT_DATA);
m                 630 dev/ic/midway.c       if (!m) {
m                 634 dev/ic/midway.c       m->m_len = MLEN;
m                 637 dev/ic/midway.c       MCLGET(m, M_DONTWAIT);
m                 638 dev/ic/midway.c       if ((m->m_flags & M_EXT) == 0) {
m                 639 dev/ic/midway.c 	m_free(m);
m                 643 dev/ic/midway.c       m->m_len = MCLBYTES;
m                 645 dev/ic/midway.c     m->m_len = min(totlen, m->m_len);
m                 646 dev/ic/midway.c     totlen -= m->m_len;
m                 647 dev/ic/midway.c     *mp = m;
m                 648 dev/ic/midway.c     mp = &m->m_next;
m                 650 dev/ic/midway.c     *drqneed += en_dqneed(sc, m->m_data, m->m_len, 0);
m                1284 dev/ic/midway.c   struct mbuf *m;
m                1305 dev/ic/midway.c       IF_DEQUEUE(&sc->rxslot[slot].indma, m);
m                1306 dev/ic/midway.c       if (m == NULL) 
m                1308 dev/ic/midway.c       m_freem(m);
m                1311 dev/ic/midway.c       IF_DEQUEUE(&sc->rxslot[slot].q, m);
m                1312 dev/ic/midway.c       if (m == NULL) 
m                1314 dev/ic/midway.c       m_freem(m);
m                1332 dev/ic/midway.c       IF_DEQUEUE(&sc->txslot[lcv].indma, m);
m                1333 dev/ic/midway.c       if (m == NULL) 
m                1335 dev/ic/midway.c       m_freem(m);
m                1338 dev/ic/midway.c       IF_DEQUEUE(&sc->txslot[lcv].q, m);
m                1339 dev/ic/midway.c       if (m == NULL) 
m                1341 dev/ic/midway.c       m_freem(m);
m                1495 dev/ic/midway.c     struct mbuf *m, *lastm, *prev;
m                1511 dev/ic/midway.c       IFQ_DEQUEUE(&ifp->if_snd, m);
m                1512 dev/ic/midway.c       if (m == NULL)
m                1525 dev/ic/midway.c       lastm = m;
m                1533 dev/ic/midway.c 	    first = (lastm == m);
m                1535 dev/ic/midway.c 	      m_freem(m);
m                1536 dev/ic/midway.c 	      m = NULL;
m                1540 dev/ic/midway.c 	      m = lastm;		/* update */
m                1550 dev/ic/midway.c       if (m == NULL)		/* happens only if mfix fails */
m                1553 dev/ic/midway.c       ap = mtod(m, struct atm_pseudohdr *);
m                1568 dev/ic/midway.c 	m_freem(m);
m                1595 dev/ic/midway.c 	M_LEADINGSPACE(m), M_TRAILINGSPACE(lastm));
m                1607 dev/ic/midway.c       if (M_LEADINGSPACE(m) >= MID_TBD_SIZE && (m->m_flags & M_EXT) == 0) {
m                1608 dev/ic/midway.c 	m->m_data -= MID_TBD_SIZE;
m                1609 dev/ic/midway.c 	m->m_len += MID_TBD_SIZE;
m                1611 dev/ic/midway.c 	new_ap = mtod(m, struct atm_pseudohdr *);
m                1647 dev/ic/midway.c 	m_freem(m);
m                1665 dev/ic/midway.c       IF_ENQUEUE(&sc->txslot[txchan].q, m);
m                1683 dev/ic/midway.c   struct mbuf *m, *new;
m                1688 dev/ic/midway.c   m = *mm;
m                1693 dev/ic/midway.c 	m->m_data, m->m_len);
m                1696 dev/ic/midway.c   d = mtod(m, u_char *);
m                1700 dev/ic/midway.c     if ((m->m_flags & M_EXT) == 0) {
m                1701 dev/ic/midway.c       bcopy(d, d - off, m->m_len);   /* ALIGN! (with costly data copy...) */
m                1703 dev/ic/midway.c       m->m_data = (caddr_t)d;
m                1717 dev/ic/midway.c       bcopy(d, new->m_data, m->m_len);	/* ALIGN! (with costly data copy...) */
m                1718 dev/ic/midway.c       new->m_len = m->m_len;
m                1719 dev/ic/midway.c       new->m_next = m->m_next;
m                1722 dev/ic/midway.c       m_free(m);
m                1723 dev/ic/midway.c       *mm = m = new;	/* note: 'd' now invalid */
m                1727 dev/ic/midway.c   off = m->m_len % sizeof(u_int32_t);
m                1731 dev/ic/midway.c   d = mtod(m, u_char *) + m->m_len;
m                1734 dev/ic/midway.c   nxt = m->m_next;
m                1744 dev/ic/midway.c     m->m_len++;
m                2343 dev/ic/midway.c   struct mbuf *m;
m                2427 dev/ic/midway.c 	IF_DEQUEUE(&sc->txslot[slot].indma, m);
m                2428 dev/ic/midway.c 	if (!m) panic("enintr: dtqsync");
m                2435 dev/ic/midway.c 	m_freem(m);
m                2476 dev/ic/midway.c           m = NULL;
m                2478 dev/ic/midway.c 	  IF_DEQUEUE(&sc->rxslot[slot].indma, m);
m                2479 dev/ic/midway.c 	  if (!m) {
m                2486 dev/ic/midway.c           if (m)
m                2487 dev/ic/midway.c 	    m_freem(m);
m                2501 dev/ic/midway.c 	} else if (m != NULL) {
m                2507 dev/ic/midway.c 		sc->sc_dev.dv_xname, slot, sc->rxslot[slot].atm_vci, m,
m                2514 dev/ic/midway.c 		bpf_mtap(sc->enif.if_bpf, m, BPF_DIRECTION_IN);
m                2517 dev/ic/midway.c 	  atm_input(&sc->enif, &ah, m, sc->rxslot[slot].rxhand);
m                2627 dev/ic/midway.c   struct mbuf *m, *tmp;
m                2749 dev/ic/midway.c   m = sc->rxslot[slot].q.ifq_head;
m                2751 dev/ic/midway.c   if (m) {
m                2752 dev/ic/midway.c     sav = mtod(m, u_int32_t *);
m                2756 dev/ic/midway.c 		sc->sc_dev.dv_xname, slot, m);
m                2758 dev/ic/midway.c       m = NULL;			/* wasn't ours */
m                2762 dev/ic/midway.c       IF_DEQUEUE(&sc->rxslot[slot].q, m);
m                2766 dev/ic/midway.c 	sc->sc_dev.dv_xname, slot, m, drqneed);
m                2771 dev/ic/midway.c   if (mlen != 0 && m == NULL) {
m                2772 dev/ic/midway.c     m = en_mget(sc, mlen, &drqneed);		/* allocate! */
m                2773 dev/ic/midway.c     if (m == NULL) {
m                2783 dev/ic/midway.c 	sc->sc_dev.dv_xname, slot, m, mlen, drqneed);
m                2789 dev/ic/midway.c 	sc->sc_dev.dv_xname, slot, vci, m, mlen, fill);
m                2800 dev/ic/midway.c     if (m == NULL) {
m                2807 dev/ic/midway.c     sav = mtod(m, u_int32_t *);
m                2810 dev/ic/midway.c     IF_ENQUEUE(&sc->rxslot[slot].q, m);
m                2837 dev/ic/midway.c   for (tmp = m ; tmp != NULL && need > 0 ; tmp = tmp->m_next) {
m                2994 dev/ic/midway.c   if (m) {
m                2998 dev/ic/midway.c       m->m_len -= cnt;				/* chop! */
m                2999 dev/ic/midway.c       m->m_pkthdr.len -= cnt;
m                3000 dev/ic/midway.c       m->m_data += cnt;
m                3002 dev/ic/midway.c     IF_ENQUEUE(&sc->rxslot[slot].indma, m);
m                 493 dev/ic/mtd8xx.c mtd_newbuf(struct mtd_softc *sc, int i, struct mbuf *m)
m                 501 dev/ic/mtd8xx.c 	if (m == NULL) {
m                 522 dev/ic/mtd8xx.c 		m_new = m;
m                 904 dev/ic/mtd8xx.c 	struct mbuf *m;
m                 923 dev/ic/mtd8xx.c 		m = sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf;
m                 936 dev/ic/mtd8xx.c 			mtd_newbuf(sc, i, m);
m                 953 dev/ic/mtd8xx.c 		m0 = m_devget(mtod(m, char *) - ETHER_ALIGN, total_len + ETHER_ALIGN,
m                 955 dev/ic/mtd8xx.c 		mtd_newbuf(sc, i, m);
m                 962 dev/ic/mtd8xx.c 		m = m0;
m                 968 dev/ic/mtd8xx.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 970 dev/ic/mtd8xx.c 		ether_input_mbuf(ifp, m);
m                1536 dev/ic/ncr5380sbc.c #define IS1BYTEMSG(m) (((m) != 0x01 && (m) < 0x20) || (m) >= 0x80)
m                1537 dev/ic/ncr5380sbc.c #define IS2BYTEMSG(m) (((m) & 0xf0) == 0x20)
m                1538 dev/ic/ncr5380sbc.c #define ISEXTMSG(m) ((m) == 0x01)
m                1216 dev/ic/ncr53c9x.c #define ncr53c9x_sched_msgout(m) \
m                1218 dev/ic/ncr53c9x.c 		NCR_MISC(("ncr53c9x_sched_msgout %x %d ", m, __LINE__));	\
m                1221 dev/ic/ncr53c9x.c 		sc->sc_msgpriq |= (m);				\
m                1408 dev/ic/ncr53c9x.c #define IS1BYTEMSG(m) (((m) != 1 && (m) < 0x20) || (m) & 0x80)
m                1409 dev/ic/ncr53c9x.c #define IS2BYTEMSG(m) (((m) & 0xf0) == 0x20)
m                1410 dev/ic/ncr53c9x.c #define ISEXTMSG(m) ((m) == 1)
m                 467 dev/ic/ne2000.c ne2000_write_mbuf(struct dp8390_softc *sc, struct mbuf *m, int buf)
m                 477 dev/ic/ne2000.c 	savelen = m->m_pkthdr.len;
m                 511 dev/ic/ne2000.c 		for (; m != 0; m = m->m_next) {
m                 512 dev/ic/ne2000.c 			if (m->m_len) {
m                 514 dev/ic/ne2000.c 				    NE2000_ASIC_DATA, mtod(m, u_int8_t *),
m                 515 dev/ic/ne2000.c 				    m->m_len);
m                 529 dev/ic/ne2000.c 		for (; m != 0; m = m->m_next) {
m                 530 dev/ic/ne2000.c 			l = m->m_len;
m                 533 dev/ic/ne2000.c 			data = mtod(m, u_int8_t *);
m                 130 dev/ic/pdq_ifsubr.c     struct mbuf *m;
m                 144 dev/ic/pdq_ifsubr.c 	IFQ_POLL(&ifp->if_snd, m);
m                 145 dev/ic/pdq_ifsubr.c 	if (m == NULL)
m                 148 dev/ic/pdq_ifsubr.c 	if (pdq_queue_transmit_data(sc->sc_pdq, m) == PDQ_FALSE) {
m                 153 dev/ic/pdq_ifsubr.c 	IFQ_DEQUEUE(&ifp->if_snd, m);
m                 162 dev/ic/pdq_ifsubr.c     struct mbuf *m,
m                 166 dev/ic/pdq_ifsubr.c     struct fddi_header *fh = mtod(m, struct fddi_header *);
m                 171 dev/ic/pdq_ifsubr.c 	PDQ_BPF_MTAP(sc, m, BPF_DIRECTION_IN);
m                 173 dev/ic/pdq_ifsubr.c 	m_freem(m);
m                 178 dev/ic/pdq_ifsubr.c     m->m_data += sizeof(struct fddi_header);
m                 179 dev/ic/pdq_ifsubr.c     m->m_len  -= sizeof(struct fddi_header);
m                 180 dev/ic/pdq_ifsubr.c     m->m_pkthdr.len = pktlen - sizeof(struct fddi_header);
m                 181 dev/ic/pdq_ifsubr.c     m->m_pkthdr.rcvif = &sc->sc_if;
m                 182 dev/ic/pdq_ifsubr.c     fddi_input(&sc->sc_if, fh, m);
m                 202 dev/ic/pdq_ifsubr.c     struct mbuf *m)
m                 207 dev/ic/pdq_ifsubr.c 	PDQ_BPF_MTAP(sc, m, BPF_DIRECTION_OUT);
m                 209 dev/ic/pdq_ifsubr.c     m_freem(m);
m                 426 dev/ic/pdqreg.h #define	PDQ_ADVANCE(n, a, m)	((n) = ((n) + (a)) & (m))
m                 113 dev/ic/pdqvar.h #define	PDQ_BPF_MTAP(sc, m, dir)	bpf_mtap(&(sc)->sc_if, m, dir)
m                 158 dev/ic/pdqvar.h #define	PDQ_BPF_MTAP(sc, m, dir) bpf_mtap((sc)->sc_bpf, m, dir)
m                 705 dev/ic/pgt.c   	struct mbuf *m;
m                 800 dev/ic/pgt.c   		if ((m = pgt_datarx_completion(sc, PGT_QUEUE_DATA_HIGH_RX)))
m                 801 dev/ic/pgt.c   			pgt_input_frames(sc, m);
m                 809 dev/ic/pgt.c   		if ((m = pgt_datarx_completion(sc, PGT_QUEUE_DATA_LOW_RX)))
m                 810 dev/ic/pgt.c   			pgt_input_frames(sc, m);
m                 826 dev/ic/pgt.c       struct mbuf *m, struct ieee80211_node **ni)
m                 836 dev/ic/pgt.c   		return (m);
m                 839 dev/ic/pgt.c   	M_PREPEND(m, sizeof(*frame) + sizeof(*snap), M_DONTWAIT);
m                 840 dev/ic/pgt.c   	if (m != NULL)
m                 841 dev/ic/pgt.c   		m = m_pullup(m, sizeof(*frame) + sizeof(*snap));
m                 842 dev/ic/pgt.c   	if (m == NULL)
m                 843 dev/ic/pgt.c   		return (m);
m                 844 dev/ic/pgt.c   	frame = mtod(m, struct ieee80211_frame *);
m                 865 dev/ic/pgt.c   				m_freem(m);
m                 907 dev/ic/pgt.c   	return (m);
m                 911 dev/ic/pgt.c   pgt_input_frames(struct pgt_softc *sc, struct mbuf *m)
m                 927 dev/ic/pgt.c   	for (next = m; m != NULL; m = next) {
m                 928 dev/ic/pgt.c   		next = m->m_nextpkt;
m                 929 dev/ic/pgt.c   		m->m_nextpkt = NULL;
m                 932 dev/ic/pgt.c   			if (m->m_len < sizeof(*pha)) {
m                 933 dev/ic/pgt.c   				m = m_pullup(m, sizeof(*pha));
m                 934 dev/ic/pgt.c   				if (m == NULL) {
m                 943 dev/ic/pgt.c   			pha = mtod(m, struct pgt_rx_header *);
m                 948 dev/ic/pgt.c   		if (m->m_len < sizeof(*pra)) {
m                 949 dev/ic/pgt.c   			m = m_pullup(m, sizeof(*pra));
m                 950 dev/ic/pgt.c   			if (m == NULL) {
m                 958 dev/ic/pgt.c   		pra = mtod(m, struct pgt_rx_annex *);
m                 989 dev/ic/pgt.c   			m_freem(m);
m                1008 dev/ic/pgt.c   			m_adj(m, sizeof(*pra));
m                1010 dev/ic/pgt.c   			m_adj(m, sizeof(*pha));
m                1012 dev/ic/pgt.c   		m = pgt_ieee80211_encap(sc, &eh, m, &ni);
m                1013 dev/ic/pgt.c   		if (m != NULL) {
m                1027 dev/ic/pgt.c   				mb.m_next = m;
m                1036 dev/ic/pgt.c   			ieee80211_input(ifp, m, ni, rssi, rstamp);
m                1116 dev/ic/pgt.c   	struct mbuf *m;
m                1121 dev/ic/pgt.c   		m = pa->pa_mbuf;
m                1122 dev/ic/pgt.c   		m_freem(m);
m                1132 dev/ic/pgt.c   	struct mbuf *m;
m                1155 dev/ic/pgt.c   			m = pa->pa_mbuf;
m                1156 dev/ic/pgt.c   			m_adj(m, sizeof(*pa));
m                1157 dev/ic/pgt.c   			pgt_update_sw_from_hw(sc, pa, m);
m                1158 dev/ic/pgt.c   			m_freem(m);
m                1321 dev/ic/pgt.c   	struct mbuf *m;
m                1330 dev/ic/pgt.c   		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1331 dev/ic/pgt.c   		if (m == NULL)
m                1333 dev/ic/pgt.c   		MCLGET(m, M_DONTWAIT);
m                1334 dev/ic/pgt.c   		if (!(m->m_flags & M_EXT)) {
m                1335 dev/ic/pgt.c   			m_freem(m);
m                1336 dev/ic/pgt.c   			m = NULL;
m                1339 dev/ic/pgt.c   		m = m_get(M_DONTWAIT, MT_DATA);
m                1341 dev/ic/pgt.c   	if (m == NULL)
m                1344 dev/ic/pgt.c   		m->m_len = total;
m                1346 dev/ic/pgt.c   	pa = mtod(m, struct pgt_async_trap *);
m                1347 dev/ic/pgt.c   	p = mtod(m, char *) + sizeof(*pa);
m                1351 dev/ic/pgt.c   	pa->pa_mbuf = m;
m                1481 dev/ic/pgt.c   	struct mbuf *top, **mp, *m;
m                1487 dev/ic/pgt.c   	m = NULL;
m                1511 dev/ic/pgt.c   		if (m == NULL)
m                1512 dev/ic/pgt.c   			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1514 dev/ic/pgt.c   			m = m_get(M_DONTWAIT, MT_DATA);
m                1516 dev/ic/pgt.c   		if (m == NULL)
m                1519 dev/ic/pgt.c   			MCLGET(m, M_DONTWAIT);
m                1520 dev/ic/pgt.c   			if (!(m->m_flags & M_EXT)) {
m                1521 dev/ic/pgt.c   				m_free(m);
m                1525 dev/ic/pgt.c   		bcopy(pd->pd_mem + dataoff, mtod(m, char *), datalen);
m                1526 dev/ic/pgt.c   		m->m_len = datalen;
m                1529 dev/ic/pgt.c   		*mp = m;
m                1530 dev/ic/pgt.c   		mp = &m->m_next;
m                2125 dev/ic/pgt.c   	struct mbuf *m;
m                2145 dev/ic/pgt.c   		IFQ_POLL(&ifp->if_snd, m);
m                2146 dev/ic/pgt.c   		if (m == NULL)
m                2148 dev/ic/pgt.c   		if (m->m_pkthdr.len <= PGT_FRAG_SIZE) {
m                2153 dev/ic/pgt.c   			IFQ_DEQUEUE(&ifp->if_snd, m);
m                2154 dev/ic/pgt.c   			m_copydata(m, 0, m->m_pkthdr.len, pd->pd_mem);
m                2156 dev/ic/pgt.c   			    pd, m->m_pkthdr.len, 0);
m                2157 dev/ic/pgt.c   		} else if (m->m_pkthdr.len <= PGT_FRAG_SIZE * 2) {
m                2184 dev/ic/pgt.c   			IFQ_DEQUEUE(&ifp->if_snd, m);
m                2185 dev/ic/pgt.c   			m_copydata(m, 0, PGT_FRAG_SIZE, pd->pd_mem);
m                2188 dev/ic/pgt.c   			m_copydata(m, PGT_FRAG_SIZE,
m                2189 dev/ic/pgt.c   			    m->m_pkthdr.len - PGT_FRAG_SIZE, pd2->pd_mem);
m                2191 dev/ic/pgt.c   			    pd2, m->m_pkthdr.len - PGT_FRAG_SIZE, 0);
m                2193 dev/ic/pgt.c   			IFQ_DEQUEUE(&ifp->if_snd, m);
m                2195 dev/ic/pgt.c   			m_freem(m);
m                2196 dev/ic/pgt.c   			m = NULL;
m                2198 dev/ic/pgt.c   		if (m != NULL) {
m                2202 dev/ic/pgt.c   				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                2208 dev/ic/pgt.c   			    mtod(m, struct ether_header *)->ether_dhost);
m                2220 dev/ic/pgt.c   				bcopy(mtod(m, struct ether_header *), &eh,
m                2222 dev/ic/pgt.c   				m_adj(m, sizeof(eh));
m                2223 dev/ic/pgt.c   				m = pgt_ieee80211_encap(sc, &eh, m, NULL);
m                2233 dev/ic/pgt.c   				if (m != NULL) {
m                2236 dev/ic/pgt.c   					mb.m_next = m;
m                2246 dev/ic/pgt.c   			if (m != NULL)
m                2247 dev/ic/pgt.c   				m_freem(m);
m                1104 dev/ic/re.c    re_newbuf(struct rl_softc *sc, int idx, struct mbuf *m)
m                1113 dev/ic/re.c    	if (m == NULL) {
m                1123 dev/ic/re.c    		m = n;
m                1125 dev/ic/re.c    		m->m_data = m->m_ext.ext_buf;
m                1132 dev/ic/re.c    	m->m_len = m->m_pkthdr.len = RE_RX_DESC_BUFLEN;
m                1133 dev/ic/re.c    	m->m_data += RE_ETHER_ALIGN;
m                1137 dev/ic/re.c    	error = bus_dmamap_load_mbuf(sc->sc_dmat, map, m,
m                1156 dev/ic/re.c    	rxs->rxs_mbuf = m;
m                1225 dev/ic/re.c    	struct mbuf	*m;
m                1244 dev/ic/re.c    		m = rxs->rxs_mbuf;
m                1254 dev/ic/re.c    			m->m_len = RE_RX_DESC_BUFLEN;
m                1256 dev/ic/re.c    				sc->rl_head = sc->rl_tail = m;
m                1258 dev/ic/re.c    				m->m_flags &= ~M_PKTHDR;
m                1259 dev/ic/re.c    				sc->rl_tail->m_next = m;
m                1260 dev/ic/re.c    				sc->rl_tail = m;
m                1300 dev/ic/re.c    			re_newbuf(sc, i, m);
m                1315 dev/ic/re.c    			re_newbuf(sc, i, m);
m                1320 dev/ic/re.c    			m->m_len = total_len % RE_RX_DESC_BUFLEN;
m                1321 dev/ic/re.c    			if (m->m_len == 0)
m                1322 dev/ic/re.c    				m->m_len = RE_RX_DESC_BUFLEN;
m                1329 dev/ic/re.c    			if (m->m_len <= ETHER_CRC_LEN) {
m                1331 dev/ic/re.c    				    (ETHER_CRC_LEN - m->m_len);
m                1332 dev/ic/re.c    				m_freem(m);
m                1334 dev/ic/re.c    				m->m_len -= ETHER_CRC_LEN;
m                1335 dev/ic/re.c    				m->m_flags &= ~M_PKTHDR;
m                1336 dev/ic/re.c    				sc->rl_tail->m_next = m;
m                1338 dev/ic/re.c    			m = sc->rl_head;
m                1340 dev/ic/re.c    			m->m_pkthdr.len = total_len - ETHER_CRC_LEN;
m                1342 dev/ic/re.c    			m->m_pkthdr.len = m->m_len =
m                1346 dev/ic/re.c    		m->m_pkthdr.rcvif = ifp;
m                1353 dev/ic/re.c    			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                1360 dev/ic/re.c    			m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK;
m                1364 dev/ic/re.c    			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1366 dev/ic/re.c    		ether_input_mbuf(ifp, m);
m                1528 dev/ic/re.c    re_encap(struct rl_softc *sc, struct mbuf *m, int *idx)
m                1538 dev/ic/re.c    	if ((m->m_flags & (M_PROTO1|M_PKTHDR)) == (M_PROTO1|M_PKTHDR) &&
m                1539 dev/ic/re.c    	    m->m_pkthdr.rcvif != NULL)
m                1540 dev/ic/re.c    		ifv = m->m_pkthdr.rcvif->if_softc;
m                1559 dev/ic/re.c    	if ((m->m_pkthdr.csum_flags &
m                1562 dev/ic/re.c    		if (m->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT)
m                1564 dev/ic/re.c    		if (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT)
m                1570 dev/ic/re.c    	error = bus_dmamap_load_mbuf(sc->sc_dmat, map, m,
m                1581 dev/ic/re.c    	if (m->m_pkthdr.len <= RL_IP4CSUMTX_PADLEN &&
m                1659 dev/ic/re.c    		    (RL_IP4CSUMTX_PADLEN + 1 - m->m_pkthdr.len);
m                1691 dev/ic/re.c    	txq->txq_mbuf = m;
m                1725 dev/ic/re.c    		struct mbuf *m;
m                1728 dev/ic/re.c    		IFQ_POLL(&ifp->if_snd, m);
m                1729 dev/ic/re.c    		if (m == NULL)
m                1738 dev/ic/re.c    		error = re_encap(sc, m, &idx);
m                1741 dev/ic/re.c    			IFQ_DEQUEUE(&ifp->if_snd, m);
m                1742 dev/ic/re.c    			m_freem(m);
m                1751 dev/ic/re.c    		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1760 dev/ic/re.c    			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 305 dev/ic/rln.c   	struct mbuf *	m;
m                 353 dev/ic/rln.c   	for (m = m0; m; m = m->m_next)	{
m                 354 dev/ic/rln.c   		if (m->m_len) {
m                 356 dev/ic/rln.c   			RLNDUMPHEX(mtod(m, void *), m->m_len);
m                 358 dev/ic/rln.c   			rln_msg_tx_data(sc, mtod(m, void *), m->m_len, &state);
m                 360 dev/ic/rln.c   		if (m->m_next)
m                 362 dev/ic/rln.c   		actlen += m->m_len;
m                 496 dev/ic/rln.c   	struct mbuf *m;
m                 576 dev/ic/rln.c   		m = rlnget(sc, hdr, len);
m                 578 dev/ic/rln.c   		if (m == NULL) 
m                 582 dev/ic/rln.c   		if (bcmp(mtod(m, u_int8_t *), "prox", 4) == 0) {
m                 590 dev/ic/rln.c   			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 593 dev/ic/rln.c   		ether_input_mbuf(ifp, m);
m                 700 dev/ic/rln.c   	struct mbuf *m, **mp, *top;
m                 741 dev/ic/rln.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 742 dev/ic/rln.c   	if (m == NULL)
m                 744 dev/ic/rln.c   	m->m_pkthdr.rcvif = ifp;
m                 745 dev/ic/rln.c   	m->m_pkthdr.len = totlen;
m                 751 dev/ic/rln.c   	m->m_data += pad;
m                 758 dev/ic/rln.c   			MGET(m, M_DONTWAIT, MT_DATA);
m                 759 dev/ic/rln.c   			if (m == NULL) {
m                 766 dev/ic/rln.c   			MCLGET(m, M_DONTWAIT);
m                 767 dev/ic/rln.c   			if (m->m_flags & M_EXT) {
m                 770 dev/ic/rln.c   					m->m_data += pad;
m                 776 dev/ic/rln.c   		rln_rx_pdata(sc, mtod(m, u_int8_t *), len, &pd);
m                 778 dev/ic/rln.c   		RLNDUMPHEX(mtod(m, u_int8_t *), len);
m                 782 dev/ic/rln.c   		m->m_len = len;
m                 784 dev/ic/rln.c   		*mp = m;
m                 785 dev/ic/rln.c   		mp = &m->m_next;
m                 424 dev/ic/rt2560.c 		if (data->m != NULL) {
m                 428 dev/ic/rt2560.c 			m_freem(data->m);
m                 429 dev/ic/rt2560.c 			data->m = NULL;
m                 467 dev/ic/rt2560.c 			if (data->m != NULL) {
m                 472 dev/ic/rt2560.c 				m_freem(data->m);
m                 559 dev/ic/rt2560.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 560 dev/ic/rt2560.c 		if (data->m == NULL) {
m                 566 dev/ic/rt2560.c 		MCLGET(data->m, M_DONTWAIT);
m                 567 dev/ic/rt2560.c 		if (!(data->m->m_flags & M_EXT)) {
m                 575 dev/ic/rt2560.c 		    mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 630 dev/ic/rt2560.c 			if (data->m != NULL) {
m                 635 dev/ic/rt2560.c 				m_freem(data->m);
m                 739 dev/ic/rt2560.c 	struct mbuf *m;
m                 784 dev/ic/rt2560.c 			m = ieee80211_beacon_alloc(ic, ni);
m                 785 dev/ic/rt2560.c 			if (m == NULL) {
m                 792 dev/ic/rt2560.c 			error = rt2560_tx_bcn(sc, m, ni);
m                 980 dev/ic/rt2560.c 		m_freem(data->m);
m                 981 dev/ic/rt2560.c 		data->m = NULL;
m                1046 dev/ic/rt2560.c 		m_freem(data->m);
m                1047 dev/ic/rt2560.c 		data->m = NULL;
m                1080 dev/ic/rt2560.c 	struct mbuf *mnew, *m;
m                1142 dev/ic/rt2560.c 			    mtod(data->m, void *), MCLBYTES, NULL,
m                1157 dev/ic/rt2560.c 		m = data->m;
m                1158 dev/ic/rt2560.c 		data->m = mnew;
m                1162 dev/ic/rt2560.c 		m->m_pkthdr.rcvif = ifp;
m                1163 dev/ic/rt2560.c 		m->m_pkthdr.len = m->m_len =
m                1188 dev/ic/rt2560.c 			mb.m_next = m;
m                1195 dev/ic/rt2560.c 		wh = mtod(m, struct ieee80211_frame *);
m                1199 dev/ic/rt2560.c 		ieee80211_input(ifp, m, ni, desc->rssi, 0);
m                1310 dev/ic/rt2560.c 		bpf_mtap(ic->ic_rawbpf, data->m, BPF_DIRECTION_OUT);
m                1562 dev/ic/rt2560.c 	data->m = m0;
m                1654 dev/ic/rt2560.c 	data->m = m0;
m                1795 dev/ic/rt2560.c 		data->m = mprot;
m                1887 dev/ic/rt2560.c 	data->m = m0;
m                  56 dev/ic/rt2560var.h 	struct mbuf			*m;
m                  76 dev/ic/rt2560var.h 	struct mbuf	*m;
m                 457 dev/ic/rt2661.c 		if (data->m != NULL) {
m                 461 dev/ic/rt2661.c 			m_freem(data->m);
m                 462 dev/ic/rt2661.c 			data->m = NULL;
m                 499 dev/ic/rt2661.c 			if (data->m != NULL) {
m                 504 dev/ic/rt2661.c 				m_freem(data->m);
m                 589 dev/ic/rt2661.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 590 dev/ic/rt2661.c 		if (data->m == NULL) {
m                 596 dev/ic/rt2661.c 		MCLGET(data->m, M_DONTWAIT);
m                 597 dev/ic/rt2661.c 		if (!(data->m->m_flags & M_EXT)) {
m                 605 dev/ic/rt2661.c 		    mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 657 dev/ic/rt2661.c 			if (data->m != NULL) {
m                 662 dev/ic/rt2661.c 				m_freem(data->m);
m                 979 dev/ic/rt2661.c 		m_freem(data->m);
m                 980 dev/ic/rt2661.c 		data->m = NULL;
m                1004 dev/ic/rt2661.c 	struct mbuf *mnew, *m;
m                1065 dev/ic/rt2661.c 			    mtod(data->m, void *), MCLBYTES, NULL,
m                1080 dev/ic/rt2661.c 		m = data->m;
m                1081 dev/ic/rt2661.c 		data->m = mnew;
m                1085 dev/ic/rt2661.c 		m->m_pkthdr.rcvif = ifp;
m                1086 dev/ic/rt2661.c 		m->m_pkthdr.len = m->m_len =
m                1109 dev/ic/rt2661.c 			mb.m_next = m;
m                1117 dev/ic/rt2661.c 		wh = mtod(m, struct ieee80211_frame *);
m                1121 dev/ic/rt2661.c 		ieee80211_input(ifp, m, ni, desc->rssi, 0);
m                1503 dev/ic/rt2661.c 	data->m = m0;
m                1641 dev/ic/rt2661.c 		data->m = mprot;
m                1731 dev/ic/rt2661.c 	data->m = m0;
m                  52 dev/ic/rt2661var.h 	struct mbuf			*m;
m                  71 dev/ic/rt2661var.h 	struct mbuf	*m;
m                 591 dev/ic/rtl81x9.c 	struct mbuf		*m;
m                 679 dev/ic/rtl81x9.c 			m = m_devget(rxbufpos - ETHER_ALIGN,
m                 681 dev/ic/rtl81x9.c 			if (m == NULL)
m                 684 dev/ic/rtl81x9.c 				m_copyback(m, wrap + ETHER_ALIGN,
m                 686 dev/ic/rtl81x9.c 				m = m_pullup(m, sizeof(struct ip) +ETHER_ALIGN);
m                 687 dev/ic/rtl81x9.c 				if (m == NULL)
m                 690 dev/ic/rtl81x9.c 					m_adj(m, ETHER_ALIGN);
m                 694 dev/ic/rtl81x9.c 			m = m_devget(rxbufpos - ETHER_ALIGN,
m                 696 dev/ic/rtl81x9.c 			if (m == NULL)
m                 699 dev/ic/rtl81x9.c 				m_adj(m, ETHER_ALIGN);
m                 709 dev/ic/rtl81x9.c 		if (m == NULL) {
m                 723 dev/ic/rtl81x9.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 725 dev/ic/rtl81x9.c 		ether_input_mbuf(ifp, m);
m                 990 dev/ic/rtw.c   	struct mbuf *m;
m                 992 dev/ic/rtw.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 993 dev/ic/rtw.c   	if (m == NULL)
m                 996 dev/ic/rtw.c   	MCLGET(m, M_DONTWAIT);
m                 997 dev/ic/rtw.c   	if ((m->m_flags & M_EXT) == 0) {
m                 998 dev/ic/rtw.c   		m_freem(m);
m                1002 dev/ic/rtw.c   	m->m_pkthdr.len = m->m_len = m->m_ext.ext_size;
m                1009 dev/ic/rtw.c   	rc = bus_dmamap_load_mbuf(dmat, rs->rs_dmamap, m, BUS_DMA_NOWAIT);
m                1011 dev/ic/rtw.c   		m_freem(m);
m                1015 dev/ic/rtw.c   	rs->rs_mbuf = m;
m                1140 dev/ic/rtw.c   	struct mbuf *m;
m                1255 dev/ic/rtw.c   		m = rs->rs_mbuf;
m                1289 dev/ic/rtw.c   		m->m_pkthdr.rcvif = &sc->sc_if;
m                1290 dev/ic/rtw.c   		m->m_pkthdr.len = m->m_len = len;
m                1292 dev/ic/rtw.c   		wh = mtod(m, struct ieee80211_frame *);
m                1304 dev/ic/rtw.c   			ieee80211_dump_pkt(mtod(m, uint8_t *), m->m_pkthdr.len,
m                1332 dev/ic/rtw.c   			mb.m_next = m;
m                1340 dev/ic/rtw.c   		ieee80211_input(&sc->sc_if, m, ni, rssi, htsftl);
m                1365 dev/ic/rtw.c   	struct mbuf *m;
m                1368 dev/ic/rtw.c   	m = ts->ts_mbuf;
m                1370 dev/ic/rtw.c   	KASSERT(m != NULL);
m                1378 dev/ic/rtw.c   	m_freem(m);
m                1519 dev/ic/rtw.c   	struct mbuf *m;
m                1546 dev/ic/rtw.c   		if ((m = ieee80211_beacon_alloc(ic, ic->ic_bss)) != NULL) {
m                1548 dev/ic/rtw.c   			    ("%s: m %p len %u\n", __func__, m, m->m_len));
m                1551 dev/ic/rtw.c   		if (m == NULL) {
m                1556 dev/ic/rtw.c   		m->m_pkthdr.rcvif = (void *)ieee80211_ref_node(ic->ic_bss);
m                1557 dev/ic/rtw.c   		IF_ENQUEUE(&sc->sc_beaconq, m);
m                2744 dev/ic/rtw.c   	struct mbuf *m;
m                2755 dev/ic/rtw.c   	IF_DEQUEUE(ifq, m);
m                2756 dev/ic/rtw.c   	*nip = (struct ieee80211_node *)m->m_pkthdr.rcvif;
m                2757 dev/ic/rtw.c   	m->m_pkthdr.rcvif = NULL;
m                2758 dev/ic/rtw.c   	return m;
m                2877 dev/ic/rtw.c   	struct mbuf *m, *m0;
m                2892 dev/ic/rtw.c   		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2893 dev/ic/rtw.c   		if (m == NULL) {
m                2899 dev/ic/rtw.c   			MCLGET(m, M_DONTWAIT);
m                2900 dev/ic/rtw.c   			if ((m->m_flags & M_EXT) == 0) {
m                2903 dev/ic/rtw.c   				m_freem(m);
m                2907 dev/ic/rtw.c   		m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                2908 dev/ic/rtw.c   		m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
m                2910 dev/ic/rtw.c   		m0 = m;
m                2911 dev/ic/rtw.c   		m = NULL;
m                3555 dev/ic/rtw.c   rtw_recv_mgmt(struct ieee80211com *ic, struct mbuf *m,
m                3560 dev/ic/rtw.c   	(*sc->sc_mtbl.mt_recv_mgmt)(ic, m, ni, subtype, rssi, rstamp);
m                  42 dev/ic/rtwreg.h #define BITS(m, n) ((BIT(MAX((m), (n)) + 1) - 1) ^ (BIT(MIN((m), (n))) - 1))
m                  52 dev/ic/rtwreg.h #define MASK_TO_SHIFT2(m) (GTEQ_POWER(LOWEST_SET_BIT((m)), 1) ? 1 : 0)
m                  54 dev/ic/rtwreg.h #define MASK_TO_SHIFT4(m) \
m                  55 dev/ic/rtwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 2) \
m                  56 dev/ic/rtwreg.h 	    ? 2 + MASK_TO_SHIFT2((m) >> 2) \
m                  57 dev/ic/rtwreg.h 	    : MASK_TO_SHIFT2((m)))
m                  59 dev/ic/rtwreg.h #define MASK_TO_SHIFT8(m) \
m                  60 dev/ic/rtwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 4) \
m                  61 dev/ic/rtwreg.h 	    ? 4 + MASK_TO_SHIFT4((m) >> 4) \
m                  62 dev/ic/rtwreg.h 	    : MASK_TO_SHIFT4((m)))
m                  64 dev/ic/rtwreg.h #define MASK_TO_SHIFT16(m) \
m                  65 dev/ic/rtwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 8) \
m                  66 dev/ic/rtwreg.h 	    ? 8 + MASK_TO_SHIFT8((m) >> 8) \
m                  67 dev/ic/rtwreg.h 	    : MASK_TO_SHIFT8((m)))
m                  69 dev/ic/rtwreg.h #define MASK_TO_SHIFT(m) \
m                  70 dev/ic/rtwreg.h 	(GTEQ_POWER(LOWEST_SET_BIT((m)), 16) \
m                  71 dev/ic/rtwreg.h 	    ? 16 + MASK_TO_SHIFT16((m) >> 16) \
m                  72 dev/ic/rtwreg.h 	    : MASK_TO_SHIFT16((m)))
m                  77 dev/ic/rtwreg.h #define PRESHIFT(m) MASK_AND_RSHIFT((m), (m))
m                  43 dev/ic/sili.c  #define DPRINTF(m, a...)	do { if ((m) & silidebug) printf(a); } while (0)
m                  45 dev/ic/sili.c  #define DPRINTF(m, a...)
m                 370 dev/ic/smc83c170.c 	struct mbuf *m0, *m;
m                 397 dev/ic/smc83c170.c 		m = NULL;
m                 421 dev/ic/smc83c170.c 			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 422 dev/ic/smc83c170.c 			if (m == NULL)
m                 425 dev/ic/smc83c170.c 				MCLGET(m, M_DONTWAIT);
m                 426 dev/ic/smc83c170.c 				if ((m->m_flags & M_EXT) == 0) {
m                 427 dev/ic/smc83c170.c 					m_freem(m);
m                 431 dev/ic/smc83c170.c 			m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                 432 dev/ic/smc83c170.c 			m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
m                 434 dev/ic/smc83c170.c 			    m, BUS_DMA_WRITE|BUS_DMA_NOWAIT);
m                 439 dev/ic/smc83c170.c 		if (m != NULL) {
m                 441 dev/ic/smc83c170.c 			m0 = m;
m                 654 dev/ic/smc83c170.c 	struct mbuf *m;
m                 746 dev/ic/smc83c170.c 				MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 747 dev/ic/smc83c170.c 				if (m == NULL)
m                 749 dev/ic/smc83c170.c 				memcpy(mtod(m, caddr_t),
m                 756 dev/ic/smc83c170.c 				m = ds->ds_mbuf;
m                 769 dev/ic/smc83c170.c 			m->m_pkthdr.rcvif = ifp;
m                 770 dev/ic/smc83c170.c 			m->m_pkthdr.len = m->m_len = len;
m                 778 dev/ic/smc83c170.c 				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 782 dev/ic/smc83c170.c 			ether_input_mbuf(ifp, m);
m                1278 dev/ic/smc83c170.c 	struct mbuf *m;
m                1281 dev/ic/smc83c170.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1282 dev/ic/smc83c170.c 	if (m == NULL)
m                1285 dev/ic/smc83c170.c 	MCLGET(m, M_DONTWAIT);
m                1286 dev/ic/smc83c170.c 	if ((m->m_flags & M_EXT) == 0) {
m                1287 dev/ic/smc83c170.c 		m_freem(m);
m                1294 dev/ic/smc83c170.c 	ds->ds_mbuf = m;
m                1297 dev/ic/smc83c170.c 	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                 551 dev/ic/smc91cxx.c 	struct mbuf *m, *top;
m                 563 dev/ic/smc91cxx.c 	IFQ_POLL(&ifp->if_snd, m);
m                 564 dev/ic/smc91cxx.c 	if (m == NULL)
m                 572 dev/ic/smc91cxx.c 	for (len = 0, top = m; m != NULL; m = m->m_next)
m                 573 dev/ic/smc91cxx.c 		len += m->m_len;
m                 583 dev/ic/smc91cxx.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 584 dev/ic/smc91cxx.c 		m_freem(m);
m                 660 dev/ic/smc91cxx.c 	IFQ_DEQUEUE(&ifp->if_snd, m);
m                 665 dev/ic/smc91cxx.c 	for (top = m; m != NULL; m = m->m_next) {
m                 667 dev/ic/smc91cxx.c 		if (m->m_len > 1)
m                 669 dev/ic/smc91cxx.c 			    mtod(m, u_int16_t *), m->m_len >> 1);
m                 672 dev/ic/smc91cxx.c 		if (m->m_len & 1)
m                 674 dev/ic/smc91cxx.c 			  *(u_int8_t *)(mtod(m, u_int8_t *) + (m->m_len - 1)));
m                 929 dev/ic/smc91cxx.c 	struct mbuf *m;
m                 971 dev/ic/smc91cxx.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 972 dev/ic/smc91cxx.c 	if (m == NULL)
m                 974 dev/ic/smc91cxx.c 	m->m_pkthdr.rcvif = ifp;
m                 975 dev/ic/smc91cxx.c 	m->m_pkthdr.len = packetlen;
m                 981 dev/ic/smc91cxx.c 	MCLGET(m, M_DONTWAIT);
m                 982 dev/ic/smc91cxx.c 	if ((m->m_flags & M_EXT) == 0) {
m                 983 dev/ic/smc91cxx.c 		m_freem(m);
m                 994 dev/ic/smc91cxx.c 	m->m_data = (caddr_t) ALIGN(mtod(m, caddr_t) +
m                 997 dev/ic/smc91cxx.c 	data = mtod(m, u_int8_t *);
m                1014 dev/ic/smc91cxx.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1017 dev/ic/smc91cxx.c 	m->m_pkthdr.len = m->m_len = packetlen;
m                1018 dev/ic/smc91cxx.c 	ether_input_mbuf(ifp, m);
m                  52 dev/ic/twe.c   #define	TWE_DPRINTF(m,a)	if (twe_debug & (m)) printf a
m                  60 dev/ic/twe.c   #define	TWE_DPRINTF(m,a)	/* m, a */
m                 667 dev/ic/xl.c    	struct mbuf	*m;
m                 673 dev/ic/xl.c    	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 675 dev/ic/xl.c    	if (m == NULL)
m                 679 dev/ic/xl.c    		mtod(m, struct ether_header *)->ether_dhost, ETHER_ADDR_LEN);
m                 681 dev/ic/xl.c    		mtod(m, struct ether_header *)->ether_shost, ETHER_ADDR_LEN);
m                 682 dev/ic/xl.c    	mtod(m, struct ether_header *)->ether_type = htons(3);
m                 683 dev/ic/xl.c    	mtod(m, unsigned char *)[14] = 0;
m                 684 dev/ic/xl.c    	mtod(m, unsigned char *)[15] = 0;
m                 685 dev/ic/xl.c    	mtod(m, unsigned char *)[16] = 0xE3;
m                 686 dev/ic/xl.c    	m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3;
m                 687 dev/ic/xl.c    	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                1184 dev/ic/xl.c            struct mbuf		*m;
m                1240 dev/ic/xl.c    		m = cur_rx->xl_mbuf;
m                1256 dev/ic/xl.c    		m->m_pkthdr.rcvif = ifp;
m                1257 dev/ic/xl.c    		m->m_pkthdr.len = m->m_len = total_len;
m                1263 dev/ic/xl.c    			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1280 dev/ic/xl.c    			m->m_pkthdr.csum_flags = sumflags;
m                1283 dev/ic/xl.c    		ether_input_mbuf(ifp, m);
m                 123 dev/ipmi.c     #define TB(b,m)	  (data[2+byteof(b)] & bitof(b))
m                1268 dev/ipmi.c     	M  = signextend((((short)(s1->m_tolerance & 0xC0)) << 2) + s1->m, 10);
m                 229 dev/ipmivar.h  	u_int8_t	m;
m                3417 dev/isa/gus.c  	unsigned char	c,d,m;
m                3443 dev/isa/gus.c  	m = GUSMASK_LINE_IN|GUSMASK_LINE_OUT;		/* disable all */
m                3467 dev/isa/gus.c  	bus_space_write_1(iot, sc->sc_ioh1, GUS_MIX_CONTROL, m);
m                3471 dev/isa/gus.c  	bus_space_write_1(iot, sc->sc_ioh1, GUS_MIX_CONTROL, m);
m                3477 dev/isa/gus.c  	    m | GUSMASK_CONTROL_SEL);
m                3480 dev/isa/gus.c  	bus_space_write_1(iot, sc->sc_ioh1, GUS_MIX_CONTROL, m);
m                3484 dev/isa/gus.c  	    m | GUSMASK_CONTROL_SEL);
m                3491 dev/isa/gus.c  	     (m | GUSMASK_LATCHES) & ~(GUSMASK_LINE_OUT|GUSMASK_LINE_IN));
m                3497 dev/isa/gus.c  		(m | GUSMASK_LATCHES) & ~(GUSMASK_LINE_OUT|GUSMASK_LINE_IN);
m                 573 dev/isa/if_ec.c ec_write_mbuf(struct dp8390_softc *sc, struct mbuf *m, int buf)
m                 586 dev/isa/if_ec.c 	savelen = m->m_pkthdr.len;
m                 593 dev/isa/if_ec.c 		for (; m != NULL; buf += m->m_len, m = m->m_next)
m                 595 dev/isa/if_ec.c 			    mtod(m, u_int8_t *), m->m_len);
m                 611 dev/isa/if_ec.c 	for (; m != NULL; m = m->m_next) {
m                 612 dev/isa/if_ec.c 		len = m->m_len;
m                 615 dev/isa/if_ec.c 		data = mtod(m, u_int8_t *);
m                 242 dev/isa/if_ef_isapnp.c 	struct mbuf *m, *m0;
m                 292 dev/isa/if_ef_isapnp.c 	for (m = m0; m; ) {
m                 294 dev/isa/if_ef_isapnp.c 			while (m->m_len && fillcnt < 4) {
m                 297 dev/isa/if_ef_isapnp.c 				filler |= m->m_data[0] << 24;
m                 298 dev/isa/if_ef_isapnp.c 				m->m_data++;
m                 299 dev/isa/if_ef_isapnp.c 				m->m_len--;
m                 309 dev/isa/if_ef_isapnp.c 		if (m->m_len & ~3)
m                 311 dev/isa/if_ef_isapnp.c 			    EF_W1_TX_PIO_WR_1, (u_int32_t *)m->m_data,
m                 312 dev/isa/if_ef_isapnp.c 			    m->m_len >> 2);
m                 313 dev/isa/if_ef_isapnp.c 		for (i = 0; i < (m->m_len & 3); i++) {
m                 316 dev/isa/if_ef_isapnp.c 			filler |= m->m_data[(m->m_len & ~3) + i] << 24;
m                 318 dev/isa/if_ef_isapnp.c 		MFREE(m, m0);
m                 319 dev/isa/if_ef_isapnp.c 		m = m0;
m                 692 dev/isa/if_ef_isapnp.c 	struct mbuf *m;
m                 732 dev/isa/if_ef_isapnp.c 	m = efget(sc, len);
m                 733 dev/isa/if_ef_isapnp.c 	if (m == NULL) {
m                 743 dev/isa/if_ef_isapnp.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 746 dev/isa/if_ef_isapnp.c 	ether_input_mbuf(ifp, m);
m                 757 dev/isa/if_ef_isapnp.c 	struct mbuf *top, **mp, *m;
m                 760 dev/isa/if_ef_isapnp.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 761 dev/isa/if_ef_isapnp.c 	if (m == NULL)
m                 763 dev/isa/if_ef_isapnp.c 	m->m_pkthdr.rcvif = ifp;
m                 764 dev/isa/if_ef_isapnp.c 	m->m_pkthdr.len = totlen;
m                 766 dev/isa/if_ef_isapnp.c 	m->m_data += pad;
m                 775 dev/isa/if_ef_isapnp.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 776 dev/isa/if_ef_isapnp.c 			if (m == NULL) {
m                 784 dev/isa/if_ef_isapnp.c 			MCLGET(m, M_DONTWAIT);
m                 785 dev/isa/if_ef_isapnp.c 			if (m->m_flags & M_EXT)
m                 792 dev/isa/if_ef_isapnp.c 			    EF_W1_RX_PIO_RR_1, mtod(m, u_int8_t *),
m                 795 dev/isa/if_ef_isapnp.c 			*(mtod(m, u_int8_t *)) =
m                 798 dev/isa/if_ef_isapnp.c 		m->m_len = len;
m                 800 dev/isa/if_ef_isapnp.c 		*mp = m;
m                 801 dev/isa/if_ef_isapnp.c 		mp = &m->m_next;
m                 533 dev/isa/if_eg.c 	struct mbuf *m0, *m;
m                 578 dev/isa/if_eg.c 	for (m = m0; m != 0; m = m->m_next) {
m                 579 dev/isa/if_eg.c 		bcopy(mtod(m, caddr_t), buffer, m->m_len);
m                 580 dev/isa/if_eg.c 		buffer += m->m_len;
m                 699 dev/isa/if_eg.c 	struct mbuf *m;
m                 710 dev/isa/if_eg.c 	m = egget(sc, buf, len);
m                 711 dev/isa/if_eg.c 	if (m == 0) {
m                 724 dev/isa/if_eg.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 727 dev/isa/if_eg.c 	ether_input_mbuf(ifp, m);
m                 740 dev/isa/if_eg.c 	struct mbuf *top, **mp, *m;
m                 743 dev/isa/if_eg.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 744 dev/isa/if_eg.c 	if (m == 0)
m                 746 dev/isa/if_eg.c 	m->m_pkthdr.rcvif = ifp;
m                 747 dev/isa/if_eg.c 	m->m_pkthdr.len = totlen;
m                 754 dev/isa/if_eg.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 755 dev/isa/if_eg.c 			if (m == 0) {
m                 762 dev/isa/if_eg.c 			MCLGET(m, M_DONTWAIT);
m                 763 dev/isa/if_eg.c 			if (m->m_flags & M_EXT)
m                 766 dev/isa/if_eg.c 		m->m_len = len = min(totlen, len);
m                 767 dev/isa/if_eg.c 		bcopy((caddr_t)buf, mtod(m, caddr_t), len);
m                 770 dev/isa/if_eg.c 		*mp = m;
m                 771 dev/isa/if_eg.c 		mp = &m->m_next;
m                 299 dev/isa/if_el.c 	struct mbuf *m, *m0;
m                 342 dev/isa/if_el.c 		for (m = m0; m != 0; m = m->m_next)
m                 343 dev/isa/if_el.c 			outsb(iobase+EL_BUF, mtod(m, caddr_t), m->m_len);
m                 498 dev/isa/if_el.c 	struct mbuf *m;
m                 509 dev/isa/if_el.c 	m = elget(sc, len);
m                 510 dev/isa/if_el.c 	if (m == 0) {
m                 523 dev/isa/if_el.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 526 dev/isa/if_el.c 	ether_input_mbuf(ifp, m);
m                 541 dev/isa/if_el.c 	struct mbuf *top, **mp, *m;
m                 544 dev/isa/if_el.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 545 dev/isa/if_el.c 	if (m == 0)
m                 547 dev/isa/if_el.c 	m->m_pkthdr.rcvif = ifp;
m                 548 dev/isa/if_el.c 	m->m_pkthdr.len = totlen;
m                 558 dev/isa/if_el.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 559 dev/isa/if_el.c 			if (m == 0) {
m                 566 dev/isa/if_el.c 			MCLGET(m, M_DONTWAIT);
m                 567 dev/isa/if_el.c 			if (m->m_flags & M_EXT)
m                 570 dev/isa/if_el.c 		m->m_len = len = min(totlen, len);
m                 571 dev/isa/if_el.c 		insb(iobase+EL_BUF, mtod(m, caddr_t), len);
m                 573 dev/isa/if_el.c 		*mp = m;
m                 574 dev/isa/if_el.c 		mp = &m->m_next;
m                 407 dev/isa/if_ex.c 	register struct mbuf *m;
m                 429 dev/isa/if_ex.c 		for (len = 0, m = opkt; m != NULL; m = m->m_next)
m                 430 dev/isa/if_ex.c  			len += m->m_len;
m                 485 dev/isa/if_ex.c 			for (m = opkt, i = 0; m != NULL; m = m->m_next) {
m                 486 dev/isa/if_ex.c 				DODEBUG(Sent_Pkts, printf("[%d]", m->m_len););
m                 488 dev/isa/if_ex.c 					tmp16[1] = *(mtod(m, caddr_t));
m                 491 dev/isa/if_ex.c 				ISA_PUT_2_MULTI(IO_PORT_REG, mtod(m, caddr_t) 
m                 492 dev/isa/if_ex.c 				    + i, (m->m_len - i) / 2);
m                 493 dev/isa/if_ex.c 				if ((i = (m->m_len - i) & 1))
m                 494 dev/isa/if_ex.c 					tmp16[0] = *(mtod(m, caddr_t) + 
m                 495 dev/isa/if_ex.c 					    m->m_len - 1);
m                 679 dev/isa/if_ex.c 	register struct mbuf *m, *ipkt;
m                 695 dev/isa/if_ex.c 			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 696 dev/isa/if_ex.c 			ipkt = m;
m                 705 dev/isa/if_ex.c 						MCLGET(m, M_DONTWAIT);
m                 706 dev/isa/if_ex.c 						if (m->m_flags & M_EXT)
m                 707 dev/isa/if_ex.c 							m->m_len = MCLBYTES;
m                 714 dev/isa/if_ex.c 					m->m_len = min(m->m_len, pkt_len);
m                 722 dev/isa/if_ex.c 					    mtod(m, caddr_t), m->m_len / 2);
m                 723 dev/isa/if_ex.c 					if (m->m_len & 1)
m                 724 dev/isa/if_ex.c 						*(mtod(m, caddr_t) + 
m                 725 dev/isa/if_ex.c 						    m->m_len - 1) = 
m                 727 dev/isa/if_ex.c 					pkt_len -= m->m_len;
m                 729 dev/isa/if_ex.c 						MGET(m->m_next, M_DONTWAIT, 
m                 731 dev/isa/if_ex.c 					if (m->m_next == NULL) {
m                 736 dev/isa/if_ex.c 					m = m->m_next;
m                 737 dev/isa/if_ex.c 					m->m_len = MLEN;
m                1237 dev/isa/if_ie.c 	struct mbuf *top, **mp, *m;
m                1265 dev/isa/if_ie.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1266 dev/isa/if_ie.c 	if (m == 0)
m                1268 dev/isa/if_ie.c 	m->m_pkthdr.rcvif = &sc->sc_arpcom.ac_if;
m                1269 dev/isa/if_ie.c 	m->m_pkthdr.len = totlen;
m                1280 dev/isa/if_ie.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                1281 dev/isa/if_ie.c 			if (m == 0) {
m                1288 dev/isa/if_ie.c 			MCLGET(m, M_DONTWAIT);
m                1289 dev/isa/if_ie.c 			if (m->m_flags & M_EXT)
m                1292 dev/isa/if_ie.c 		m->m_len = len = min(totlen, len);
m                1294 dev/isa/if_ie.c 		*mp = m;
m                1295 dev/isa/if_ie.c 		mp = &m->m_next;
m                1298 dev/isa/if_ie.c 	m = top;
m                1309 dev/isa/if_ie.c 		    thismblen = m->m_len - thismboff;
m                1313 dev/isa/if_ie.c 		    mtod(m, caddr_t) + thismboff, (u_int)len);
m                1317 dev/isa/if_ie.c 			m = m->m_next;
m                1352 dev/isa/if_ie.c 	struct mbuf *m = 0;
m                1369 dev/isa/if_ie.c 		m = ieget(sc, &eh, &bpf_gets_it);
m                1371 dev/isa/if_ie.c 		m = ieget(sc, &eh, 0);
m                1375 dev/isa/if_ie.c 	if (m == 0) {
m                1390 dev/isa/if_ie.c 		bpf_mtap(sc->sc_arpcom.ac_if.if_bpf, m, BPF_DIRECTION_IN);
m                1399 dev/isa/if_ie.c 			m_freem(m);
m                1416 dev/isa/if_ie.c 	ether_input_mbuf(&sc->sc_arpcom.ac_if, m);
m                1459 dev/isa/if_ie.c 	struct mbuf *m0, *m;
m                1495 dev/isa/if_ie.c 		for (m = m0; m != NULL && (len + m->m_len) < IE_TBUF_SIZE;
m                1496 dev/isa/if_ie.c 		    m = m->m_next) {
m                1497 dev/isa/if_ie.c 			bcopy(mtod(m, caddr_t), buffer, m->m_len);
m                1498 dev/isa/if_ie.c 			buffer += m->m_len;
m                1499 dev/isa/if_ie.c 			len += m->m_len;
m                1501 dev/isa/if_ie.c 		if (m != NULL)
m                 610 dev/isa/if_we.c we_write_mbuf(struct dp8390_softc *sc, struct mbuf *m, int buf)
m                 621 dev/isa/if_we.c 	savelen = m->m_pkthdr.len;
m                 629 dev/isa/if_we.c 		for (; m != NULL; buf += m->m_len, m = m->m_next)
m                 631 dev/isa/if_we.c 			    buf, mtod(m, u_int8_t *), m->m_len);
m                 639 dev/isa/if_we.c 	for (; m != NULL; m = m->m_next) {
m                 640 dev/isa/if_we.c 		len = m->m_len;
m                 643 dev/isa/if_we.c 		data = mtod(m, u_int8_t *);
m                 685 dev/isa/isadma.c 	struct isa_mem *m;
m                 695 dev/isa/isadma.c 	m = malloc(sizeof(*m), pool, flags);
m                 696 dev/isa/isadma.c 	if (m == 0) {
m                 701 dev/isa/isadma.c 	m->isadev = isadev;
m                 702 dev/isa/isadma.c 	m->chan = chan;
m                 703 dev/isa/isadma.c 	m->size = size;
m                 704 dev/isa/isadma.c 	m->addr = addr;
m                 705 dev/isa/isadma.c 	m->kva = kva;
m                 706 dev/isa/isadma.c 	m->next = isa_mem_head;
m                 707 dev/isa/isadma.c 	isa_mem_head = m;
m                 716 dev/isa/isadma.c 	struct isa_mem **mp, *m;
m                 721 dev/isa/isadma.c 	m = *mp;
m                 722 dev/isa/isadma.c 	if (!m) {
m                 726 dev/isa/isadma.c 	*mp = m->next;
m                 727 dev/isa/isadma.c 	isa_dmamem_unmap(m->isadev, m->chan, kva, m->size);
m                 728 dev/isa/isadma.c 	isa_dmamem_free(m->isadev, m->chan, m->addr, m->size);
m                 729 dev/isa/isadma.c 	free(m, pool);
m                 738 dev/isa/isadma.c 	struct isa_mem *m;
m                 740 dev/isa/isadma.c 	for(m = isa_mem_head; m && m->kva != (caddr_t)mem; m = m->next)
m                 742 dev/isa/isadma.c 	if (!m) {
m                 746 dev/isa/isadma.c 	return (isa_dmamem_mmap(m->isadev, m->chan, m->addr, m->size, off,
m                 525 dev/isa/sbdsp.c 	struct sbmode *m;
m                 566 dev/isa/sbdsp.c 		for(m = mode == AUMODE_PLAY ? sbpmodes : sbrmodes;
m                 567 dev/isa/sbdsp.c 		    m->model != -1; m++) {
m                 568 dev/isa/sbdsp.c 			if (model == m->model &&
m                 569 dev/isa/sbdsp.c 			    p->channels == m->channels &&
m                 570 dev/isa/sbdsp.c 			    p->precision == m->precision &&
m                 571 dev/isa/sbdsp.c 			    p->sample_rate >= m->lowrate &&
m                 572 dev/isa/sbdsp.c 			    p->sample_rate <= m->highrate)
m                 575 dev/isa/sbdsp.c 		if (m->model == -1)
m                 602 dev/isa/sbdsp.c 					m = &sbpmodes[PLAY16];
m                 611 dev/isa/sbdsp.c 					m = &sbpmodes[PLAY16];
m                 621 dev/isa/sbdsp.c 		} else if (m->model == SB_JAZZ && m->precision == 16) {
m                 672 dev/isa/sbdsp.c 		chan = m->precision == 16 ? sc->sc_drq16 : sc->sc_drq8;
m                 676 dev/isa/sbdsp.c 			sc->sc_o.modep = m;
m                 682 dev/isa/sbdsp.c 			sc->sc_i.modep = m;
m                 691 dev/isa/sbdsp.c 			 p->encoding, tc, m->cmd, bmode, m->cmdchan, swcode, factor));
m                  38 dev/isa/wdsreg.h #define WDSC_MSTART(m)		(0x80 + (m))
m                  39 dev/isa/wdsreg.h #define WDSC_MMSTART(m)		(0xc0 + (m))
m                 128 dev/mii/acphy.c #define	ADD(m, c)	ifmedia_add(&mii->mii_media, (m), (c), NULL)
m                 147 dev/mii/dcphy.c #define	ADD(m, c)	ifmedia_add(&mii->mii_media, (m), (c), NULL)
m                 120 dev/mii/ipgphy.c #define ADD(m, c)	ifmedia_add(&mii->mii_media, (m), (c), NULL)
m                 410 dev/mii/mii_physubr.c #define	ADD(m, c)	ifmedia_add(&mii->mii_media, (m), (c), NULL)
m                 121 dev/mii/xmphy.c #define	ADD(m, c)	ifmedia_add(&mii->mii_media, (m), (c), NULL)
m                 196 dev/pci/aac_pci.c 	struct aac_ident *m;
m                 199 dev/pci/aac_pci.c 	for (m = aac_identifiers; m->vendor != 0; m++)
m                 200 dev/pci/aac_pci.c 		if (m->vendor == PCI_VENDOR(pa->pa_id) &&
m                 201 dev/pci/aac_pci.c 		    m->device == PCI_PRODUCT(pa->pa_id)) {
m                 204 dev/pci/aac_pci.c 			if (m->subvendor == PCI_VENDOR(subsysid) &&
m                 205 dev/pci/aac_pci.c 			    m->subdevice == PCI_PRODUCT(subsysid))
m                 224 dev/pci/aac_pci.c 	struct aac_ident *m;
m                 273 dev/pci/aac_pci.c 	for (m = aac_identifiers; m->vendor != 0; m++)
m                 274 dev/pci/aac_pci.c 		if (m->vendor == PCI_VENDOR(pa->pa_id) &&
m                 275 dev/pci/aac_pci.c 		    m->device == PCI_PRODUCT(pa->pa_id)) {
m                 276 dev/pci/aac_pci.c 			if (m->subvendor == PCI_VENDOR(subsysid) &&
m                 277 dev/pci/aac_pci.c 			    m->subdevice == PCI_PRODUCT(subsysid)) {
m                 278 dev/pci/aac_pci.c 				sc->aac_hwif = m->hwif;
m                  67 dev/pci/agpvar.h #define AGP_ENABLE(sc,m)	 ((sc)->sc_methods->enable((sc),(m)))
m                  69 dev/pci/agpvar.h #define AGP_FREE_MEMORY(sc,m)	 ((sc)->sc_methods->free_memory((sc),(m)))
m                  70 dev/pci/agpvar.h #define AGP_BIND_MEMORY(sc,m,o)	 ((sc)->sc_methods->bind_memory((sc),(m),(o)))
m                  71 dev/pci/agpvar.h #define AGP_UNBIND_MEMORY(sc,m)	 ((sc)->sc_methods->unbind_memory((sc),(m)))
m                  40 dev/pci/ahci.c #define DPRINTF(m, f...) do { if ((ahcidebug & (m)) == (m)) printf(f); } \
m                  48 dev/pci/ahci.c #define DPRINTF(m, f...)
m                1706 dev/pci/arc.c  arc_msg0(struct arc_softc *sc, u_int32_t m)
m                1709 dev/pci/arc.c  	arc_write(sc, ARC_REG_INB_MSG0, m);
m                 389 dev/pci/azalia_codec.c 	mixer_item_t *m;
m                 404 dev/pci/azalia_codec.c 	m = &this->mixers[AZ_CLASS_INPUT];
m                 405 dev/pci/azalia_codec.c 	m->devinfo.index = AZ_CLASS_INPUT;
m                 406 dev/pci/azalia_codec.c 	strlcpy(m->devinfo.label.name, AudioCinputs,
m                 407 dev/pci/azalia_codec.c 	    sizeof(m->devinfo.label.name));
m                 408 dev/pci/azalia_codec.c 	m->devinfo.type = AUDIO_MIXER_CLASS;
m                 409 dev/pci/azalia_codec.c 	m->devinfo.mixer_class = AZ_CLASS_INPUT;
m                 410 dev/pci/azalia_codec.c 	m->devinfo.next = AUDIO_MIXER_LAST;
m                 411 dev/pci/azalia_codec.c 	m->devinfo.prev = AUDIO_MIXER_LAST;
m                 412 dev/pci/azalia_codec.c 	m->nid = 0;
m                 414 dev/pci/azalia_codec.c 	m = &this->mixers[AZ_CLASS_OUTPUT];
m                 415 dev/pci/azalia_codec.c 	m->devinfo.index = AZ_CLASS_OUTPUT;
m                 416 dev/pci/azalia_codec.c 	strlcpy(m->devinfo.label.name, AudioCoutputs,
m                 417 dev/pci/azalia_codec.c 	    sizeof(m->devinfo.label.name));
m                 418 dev/pci/azalia_codec.c 	m->devinfo.type = AUDIO_MIXER_CLASS;
m                 419 dev/pci/azalia_codec.c 	m->devinfo.mixer_class = AZ_CLASS_OUTPUT;
m                 420 dev/pci/azalia_codec.c 	m->devinfo.next = AUDIO_MIXER_LAST;
m                 421 dev/pci/azalia_codec.c 	m->devinfo.prev = AUDIO_MIXER_LAST;
m                 422 dev/pci/azalia_codec.c 	m->nid = 0;
m                 424 dev/pci/azalia_codec.c 	m = &this->mixers[AZ_CLASS_RECORD];
m                 425 dev/pci/azalia_codec.c 	m->devinfo.index = AZ_CLASS_RECORD;
m                 426 dev/pci/azalia_codec.c 	strlcpy(m->devinfo.label.name, AudioCrecord,
m                 427 dev/pci/azalia_codec.c 	    sizeof(m->devinfo.label.name));
m                 428 dev/pci/azalia_codec.c 	m->devinfo.type = AUDIO_MIXER_CLASS;
m                 429 dev/pci/azalia_codec.c 	m->devinfo.mixer_class = AZ_CLASS_RECORD;
m                 430 dev/pci/azalia_codec.c 	m->devinfo.next = AUDIO_MIXER_LAST;
m                 431 dev/pci/azalia_codec.c 	m->devinfo.prev = AUDIO_MIXER_LAST;
m                 432 dev/pci/azalia_codec.c 	m->nid = 0;
m                 441 dev/pci/azalia_codec.c 	m = &this->mixers[this->nmixers]; \
m                 442 dev/pci/azalia_codec.c 	d = &m->devinfo; \
m                 443 dev/pci/azalia_codec.c 	m->nid = i
m                 463 dev/pci/azalia_codec.c 			m->target = MI_TARGET_CONNLIST;
m                 495 dev/pci/azalia_codec.c 			m->target = MI_TARGET_OUTAMP;
m                 522 dev/pci/azalia_codec.c 			m->target = MI_TARGET_OUTAMP;
m                 551 dev/pci/azalia_codec.c 				m->target = 0;
m                 577 dev/pci/azalia_codec.c 					m->target = j;
m                 606 dev/pci/azalia_codec.c 				m->target = 0;
m                 635 dev/pci/azalia_codec.c 					m->target = j;
m                 661 dev/pci/azalia_codec.c 			m->target = MI_TARGET_PINDIR;
m                 681 dev/pci/azalia_codec.c 			m->target = MI_TARGET_PINBOOST;
m                 700 dev/pci/azalia_codec.c 			m->target = MI_TARGET_VOLUME;
m                 716 dev/pci/azalia_codec.c 		m->target = MI_TARGET_DAC;
m                 738 dev/pci/azalia_codec.c 		m->target = MI_TARGET_ADC;
m                 808 dev/pci/azalia_codec.c 	mixer_item_t *m;
m                 814 dev/pci/azalia_codec.c 		m = &this->mixers[i];
m                 815 dev/pci/azalia_codec.c 		if (!IS_MI_TARGET_INAMP(m->target) &&
m                 816 dev/pci/azalia_codec.c 		    m->target != MI_TARGET_OUTAMP)
m                 818 dev/pci/azalia_codec.c 		if (m->devinfo.type != AUDIO_MIXER_ENUM)
m                 823 dev/pci/azalia_codec.c 		azalia_generic_mixer_set(this, m->nid, m->target, &mc);
m                 835 dev/pci/azalia_codec.c 		m = &this->mixers[i];
m                 836 dev/pci/azalia_codec.c 		if (m->target != MI_TARGET_PINDIR)
m                 840 dev/pci/azalia_codec.c 		switch (this->w[m->nid].d.pin.device) {
m                 852 dev/pci/azalia_codec.c 		azalia_generic_mixer_set(this, m->nid, m->target, &mc);
m                 860 dev/pci/azalia_codec.c 		m = &this->mixers[i];
m                 861 dev/pci/azalia_codec.c 		if (!IS_MI_TARGET_INAMP(m->target) &&
m                 862 dev/pci/azalia_codec.c 		    m->target != MI_TARGET_OUTAMP &&
m                 863 dev/pci/azalia_codec.c 		    m->target != MI_TARGET_VOLUME)
m                 865 dev/pci/azalia_codec.c 		if (m->devinfo.type != AUDIO_MIXER_VALUE)
m                 871 dev/pci/azalia_codec.c 		if (m->target != MI_TARGET_VOLUME &&
m                 872 dev/pci/azalia_codec.c 		    WIDGET_CHANNELS(&this->w[m->nid]) == 2) {
m                 876 dev/pci/azalia_codec.c 		azalia_generic_mixer_set(this, m->nid, m->target, &mc);
m                1392 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                1396 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                1397 dev/pci/azalia_codec.c 	if (mc->type != m->devinfo.type)
m                1401 dev/pci/azalia_codec.c 	return azalia_generic_mixer_set(this, m->nid, m->target, mc);
m                1407 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                1411 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                1412 dev/pci/azalia_codec.c 	mc->type = m->devinfo.type;
m                1415 dev/pci/azalia_codec.c 	return azalia_generic_mixer_get(this, m->nid, m->target, mc);
m                1635 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                1641 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                1642 dev/pci/azalia_codec.c 	if (mc->type != m->devinfo.type)
m                1646 dev/pci/azalia_codec.c 	if (m->nid == 0x08 && m->target == MI_TARGET_OUTAMP) {
m                1648 dev/pci/azalia_codec.c 		err = azalia_generic_mixer_set(this, m->nid, m->target, mc);
m                1650 dev/pci/azalia_codec.c 			azalia_generic_mixer_set(this, 0x09, m->target, mc);
m                1655 dev/pci/azalia_codec.c 			azalia_generic_mixer_set(this, 0x0a, m->target, &mc2);
m                1658 dev/pci/azalia_codec.c 	} else if (m->nid == 0x08 && m->target == MI_TARGET_INAMP(0)) {
m                1660 dev/pci/azalia_codec.c 		err = azalia_generic_mixer_set(this, m->nid, m->target, mc);
m                1662 dev/pci/azalia_codec.c 			azalia_generic_mixer_set(this, 0x09, m->target, mc);
m                1663 dev/pci/azalia_codec.c 			azalia_generic_mixer_set(this, 0x0a, m->target, mc);
m                1666 dev/pci/azalia_codec.c 	} else if (m->nid == 0x04 &&
m                1667 dev/pci/azalia_codec.c 		   m->target == MI_TARGET_CONNLIST &&
m                1668 dev/pci/azalia_codec.c 		   m->devinfo.un.e.num_mem == 2) {
m                1671 dev/pci/azalia_codec.c 	} else if (m->nid == 0x05 &&
m                1672 dev/pci/azalia_codec.c 		   m->target == MI_TARGET_CONNLIST &&
m                1673 dev/pci/azalia_codec.c 		   m->devinfo.un.e.num_mem == 3) {
m                1677 dev/pci/azalia_codec.c 	return azalia_generic_mixer_set(this, m->nid, m->target, mc);
m                1899 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                1906 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                1907 dev/pci/azalia_codec.c 	if (mc->type != m->devinfo.type)
m                1911 dev/pci/azalia_codec.c 	if ((m->nid == 0x22 || m->nid == 0x23 || m->nid == 0x24)
m                1912 dev/pci/azalia_codec.c 	    && m->target == -1) {
m                1918 dev/pci/azalia_codec.c 		for (i = 0; i < this->w[m->nid].nconnections && i < 32; i++) {
m                1920 dev/pci/azalia_codec.c 			err = azalia_generic_mixer_set(this, m->nid,
m                1928 dev/pci/azalia_codec.c 	return azalia_generic_mixer_set(this, m->nid, m->target, mc);
m                1934 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                1940 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                1941 dev/pci/azalia_codec.c 	mc->type = m->devinfo.type;
m                1944 dev/pci/azalia_codec.c 	if ((m->nid == 0x22 || m->nid == 0x23 || m->nid == 0x24)
m                1945 dev/pci/azalia_codec.c 	    && m->target == -1) {
m                1949 dev/pci/azalia_codec.c 		for (i = 0; i < this->w[m->nid].nconnections && i < 32; i++) {
m                1950 dev/pci/azalia_codec.c 			err = this->comresp(this, m->nid, CORB_GET_AMPLIFIER_GAIN_MUTE,
m                1962 dev/pci/azalia_codec.c 	return azalia_generic_mixer_get(this, m->nid, m->target, mc);
m                2659 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                2664 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                2665 dev/pci/azalia_codec.c 	if (mc->type != m->devinfo.type)
m                2669 dev/pci/azalia_codec.c 	if (m->target == STAC7661_TARGET_MASTER) {
m                2676 dev/pci/azalia_codec.c 	return azalia_generic_mixer_set(this, m->nid, m->target, mc);
m                2681 dev/pci/azalia_codec.c 	const mixer_item_t *m;
m                2685 dev/pci/azalia_codec.c 	m = &this->mixers[mc->dev];
m                2686 dev/pci/azalia_codec.c 	mc->type = m->devinfo.type;
m                2689 dev/pci/azalia_codec.c 	if (m->target == STAC7661_TARGET_MASTER)
m                2690 dev/pci/azalia_codec.c 		return azalia_generic_mixer_get(this, m->nid,
m                2692 dev/pci/azalia_codec.c 	return azalia_generic_mixer_get(this, m->nid, m->target, mc);
m                1271 dev/pci/eap.c  	int l1, r1, l2, r2, m, o1, o2;
m                1276 dev/pci/eap.c  		m = sc->sc_record_source = cp->un.mask;
m                1278 dev/pci/eap.c  		if (m & (1 << EAP_VOICE_VOL))
m                1280 dev/pci/eap.c  		if (m & (1 << EAP_FM_VOL))
m                1282 dev/pci/eap.c  		if (m & (1 << EAP_CD_VOL))
m                1284 dev/pci/eap.c  		if (m & (1 << EAP_LINE_VOL))
m                1286 dev/pci/eap.c  		if (m & (1 << EAP_AUX_VOL))
m                1288 dev/pci/eap.c  		if (m & (1 << EAP_MIC_VOL))
m                1299 dev/pci/eap.c  		m = sc->sc_output_source = cp->un.mask;
m                1301 dev/pci/eap.c  		if (m & (1 << EAP_VOICE_VOL))
m                1303 dev/pci/eap.c  		if (m & (1 << EAP_FM_VOL))
m                1305 dev/pci/eap.c  		if (m & (1 << EAP_CD_VOL))
m                1307 dev/pci/eap.c  		if (m & (1 << EAP_LINE_VOL))
m                1309 dev/pci/eap.c  		if (m & (1 << EAP_AUX_VOL))
m                1311 dev/pci/eap.c  		if (m & (1 << EAP_MIC_VOL))
m                1418 dev/pci/hifn7751.c 			struct mbuf *m, *m0, *mlast;
m                1444 dev/pci/hifn7751.c 				MGET(m, M_DONTWAIT, MT_DATA);
m                1445 dev/pci/hifn7751.c 				if (m == NULL) {
m                1452 dev/pci/hifn7751.c 					MCLGET(m, M_DONTWAIT);
m                1453 dev/pci/hifn7751.c 					if (m->m_flags & M_EXT)
m                1457 dev/pci/hifn7751.c 				m->m_len = len;
m                1462 dev/pci/hifn7751.c 				mlast->m_next = m;
m                1463 dev/pci/hifn7751.c 				mlast = m;
m                2258 dev/pci/hifn7751.c 	struct mbuf *m;
m                2276 dev/pci/hifn7751.c 			for (m = cmd->dstu.dst_m; m != NULL; m = m->m_next) {
m                2277 dev/pci/hifn7751.c 				if (totlen < m->m_len) {
m                2278 dev/pci/hifn7751.c 					m->m_len = totlen;
m                2281 dev/pci/hifn7751.c 					totlen -= m->m_len;
m                2619 dev/pci/hifn7751.c 	struct mbuf *m;
m                2705 dev/pci/hifn7751.c 	m = cmd->dstu.dst_m;
m                2706 dev/pci/hifn7751.c 	if (m->m_flags & M_PKTHDR)
m                2707 dev/pci/hifn7751.c 		m->m_pkthdr.len = olen;
m                2708 dev/pci/hifn7751.c 	crp->crp_buf = (caddr_t)m;
m                2709 dev/pci/hifn7751.c 	for (; m != NULL; m = m->m_next) {
m                2710 dev/pci/hifn7751.c 		if (olen >= m->m_len)
m                2711 dev/pci/hifn7751.c 			olen -= m->m_len;
m                2713 dev/pci/hifn7751.c 			m->m_len = olen;
m                2746 dev/pci/hifn7751.c 	struct mbuf *m, *m0, *mlast;
m                2769 dev/pci/hifn7751.c 		MGET(m, M_DONTWAIT, MT_DATA);
m                2770 dev/pci/hifn7751.c 		if (m == NULL) {
m                2774 dev/pci/hifn7751.c 		MCLGET(m, M_DONTWAIT);
m                2775 dev/pci/hifn7751.c 		if (!(m->m_flags & M_EXT)) {
m                2780 dev/pci/hifn7751.c 		m->m_len = len;
m                2785 dev/pci/hifn7751.c 		mlast->m_next = m;
m                2786 dev/pci/hifn7751.c 		mlast = m;
m                 739 dev/pci/if_bce.c 	struct mbuf    *m;
m                 798 dev/pci/if_bce.c 			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 799 dev/pci/if_bce.c 			if (m == NULL)
m                 801 dev/pci/if_bce.c 			m->m_data += 2;
m                 802 dev/pci/if_bce.c 			memcpy(mtod(m, caddr_t),
m                 807 dev/pci/if_bce.c 			m = sc->bce_cdata.bce_rx_chain[i];
m                 822 dev/pci/if_bce.c 		m->m_pkthdr.rcvif = ifp;
m                 823 dev/pci/if_bce.c 		m->m_pkthdr.len = m->m_len = len;
m                 832 dev/pci/if_bce.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 836 dev/pci/if_bce.c 		ether_input_mbuf(ifp, m);
m                1053 dev/pci/if_bce.c 	struct mbuf    *m;
m                1056 dev/pci/if_bce.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1057 dev/pci/if_bce.c 	if (m == NULL)
m                1060 dev/pci/if_bce.c 	MCLGET(m, M_DONTWAIT);
m                1061 dev/pci/if_bce.c 	if ((m->m_flags & M_EXT) == 0) {
m                1062 dev/pci/if_bce.c 		m_freem(m);
m                1069 dev/pci/if_bce.c 	sc->bce_cdata.bce_rx_chain[idx] = m;
m                1072 dev/pci/if_bce.c 	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                 764 dev/pci/if_bge.c bge_newbuf_std(struct bge_softc *sc, int i, struct mbuf *m,
m                 780 dev/pci/if_bge.c 	if (m == NULL) {
m                 797 dev/pci/if_bge.c 		m_new = m;
m                 808 dev/pci/if_bge.c 		if (m == NULL) {
m                 836 dev/pci/if_bge.c bge_newbuf_jumbo(struct bge_softc *sc, int i, struct mbuf *m)
m                 841 dev/pci/if_bge.c 	if (m == NULL) {
m                 865 dev/pci/if_bge.c 		m_new = m;
m                2303 dev/pci/if_bge.c 		struct mbuf		*m = NULL;
m                2316 dev/pci/if_bge.c 			m = sc->bge_cdata.bge_rx_jumbo_chain[rxidx];
m                2321 dev/pci/if_bge.c 				bge_newbuf_jumbo(sc, sc->bge_jumbo, m);
m                2327 dev/pci/if_bge.c 				m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                2330 dev/pci/if_bge.c 				bge_newbuf_jumbo(sc, sc->bge_jumbo, m);
m                2336 dev/pci/if_bge.c 				m = m0;
m                2340 dev/pci/if_bge.c 			m = sc->bge_cdata.bge_rx_std_chain[rxidx];
m                2348 dev/pci/if_bge.c 				bge_newbuf_std(sc, sc->bge_std, m, dmamap);
m                2354 dev/pci/if_bge.c 				bge_newbuf_std(sc, sc->bge_std, m, dmamap);
m                2366 dev/pci/if_bge.c 			bcopy(m->m_data, m->m_data + ETHER_ALIGN,
m                2368 dev/pci/if_bge.c 			m->m_data += ETHER_ALIGN;
m                2371 dev/pci/if_bge.c 		m->m_pkthdr.len = m->m_len = cur_rx->bge_len - ETHER_CRC_LEN; 
m                2372 dev/pci/if_bge.c 		m->m_pkthdr.rcvif = ifp;
m                2379 dev/pci/if_bge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                2389 dev/pci/if_bge.c 			m->m_pkthdr.csum_data =
m                2391 dev/pci/if_bge.c 			m->m_pkthdr.csum_flags |= CSUM_DATA_VALID;
m                2394 dev/pci/if_bge.c 		m->m_pkthdr.csum_flags = sumflags;
m                2397 dev/pci/if_bge.c 		ether_input_mbuf(ifp, m);
m                2416 dev/pci/if_bge.c 	struct mbuf *m;
m                2460 dev/pci/if_bge.c 		m = sc->bge_cdata.bge_tx_chain[idx];
m                2461 dev/pci/if_bge.c 		if (m != NULL) {
m                2470 dev/pci/if_bge.c 			m_freem(m);
m                2631 dev/pci/if_bge.c 	struct mbuf	*m, *prev, *n = NULL;
m                2638 dev/pci/if_bge.c 	for (m = pkt; m != NULL; prev = m,m = m->m_next) {
m                2639 dev/pci/if_bge.c 		int mlen = m->m_len;
m                2654 dev/pci/if_bge.c 		if (prev && M_TRAILINGSPACE(prev) >= m->m_len) {
m                2655 dev/pci/if_bge.c 			bcopy(m->m_data,
m                2659 dev/pci/if_bge.c 			m->m_len = 0;
m                2661 dev/pci/if_bge.c 			prev->m_next = m_free(m);
m                2662 dev/pci/if_bge.c 			m = prev;
m                2664 dev/pci/if_bge.c 		} else if (m->m_next != NULL &&
m                2665 dev/pci/if_bge.c 			   M_TRAILINGSPACE(m) >= shortfall &&
m                2666 dev/pci/if_bge.c 			   m->m_next->m_len >= (8 + shortfall)) {
m                2669 dev/pci/if_bge.c 			bcopy(m->m_next->m_data,
m                2670 dev/pci/if_bge.c 			      m->m_data+m->m_len,
m                2672 dev/pci/if_bge.c 			m->m_len += shortfall;
m                2673 dev/pci/if_bge.c 			m->m_next->m_len -= shortfall;
m                2674 dev/pci/if_bge.c 			m->m_next->m_data += shortfall;
m                2675 dev/pci/if_bge.c 		} else if (m->m_next == NULL || 1) {
m                2695 dev/pci/if_bge.c 			KASSERT(m->m_len + shortfall < MLEN
m                2706 dev/pci/if_bge.c 			bcopy(m->m_data, n->m_data + shortfall, m->m_len);
m                2709 dev/pci/if_bge.c 			n->m_len = shortfall + m->m_len;
m                2712 dev/pci/if_bge.c 			n->m_next = m->m_next;
m                2715 dev/pci/if_bge.c 			m->m_next = NULL;
m                2716 dev/pci/if_bge.c 			m_free(m);
m                2717 dev/pci/if_bge.c 			m = n;	/* for continuing loop */
m                2719 dev/pci/if_bge.c 		prevlen = m->m_len;
m                2907 dev/pci/if_bge.c 	u_int16_t *m;
m                2940 dev/pci/if_bge.c 	m = (u_int16_t *)&sc->arpcom.ac_enaddr[0];
m                2941 dev/pci/if_bge.c 	CSR_WRITE_4(sc, BGE_MAC_ADDR1_LO, htons(m[0]));
m                2942 dev/pci/if_bge.c 	CSR_WRITE_4(sc, BGE_MAC_ADDR1_HI, (htons(m[1]) << 16) | htons(m[2]));
m                2324 dev/pci/if_bgereg.h #define BGE_JUMBO_DMA_ADDR(sc, m) \
m                2326 dev/pci/if_bgereg.h 	 (mtod((m), char *) - (char *)(sc)->bge_cdata.bge_jumbo_buf))
m                3240 dev/pci/if_bnx.c bnx_get_buf(struct bnx_softc *sc, struct mbuf *m, u_int16_t *prod,
m                3265 dev/pci/if_bnx.c 	if (m == NULL) {
m                3304 dev/pci/if_bnx.c 		m_new = m;
m                3774 dev/pci/if_bnx.c 		struct mbuf *m;
m                3815 dev/pci/if_bnx.c 			m = sc->rx_mbuf_ptr[sw_chain_cons];
m                3827 dev/pci/if_bnx.c 			l2fhdr = mtod(m, struct l2_fhdr *);
m                3843 dev/pci/if_bnx.c 			bnx_dump_mbuf(sc, m);
m                3858 dev/pci/if_bnx.c 				if (bnx_get_buf(sc, m, &sw_prod,
m                3881 dev/pci/if_bnx.c 				if (bnx_get_buf(sc, m, &sw_prod,
m                3893 dev/pci/if_bnx.c 			m_adj(m, sizeof(struct l2_fhdr) + ETHER_ALIGN);
m                3896 dev/pci/if_bnx.c 			m->m_pkthdr.len = m->m_len = len;
m                3899 dev/pci/if_bnx.c 			m->m_pkthdr.rcvif = ifp;
m                3903 dev/pci/if_bnx.c 			    eh = mtod(m, struct ether_header *);
m                3915 dev/pci/if_bnx.c 					m->m_pkthdr.csum_flags |=
m                3933 dev/pci/if_bnx.c 					m->m_pkthdr.csum_flags |=
m                3959 dev/pci/if_bnx.c 				if (m->m_pkthdr.len < ETHER_HDR_LEN) {
m                3960 dev/pci/if_bnx.c 					m_freem(m);
m                3963 dev/pci/if_bnx.c 				m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&vh);
m                3967 dev/pci/if_bnx.c 				m_adj(m, ETHER_HDR_LEN);
m                3968 dev/pci/if_bnx.c 				M_PREPEND(m, sizeof(vh), M_DONTWAIT);
m                3969 dev/pci/if_bnx.c 				if (m == NULL)
m                3971 dev/pci/if_bnx.c 				m_copyback(m, 0, sizeof(vh), &vh);
m                3973 dev/pci/if_bnx.c 				m_freem(m);
m                3984 dev/pci/if_bnx.c 				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                3991 dev/pci/if_bnx.c 			ether_input_mbuf(ifp, m);
m                5111 dev/pci/if_bnx.c bnx_dump_mbuf(struct bnx_softc *sc, struct mbuf *m)
m                5113 dev/pci/if_bnx.c 	struct mbuf		*mp = m;
m                5115 dev/pci/if_bnx.c 	if (m == NULL) {
m                5148 dev/pci/if_bnx.c 	struct mbuf		*m;
m                5157 dev/pci/if_bnx.c 	 	m = sc->tx_mbuf_ptr[chain_prod];
m                5159 dev/pci/if_bnx.c 		bnx_dump_mbuf(sc, m);
m                5174 dev/pci/if_bnx.c 	struct mbuf		*m;
m                5183 dev/pci/if_bnx.c 	 	m = sc->rx_mbuf_ptr[chain_prod];
m                5185 dev/pci/if_bnx.c 		bnx_dump_mbuf(sc, m);
m                 140 dev/pci/if_bnxreg.h #define BNX_LOG_MSG(m)			(BNX_CODE_PATH(m) && BNX_MSG_LEVEL(m))
m                 151 dev/pci/if_bnxreg.h #define DBRUN(m, args...) \
m                 152 dev/pci/if_bnxreg.h 	if (BNX_LOG_MSG(m)) { \
m                 191 dev/pci/if_bnxreg.h #define DBRUN(m, args...)
m                1144 dev/pci/if_cas.c 	struct mbuf *m;
m                1176 dev/pci/if_cas.c 			m = m_devget(cp, len + ETHER_ALIGN, 0, ifp, NULL);
m                1181 dev/pci/if_cas.c 			if (m != NULL) {
m                1182 dev/pci/if_cas.c 				m_adj(m, ETHER_ALIGN);
m                1190 dev/pci/if_cas.c 					bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1194 dev/pci/if_cas.c 				ether_input_mbuf(ifp, m);
m                1213 dev/pci/if_cas.c 			m = m_devget(cp, len + ETHER_ALIGN, 0, ifp, NULL);
m                1218 dev/pci/if_cas.c 			if (m != NULL) {
m                1219 dev/pci/if_cas.c 				m_adj(m, ETHER_ALIGN);
m                1227 dev/pci/if_cas.c 					bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1231 dev/pci/if_cas.c 				ether_input_mbuf(ifp, m);
m                1930 dev/pci/if_cas.c 	struct mbuf *m;
m                1938 dev/pci/if_cas.c 		IFQ_POLL(&ifp->if_snd, m);
m                1939 dev/pci/if_cas.c 		if (m == NULL)
m                1948 dev/pci/if_cas.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1955 dev/pci/if_cas.c 		if (cas_encap(sc, m, &bix)) {
m                1960 dev/pci/if_cas.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 216 dev/pci/if_de.c struct mbuf *tulip_mbuf_compress(struct mbuf *m);
m                 217 dev/pci/if_de.c struct mbuf *tulip_txput(tulip_softc_t * const sc, struct mbuf *m);
m                 262 dev/pci/if_de.c     struct mbuf *m;
m                 271 dev/pci/if_de.c     MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 272 dev/pci/if_de.c     if (m == NULL)
m                 277 dev/pci/if_de.c     bcopy(sc->tulip_enaddr, mtod(m, struct ether_header *)->ether_dhost,
m                 279 dev/pci/if_de.c     bcopy(sc->tulip_enaddr, mtod(m, struct ether_header *)->ether_shost,
m                 281 dev/pci/if_de.c     mtod(m, struct ether_header *)->ether_type = htons(3);
m                 282 dev/pci/if_de.c     mtod(m, unsigned char *)[14] = 0;
m                 283 dev/pci/if_de.c     mtod(m, unsigned char *)[15] = 0;
m                 284 dev/pci/if_de.c     mtod(m, unsigned char *)[16] = 0xE3;	/* LLC Class1 TEST (no poll) */
m                 285 dev/pci/if_de.c     m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3;
m                 294 dev/pci/if_de.c     if ((m = tulip_txput(sc, m)) != NULL)
m                 295 dev/pci/if_de.c 	m_freem(m);
m                3062 dev/pci/if_de.c 	struct mbuf *m;
m                3063 dev/pci/if_de.c 	IF_DEQUEUE(&sc->tulip_txq, m);
m                3064 dev/pci/if_de.c 	if (m == NULL)
m                3066 dev/pci/if_de.c 	map = TULIP_GETCTX(m, bus_dmamap_t);
m                3069 dev/pci/if_de.c 	m_freem(m);
m                3100 dev/pci/if_de.c 	struct mbuf *m;
m                3101 dev/pci/if_de.c 	IF_DEQUEUE(&sc->tulip_rxq, m);
m                3102 dev/pci/if_de.c 	if (m == NULL)
m                3104 dev/pci/if_de.c 	map = TULIP_GETCTX(m, bus_dmamap_t);
m                3107 dev/pci/if_de.c 	m_freem(m);
m                3470 dev/pci/if_de.c     struct mbuf *m;
m                3507 dev/pci/if_de.c 		IF_DEQUEUE(&sc->tulip_txq, m);
m                3508 dev/pci/if_de.c 		if (m != NULL) {
m                3509 dev/pci/if_de.c 		    bus_dmamap_t map = TULIP_GETCTX(m, bus_dmamap_t);
m                3514 dev/pci/if_de.c 			bpf_mtap(sc->tulip_if.if_bpf, m, BPF_DIRECTION_OUT);
m                3516 dev/pci/if_de.c 		    m_freem(m);
m                3755 dev/pci/if_de.c tulip_mbuf_compress(struct mbuf *m)
m                3761 dev/pci/if_de.c 	if (m->m_pkthdr.len > MHLEN) {
m                3764 dev/pci/if_de.c 		m_freem(m);
m                3769 dev/pci/if_de.c 	m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t));
m                3770 dev/pci/if_de.c 	m0->m_pkthdr.len = m0->m_len = m->m_pkthdr.len;
m                3774 dev/pci/if_de.c     int len = m->m_pkthdr.len;
m                3797 dev/pci/if_de.c 	m_copydata(m, m->m_pkthdr.len - len,
m                3804 dev/pci/if_de.c     m_freem(m);
m                3809 dev/pci/if_de.c tulip_txput(tulip_softc_t * const sc, struct mbuf *m)
m                3819 dev/pci/if_de.c     struct mbuf *ombuf = m;
m                3873 dev/pci/if_de.c     error = bus_dmamap_load_mbuf(sc->tulip_dmatag, map, m, BUS_DMA_NOWAIT);
m                3901 dev/pci/if_de.c 	    m = tulip_mbuf_compress(m);
m                3902 dev/pci/if_de.c 	    if (m == NULL) {
m                3908 dev/pci/if_de.c 	    error = bus_dmamap_load_mbuf(sc->tulip_dmatag, map, m, BUS_DMA_NOWAIT);
m                3961 dev/pci/if_de.c     TULIP_SETCTX(m, map);
m                3977 dev/pci/if_de.c     IF_ENQUEUE(&sc->tulip_txq, m);
m                3978 dev/pci/if_de.c     m = NULL;
m                4066 dev/pci/if_de.c     return (m);
m                4263 dev/pci/if_de.c 	    struct mbuf *m, *m0;
m                4264 dev/pci/if_de.c 	    IFQ_POLL(&sc->tulip_if.if_snd, m);
m                4265 dev/pci/if_de.c 	    if (m == NULL)
m                4267 dev/pci/if_de.c 	    if ((m0 = tulip_txput(sc, m)) != NULL) {
m                4268 dev/pci/if_de.c 		if (m0 != m)
m                4293 dev/pci/if_de.c 	struct mbuf *m, *m0;
m                4294 dev/pci/if_de.c 	IFQ_POLL(&sc->tulip_if.if_snd, m);
m                4295 dev/pci/if_de.c 	if (m != NULL && (m0 = tulip_txput(sc, m)) != NULL)
m                4296 dev/pci/if_de.c 	    if (m0 != m)
m                 179 dev/pci/if_devar.h #define	TULIP_FDBIT(m)		(1L << ((int)TULIP_MEDIA_ ## m ## _FD))
m                 180 dev/pci/if_devar.h #define	TULIP_MBIT(m)		(1L << ((int)TULIP_MEDIA_ ## m ))
m                 181 dev/pci/if_devar.h #define	TULIP_IS_MEDIA_FD(m)	(TULIP_BIT(m) & \
m                 185 dev/pci/if_devar.h #define	TULIP_CAN_MEDIA_FD(m)	(TULIP_BIT(m) & \
m                 189 dev/pci/if_devar.h #define	TULIP_FD_MEDIA_OF(m)	((tulip_media_t)((m) + 1))
m                 190 dev/pci/if_devar.h #define	TULIP_HD_MEDIA_OF(m)	((tulip_media_t)((m) - 1))
m                 191 dev/pci/if_devar.h #define	TULIP_IS_MEDIA_100MB(m)	((m) >= TULIP_MEDIA_100BASETX)
m                 192 dev/pci/if_devar.h #define	TULIP_IS_MEDIA_TP(m)	((TULIP_BIT(m) & \
m                 867 dev/pci/if_devar.h #define TULIP_GETCTX(m, t)	((t) (m)->m_pkthdr.rcvif + 0)
m                 868 dev/pci/if_devar.h #define TULIP_SETCTX(m, c)	((void) ((m)->m_pkthdr.rcvif = (void *) (c)))
m                2218 dev/pci/if_em.c 	struct mbuf    *m;
m                2223 dev/pci/if_em.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                2224 dev/pci/if_em.c 	if (m == NULL) {
m                2228 dev/pci/if_em.c 	MCLGET(m, M_DONTWAIT);
m                2229 dev/pci/if_em.c 	if ((m->m_flags & M_EXT) == 0) {
m                2230 dev/pci/if_em.c 		m_freem(m);
m                2234 dev/pci/if_em.c 	m->m_len = m->m_pkthdr.len = MCLBYTES;
m                2237 dev/pci/if_em.c 		m_adj(m, ETHER_ALIGN);
m                2244 dev/pci/if_em.c 	    m, BUS_DMA_NOWAIT);
m                2246 dev/pci/if_em.c 		m_free(m);
m                2261 dev/pci/if_em.c 	rx_buffer->m_head = m;
m                2516 dev/pci/if_em.c 		struct mbuf *m = NULL;
m                2647 dev/pci/if_em.c 				m = sc->fmp;
m                2666 dev/pci/if_em.c 			m = NULL;
m                2678 dev/pci/if_em.c 		if (m != NULL) {
m                2687 dev/pci/if_em.c 				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                2690 dev/pci/if_em.c 			ether_input_mbuf(ifp, m);
m                 493 dev/pci/if_ipw.c 		MGETHDR(sbuf->m, M_DONTWAIT, MT_DATA);
m                 494 dev/pci/if_ipw.c 		if (sbuf->m == NULL) {
m                 501 dev/pci/if_ipw.c 		MCLGET(sbuf->m, M_DONTWAIT);
m                 502 dev/pci/if_ipw.c 		if (!(sbuf->m->m_flags & M_EXT)) {
m                 503 dev/pci/if_ipw.c 			m_freem(sbuf->m);
m                 519 dev/pci/if_ipw.c 		    mtod(sbuf->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 589 dev/pci/if_ipw.c 			if (sbuf->m != NULL) {
m                 591 dev/pci/if_ipw.c 				m_freem(sbuf->m);
m                 764 dev/pci/if_ipw.c 	cmd = mtod(sbuf->m, struct ipw_cmd *);
m                 783 dev/pci/if_ipw.c 	state = letoh32(*mtod(sbuf->m, uint32_t *));
m                 821 dev/pci/if_ipw.c 	struct mbuf *mnew, *m;
m                 858 dev/pci/if_ipw.c 		    mtod(sbuf->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 868 dev/pci/if_ipw.c 	m = sbuf->m;
m                 869 dev/pci/if_ipw.c 	sbuf->m = mnew;	
m                 873 dev/pci/if_ipw.c 	m->m_pkthdr.rcvif = ifp;
m                 874 dev/pci/if_ipw.c 	m->m_pkthdr.len = m->m_len = letoh32(status->len);
m                 888 dev/pci/if_ipw.c 		mb.m_next = m;
m                 896 dev/pci/if_ipw.c 	wh = mtod(m, struct ieee80211_frame *);
m                 901 dev/pci/if_ipw.c 	ieee80211_input(ifp, m, ni, status->rssi, 0);
m                 993 dev/pci/if_ipw.c 		m_freem(sbuf->m);
m                1120 dev/pci/if_ipw.c ipw_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni)
m                1131 dev/pci/if_ipw.c 	wh = mtod(m, struct ieee80211_frame *);
m                1134 dev/pci/if_ipw.c 		m = ieee80211_wep_crypt(ifp, m, 1);
m                1135 dev/pci/if_ipw.c 		if (m == NULL)
m                1139 dev/pci/if_ipw.c 		wh = mtod(m, struct ieee80211_frame *);
m                1153 dev/pci/if_ipw.c 		mb.m_next = m;
m                1178 dev/pci/if_ipw.c 	m_adj(m, sizeof (struct ieee80211_frame));
m                1180 dev/pci/if_ipw.c 	error = bus_dmamap_load_mbuf(sc->sc_dmat, sbuf->map, m, BUS_DMA_NOWAIT);
m                1184 dev/pci/if_ipw.c 		m_freem(m);
m                1192 dev/pci/if_ipw.c 			m_freem(m);
m                1196 dev/pci/if_ipw.c 		M_DUP_PKTHDR(mnew, m);
m                1197 dev/pci/if_ipw.c 		if (m->m_pkthdr.len > MHLEN) {
m                1200 dev/pci/if_ipw.c 				m_freem(m);
m                1206 dev/pci/if_ipw.c 		m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t));
m                1207 dev/pci/if_ipw.c 		m_freem(m);
m                1209 dev/pci/if_ipw.c 		m = mnew;
m                1211 dev/pci/if_ipw.c 		error = bus_dmamap_load_mbuf(sc->sc_dmat, sbuf->map, m,
m                1216 dev/pci/if_ipw.c 			m_freem(m);
m                1227 dev/pci/if_ipw.c 		m_freem(m);
m                1255 dev/pci/if_ipw.c 	sbuf->m = m;
m                1300 dev/pci/if_ipw.c 	struct mbuf *m;
m                1307 dev/pci/if_ipw.c 		IFQ_POLL(&ifp->if_snd, m);
m                1308 dev/pci/if_ipw.c 		if (m == NULL)
m                1315 dev/pci/if_ipw.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1318 dev/pci/if_ipw.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1321 dev/pci/if_ipw.c 		m = ieee80211_encap(ifp, m, &ni);
m                1322 dev/pci/if_ipw.c 		if (m == NULL)
m                1327 dev/pci/if_ipw.c 			bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_OUT);
m                1330 dev/pci/if_ipw.c 		if (ipw_tx_start(ifp, m, ni) != 0) {
m                  55 dev/pci/if_ipwvar.h 	struct mbuf			*m;
m                 540 dev/pci/if_iwi.c 		if (data->m != NULL) {
m                 542 dev/pci/if_iwi.c 			m_freem(data->m);
m                 543 dev/pci/if_iwi.c 			data->m = NULL;
m                 570 dev/pci/if_iwi.c 		if (data->m != NULL) {
m                 572 dev/pci/if_iwi.c 			m_freem(data->m);
m                 597 dev/pci/if_iwi.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 598 dev/pci/if_iwi.c 		if (data->m == NULL) {
m                 605 dev/pci/if_iwi.c 		MCLGET(data->m, M_DONTWAIT);
m                 606 dev/pci/if_iwi.c 		if (!(data->m->m_flags & M_EXT)) {
m                 607 dev/pci/if_iwi.c 			m_freem(data->m);
m                 608 dev/pci/if_iwi.c 			data->m = NULL;
m                 616 dev/pci/if_iwi.c 		    mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 647 dev/pci/if_iwi.c 		if (data->m != NULL) {
m                 649 dev/pci/if_iwi.c 			m_freem(data->m);
m                 870 dev/pci/if_iwi.c 	struct mbuf *mnew, *m;
m                 913 dev/pci/if_iwi.c 		    mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
m                 923 dev/pci/if_iwi.c 	m = data->m;
m                 924 dev/pci/if_iwi.c 	data->m = mnew;
m                 928 dev/pci/if_iwi.c 	m->m_pkthdr.rcvif = ifp;
m                 929 dev/pci/if_iwi.c 	m->m_pkthdr.len = m->m_len = sizeof (struct iwi_hdr) +
m                 931 dev/pci/if_iwi.c 	m_adj(m, sizeof (struct iwi_hdr) + sizeof (struct iwi_frame));
m                 933 dev/pci/if_iwi.c 	wh = mtod(m, struct ieee80211_frame *);
m                 945 dev/pci/if_iwi.c 		m_adj(m, IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN);
m                 946 dev/pci/if_iwi.c 		m_adj(m, -IEEE80211_WEP_CRCLEN);
m                 947 dev/pci/if_iwi.c 		wh = mtod(m, struct ieee80211_frame *);
m                 968 dev/pci/if_iwi.c 		mb.m_next = m;
m                 979 dev/pci/if_iwi.c 	ieee80211_input(ifp, m, ni, frame->rssi_dbm, 0);
m                1107 dev/pci/if_iwi.c 		hdr = mtod(data->m, struct iwi_hdr *);
m                1147 dev/pci/if_iwi.c 		m_freem(data->m);
m                1148 dev/pci/if_iwi.c 		data->m = NULL;
m                1345 dev/pci/if_iwi.c 	data->m = m0;
m                  70 dev/pci/if_iwivar.h 	struct mbuf		*m;
m                  88 dev/pci/if_iwivar.h 	struct mbuf		*m;
m                 683 dev/pci/if_lge.c lge_newbuf(struct lge_softc *sc, struct lge_rx_desc *c, struct mbuf *m)
m                 687 dev/pci/if_lge.c 	if (m == NULL) {
m                 710 dev/pci/if_lge.c 		m_new = m;
m                 893 dev/pci/if_lge.c         struct mbuf		*m;
m                 912 dev/pci/if_lge.c 		m = cur_rx->lge_mbuf;
m                 926 dev/pci/if_lge.c 			lge_newbuf(sc, &LGE_RXTAIL(sc), m);
m                 931 dev/pci/if_lge.c 			m0 = m_devget(mtod(m, char *), total_len, ETHER_ALIGN,
m                 933 dev/pci/if_lge.c 			lge_newbuf(sc, &LGE_RXTAIL(sc), m);
m                 938 dev/pci/if_lge.c 			m = m0;
m                 940 dev/pci/if_lge.c 			m->m_pkthdr.rcvif = ifp;
m                 941 dev/pci/if_lge.c 			m->m_pkthdr.len = m->m_len = total_len;
m                 951 dev/pci/if_lge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 957 dev/pci/if_lge.c 				m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                 961 dev/pci/if_lge.c 				m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK;
m                 965 dev/pci/if_lge.c 				m->m_pkthdr.csum_flags |= M_UDP_CSUM_IN_OK;
m                 968 dev/pci/if_lge.c 		ether_input_mbuf(ifp, m);
m                1113 dev/pci/if_lge.c 	struct mbuf		*m;
m                1121 dev/pci/if_lge.c 	m = m_head;
m                1125 dev/pci/if_lge.c 	for (m = m_head; m != NULL; m = m->m_next) {
m                1126 dev/pci/if_lge.c 		if (m->m_len != 0) {
m                1127 dev/pci/if_lge.c 			tot_len += m->m_len;
m                1129 dev/pci/if_lge.c 			f->lge_fraglen = m->m_len;
m                1130 dev/pci/if_lge.c 			f->lge_fragptr_lo = VTOPHYS(mtod(m, vaddr_t));
m                1136 dev/pci/if_lge.c 	if (m != NULL)
m                 124 dev/pci/if_lmc.c static struct mbuf *lmc_txput(lmc_softc_t * const sc, struct mbuf *m);
m                 752 dev/pci/if_lmc.c     struct mbuf *m;
m                 769 dev/pci/if_lmc.c 		IF_DEQUEUE(&sc->lmc_txq, m);
m                 770 dev/pci/if_lmc.c 		if (m != NULL) {
m                 771 dev/pci/if_lmc.c 		    bus_dmamap_t map = LMC_GETCTX(m, bus_dmamap_t);
m                 776 dev/pci/if_lmc.c 			LMC_BPF_MTAP(sc, m, BPF_DIRECTION_OUT);
m                 778 dev/pci/if_lmc.c 		    m_freem(m);
m                 925 dev/pci/if_lmc.c lmc_mbuf_compress(struct mbuf *m)
m                 931 dev/pci/if_lmc.c 		if (m->m_pkthdr.len > MHLEN) {
m                 934 dev/pci/if_lmc.c 				m_freem(m);
m                 939 dev/pci/if_lmc.c 		m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t));
m                 940 dev/pci/if_lmc.c 		m0->m_pkthdr.len = m0->m_len = m->m_pkthdr.len;
m                 944 dev/pci/if_lmc.c 	int len = m->m_pkthdr.len;
m                 969 dev/pci/if_lmc.c 		m_copydata(m, m->m_pkthdr.len - len,
m                 976 dev/pci/if_lmc.c 	m_freem(m);
m                 985 dev/pci/if_lmc.c lmc_txput(lmc_softc_t * const sc, struct mbuf *m)
m                1042 dev/pci/if_lmc.c 	error = bus_dmamap_load_mbuf(sc->lmc_dmatag, map, m, BUS_DMA_NOWAIT);
m                1050 dev/pci/if_lmc.c 			m = lmc_mbuf_compress(m);
m                1051 dev/pci/if_lmc.c 			if (m == NULL) {
m                1057 dev/pci/if_lmc.c 			error = bus_dmamap_load_mbuf(sc->lmc_dmatag, map, m,
m                1124 dev/pci/if_lmc.c 	LMC_SETCTX(m, map);
m                1132 dev/pci/if_lmc.c 	IF_ENQUEUE(&sc->lmc_txq, m);
m                1133 dev/pci/if_lmc.c 	m = NULL;
m                1204 dev/pci/if_lmc.c 	return m;
m                1292 dev/pci/if_lmc.c 	struct mbuf *m, *m0;
m                1296 dev/pci/if_lmc.c 			m = sppp_pick(ifp);
m                1297 dev/pci/if_lmc.c 			if (m == NULL)
m                1299 dev/pci/if_lmc.c 			if ((m = lmc_txput(sc, m)) != NULL)
m                1303 dev/pci/if_lmc.c 			if (m0 != m)
m                1315 dev/pci/if_lmc.c 	struct mbuf *m, *m0;
m                1318 dev/pci/if_lmc.c 		m = sppp_pick(ifp);
m                1319 dev/pci/if_lmc.c 		if ((m = lmc_txput(sc, m)) != NULL)
m                1323 dev/pci/if_lmc.c 		if (m0 != m)
m                 272 dev/pci/if_lmc_common.c 		struct mbuf *m;
m                 274 dev/pci/if_lmc_common.c 		IF_DEQUEUE(&sc->lmc_txq, m);
m                 275 dev/pci/if_lmc_common.c 		if (m == NULL)
m                 277 dev/pci/if_lmc_common.c 		map = LMC_GETCTX(m, bus_dmamap_t);
m                 280 dev/pci/if_lmc_common.c 		m_freem(m);
m                 316 dev/pci/if_lmc_common.c 		struct mbuf *m;
m                 317 dev/pci/if_lmc_common.c 		IF_DEQUEUE(&sc->lmc_rxq, m);
m                 318 dev/pci/if_lmc_common.c 		if (m == NULL)
m                 320 dev/pci/if_lmc_common.c 		map = LMC_GETCTX(m, bus_dmamap_t);
m                 323 dev/pci/if_lmc_common.c 		m_freem(m);
m                 601 dev/pci/if_lmc_media.c                 av->m = 100;
m                 606 dev/pci/if_lmc_media.c 		write_av9110(sc, av->n, av->m, av->v, av->x, av->r);
m                 618 dev/pci/if_lmc_media.c 	write_av9110(sc, av->n, av->m, av->v, av->x, av->r);
m                 728 dev/pci/if_lmc_media.c write_av9110(lmc_softc_t *sc, u_int32_t n, u_int32_t m, u_int32_t v,
m                 736 dev/pci/if_lmc_media.c 	       n, m, v, x, r);
m                 759 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, m >> i);
m                  50 dev/pci/if_lmcioctl.h 	u_int32_t	m;
m                 547 dev/pci/if_lmcvar.h #define	LMC_BPF_MTAP(sc, m, d)		bpf_mtap((sc)->lmc_bpf, m, d)
m                 574 dev/pci/if_lmcvar.h #define LMC_GETCTX(m, t)	((t) (m)->m_pkthdr.rcvif + 0)
m                 575 dev/pci/if_lmcvar.h #define LMC_SETCTX(m, c)	((void) ((m)->m_pkthdr.rcvif = (void *) (c)))
m                 506 dev/pci/if_msk.c msk_newbuf(struct sk_if_softc *sc_if, int i, struct mbuf *m,
m                 513 dev/pci/if_msk.c 	if (m == NULL) {
m                 538 dev/pci/if_msk.c 		m_new = m;
m                1608 dev/pci/if_msk.c 	struct mbuf		*m;
m                1628 dev/pci/if_msk.c 	m = cur_rx->sk_mbuf;
m                1635 dev/pci/if_msk.c 		msk_newbuf(sc_if, cur, m, dmamap);
m                1647 dev/pci/if_msk.c 		m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                1649 dev/pci/if_msk.c 		msk_newbuf(sc_if, cur, m, dmamap);
m                1655 dev/pci/if_msk.c 		m = m0;
m                1657 dev/pci/if_msk.c 		m->m_pkthdr.rcvif = ifp;
m                1658 dev/pci/if_msk.c 		m->m_pkthdr.len = m->m_len = total_len;
m                1665 dev/pci/if_msk.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1669 dev/pci/if_msk.c 	ether_input_mbuf(ifp, m);
m                2210 dev/pci/if_msk.c msk_dump_mbuf(struct mbuf *m)
m                2212 dev/pci/if_msk.c 	int count = m->m_pkthdr.len;
m                2214 dev/pci/if_msk.c 	printf("m=%#lx, m->m_pkthdr.len=%#d\n", m, m->m_pkthdr.len);
m                2216 dev/pci/if_msk.c 	while (count > 0 && m) {
m                2218 dev/pci/if_msk.c 		       m, m->m_data, m->m_len);
m                2219 dev/pci/if_msk.c 		msk_dump_bytes(mtod(m, char *), m->m_len);
m                2221 dev/pci/if_msk.c 		count -= m->m_len;
m                2222 dev/pci/if_msk.c 		m = m->m_next;
m                1252 dev/pci/if_myx.c 	struct mbuf		*m = NULL;
m                1254 dev/pci/if_myx.c 	MGETHDR(m, wait ? M_WAIT : M_DONTWAIT, MT_DATA);
m                1255 dev/pci/if_myx.c 	if (m == NULL)
m                1258 dev/pci/if_myx.c 	MCLGET(m, wait ? M_WAIT : M_DONTWAIT);
m                1259 dev/pci/if_myx.c 	if ((m->m_flags & M_EXT) == 0)
m                1261 dev/pci/if_myx.c 	m->m_len = m->m_pkthdr.len = MCLBYTES;
m                1263 dev/pci/if_myx.c 	if (bus_dmamap_load_mbuf(sc->sc_dmat, map, m,
m                1269 dev/pci/if_myx.c 	return (m);
m                1273 dev/pci/if_myx.c 	if (m != NULL)
m                1274 dev/pci/if_myx.c 		m_freem(m);
m                 640 dev/pci/if_nfe.c 	struct mbuf *m, *mnew;
m                 710 dev/pci/if_nfe.c 			    mtod(data->m, caddr_t) - sc->rxq.jpool, NFE_JBYTES,
m                 734 dev/pci/if_nfe.c 				    mtod(data->m, void *), MCLBYTES, NULL,
m                 751 dev/pci/if_nfe.c 		m = data->m;
m                 752 dev/pci/if_nfe.c 		data->m = mnew;
m                 755 dev/pci/if_nfe.c 		m->m_pkthdr.len = m->m_len = len;
m                 756 dev/pci/if_nfe.c 		m->m_pkthdr.rcvif = ifp;
m                 760 dev/pci/if_nfe.c 			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                 762 dev/pci/if_nfe.c 				m->m_pkthdr.csum_flags |= M_UDP_CSUM_IN_OK;
m                 764 dev/pci/if_nfe.c 				m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK;
m                 769 dev/pci/if_nfe.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 772 dev/pci/if_nfe.c 		ether_input_mbuf(ifp, m);
m                 828 dev/pci/if_nfe.c 			if (!(flags & NFE_TX_LASTFRAG_V1) && data->m == NULL)
m                 838 dev/pci/if_nfe.c 			if (!(flags & NFE_TX_LASTFRAG_V2) && data->m == NULL)
m                 849 dev/pci/if_nfe.c 		if (data->m == NULL) {	/* should not get there */
m                 859 dev/pci/if_nfe.c 		m_freem(data->m);
m                 860 dev/pci/if_nfe.c 		data->m = NULL;
m                 978 dev/pci/if_nfe.c 	data->m = m0;
m                1250 dev/pci/if_nfe.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                1251 dev/pci/if_nfe.c 		if (data->m == NULL) {
m                1264 dev/pci/if_nfe.c 			MEXTADD(data->m, jbuf->buf, NFE_JBYTES, 0, nfe_jfree,
m                1276 dev/pci/if_nfe.c 			MCLGET(data->m, M_DONTWAIT);
m                1277 dev/pci/if_nfe.c 			if (!(data->m->m_flags & M_EXT)) {
m                1285 dev/pci/if_nfe.c 			    mtod(data->m, void *), MCLBYTES, NULL,
m                1374 dev/pci/if_nfe.c 		if (data->m != NULL)
m                1375 dev/pci/if_nfe.c 			m_freem(data->m);
m                1585 dev/pci/if_nfe.c 		if (data->m != NULL) {
m                1589 dev/pci/if_nfe.c 			m_freem(data->m);
m                1590 dev/pci/if_nfe.c 			data->m = NULL;
m                1628 dev/pci/if_nfe.c 		if (data->m != NULL) {
m                1632 dev/pci/if_nfe.c 			m_freem(data->m);
m                  24 dev/pci/if_nfevar.h 	struct mbuf	*m;
m                  47 dev/pci/if_nfevar.h 	struct mbuf	*m;
m                1057 dev/pci/if_nge.c nge_newbuf(sc, c, m)
m                1060 dev/pci/if_nge.c 	struct mbuf		*m;
m                1064 dev/pci/if_nge.c 	if (m == NULL) {
m                1087 dev/pci/if_nge.c 		m_new = m;
m                1272 dev/pci/if_nge.c         struct mbuf		*m;
m                1288 dev/pci/if_nge.c 		m = cur_rx->nge_mbuf;
m                1301 dev/pci/if_nge.c 			nge_newbuf(sc, cur_rx, m);
m                1321 dev/pci/if_nge.c 			m0 = m_devget(mtod(m, char *), total_len,
m                1323 dev/pci/if_nge.c 			nge_newbuf(sc, cur_rx, m);
m                1329 dev/pci/if_nge.c 			m = m0;
m                1332 dev/pci/if_nge.c 			m->m_pkthdr.rcvif = ifp;
m                1333 dev/pci/if_nge.c 			m->m_pkthdr.len = m->m_len = total_len;
m                1344 dev/pci/if_nge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1350 dev/pci/if_nge.c 				m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                1353 dev/pci/if_nge.c 				m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK;
m                1356 dev/pci/if_nge.c 				m->m_pkthdr.csum_flags |= M_UDP_CSUM_IN_OK;
m                1359 dev/pci/if_nge.c 		ether_input_mbuf(ifp, m);
m                1600 dev/pci/if_nge.c 	struct mbuf		*m;
m                1615 dev/pci/if_nge.c 	m = m_head;
m                1618 dev/pci/if_nge.c 	for (m = m_head; m != NULL; m = m->m_next) {
m                1619 dev/pci/if_nge.c 		if (m->m_len != 0) {
m                1624 dev/pci/if_nge.c 			f->nge_ctl = NGE_CMDSTS_MORE | m->m_len;
m                1625 dev/pci/if_nge.c 			f->nge_ptr = VTOPHYS(mtod(m, vaddr_t));
m                1636 dev/pci/if_nge.c 	if (m != NULL)
m                1255 dev/pci/if_nxe.c 	struct mbuf			*m;
m                1275 dev/pci/if_nxe.c 		IFQ_POLL(&ifp->if_snd, m);
m                1276 dev/pci/if_nxe.c 		if (m == NULL)
m                1285 dev/pci/if_nxe.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1288 dev/pci/if_nxe.c 		m = nxe_load_pkt(sc, dmap, m);
m                1289 dev/pci/if_nxe.c 		if (m == NULL) {
m                1297 dev/pci/if_nxe.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1300 dev/pci/if_nxe.c 		pkt->pkt_m = m;
m                1349 dev/pci/if_nxe.c nxe_coalesce_m(struct mbuf *m)
m                1357 dev/pci/if_nxe.c 	if (m->m_pkthdr.len > MHLEN) {
m                1366 dev/pci/if_nxe.c 	m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t));
m                1367 dev/pci/if_nxe.c 	m0->m_pkthdr.len = m0->m_len = m->m_pkthdr.len;
m                1370 dev/pci/if_nxe.c 	m_freem(m);
m                1375 dev/pci/if_nxe.c nxe_load_pkt(struct nxe_softc *sc, bus_dmamap_t dmap, struct mbuf *m)
m                1377 dev/pci/if_nxe.c 	switch (bus_dmamap_load_mbuf(sc->sc_dmat, dmap, m, BUS_DMA_NOWAIT)) {
m                1382 dev/pci/if_nxe.c 		m = nxe_coalesce_m(m);
m                1383 dev/pci/if_nxe.c 		if (m == NULL)
m                1386 dev/pci/if_nxe.c 		if (bus_dmamap_load_mbuf(sc->sc_dmat, dmap, m,
m                1393 dev/pci/if_nxe.c 		m_freem(m);
m                1394 dev/pci/if_nxe.c 		m = NULL;
m                1398 dev/pci/if_nxe.c 	return (m);
m                1896 dev/pci/if_nxe.c nxe_wait(struct nxe_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
m                1899 dev/pci/if_nxe.c 	while ((nxe_read(sc, r) & m) != v) {
m                1942 dev/pci/if_nxe.c nxe_crb_wait(struct nxe_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
m                1945 dev/pci/if_nxe.c 	while ((nxe_crb_read(sc, r) & m) != v) {
m                 868 dev/pci/if_pcn.c 	struct mbuf *m0, *m;
m                 892 dev/pci/if_pcn.c 		m = NULL;
m                 909 dev/pci/if_pcn.c 			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 910 dev/pci/if_pcn.c 			if (m == NULL)
m                 913 dev/pci/if_pcn.c 				MCLGET(m, M_DONTWAIT);
m                 914 dev/pci/if_pcn.c 				if ((m->m_flags & M_EXT) == 0) {
m                 915 dev/pci/if_pcn.c 					m_freem(m);
m                 919 dev/pci/if_pcn.c 			m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t));
m                 920 dev/pci/if_pcn.c 			m->m_pkthdr.len = m->m_len = m0->m_pkthdr.len;
m                 922 dev/pci/if_pcn.c 			    m, BUS_DMA_WRITE|BUS_DMA_NOWAIT);
m                 946 dev/pci/if_pcn.c 			if (m != NULL)
m                 947 dev/pci/if_pcn.c 				m_freem(m);
m                 952 dev/pci/if_pcn.c 		if (m != NULL) {
m                 954 dev/pci/if_pcn.c 			m0 = m;
m                1390 dev/pci/if_pcn.c 	struct mbuf *m;
m                1479 dev/pci/if_pcn.c 			MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1480 dev/pci/if_pcn.c 			if (m == NULL)
m                1482 dev/pci/if_pcn.c 			m->m_data += 2;
m                1483 dev/pci/if_pcn.c 			memcpy(mtod(m, caddr_t),
m                1490 dev/pci/if_pcn.c 			m = rxs->rxs_mbuf;
m                1503 dev/pci/if_pcn.c 		m->m_pkthdr.rcvif = ifp;
m                1504 dev/pci/if_pcn.c 		m->m_pkthdr.len = m->m_len = len;
m                1509 dev/pci/if_pcn.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1513 dev/pci/if_pcn.c 		ether_input_mbuf(ifp, m);
m                1863 dev/pci/if_pcn.c 	struct mbuf *m;
m                1866 dev/pci/if_pcn.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1867 dev/pci/if_pcn.c 	if (m == NULL)
m                1870 dev/pci/if_pcn.c 	MCLGET(m, M_DONTWAIT);
m                1871 dev/pci/if_pcn.c 	if ((m->m_flags & M_EXT) == 0) {
m                1872 dev/pci/if_pcn.c 		m_freem(m);
m                1879 dev/pci/if_pcn.c 	rxs->rxs_mbuf = m;
m                1882 dev/pci/if_pcn.c 	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
m                 389 dev/pci/if_san_common.c 	struct mbuf	*m;
m                 395 dev/pci/if_san_common.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 397 dev/pci/if_san_common.c 	if (m == NULL || len <= MHLEN)
m                 398 dev/pci/if_san_common.c 		return (m);
m                 400 dev/pci/if_san_common.c 	m->m_pkthdr.len = len;
m                 401 dev/pci/if_san_common.c 	m->m_len = len;
m                 402 dev/pci/if_san_common.c 	MCLGET(m, M_DONTWAIT);
m                 404 dev/pci/if_san_common.c 	if ((m->m_flags & M_EXT) == 0) {
m                 405 dev/pci/if_san_common.c 		m_freem(m);
m                 409 dev/pci/if_san_common.c 	return (m);
m                 415 dev/pci/if_san_common.c 	struct mbuf	*m, *m0, *tmp;
m                 428 dev/pci/if_san_common.c 	MGET(m, M_DONTWAIT, MT_DATA);
m                 430 dev/pci/if_san_common.c 	if (m == NULL)
m                 433 dev/pci/if_san_common.c 	MCLGET(m, M_DONTWAIT);
m                 435 dev/pci/if_san_common.c 	if ((m->m_flags & M_EXT) == 0) {
m                 436 dev/pci/if_san_common.c 		m_freem(m);
m                 440 dev/pci/if_san_common.c 	m->m_len = 0;
m                 444 dev/pci/if_san_common.c 	buffer = mtod(m, caddr_t);
m                 456 dev/pci/if_san_common.c 	m->m_data = buffer;
m                 460 dev/pci/if_san_common.c 			m_freem(m);
m                 465 dev/pci/if_san_common.c 		m->m_len += tmp->m_len;
m                 470 dev/pci/if_san_common.c 	*m_org = m;
m                 371 dev/pci/if_san_obsd.c wanpipe_generic_input(struct ifnet *ifp, struct mbuf *m)
m                 380 dev/pci/if_san_obsd.c 	m->m_pkthdr.rcvif = ifp;
m                 383 dev/pci/if_san_obsd.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 386 dev/pci/if_san_obsd.c 	sppp_input(ifp, m);
m                 610 dev/pci/if_san_xilinx.c wan_xilinx_send(struct mbuf* m, struct ifnet* ifp)
m                 620 dev/pci/if_san_xilinx.c 	if (m == NULL)
m                 630 dev/pci/if_san_xilinx.c 		m_freem(m);
m                 657 dev/pci/if_san_xilinx.c 			m_freem(m);
m                 663 dev/pci/if_san_xilinx.c 			IF_ENQUEUE(&sc->wp_tx_pending_list, m);
m                 675 dev/pci/if_san_xilinx.c 	struct mbuf	*m;
m                 701 dev/pci/if_san_xilinx.c 		m = wan_mbuf_alloc(sizeof(wan_udp_pkt_t));
m                 702 dev/pci/if_san_xilinx.c 		if (m == NULL)
m                 705 dev/pci/if_san_xilinx.c 		wan_udp_pkt = mtod(m, wan_udp_pkt_t *);
m                 708 dev/pci/if_san_xilinx.c 			m_freem(m);
m                 711 dev/pci/if_san_xilinx.c 		IF_ENQUEUE(&sc->udp_queue, m);
m                 717 dev/pci/if_san_xilinx.c 			m_freem(m);
m                 721 dev/pci/if_san_xilinx.c 		IF_DEQUEUE(&sc->udp_queue, m);
m                 722 dev/pci/if_san_xilinx.c 		m_freem(m);
m                 749 dev/pci/if_san_xilinx.c 	struct mbuf	*m;
m                 755 dev/pci/if_san_xilinx.c 	IF_POLL(&sc->udp_queue, m);
m                 756 dev/pci/if_san_xilinx.c 	if (m == NULL)
m                 759 dev/pci/if_san_xilinx.c 	wan_udp_pkt = mtod(m, wan_udp_pkt_t *);
m                1754 dev/pci/if_san_xilinx.c 	struct mbuf *m;
m                1813 dev/pci/if_san_xilinx.c 	IF_DEQUEUE(&sc->wp_tx_pending_list, m);
m                1815 dev/pci/if_san_xilinx.c 	if (!m) {
m                1820 dev/pci/if_san_xilinx.c 	len = m->m_len;
m                1827 dev/pci/if_san_xilinx.c 		m_freem(m);
m                1832 dev/pci/if_san_xilinx.c 	if (ADDR_MASK(mtod(m, caddr_t), 0x03)) {
m                1836 dev/pci/if_san_xilinx.c 		m_freem(m);
m                1842 dev/pci/if_san_xilinx.c 	    mtod(m, void *), len, NULL, BUS_DMA_NOWAIT | BUS_DMA_WRITE)) {
m                1845 dev/pci/if_san_xilinx.c 		m_freem(m);
m                1856 dev/pci/if_san_xilinx.c 		m_freem(m);
m                1861 dev/pci/if_san_xilinx.c 	sc->tx_dma_mbuf = m;
m                1991 dev/pci/if_san_xilinx.c xilinx_tx_post_complete(sdla_t *card, xilinx_softc_t *sc, struct mbuf *m)
m                1994 dev/pci/if_san_xilinx.c 	unsigned long	reg = m->m_pkthdr.csum_flags;
m                2120 dev/pci/if_san_xilinx.c 	struct mbuf *m = buf->mbuf;
m                2258 dev/pci/if_san_xilinx.c 	m->m_len = m->m_pkthdr.len = len;
m                2264 dev/pci/if_san_xilinx.c 		*new_m = m;
m                2271 dev/pci/if_san_xilinx.c 		if ((m0 = m_copym2(m, 0, len, M_NOWAIT)) == NULL) {
m                2521 dev/pci/if_san_xilinx.c 	struct mbuf	*new_m, *m;
m                2549 dev/pci/if_san_xilinx.c 		IF_DEQUEUE(&sc->wp_tx_complete_list, m);
m                2550 dev/pci/if_san_xilinx.c 		if (m == NULL)
m                2552 dev/pci/if_san_xilinx.c 		xilinx_tx_post_complete(sc->common.card, sc, m);
m                2553 dev/pci/if_san_xilinx.c 		m_freem(m);
m                1236 dev/pci/if_sis.c sis_newbuf(struct sis_softc *sc, struct sis_desc *c, struct mbuf *m)
m                1244 dev/pci/if_sis.c 	if (m == NULL) {
m                1256 dev/pci/if_sis.c 		m_new = m;
m                1294 dev/pci/if_sis.c 	struct mbuf		*m;
m                1311 dev/pci/if_sis.c 		m = cur_rx->sis_mbuf;
m                1325 dev/pci/if_sis.c 			sis_newbuf(sc, cur_rx, m);
m                1343 dev/pci/if_sis.c 			m->m_pkthdr.rcvif = ifp;
m                1344 dev/pci/if_sis.c 			m->m_pkthdr.len = m->m_len = total_len;
m                1349 dev/pci/if_sis.c 			m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                1351 dev/pci/if_sis.c 			sis_newbuf(sc, cur_rx, m);
m                1357 dev/pci/if_sis.c 			m = m0;
m                1364 dev/pci/if_sis.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1368 dev/pci/if_sis.c 		ether_input_mbuf(ifp, m);
m                 636 dev/pci/if_sk.c sk_newbuf(struct sk_if_softc *sc_if, int i, struct mbuf *m,
m                 643 dev/pci/if_sk.c 	if (m == NULL) {
m                 668 dev/pci/if_sk.c 		m_new = m;
m                1728 dev/pci/if_sk.c 	struct mbuf		*m;
m                1763 dev/pci/if_sk.c 		m = cur_rx->sk_mbuf;
m                1779 dev/pci/if_sk.c 			sk_newbuf(sc_if, cur, m, dmamap);
m                1792 dev/pci/if_sk.c 			m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                1794 dev/pci/if_sk.c 			sk_newbuf(sc_if, cur, m, dmamap);
m                1800 dev/pci/if_sk.c 			m = m0;
m                1802 dev/pci/if_sk.c 			m->m_pkthdr.rcvif = ifp;
m                1803 dev/pci/if_sk.c 			m->m_pkthdr.len = m->m_len = total_len;
m                1808 dev/pci/if_sk.c 		sk_rxcsum(ifp, m, csum1, csum2);
m                1812 dev/pci/if_sk.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1816 dev/pci/if_sk.c 		ether_input_mbuf(ifp, m);
m                1821 dev/pci/if_sk.c sk_rxcsum(struct ifnet *ifp, struct mbuf *m, const u_int16_t csum1, const u_int16_t csum2)
m                1829 dev/pci/if_sk.c 	pp = mtod(m, u_int8_t *);
m                1830 dev/pci/if_sk.c 	plen = m->m_pkthdr.len;
m                1884 dev/pci/if_sk.c 	m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                1903 dev/pci/if_sk.c 		m->m_pkthdr.csum_flags |= (ip->ip_p == IPPROTO_TCP) ?
m                2866 dev/pci/if_sk.c sk_dump_mbuf(struct mbuf *m)
m                2868 dev/pci/if_sk.c 	int count = m->m_pkthdr.len;
m                2870 dev/pci/if_sk.c 	printf("m=%#lx, m->m_pkthdr.len=%#d\n", m, m->m_pkthdr.len);
m                2872 dev/pci/if_sk.c 	while (count > 0 && m) {
m                2874 dev/pci/if_sk.c 		       m, m->m_data, m->m_len);
m                2875 dev/pci/if_sk.c 		sk_dump_bytes(mtod(m, char *), m->m_len);
m                2877 dev/pci/if_sk.c 		count -= m->m_len;
m                2878 dev/pci/if_sk.c 		m = m->m_next;
m                 638 dev/pci/if_ste.c         struct mbuf		*m;
m                 680 dev/pci/if_ste.c 		m = cur_rx->ste_mbuf;
m                 696 dev/pci/if_ste.c 		m->m_pkthdr.rcvif = ifp;
m                 697 dev/pci/if_ste.c 		m->m_pkthdr.len = m->m_len = total_len;
m                 703 dev/pci/if_ste.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 707 dev/pci/if_ste.c 		ether_input_mbuf(ifp, m);
m                1000 dev/pci/if_ste.c ste_newbuf(struct ste_softc *sc, struct ste_chain_onefrag *c, struct mbuf *m)
m                1004 dev/pci/if_ste.c 	if (m == NULL) {
m                1015 dev/pci/if_ste.c 		m_new = m;
m                1366 dev/pci/if_ste.c 	struct mbuf		*m;
m                1373 dev/pci/if_ste.c 	for (m = m_head, frag = 0; m != NULL; m = m->m_next) {
m                1374 dev/pci/if_ste.c 		if (m->m_len != 0) {
m                1378 dev/pci/if_ste.c 			f->ste_addr = vtophys(mtod(m, vaddr_t));
m                1379 dev/pci/if_ste.c 			f->ste_len = m->m_len;
m                1384 dev/pci/if_ste.c 	if (m != NULL) {
m                 938 dev/pci/if_stge.c 	struct mbuf *m, *tailm;
m                 965 dev/pci/if_stge.c 		m = ds->ds_mbuf;
m                 994 dev/pci/if_stge.c 		STGE_RXCHAIN_LINK(sc, m);
m                1001 dev/pci/if_stge.c 			sc->sc_rxlen += m->m_len;
m                1009 dev/pci/if_stge.c 		m = sc->sc_rxhead;
m                1021 dev/pci/if_stge.c 			m_freem(m);
m                1046 dev/pci/if_stge.c 				m_freem(m);
m                1051 dev/pci/if_stge.c 			m_copydata(m, 0, len, mtod(nm, caddr_t));
m                1052 dev/pci/if_stge.c 			m_freem(m);
m                1053 dev/pci/if_stge.c 			m = nm;
m                1061 dev/pci/if_stge.c 				m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                1064 dev/pci/if_stge.c 				m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK;
m                1067 dev/pci/if_stge.c 				m->m_pkthdr.csum_flags |= M_UDP_CSUM_IN_OK;
m                1070 dev/pci/if_stge.c 		m->m_pkthdr.rcvif = ifp;
m                1071 dev/pci/if_stge.c 		m->m_pkthdr.len = len;
m                1079 dev/pci/if_stge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1083 dev/pci/if_stge.c 		ether_input_mbuf(ifp, m);
m                1508 dev/pci/if_stge.c 	struct mbuf *m;
m                1511 dev/pci/if_stge.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1512 dev/pci/if_stge.c 	if (m == NULL)
m                1515 dev/pci/if_stge.c 	MCLGET(m, M_DONTWAIT);
m                1516 dev/pci/if_stge.c 	if ((m->m_flags & M_EXT) == 0) {
m                1517 dev/pci/if_stge.c 		m_freem(m);
m                1521 dev/pci/if_stge.c 	m->m_data = m->m_ext.ext_buf + 2;
m                1522 dev/pci/if_stge.c 	m->m_len = MCLBYTES - 2;
m                1527 dev/pci/if_stge.c 	ds->ds_mbuf = m;
m                1530 dev/pci/if_stge.c 	    m->m_ext.ext_buf, m->m_ext.ext_size, NULL, BUS_DMA_NOWAIT);
m                 592 dev/pci/if_stgereg.h #define STGE_RXCHAIN_LINK(sc, m)					\
m                 594 dev/pci/if_stgereg.h 	*(sc)->sc_rxtailp = (sc)->sc_rxtail = (m);			\
m                 595 dev/pci/if_stgereg.h 	(sc)->sc_rxtailp = &(m)->m_next;				\
m                1117 dev/pci/if_tht.c 	struct mbuf			*m;
m                1135 dev/pci/if_tht.c 		IFQ_POLL(&ifp->if_snd, m);
m                1136 dev/pci/if_tht.c 		if (m == NULL)
m                1145 dev/pci/if_tht.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1146 dev/pci/if_tht.c 		if (tht_load_pkt(sc, pkt, m) != 0) {
m                1147 dev/pci/if_tht.c 			m_freem(m);
m                1186 dev/pci/if_tht.c tht_load_pkt(struct tht_softc *sc, struct tht_pkt *pkt, struct mbuf *m)
m                1192 dev/pci/if_tht.c 	switch(bus_dmamap_load_mbuf(dmat, dmap, m, BUS_DMA_NOWAIT)) {
m                1194 dev/pci/if_tht.c 		pkt->tp_m = m;
m                1201 dev/pci/if_tht.c 		if (m->m_pkthdr.len > MHLEN) {
m                1208 dev/pci/if_tht.c 		m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t));
m                1209 dev/pci/if_tht.c 		m0->m_pkthdr.len = m0->m_len = m->m_pkthdr.len;
m                1215 dev/pci/if_tht.c 		m_freem(m);
m                1270 dev/pci/if_tht.c 	struct mbuf			*m;
m                1282 dev/pci/if_tht.c 		MGETHDR(m, wait ? M_WAIT : M_DONTWAIT, MT_DATA);
m                1283 dev/pci/if_tht.c 		if (m == NULL)
m                1286 dev/pci/if_tht.c 		MCLGET(m, wait ? M_WAIT : M_DONTWAIT);
m                1287 dev/pci/if_tht.c 		if (!ISSET(m->m_flags, M_EXT))
m                1290 dev/pci/if_tht.c 		m->m_data += ETHER_ALIGN;
m                1291 dev/pci/if_tht.c 		m->m_len = m->m_pkthdr.len = MCLBYTES - ETHER_ALIGN;
m                1294 dev/pci/if_tht.c 		if (bus_dmamap_load_mbuf(dmat, dmap, m,
m                1298 dev/pci/if_tht.c 		pkt->tp_m = m;
m                1318 dev/pci/if_tht.c 	m_freem(m);
m                1353 dev/pci/if_tht.c 	struct mbuf			*m;
m                1376 dev/pci/if_tht.c 		m = pkt->tp_m;
m                1377 dev/pci/if_tht.c 		m->m_pkthdr.rcvif = ifp;
m                1378 dev/pci/if_tht.c 		m->m_pkthdr.len = m->m_len = letoh16(rxd.len);
m                1381 dev/pci/if_tht.c 			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                1383 dev/pci/if_tht.c 			m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK;
m                1385 dev/pci/if_tht.c 			m->m_pkthdr.csum_flags |= M_UDP_CSUM_IN_OK;
m                1391 dev/pci/if_tht.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1394 dev/pci/if_tht.c 		ether_input_mbuf(ifp, m);
m                1804 dev/pci/if_tht.c tht_wait_eq(struct tht_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
m                1807 dev/pci/if_tht.c 	while ((tht_read(sc, r) & m) != v) {
m                1819 dev/pci/if_tht.c tht_wait_ne(struct tht_softc *sc, bus_size_t r, u_int32_t m, u_int32_t v,
m                1822 dev/pci/if_tht.c 	while ((tht_read(sc, r) & m) == v) {
m                 734 dev/pci/if_ti.c ti_newbuf_std(struct ti_softc *sc, int i, struct mbuf *m,
m                 749 dev/pci/if_ti.c 	} else if (m == NULL)
m                 754 dev/pci/if_ti.c 	if (m == NULL) {
m                 778 dev/pci/if_ti.c 		m_new = m;
m                 805 dev/pci/if_ti.c ti_newbuf_mini(struct ti_softc *sc, int i, struct mbuf *m,
m                 820 dev/pci/if_ti.c 	} else if (m == NULL)
m                 825 dev/pci/if_ti.c 	if (m == NULL) {
m                 842 dev/pci/if_ti.c 		m_new = m;
m                 863 dev/pci/if_ti.c ti_newbuf_jumbo(struct ti_softc *sc, int i, struct mbuf *m)
m                 868 dev/pci/if_ti.c 	if (m == NULL) {
m                 892 dev/pci/if_ti.c 		m_new = m;
m                1084 dev/pci/if_ti.c 	u_int16_t		*m;
m                1087 dev/pci/if_ti.c 	m = (u_int16_t *)&addr->ether_addr_octet[0];
m                1091 dev/pci/if_ti.c 		CSR_WRITE_4(sc, TI_GCR_MAR0, htons(m[0]));
m                1092 dev/pci/if_ti.c 		CSR_WRITE_4(sc, TI_GCR_MAR1, (htons(m[1]) << 16) | htons(m[2]));
m                1096 dev/pci/if_ti.c 		ext[0] = htons(m[0]);
m                1097 dev/pci/if_ti.c 		ext[1] = (htons(m[1]) << 16) | htons(m[2]);
m                1110 dev/pci/if_ti.c 	u_int16_t		*m;
m                1113 dev/pci/if_ti.c 	m = (u_int16_t *)&addr->ether_addr_octet[0];
m                1117 dev/pci/if_ti.c 		CSR_WRITE_4(sc, TI_GCR_MAR0, htons(m[0]));
m                1118 dev/pci/if_ti.c 		CSR_WRITE_4(sc, TI_GCR_MAR1, (htons(m[1]) << 16) | htons(m[2]));
m                1122 dev/pci/if_ti.c 		ext[0] = htons(m[0]);
m                1123 dev/pci/if_ti.c 		ext[1] = (htons(m[1]) << 16) | htons(m[2]);
m                1739 dev/pci/if_ti.c 		struct mbuf		*m = NULL;
m                1750 dev/pci/if_ti.c 			m = sc->ti_cdata.ti_rx_jumbo_chain[rxidx];
m                1754 dev/pci/if_ti.c 				ti_newbuf_jumbo(sc, sc->ti_jumbo, m);
m                1760 dev/pci/if_ti.c 				m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                1762 dev/pci/if_ti.c 				ti_newbuf_jumbo(sc, sc->ti_jumbo, m);
m                1768 dev/pci/if_ti.c 				m = m0;
m                1772 dev/pci/if_ti.c 			m = sc->ti_cdata.ti_rx_mini_chain[rxidx];
m                1778 dev/pci/if_ti.c 				ti_newbuf_mini(sc, sc->ti_mini, m, dmamap);
m                1784 dev/pci/if_ti.c 				ti_newbuf_mini(sc, sc->ti_mini, m, dmamap);
m                1789 dev/pci/if_ti.c 			m = sc->ti_cdata.ti_rx_std_chain[rxidx];
m                1795 dev/pci/if_ti.c 				ti_newbuf_std(sc, sc->ti_std, m, dmamap);
m                1801 dev/pci/if_ti.c 				ti_newbuf_std(sc, sc->ti_std, m, dmamap);
m                1806 dev/pci/if_ti.c 		if (m == NULL)
m                1809 dev/pci/if_ti.c 		m->m_pkthdr.len = m->m_len = cur_rx->ti_len;
m                1811 dev/pci/if_ti.c 		m->m_pkthdr.rcvif = ifp;
m                1818 dev/pci/if_ti.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1823 dev/pci/if_ti.c 		m->m_pkthdr.csum_flags = sumflags;
m                1826 dev/pci/if_ti.c 		ether_input_mbuf(ifp, m);
m                2249 dev/pci/if_ti.c 	u_int16_t		*m;
m                2262 dev/pci/if_ti.c 	m = (u_int16_t *)&sc->arpcom.ac_enaddr[0];
m                2263 dev/pci/if_ti.c 	CSR_WRITE_4(sc, TI_GCR_PAR0, htons(m[0]));
m                2264 dev/pci/if_ti.c 	CSR_WRITE_4(sc, TI_GCR_PAR1, (htons(m[1]) << 16) | htons(m[2]));
m                1083 dev/pci/if_tireg.h #define TI_JUMBO_DMA_ADDR(sc, m) \
m                1085 dev/pci/if_tireg.h 	 (mtod((m), char *) - (char *)(sc)->ti_cdata.ti_jumbo_buf))
m                1117 dev/pci/if_tl.c 	struct mbuf		*m;
m                1130 dev/pci/if_tl.c 		m = cur_rx->tl_mbuf;
m                1146 dev/pci/if_tl.c 		eh = mtod(m, struct ether_header *);
m                1147 dev/pci/if_tl.c 		m->m_pkthdr.rcvif = ifp;
m                1158 dev/pci/if_tl.c 				m_freem(m);
m                1162 dev/pci/if_tl.c 		m->m_pkthdr.len = m->m_len = total_len;
m                1173 dev/pci/if_tl.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1177 dev/pci/if_tl.c 		ether_input_mbuf(ifp, m);
m                1471 dev/pci/if_tl.c 	struct mbuf		*m;
m                1478 dev/pci/if_tl.c 	m = m_head;
m                1481 dev/pci/if_tl.c 	for (m = m_head, frag = 0; m != NULL; m = m->m_next) {
m                1482 dev/pci/if_tl.c 		if (m->m_len != 0) {
m                1485 dev/pci/if_tl.c 			total_len+= m->m_len;
m                1487 dev/pci/if_tl.c 				VTOPHYS(mtod(m, vaddr_t));
m                1488 dev/pci/if_tl.c 			c->tl_ptr->tl_frag[frag].tlist_dcnt = m->m_len;
m                1502 dev/pci/if_tl.c 	if (m != NULL) {
m                 493 dev/pci/if_txp.c 	struct mbuf m;
m                 526 dev/pci/if_txp.c 	m.m_type = MT_DATA;
m                 527 dev/pci/if_txp.c 	m.m_next = m.m_nextpkt = NULL;
m                 528 dev/pci/if_txp.c 	m.m_len = letoh32(sect->nbytes);
m                 529 dev/pci/if_txp.c 	m.m_data = dma.dma_vaddr;
m                 530 dev/pci/if_txp.c 	m.m_flags = 0;
m                 531 dev/pci/if_txp.c 	csum = in_cksum(&m, letoh32(sect->nbytes));
m                 626 dev/pci/if_txp.c 	struct mbuf *m;
m                 656 dev/pci/if_txp.c 		m = sd->sd_mbuf;
m                 658 dev/pci/if_txp.c 		m->m_pkthdr.len = m->m_len = letoh16(rxd->rx_len);
m                 669 dev/pci/if_txp.c 			if (m->m_pkthdr.len < ETHER_HDR_LEN) {
m                 670 dev/pci/if_txp.c 				m_freem(m);
m                 673 dev/pci/if_txp.c 			m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&vh);
m                 677 dev/pci/if_txp.c 			m_adj(m, ETHER_HDR_LEN);
m                 678 dev/pci/if_txp.c 			M_PREPEND(m, sizeof(vh), M_DONTWAIT);
m                 679 dev/pci/if_txp.c 			if (m == NULL)
m                 681 dev/pci/if_txp.c 			m_copyback(m, 0, sizeof(vh), &vh);
m                 697 dev/pci/if_txp.c 				m_freem(m);
m                 700 dev/pci/if_txp.c 			if (m->m_len > (MHLEN - 2)) {
m                 704 dev/pci/if_txp.c 					m_freem(m);
m                 709 dev/pci/if_txp.c 			mnew->m_pkthdr.len = mnew->m_len = m->m_len;
m                 711 dev/pci/if_txp.c 			bcopy(m->m_data, mnew->m_data, m->m_len);
m                 712 dev/pci/if_txp.c 			m_freem(m);
m                 713 dev/pci/if_txp.c 			m = mnew;
m                 722 dev/pci/if_txp.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 740 dev/pci/if_txp.c 		m->m_pkthdr.csum_flags = sumflags;
m                 742 dev/pci/if_txp.c 		ether_input_mbuf(ifp, m);
m                 857 dev/pci/if_txp.c 	struct mbuf *m;
m                 873 dev/pci/if_txp.c 			m = sd->sd_mbuf;
m                 874 dev/pci/if_txp.c 			if (m != NULL) {
m                 875 dev/pci/if_txp.c 				m_freem(m);
m                1385 dev/pci/if_txp.c 	struct mbuf *m, *mnew;
m                1399 dev/pci/if_txp.c 		IFQ_POLL(&ifp->if_snd, m);
m                1400 dev/pci/if_txp.c 		if (m == NULL)
m                1408 dev/pci/if_txp.c 		sd->sd_mbuf = m;
m                1410 dev/pci/if_txp.c 		if (bus_dmamap_load_mbuf(sc->sc_dmat, sd->sd_map, m,
m                1415 dev/pci/if_txp.c 			if (m->m_pkthdr.len > MHLEN) {
m                1422 dev/pci/if_txp.c 			m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t));
m                1423 dev/pci/if_txp.c 			mnew->m_pkthdr.len = mnew->m_len = m->m_pkthdr.len;
m                1424 dev/pci/if_txp.c 			IFQ_DEQUEUE(&ifp->if_snd, m);
m                1425 dev/pci/if_txp.c 			m_freem(m);
m                1426 dev/pci/if_txp.c 			m = mnew;
m                1427 dev/pci/if_txp.c 			if (bus_dmamap_load_mbuf(sc->sc_dmat, sd->sd_map, m,
m                1441 dev/pci/if_txp.c 		txd->tx_totlen = m->m_pkthdr.len;
m                1452 dev/pci/if_txp.c 		if ((m->m_flags & (M_PROTO1|M_PKTHDR)) == (M_PROTO1|M_PKTHDR) &&
m                1453 dev/pci/if_txp.c 		    m->m_pkthdr.rcvif != NULL) {
m                1454 dev/pci/if_txp.c 			ifv = m->m_pkthdr.rcvif->if_softc;
m                1460 dev/pci/if_txp.c 		if (m->m_pkthdr.csum_flags & M_IPV4_CSUM_OUT)
m                1463 dev/pci/if_txp.c 		if (m->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT)
m                1467 dev/pci/if_txp.c 		if (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT)
m                1513 dev/pci/if_txp.c 			IFQ_DEQUEUE(&ifp->if_snd, m);
m                1519 dev/pci/if_txp.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1535 dev/pci/if_txp.c 			for (mx = m; mx != NULL; mx = mx->m_next) {
m                1538 dev/pci/if_txp.c 					    (u_int8_t)m->m_data[i]);
m                 817 dev/pci/if_vge.c vge_newbuf(struct vge_softc *sc, int idx, struct mbuf *m)
m                 824 dev/pci/if_vge.c 	if (m == NULL) {
m                 950 dev/pci/if_vge.c 	struct mbuf		*m;
m                 971 dev/pci/if_vge.c 		m = sc->vge_ldata.vge_rx_mbuf[i];
m                 993 dev/pci/if_vge.c 			m->m_len = MCLBYTES;
m                 995 dev/pci/if_vge.c 				sc->vge_head = sc->vge_tail = m;
m                 997 dev/pci/if_vge.c 				m->m_flags &= ~M_PKTHDR;
m                 998 dev/pci/if_vge.c 				sc->vge_tail->m_next = m;
m                 999 dev/pci/if_vge.c 				sc->vge_tail = m;
m                1026 dev/pci/if_vge.c 			vge_newbuf(sc, i, m);
m                1042 dev/pci/if_vge.c 			m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                1045 dev/pci/if_vge.c 			vge_newbuf(sc, i, m);
m                1051 dev/pci/if_vge.c 			m = m0;
m                1060 dev/pci/if_vge.c 			m->m_len = total_len % MCLBYTES;
m                1067 dev/pci/if_vge.c 			if (m->m_len <= ETHER_CRC_LEN) {
m                1069 dev/pci/if_vge.c 				    (ETHER_CRC_LEN - m->m_len);
m                1070 dev/pci/if_vge.c 				m_freem(m);
m                1072 dev/pci/if_vge.c 				m->m_len -= ETHER_CRC_LEN;
m                1073 dev/pci/if_vge.c 				m->m_flags &= ~M_PKTHDR;
m                1074 dev/pci/if_vge.c 				sc->vge_tail->m_next = m;
m                1076 dev/pci/if_vge.c 			m = sc->vge_head;
m                1078 dev/pci/if_vge.c 			m->m_pkthdr.len = total_len - ETHER_CRC_LEN;
m                1080 dev/pci/if_vge.c 			m->m_pkthdr.len = m->m_len =
m                1084 dev/pci/if_vge.c 		bcopy(m->m_data, m->m_data + ETHER_ALIGN,
m                1086 dev/pci/if_vge.c 		m->m_data += ETHER_ALIGN;
m                1089 dev/pci/if_vge.c 		m->m_pkthdr.rcvif = ifp;
m                1096 dev/pci/if_vge.c 			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                1101 dev/pci/if_vge.c 			m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK;
m                1105 dev/pci/if_vge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1107 dev/pci/if_vge.c 		ether_input_mbuf(ifp, m);
m                 719 dev/pci/if_vic.c 	struct mbuf			*m;
m                 760 dev/pci/if_vic.c 		m = rxb->rxb_m;
m                 762 dev/pci/if_vic.c 		m->m_pkthdr.rcvif = ifp;
m                 763 dev/pci/if_vic.c 		m->m_pkthdr.len = m->m_len = len;
m                 784 dev/pci/if_vic.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 787 dev/pci/if_vic.c 		ether_input_mbuf(ifp, m);
m                 950 dev/pci/if_vic.c 	struct mbuf			*m;
m                 978 dev/pci/if_vic.c 		IFQ_POLL(&ifp->if_snd, m);
m                 979 dev/pci/if_vic.c 		if (m == NULL)
m                1003 dev/pci/if_vic.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1004 dev/pci/if_vic.c 		if (vic_load_txb(sc, txb, m) != 0) {
m                1005 dev/pci/if_vic.c 			m_freem(m);
m                1050 dev/pci/if_vic.c vic_load_txb(struct vic_softc *sc, struct vic_txbuf *txb, struct mbuf *m)
m                1056 dev/pci/if_vic.c 	error = bus_dmamap_load_mbuf(sc->sc_dmat, dmap, m, BUS_DMA_NOWAIT);
m                1059 dev/pci/if_vic.c 		txb->txb_m = m;
m                1066 dev/pci/if_vic.c 		if (m->m_pkthdr.len > MHLEN) {
m                1073 dev/pci/if_vic.c 		m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t));
m                1074 dev/pci/if_vic.c 		m0->m_pkthdr.len = m0->m_len = m->m_pkthdr.len;
m                1083 dev/pci/if_vic.c 		m_freem(m);
m                1271 dev/pci/if_vic.c 	struct mbuf *m = NULL;
m                1273 dev/pci/if_vic.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1274 dev/pci/if_vic.c 	if (m == NULL)
m                1277 dev/pci/if_vic.c 	MCLGET(m, M_DONTWAIT);
m                1278 dev/pci/if_vic.c 	if ((m->m_flags & M_EXT) == 0) {
m                1279 dev/pci/if_vic.c 		m_freem(m);
m                1282 dev/pci/if_vic.c 	m->m_len = m->m_pkthdr.len = MCLBYTES;
m                1284 dev/pci/if_vic.c 	if (bus_dmamap_load_mbuf(sc->sc_dmat, map, m, BUS_DMA_NOWAIT) != 0) {
m                1286 dev/pci/if_vic.c 		m_freem(m);
m                1290 dev/pci/if_vic.c 	return (m);
m                 962 dev/pci/if_wb.c wb_newbuf(sc, c, m)
m                 965 dev/pci/if_wb.c 	struct mbuf *m;
m                 969 dev/pci/if_wb.c 	if (m == NULL) {
m                 981 dev/pci/if_wb.c 		m_new = m;
m                1003 dev/pci/if_wb.c         struct mbuf		*m = NULL;
m                1018 dev/pci/if_wb.c 		m = cur_rx->wb_mbuf;
m                1026 dev/pci/if_wb.c 			wb_newbuf(sc, cur_rx, m);
m                1037 dev/pci/if_wb.c 			wb_newbuf(sc, cur_rx, m);
m                1053 dev/pci/if_wb.c 		m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
m                1055 dev/pci/if_wb.c 		wb_newbuf(sc, cur_rx, m);
m                1061 dev/pci/if_wb.c 		m = m0;
m                1070 dev/pci/if_wb.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1073 dev/pci/if_wb.c 		ether_input_mbuf(ifp, m);
m                1286 dev/pci/if_wb.c 	struct mbuf		*m;
m                1293 dev/pci/if_wb.c 	m = m_head;
m                1296 dev/pci/if_wb.c 	for (m = m_head, frag = 0; m != NULL; m = m->m_next) {
m                1297 dev/pci/if_wb.c 		if (m->m_len != 0) {
m                1300 dev/pci/if_wb.c 			total_len += m->m_len;
m                1302 dev/pci/if_wb.c 			f->wb_ctl = WB_TXCTL_TLINK | m->m_len;
m                1309 dev/pci/if_wb.c 			f->wb_data = VTOPHYS(mtod(m, vaddr_t));
m                1322 dev/pci/if_wb.c 	if (m != NULL) {
m                 555 dev/pci/if_wpi.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 556 dev/pci/if_wpi.c 		if (data->m == NULL) {
m                 563 dev/pci/if_wpi.c 			m_freem(data->m);
m                 564 dev/pci/if_wpi.c 			data->m = NULL;
m                 571 dev/pci/if_wpi.c 		MEXTADD(data->m, rbuf->vaddr, WPI_RBUF_SIZE, 0, wpi_free_rbuf,
m                 613 dev/pci/if_wpi.c 		if (ring->data[i].m != NULL)
m                 614 dev/pci/if_wpi.c 			m_freem(ring->data[i].m);
m                 703 dev/pci/if_wpi.c 		if (data->m != NULL) {
m                 705 dev/pci/if_wpi.c 			m_freem(data->m);
m                 706 dev/pci/if_wpi.c 			data->m = NULL;
m                 726 dev/pci/if_wpi.c 			if (data->m != NULL) {
m                 728 dev/pci/if_wpi.c 				m_freem(data->m);
m                1207 dev/pci/if_wpi.c 	struct mbuf *m, *mnew;
m                1250 dev/pci/if_wpi.c 	m = data->m;
m                1251 dev/pci/if_wpi.c 	data->m = mnew;
m                1257 dev/pci/if_wpi.c 	m->m_pkthdr.rcvif = ifp;
m                1258 dev/pci/if_wpi.c 	m->m_data = (caddr_t)(head + 1);
m                1259 dev/pci/if_wpi.c 	m->m_pkthdr.len = m->m_len = letoh16(head->len);
m                1298 dev/pci/if_wpi.c 		mb.m_next = m;
m                1307 dev/pci/if_wpi.c 	wh = mtod(m, struct ieee80211_frame *);
m                1311 dev/pci/if_wpi.c 	ieee80211_input(ifp, m, ni, stat->rssi, 0);
m                1349 dev/pci/if_wpi.c 	m_freem(data->m);
m                1350 dev/pci/if_wpi.c 	data->m = NULL;
m                1373 dev/pci/if_wpi.c 	if (data->m != NULL) {
m                1375 dev/pci/if_wpi.c 		m_freem(data->m);
m                1376 dev/pci/if_wpi.c 		data->m = NULL;
m                1392 dev/pci/if_wpi.c 		struct wpi_rx_desc *desc = mtod(data->m, struct wpi_rx_desc *);
m                1734 dev/pci/if_wpi.c 	data->m = m0;
m                2325 dev/pci/if_wpi.c 	data->m = m0;
m                2431 dev/pci/if_wpi.c 	MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                2432 dev/pci/if_wpi.c 	if (data->m == NULL) {
m                2437 dev/pci/if_wpi.c 	MCLGET(data->m, M_DONTWAIT);
m                2438 dev/pci/if_wpi.c 	if (!(data->m->m_flags & M_EXT)) {
m                2439 dev/pci/if_wpi.c 		m_freem(data->m);
m                2440 dev/pci/if_wpi.c 		data->m = NULL;
m                2446 dev/pci/if_wpi.c 	cmd = mtod(data->m, struct wpi_tx_cmd *);
m                2550 dev/pci/if_wpi.c 		m_freem(data->m);
m                2551 dev/pci/if_wpi.c 		data->m = NULL;
m                  67 dev/pci/if_wpivar.h 	struct mbuf		*m;
m                  95 dev/pci/if_wpivar.h 	struct mbuf	*m;
m                 888 dev/pci/if_xge.c 		struct mbuf *m;
m                 900 dev/pci/if_xge.c 		m = sc->sc_rxb[sc->sc_nextrx];
m                 902 dev/pci/if_xge.c 		plen = m->m_len = RXD_CTL2_BUF0SIZ(rxd->rxd_control2);
m                 906 dev/pci/if_xge.c 		plen = m->m_len = RXD_CTL2_BUF0SIZ(rxd->rxd_control2);
m                 907 dev/pci/if_xge.c 		plen += m->m_next->m_len = RXD_CTL2_BUF1SIZ(rxd->rxd_control2);
m                 908 dev/pci/if_xge.c 		plen += m->m_next->m_next->m_len =
m                 910 dev/pci/if_xge.c 		plen += m->m_next->m_next->m_next->m_len =
m                 912 dev/pci/if_xge.c 		plen += m->m_next->m_next->m_next->m_next->m_len =
m                 915 dev/pci/if_xge.c 		m->m_pkthdr.rcvif = ifp;
m                 916 dev/pci/if_xge.c 		m->m_pkthdr.len = plen;
m                 937 dev/pci/if_xge.c 			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_IN_OK;
m                 939 dev/pci/if_xge.c 			m->m_pkthdr.csum_flags |= M_TCP_CSUM_IN_OK;
m                 941 dev/pci/if_xge.c 			m->m_pkthdr.csum_flags |= M_UDP_CSUM_IN_OK;
m                 945 dev/pci/if_xge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 948 dev/pci/if_xge.c 		ether_input_mbuf(ifp, m);
m                1105 dev/pci/if_xge.c 	struct	mbuf *m;
m                1117 dev/pci/if_xge.c 		IFQ_POLL(&ifp->if_snd, m);
m                1118 dev/pci/if_xge.c 		if (m == NULL)
m                1127 dev/pci/if_xge.c 		if ((error = bus_dmamap_load_mbuf(sc->sc_dmat, dmp, m,
m                1133 dev/pci/if_xge.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                1139 dev/pci/if_xge.c 		sc->sc_txb[nexttx] = m;
m                1154 dev/pci/if_xge.c 		if ((m->m_flags & (M_PROTO1|M_PKTHDR)) == (M_PROTO1|M_PKTHDR) &&
m                1155 dev/pci/if_xge.c 		    m->m_pkthdr.rcvif != NULL) {
m                1156 dev/pci/if_xge.c 			ifv = m->m_pkthdr.rcvif->if_softc;
m                1163 dev/pci/if_xge.c 		if (m->m_pkthdr.csum_flags & M_IPV4_CSUM_OUT)
m                1165 dev/pci/if_xge.c 		if (m->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT)
m                1167 dev/pci/if_xge.c 		if (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT)
m                1182 dev/pci/if_xge.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1310 dev/pci/if_xge.c 	struct mbuf *m[5];
m                1328 dev/pci/if_xge.c 	MGETHDR(m[0], M_DONTWAIT, MT_DATA);
m                1329 dev/pci/if_xge.c 	if (m[0] == NULL)
m                1331 dev/pci/if_xge.c 	MCLGET(m[0], M_DONTWAIT);
m                1332 dev/pci/if_xge.c 	if ((m[0]->m_flags & M_EXT) == 0) {
m                1333 dev/pci/if_xge.c 		m_freem(m[0]);
m                1336 dev/pci/if_xge.c 	m[0]->m_len = m[0]->m_pkthdr.len = m[0]->m_ext.ext_size;
m                1340 dev/pci/if_xge.c 	MGETHDR(m[0], M_DONTWAIT, MT_DATA);
m                1342 dev/pci/if_xge.c 		MGET(m[i], M_DONTWAIT, MT_DATA);
m                1344 dev/pci/if_xge.c 	if (m[3])
m                1345 dev/pci/if_xge.c 		MCLGET(m[3], M_DONTWAIT);
m                1346 dev/pci/if_xge.c 	if (m[4])
m                1347 dev/pci/if_xge.c 		MCLGET(m[4], M_DONTWAIT);
m                1348 dev/pci/if_xge.c 	if (!m[0] || !m[1] || !m[2] || !m[3] || !m[4] || 
m                1349 dev/pci/if_xge.c 	    ((m[3]->m_flags & M_EXT) == 0) || ((m[4]->m_flags & M_EXT) == 0)) {
m                1352 dev/pci/if_xge.c 			if (m[i] != NULL)
m                1353 dev/pci/if_xge.c 				m_free(m[i]);
m                1357 dev/pci/if_xge.c 	m[0]->m_next = m[1];
m                1358 dev/pci/if_xge.c 	m[1]->m_next = m[2];
m                1359 dev/pci/if_xge.c 	m[2]->m_next = m[3];
m                1360 dev/pci/if_xge.c 	m[3]->m_next = m[4];
m                1367 dev/pci/if_xge.c 	sc->sc_rxb[id] = m[0];
m                1369 dev/pci/if_xge.c 	error = bus_dmamap_load_mbuf(sc->sc_dmat, sc->sc_rxm[id], m[0],
m                1377 dev/pci/if_xge.c 	rxd->rxd_control2 = RXD_MKCTL2(m[0]->m_len, 0, 0);
m                1382 dev/pci/if_xge.c 	rxd->rxd_control3 = RXD_MKCTL3(0, m[3]->m_len, m[4]->m_len);
m                1383 dev/pci/if_xge.c 	rxd->rxd_control2 = RXD_MKCTL2(m[0]->m_len, m[1]->m_len, m[2]->m_len);
m                1373 dev/pci/ises.c 			struct mbuf *m, *top, **mp;
m                1377 dev/pci/ises.c 				MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1378 dev/pci/ises.c 				M_DUP_PKTHDR(m, q->q_src.mbuf);
m                1381 dev/pci/ises.c 				MGET(m, M_DONTWAIT, MT_DATA);
m                1384 dev/pci/ises.c 			if (m == NULL)
m                1387 dev/pci/ises.c 				MCLGET(m, M_DONTWAIT);
m                1388 dev/pci/ises.c 				if (m->m_flags & M_EXT)
m                1391 dev/pci/ises.c 			m->m_len = len;
m                1397 dev/pci/ises.c 					MGET(m, M_DONTWAIT, MT_DATA);
m                1398 dev/pci/ises.c 					if (m == NULL) {
m                1405 dev/pci/ises.c 					MCLGET(m, M_DONTWAIT);
m                1406 dev/pci/ises.c 					if (m->m_flags & M_EXT)
m                1409 dev/pci/ises.c 				m->m_len = len = min(totlen, len);
m                1411 dev/pci/ises.c 				*mp = m;
m                1413 dev/pci/ises.c 				mp = &m->m_next;
m                 933 dev/pci/musycc.c musycc_newbuf(struct musycc_group *mg, struct dma_desc *c, struct mbuf *m)
m                 938 dev/pci/musycc.c 	if (m == NULL) {
m                 950 dev/pci/musycc.c 		m_new = m;
m                1083 dev/pci/musycc.c 	struct mbuf		*m = NULL;
m                1098 dev/pci/musycc.c 	while ((m = sppp_pick(ifp)) != NULL) {
m                1099 dev/pci/musycc.c 		if (musycc_encap(mg, m, cc->cc_channel)) {
m                1106 dev/pci/musycc.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1153 dev/pci/musycc.c 	struct mbuf	*m;
m                1176 dev/pci/musycc.c 		m = cur_rx->mbuf;
m                1191 dev/pci/musycc.c 			musycc_newbuf(mg, cur_rx, m);
m                1210 dev/pci/musycc.c 		m->m_pkthdr.rcvif = ifp;
m                1211 dev/pci/musycc.c 		m->m_pkthdr.len = m->m_len = total_len;
m                1216 dev/pci/musycc.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1220 dev/pci/musycc.c 		sppp_input(ifp, m);
m                1508 dev/pci/noct.c 	cmd->arith.m = htole32(sc->sc_pkh_bnsw[midx].bn_off |
m                1562 dev/pci/noct.c 	cmd->arith.m = htole32(sc->sc_pkh_bnsw[midx].bn_off |
m                 217 dev/pci/noctreg.h 	volatile u_int32_t	m;		/* m length, m offset */
m                7053 dev/pci/pciide.c 		int m;
m                7054 dev/pci/pciide.c 		if ((m = mode[drive]) < 0)
m                7058 dev/pci/pciide.c 		rv = opti_tim_as[spd][m] << OPTI_MISC_ADDR_SETUP_SHIFT;
m                7063 dev/pci/pciide.c 		rv  = opti_tim_cp[spd][m] << OPTI_PULSE_WIDTH_SHIFT;
m                7064 dev/pci/pciide.c 		rv |= opti_tim_rt[spd][m] << OPTI_RECOVERY_TIME_SHIFT;
m                7071 dev/pci/pciide.c 		rv |= OPTI_ENH_MODE(chp->channel, drive, opti_tim_em[m]);
m                  71 dev/pci/pciide_ixp_reg.h #define IXP_SET_MODE(u, c, d, m)	do {	\
m                  74 dev/pci/pciide_ixp_reg.h     	(u) |= (((m) & 0x7) << __ixpshift);	\
m                  81 dev/pci/pciide_ixp_reg.h #define IXP_SET_TIMING(m, c, d, t)	do {	\
m                  83 dev/pci/pciide_ixp_reg.h     	(m) &= ~(0xff << __ixpshift);		\
m                  84 dev/pci/pciide_ixp_reg.h     	(m) |= ((t) & 0xff) << __ixpshift;	\
m                  76 dev/pci/pciide_opti_reg.h #define  OPTI_ENH_MODE(c,d,m)		((m) << (((c) * 4) + ((d) * 2)))
m                 782 dev/pci/safe.c 				struct mbuf *m, *top, **mp;
m                 799 dev/pci/safe.c 					MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 802 dev/pci/safe.c 					MGET(m, M_DONTWAIT, MT_DATA);
m                 804 dev/pci/safe.c 				if (m == NULL) {
m                 810 dev/pci/safe.c 					M_DUP_PKTHDR(m, re->re_src_m);
m                 812 dev/pci/safe.c 					MCLGET(m, M_DONTWAIT);
m                 813 dev/pci/safe.c 					if ((m->m_flags & M_EXT) == 0) {
m                 814 dev/pci/safe.c 						m_free(m);
m                 822 dev/pci/safe.c 				m->m_len = len;
m                 828 dev/pci/safe.c 						MGET(m, M_DONTWAIT, MT_DATA);
m                 829 dev/pci/safe.c 						if (m == NULL) {
m                 839 dev/pci/safe.c 						MCLGET(m, M_DONTWAIT);
m                 840 dev/pci/safe.c 						if ((m->m_flags & M_EXT) == 0) {
m                 841 dev/pci/safe.c 							*mp = m;
m                 850 dev/pci/safe.c 					m->m_len = len = min(totlen, len);
m                 852 dev/pci/safe.c 					*mp = m;
m                 853 dev/pci/safe.c 					mp = &m->m_next;
m                  83 dev/pci/safevar.h 		struct mbuf *m;
m                 120 dev/pci/safevar.h #define	re_src_m	re_src.u.m
m                 127 dev/pci/safevar.h #define	re_dst_m	re_dst.u.m
m                 751 dev/pci/sv.c   	  int  a, n, m, best_n, best_m, best_error = 10000000;
m                 764 dev/pci/sv.c   	    m = (goal_f_out * n * (1 << a)) / F_REF;
m                 766 dev/pci/sv.c   	    if ((m > 257) || (m < 3)) continue;
m                 768 dev/pci/sv.c   	    pll_sample = (m * F_REF) / (n * (1 << a));
m                 778 dev/pci/sv.c   	      best_m = m;
m                1567 dev/pci/tga.c  	struct	monitor *m = tga_getmonitor(dc);
m                1582 dev/pci/tga.c  		tga2_ics9110_wr(dc, m->dotclock);
m                1586 dev/pci/tga.c  	     ((m->hbp / 4) << 21) |
m                1587 dev/pci/tga.c  	     ((m->hsync / 4) << 14) |
m                1588 dev/pci/tga.c  	    (((m->hfp - 4) / 4) << 9) |
m                1589 dev/pci/tga.c  	     ((m->cols + 4) / 4));
m                1592 dev/pci/tga.c  	     ((m->hbp / 4) << 21) |
m                1593 dev/pci/tga.c  	     ((m->hsync / 4) << 14) |
m                1594 dev/pci/tga.c  	    (((m->hfp) / 4) << 9) |
m                1595 dev/pci/tga.c  	     ((m->cols) / 4));
m                1598 dev/pci/tga.c  	    (m->vbp << 22) |
m                1599 dev/pci/tga.c  	    (m->vsync << 16) |
m                1600 dev/pci/tga.c  	    (m->vfp << 11) |
m                1601 dev/pci/tga.c  	    (m->rows));
m                1030 dev/pci/ubsec.c 				struct mbuf *m, *top, **mp;
m                1035 dev/pci/ubsec.c 					MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1038 dev/pci/ubsec.c 					MGET(m, M_DONTWAIT, MT_DATA);
m                1040 dev/pci/ubsec.c 				if (m == NULL) {
m                1045 dev/pci/ubsec.c 					M_DUP_PKTHDR(m, q->q_src_m);
m                1047 dev/pci/ubsec.c 					MCLGET(m, M_DONTWAIT);
m                1048 dev/pci/ubsec.c 					if (m->m_flags & M_EXT)
m                1051 dev/pci/ubsec.c 				m->m_len = len;
m                1057 dev/pci/ubsec.c 						MGET(m, M_DONTWAIT, MT_DATA);
m                1058 dev/pci/ubsec.c 						if (m == NULL) {
m                1066 dev/pci/ubsec.c 						MCLGET(m, M_DONTWAIT);
m                1067 dev/pci/ubsec.c 						if (m->m_flags & M_EXT)
m                1070 dev/pci/ubsec.c 					m->m_len = len = min(totlen, len);
m                1072 dev/pci/ubsec.c 					*mp = m;
m                1073 dev/pci/ubsec.c 					mp = &m->m_next;
m                 499 dev/pcmcia/if_cnw.c 	struct mbuf *m;
m                 516 dev/pcmcia/if_cnw.c 	for (m = m0; m; ) {
m                 517 dev/pcmcia/if_cnw.c 		mptr = mtod(m, u_int8_t *);
m                 518 dev/pcmcia/if_cnw.c 		mbytes = m->m_len;
m                 539 dev/pcmcia/if_cnw.c 		MFREE(m, m0);
m                 540 dev/pcmcia/if_cnw.c 		m = m0;
m                 555 dev/pcmcia/if_cnw.c 	struct mbuf *m, *top, **mp;
m                 569 dev/pcmcia/if_cnw.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 570 dev/pcmcia/if_cnw.c 	if (m == 0)
m                 572 dev/pcmcia/if_cnw.c 	m->m_pkthdr.rcvif = &sc->sc_arpcom.ac_if;
m                 573 dev/pcmcia/if_cnw.c 	m->m_pkthdr.len = totbytes;
m                 580 dev/pcmcia/if_cnw.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 581 dev/pcmcia/if_cnw.c 			if (m == 0) {
m                 588 dev/pcmcia/if_cnw.c 			MCLGET(m, M_DONTWAIT);
m                 589 dev/pcmcia/if_cnw.c 			if ((m->m_flags & M_EXT) == 0) {
m                 590 dev/pcmcia/if_cnw.c 				m_free(m);
m                 600 dev/pcmcia/if_cnw.c 			m->m_data += pad;
m                 603 dev/pcmcia/if_cnw.c 		mptr = mtod(m, u_int8_t *);
m                 604 dev/pcmcia/if_cnw.c 		mbytes = m->m_len = min(totbytes, mbytes);
m                 628 dev/pcmcia/if_cnw.c 		*mp = m;
m                 629 dev/pcmcia/if_cnw.c 		mp = &m->m_next;
m                 645 dev/pcmcia/if_cnw.c 	struct mbuf *m;
m                 656 dev/pcmcia/if_cnw.c 		m = cnw_read(sc);
m                 662 dev/pcmcia/if_cnw.c 		if (m == 0) {
m                 670 dev/pcmcia/if_cnw.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 678 dev/pcmcia/if_cnw.c 		eh = mtod(m, struct ether_header *);
m                 682 dev/pcmcia/if_cnw.c 			m_freem(m);
m                 686 dev/pcmcia/if_cnw.c 		ether_input_mbuf(ifp, m);
m                 859 dev/pcmcia/if_malo.c 	struct mbuf *m;
m                 898 dev/pcmcia/if_malo.c 	m = m_devget(sc->sc_data + rxdesc->pkgoffset - ETHER_ALIGN,
m                 900 dev/pcmcia/if_malo.c 	m_adj(m, ETHER_ALIGN);
m                 904 dev/pcmcia/if_malo.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 909 dev/pcmcia/if_malo.c 		ether_input_mbuf(ifp, m);
m                 918 dev/pcmcia/if_malo.c 	struct mbuf *m;
m                 924 dev/pcmcia/if_malo.c 	IFQ_POLL(&ifp->if_snd, m);
m                 925 dev/pcmcia/if_malo.c 	if (m == NULL)
m                 928 dev/pcmcia/if_malo.c 	IFQ_DEQUEUE(&ifp->if_snd, m);
m                 932 dev/pcmcia/if_malo.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 935 dev/pcmcia/if_malo.c 	if (cmalo_tx(sc, m) != 0)
m                 949 dev/pcmcia/if_malo.c cmalo_tx(struct malo_softc *sc, struct mbuf *m)
m                 959 dev/pcmcia/if_malo.c 	psize = sizeof(*txdesc) + m->m_pkthdr.len;
m                 960 dev/pcmcia/if_malo.c 	data = mtod(m, uint8_t *);
m                 964 dev/pcmcia/if_malo.c 	txdesc->pkglen = htole16(m->m_pkthdr.len);
m                 968 dev/pcmcia/if_malo.c 	m_copydata(m, 0, m->m_pkthdr.len, sc->sc_data + sizeof(*txdesc));
m                 969 dev/pcmcia/if_malo.c 	m_freem(m);
m                 445 dev/pcmcia/if_ray.c #define	M_PULLUP(m, s) do {	\
m                 446 dev/pcmcia/if_ray.c 	if ((m)->m_len < (s))	\
m                 447 dev/pcmcia/if_ray.c 		(m) = m_pullup((m), (s)); \
m                1150 dev/pcmcia/if_ray.c 	struct mbuf *m0, *m;
m                1293 dev/pcmcia/if_ray.c 		for (m = m0; m; m = m->m_next) {
m                1294 dev/pcmcia/if_ray.c 			if ((len = m->m_len) == 0)
m                1298 dev/pcmcia/if_ray.c 			    ifp->if_xname, (long)m, (long)bufp, (int)len));
m                1299 dev/pcmcia/if_ray.c 			d = mtod(m, u_int8_t *);
m                1374 dev/pcmcia/if_ray.c 	struct mbuf *m;
m                1393 dev/pcmcia/if_ray.c 	m = 0;
m                1421 dev/pcmcia/if_ray.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1422 dev/pcmcia/if_ray.c 	if (!m) {
m                1429 dev/pcmcia/if_ray.c 		MCLGET(m, M_DONTWAIT);
m                1430 dev/pcmcia/if_ray.c 		if ((m->m_flags & M_EXT) == 0) {
m                1433 dev/pcmcia/if_ray.c 			m_freem(m);
m                1434 dev/pcmcia/if_ray.c 			m = 0;
m                1438 dev/pcmcia/if_ray.c 	m->m_pkthdr.rcvif = ifp;
m                1439 dev/pcmcia/if_ray.c 	m->m_pkthdr.len = pktlen;
m                1440 dev/pcmcia/if_ray.c 	m->m_len = pktlen;
m                1441 dev/pcmcia/if_ray.c 	m->m_data += fudge;
m                1442 dev/pcmcia/if_ray.c 	d = mtod(m, u_int8_t *);
m                1466 dev/pcmcia/if_ray.c 			m_freem(m);
m                1467 dev/pcmcia/if_ray.c 			m = 0;
m                1472 dev/pcmcia/if_ray.c 			m_freem(m);
m                1473 dev/pcmcia/if_ray.c 			m = 0;
m                1501 dev/pcmcia/if_ray.c 	if (!m)
m                1508 dev/pcmcia/if_ray.c 		ray_dump_mbuf(sc, m);
m                1511 dev/pcmcia/if_ray.c 	frame = mtod(m, struct ieee80211_frame *);
m                1517 dev/pcmcia/if_ray.c 		m_freem(m);
m                1537 dev/pcmcia/if_ray.c 		m_freem(m);
m                1548 dev/pcmcia/if_ray.c 		m_freem(m);
m                1556 dev/pcmcia/if_ray.c 		m_freem(m);
m                1570 dev/pcmcia/if_ray.c 			m_freem(m);
m                1584 dev/pcmcia/if_ray.c 		m_freem(m);
m                1588 dev/pcmcia/if_ray.c 		m_freem(m);
m                1608 dev/pcmcia/if_ray.c 	m_adj(m, (caddr_t)eh - (caddr_t)frame);
m                1611 dev/pcmcia/if_ray.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1615 dev/pcmcia/if_ray.c 	ether_input_mbuf(ifp, m);
m                3217 dev/pcmcia/if_ray.c ray_dump_mbuf(struct ray_softc *sc, struct mbuf *m)
m                3224 dev/pcmcia/if_ray.c 	for (; m; m = m->m_next) {
m                3225 dev/pcmcia/if_ray.c 		d = mtod(m, u_int8_t *);
m                3226 dev/pcmcia/if_ray.c 		ed = d + m->m_len;
m                 757 dev/pcmcia/if_xe.c 	struct mbuf *top, **mp, *m;
m                 777 dev/pcmcia/if_xe.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 778 dev/pcmcia/if_xe.c 	if (m == 0)
m                 780 dev/pcmcia/if_xe.c 	m->m_pkthdr.rcvif = ifp;
m                 781 dev/pcmcia/if_xe.c 	m->m_pkthdr.len = pktlen;
m                 788 dev/pcmcia/if_xe.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 789 dev/pcmcia/if_xe.c 			if (m == 0) {
m                 796 dev/pcmcia/if_xe.c 			MCLGET(m, M_DONTWAIT);
m                 797 dev/pcmcia/if_xe.c 			if (!(m->m_flags & M_EXT)) {
m                 798 dev/pcmcia/if_xe.c 				m_freem(m);
m                 805 dev/pcmcia/if_xe.c 			caddr_t newdata = (caddr_t)ALIGN(m->m_data +
m                 808 dev/pcmcia/if_xe.c 			len -= newdata - m->m_data;
m                 809 dev/pcmcia/if_xe.c 			m->m_data = newdata;
m                 813 dev/pcmcia/if_xe.c 		data = mtod(m, u_int8_t *);
m                 821 dev/pcmcia/if_xe.c 		m->m_len = len;
m                 823 dev/pcmcia/if_xe.c 		*mp = m;
m                 824 dev/pcmcia/if_xe.c 		mp = &m->m_next;
m                1096 dev/pcmcia/if_xe.c 	struct mbuf *m0, *m;
m                1142 dev/pcmcia/if_xe.c 	for (m = m0; m; ) {
m                1143 dev/pcmcia/if_xe.c 		if (m->m_len > 1)
m                1145 dev/pcmcia/if_xe.c 			    mtod(m, u_int8_t *), m->m_len & ~1);
m                1146 dev/pcmcia/if_xe.c 		if (m->m_len & 1)
m                1148 dev/pcmcia/if_xe.c 			    *(mtod(m, u_int8_t *) + m->m_len - 1));
m                1149 dev/pcmcia/if_xe.c 		MFREE(m, m0);
m                1150 dev/pcmcia/if_xe.c 		m = m0;
m                  76 dev/raidframe/rf_geniq.c 	unsigned int m, p, q;
m                 113 dev/raidframe/rf_layout.c #define	RF_NU(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)
m                 115 dev/raidframe/rf_layout.c #define	RF_NU(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)	a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p
m                  71 dev/raidframe/rf_threadstuff.c _rf_create_managed_mutex(RF_ShutdownList_t **listp, RF_DECLARE_MUTEX(*m),
m                  76 dev/raidframe/rf_threadstuff.c 	rc = rf_mutex_init(m);
m                  80 dev/raidframe/rf_threadstuff.c 	rc = _rf_ShutdownCreate(listp, mutex_destroyer, (void *) m, file, line);
m                  83 dev/raidframe/rf_threadstuff.c 		rc1 = rf_mutex_destroy(m);
m                 172 dev/raidframe/rf_threadstuff.c rf_mutex_init(decl_simple_lock_data(, *m))
m                 174 dev/raidframe/rf_threadstuff.c 	simple_lock_init(m);
m                 179 dev/raidframe/rf_threadstuff.c rf_mutex_destroy(decl_simple_lock_data(, *m))
m                  96 dev/raidframe/rf_utils.c rf_gcd(int m, int n)
m                 100 dev/raidframe/rf_utils.c 	while (m > 0) {
m                 101 dev/raidframe/rf_utils.c 		t = n % m;
m                 102 dev/raidframe/rf_utils.c 		n = m;
m                 103 dev/raidframe/rf_utils.c 		m = t;
m                 462 dev/sbus/be.c  be_put(struct be_softc *sc, int idx, struct mbuf *m)
m                 470 dev/sbus/be.c  	for (; m; m = n) {
m                 471 dev/sbus/be.c  		len = m->m_len;
m                 473 dev/sbus/be.c  			MFREE(m, n);
m                 476 dev/sbus/be.c  		bcopy(mtod(m, caddr_t), bp+boff, len);
m                 479 dev/sbus/be.c  		MFREE(m, n);
m                 494 dev/sbus/be.c  	struct mbuf *m;
m                 501 dev/sbus/be.c  	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 502 dev/sbus/be.c  	if (m == NULL)
m                 504 dev/sbus/be.c  	m->m_pkthdr.rcvif = ifp;
m                 505 dev/sbus/be.c  	m->m_pkthdr.len = totlen;
m                 508 dev/sbus/be.c  	m->m_data += pad;
m                 515 dev/sbus/be.c  			MGET(m, M_DONTWAIT, MT_DATA);
m                 516 dev/sbus/be.c  			if (m == NULL) {
m                 523 dev/sbus/be.c  			MCLGET(m, M_DONTWAIT);
m                 524 dev/sbus/be.c  			if (m->m_flags & M_EXT)
m                 527 dev/sbus/be.c  		m->m_len = len = min(totlen, len);
m                 528 dev/sbus/be.c  		bcopy(bp + boff, mtod(m, caddr_t), len);
m                 531 dev/sbus/be.c  		*mp = m;
m                 532 dev/sbus/be.c  		mp = &m->m_next;
m                 545 dev/sbus/be.c  	struct mbuf *m;
m                 560 dev/sbus/be.c  	m = be_get(sc, idx, len);
m                 561 dev/sbus/be.c  	if (m == NULL) {
m                 573 dev/sbus/be.c  		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 576 dev/sbus/be.c  	ether_input_mbuf(ifp, m);
m                 593 dev/sbus/be.c  	struct mbuf *m;
m                 603 dev/sbus/be.c  		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 604 dev/sbus/be.c  		if (m == 0)
m                 613 dev/sbus/be.c  			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 619 dev/sbus/be.c  		len = be_put(sc, bix, m);
m                 827 dev/sbus/cgsix.c 	u_int32_t m;
m                 830 dev/sbus/cgsix.c 	m = FBC_READ(sc, CG6_FBC_MODE);
m                 831 dev/sbus/cgsix.c 	m &= ~FBC_MODE_MASK;
m                 832 dev/sbus/cgsix.c 	m |= FBC_MODE_VAL;
m                 833 dev/sbus/cgsix.c 	FBC_WRITE(sc, CG6_FBC_MODE, m);
m                1759 dev/sbus/magma.c 	int m = h;
m                1761 dev/sbus/magma.c 	if (m > 0)
m                1762 dev/sbus/magma.c 		m = m * 1000 / hz;
m                1763 dev/sbus/magma.c 	return (m);
m                1767 dev/sbus/magma.c mbpp_mstohz(int m)
m                1769 dev/sbus/magma.c 	int h = m;
m                 334 dev/sbus/qe.c  	struct mbuf *m;
m                 341 dev/sbus/qe.c  	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 342 dev/sbus/qe.c  	if (m == NULL)
m                 344 dev/sbus/qe.c  	m->m_pkthdr.rcvif = ifp;
m                 345 dev/sbus/qe.c  	m->m_pkthdr.len = totlen;
m                 347 dev/sbus/qe.c  	m->m_data += pad;
m                 354 dev/sbus/qe.c  			MGET(m, M_DONTWAIT, MT_DATA);
m                 355 dev/sbus/qe.c  			if (m == NULL) {
m                 362 dev/sbus/qe.c  			MCLGET(m, M_DONTWAIT);
m                 363 dev/sbus/qe.c  			if (m->m_flags & M_EXT)
m                 366 dev/sbus/qe.c  		m->m_len = len = min(totlen, len);
m                 367 dev/sbus/qe.c  		bcopy(bp + boff, mtod(m, caddr_t), len);
m                 370 dev/sbus/qe.c  		*mp = m;
m                 371 dev/sbus/qe.c  		mp = &m->m_next;
m                 382 dev/sbus/qe.c  qe_put(sc, idx, m)
m                 385 dev/sbus/qe.c  	struct mbuf *m;
m                 393 dev/sbus/qe.c  	for (; m; m = n) {
m                 394 dev/sbus/qe.c  		len = m->m_len;
m                 396 dev/sbus/qe.c  			MFREE(m, n);
m                 399 dev/sbus/qe.c  		bcopy(mtod(m, caddr_t), bp+boff, len);
m                 402 dev/sbus/qe.c  		MFREE(m, n);
m                 416 dev/sbus/qe.c  	struct mbuf *m;
m                 431 dev/sbus/qe.c  	m = qe_get(sc, idx, len);
m                 432 dev/sbus/qe.c  	if (m == NULL) {
m                 444 dev/sbus/qe.c  		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 447 dev/sbus/qe.c  	ether_input_mbuf(ifp, m);
m                 465 dev/sbus/qe.c  	struct mbuf *m;
m                 475 dev/sbus/qe.c  		IFQ_POLL(&ifp->if_snd, m);
m                 476 dev/sbus/qe.c  		if (m == NULL)
m                 479 dev/sbus/qe.c  		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 487 dev/sbus/qe.c  			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 493 dev/sbus/qe.c  		len = qe_put(sc, bix, m);
m                 309 dev/sdmmc/sbt.c 	struct mbuf *m = NULL;
m                 328 dev/sdmmc/sbt.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 329 dev/sdmmc/sbt.c 	if (m == NULL) {
m                 334 dev/sdmmc/sbt.c 	m->m_pkthdr.len = m->m_len = MHLEN;
m                 335 dev/sdmmc/sbt.c 	m_copyback(m, 0, len, sc->sc_buf);
m                 336 dev/sdmmc/sbt.c 	if (m->m_pkthdr.len == MAX(MHLEN, len)) {
m                 337 dev/sdmmc/sbt.c 		m->m_pkthdr.len = len;
m                 338 dev/sdmmc/sbt.c 		m->m_len = MIN(MHLEN, m->m_pkthdr.len);
m                 341 dev/sdmmc/sbt.c 		m_free(m);
m                 342 dev/sdmmc/sbt.c 		m = NULL;
m                 346 dev/sdmmc/sbt.c 	if (m != NULL) {
m                 350 dev/sdmmc/sbt.c 			    DEVNAME(sc), m->m_pkthdr.len));
m                 351 dev/sdmmc/sbt.c 			hci_input_acl(&sc->sc_unit, m);
m                 355 dev/sdmmc/sbt.c 			    DEVNAME(sc), m->m_pkthdr.len));
m                 356 dev/sdmmc/sbt.c 			hci_input_sco(&sc->sc_unit, m);
m                 360 dev/sdmmc/sbt.c 			    DEVNAME(sc), m->m_pkthdr.len));
m                 361 dev/sdmmc/sbt.c 			hci_input_event(&sc->sc_unit, m);
m                 365 dev/sdmmc/sbt.c 			    DEVNAME(sc), sc->sc_buf[0], m->m_pkthdr.len));
m                 367 dev/sdmmc/sbt.c 			m_free(m);
m                 420 dev/sdmmc/sbt.c 	struct mbuf *m;
m                 429 dev/sdmmc/sbt.c 	IF_DEQUEUE(q, m);
m                 444 dev/sdmmc/sbt.c 	    what, m->m_pkthdr.len));
m                 449 dev/sdmmc/sbt.c 	len = m->m_pkthdr.len;
m                 450 dev/sdmmc/sbt.c 	m_copydata(m, 0, len, sc->sc_buf);
m                 451 dev/sdmmc/sbt.c 	m_freem(m);
m                 163 dev/softraid.c #define			sr_print_metadata(m)
m                1104 dev/softraid.c 	struct sr_metadata	*sm = sd->sd_meta, *m;
m                1115 dev/softraid.c 	m = malloc(sz , M_DEVBUF, M_WAITOK);
m                1116 dev/softraid.c 	bzero(m, sz);
m                1126 dev/softraid.c 		b.b_data = (void *)m;
m                1144 dev/softraid.c 		if (m->ssd_magic != SR_MAGIC)
m                1148 dev/softraid.c 		if (sr_validate_metadata(sc, ch_entry->src_dev_mm, m)) {
m                1154 dev/softraid.c 		mv = (struct sr_vol_meta *)(m + 1);
m                1159 dev/softraid.c 			bcopy(m, sm, sz);
m                1160 dev/softraid.c 			bcopy(m, sd->sd_meta, sizeof(*sd->sd_meta));
m                1164 dev/softraid.c 			volid = m->ssd_vd_volid;
m                1183 dev/softraid.c 		if (volid != m->ssd_vd_volid) {
m                1186 dev/softraid.c 			    volid, m->ssd_vd_volid);
m                1191 dev/softraid.c 		if (m->ssd_chunk_id > m->ssd_chunk_no) {
m                1195 dev/softraid.c 			    m->ssd_chunk_id, m->ssd_chunk_no);
m                1200 dev/softraid.c 		if (sd->sd_vol.sv_chunks[m->ssd_chunk_id]) {
m                1203 dev/softraid.c 			    m->ssd_chunk_id);
m                1208 dev/softraid.c 		sd->sd_vol.sv_chunks[m->ssd_chunk_id] = ch_entry;
m                1209 dev/softraid.c 		bcopy(mc + m->ssd_chunk_id, &ch_entry->src_meta,
m                1213 dev/softraid.c 			ondisk = m->ssd_ondisk;
m                1214 dev/softraid.c 			cid = m->ssd_chunk_id;
m                1217 dev/softraid.c 		if (m->ssd_ondisk != ondisk) {
m                1220 dev/softraid.c 			    m->ssd_ondisk < ondisk ? m->ssd_chunk_id : cid);
m                1226 dev/softraid.c 	if (no_chunk != m->ssd_chunk_no) {
m                1236 dev/softraid.c 	sr_print_metadata(m);
m                1240 dev/softraid.c 	free(m, M_DEVBUF);
m                1792 dev/softraid.c 	void			*m;
m                1797 dev/softraid.c 	m = malloc(sz , M_DEVBUF, M_WAITOK);
m                1798 dev/softraid.c 	bzero(m, sz);
m                1808 dev/softraid.c 		b.b_data = (void *)m;
m                1827 dev/softraid.c 	free(m, M_DEVBUF);
m                 633 dev/usb/ehci.c 	int i, m;
m                 643 dev/usb/ehci.c 	m = min(sc->sc_noport, xfer->length * 8 - 1);
m                 645 dev/usb/ehci.c 	for (i = 1; i <= m; i++) {
m                1540 dev/usb/if_atu.c atu_newbuf(struct atu_softc *sc, struct atu_chain *c, struct mbuf *m)
m                1544 dev/usb/if_atu.c 	if (m == NULL) {
m                1561 dev/usb/if_atu.c 		m_new = m;
m                1665 dev/usb/if_atu.c 	struct mbuf		*m;
m                1723 dev/usb/if_atu.c 	m = c->atu_mbuf;
m                1724 dev/usb/if_atu.c 	memcpy(mtod(m, char *), c->atu_buf + ATU_RX_HDRLEN, len);
m                1725 dev/usb/if_atu.c 	m->m_pkthdr.rcvif = ifp;
m                1726 dev/usb/if_atu.c 	m->m_pkthdr.len = m->m_len = len;
m                1728 dev/usb/if_atu.c 	wh = mtod(m, struct ieee80211_frame *);
m                1755 dev/usb/if_atu.c 		mb.m_next = m;
m                1771 dev/usb/if_atu.c 	ieee80211_input(ifp, m, ni, h->rssi, UGETDW(h->rx_time));
m                1848 dev/usb/if_atu.c     struct atu_chain *c, struct mbuf *m)
m                1862 dev/usb/if_atu.c 		m_freem(m);
m                1879 dev/usb/if_atu.c 		mb.m_next = m;
m                1891 dev/usb/if_atu.c 	len = m->m_pkthdr.len;
m                1893 dev/usb/if_atu.c 	m_copydata(m, 0, m->m_pkthdr.len, c->atu_buf + ATU_TX_HDRLEN);
m                1906 dev/usb/if_atu.c 	c->atu_mbuf = m;
m                1919 dev/usb/if_atu.c 		m_freem(m);
m                1935 dev/usb/if_atu.c 	struct mbuf		*m = NULL;
m                1974 dev/usb/if_atu.c 		IF_DEQUEUE(&ic->ic_mgtq, m);
m                1975 dev/usb/if_atu.c 		if (m == NULL) {
m                1990 dev/usb/if_atu.c 			IFQ_DEQUEUE(&ifp->if_snd, m);
m                1991 dev/usb/if_atu.c 			if (m == NULL) {
m                2004 dev/usb/if_atu.c 				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                2007 dev/usb/if_atu.c 			m = ieee80211_encap(ifp, m, &ni);
m                2008 dev/usb/if_atu.c 			if (m == NULL)
m                2010 dev/usb/if_atu.c 			wh = mtod(m, struct ieee80211_frame *);
m                2014 dev/usb/if_atu.c 				bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_OUT);
m                2029 dev/usb/if_atu.c 			ni = (struct ieee80211_node *)m->m_pkthdr.rcvif;
m                2030 dev/usb/if_atu.c 			m->m_pkthdr.rcvif = NULL;
m                2032 dev/usb/if_atu.c 			wh = mtod(m, struct ieee80211_frame *);
m                2036 dev/usb/if_atu.c 		if (atu_tx_start(sc, ni, c, m)) {
m                 926 dev/usb/if_aue.c aue_newbuf(struct aue_softc *sc, struct aue_chain *c, struct mbuf *m)
m                 932 dev/usb/if_aue.c 	if (m == NULL) {
m                 949 dev/usb/if_aue.c 		m_new = m;
m                1065 dev/usb/if_aue.c 	struct mbuf		*m;
m                1112 dev/usb/if_aue.c 	m = c->aue_mbuf;
m                1114 dev/usb/if_aue.c 	m->m_pkthdr.len = m->m_len = total_len;
m                1117 dev/usb/if_aue.c 	m->m_pkthdr.rcvif = ifp;
m                1135 dev/usb/if_aue.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1139 dev/usb/if_aue.c 		    __func__, m->m_len));
m                1140 dev/usb/if_aue.c 	ether_input_mbuf(ifp, m);
m                1261 dev/usb/if_aue.c aue_send(struct aue_softc *sc, struct mbuf *m, int idx)
m                1275 dev/usb/if_aue.c 	m_copydata(m, 0, m->m_pkthdr.len, c->aue_buf + 2);
m                1276 dev/usb/if_aue.c 	c->aue_mbuf = m;
m                1284 dev/usb/if_aue.c 	c->aue_buf[0] = (u_int8_t)m->m_pkthdr.len;
m                1285 dev/usb/if_aue.c 	c->aue_buf[1] = (u_int8_t)(m->m_pkthdr.len >> 8);
m                1286 dev/usb/if_aue.c 	total_len = m->m_pkthdr.len + 2;
m                 832 dev/usb/if_axe.c 	struct mbuf		*m;
m                 834 dev/usb/if_axe.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 835 dev/usb/if_axe.c 	if (m == NULL)
m                 838 dev/usb/if_axe.c 	MCLGET(m, M_DONTWAIT);
m                 839 dev/usb/if_axe.c 	if (!(m->m_flags & M_EXT)) {
m                 840 dev/usb/if_axe.c 		m_freem(m);
m                 844 dev/usb/if_axe.c 	m->m_len = m->m_pkthdr.len = MCLBYTES;
m                 845 dev/usb/if_axe.c 	m_adj(m, ETHER_ALIGN);
m                 847 dev/usb/if_axe.c 	return (m);
m                 925 dev/usb/if_axe.c 	struct mbuf		*m;
m                 987 dev/usb/if_axe.c 		m = axe_newbuf();
m                 988 dev/usb/if_axe.c 		if (m == NULL) {
m                 994 dev/usb/if_axe.c 		m->m_pkthdr.rcvif = ifp;
m                 995 dev/usb/if_axe.c 		m->m_pkthdr.len = m->m_len = pktlen;
m                 997 dev/usb/if_axe.c 		memcpy(mtod(m, char *), buf, pktlen);
m                1003 dev/usb/if_axe.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1006 dev/usb/if_axe.c 		ether_input_mbuf(ifp, m);
m                1137 dev/usb/if_axe.c axe_encap(struct axe_softc *sc, struct mbuf *m, int idx)
m                1149 dev/usb/if_axe.c 		hdr.len = htole16(m->m_pkthdr.len);
m                1155 dev/usb/if_axe.c 		m_copydata(m, 0, m->m_pkthdr.len, c->axe_buf + length);
m                1156 dev/usb/if_axe.c 		length += m->m_pkthdr.len;
m                1166 dev/usb/if_axe.c 		m_copydata(m, 0, m->m_pkthdr.len, c->axe_buf);
m                1167 dev/usb/if_axe.c 		length = m->m_pkthdr.len;
m                1170 dev/usb/if_axe.c 	c->axe_mbuf = m;
m                 425 dev/usb/if_cdce.c cdce_encap(struct cdce_softc *sc, struct mbuf *m, int idx)
m                 433 dev/usb/if_cdce.c 	m_copydata(m, 0, m->m_pkthdr.len, c->cdce_buf);
m                 438 dev/usb/if_cdce.c 		crc = cdce_crc32(c->cdce_buf, m->m_pkthdr.len);
m                 439 dev/usb/if_cdce.c 		bcopy(&crc, c->cdce_buf + m->m_pkthdr.len, 4);
m                 442 dev/usb/if_cdce.c 	c->cdce_mbuf = m;
m                 445 dev/usb/if_cdce.c 	    m->m_pkthdr.len + extra, USBD_FORCE_SHORT_XFER | USBD_NO_COPY,
m                 676 dev/usb/if_cdce.c cdce_newbuf(struct cdce_softc *sc, struct cdce_chain *c, struct mbuf *m)
m                 680 dev/usb/if_cdce.c 	if (m == NULL) {
m                 696 dev/usb/if_cdce.c 		m_new = m;
m                 765 dev/usb/if_cdce.c 	struct mbuf		*m;
m                 798 dev/usb/if_cdce.c 	m = c->cdce_mbuf;
m                 799 dev/usb/if_cdce.c 	memcpy(mtod(m, char *), c->cdce_buf, total_len);
m                 808 dev/usb/if_cdce.c 	m->m_pkthdr.len = m->m_len = total_len;
m                 809 dev/usb/if_cdce.c 	m->m_pkthdr.rcvif = ifp;
m                 820 dev/usb/if_cdce.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 823 dev/usb/if_cdce.c 	ether_input_mbuf(ifp, m);
m                 104 dev/usb/if_cdcef.c int		cdcef_encap(struct cdcef_softc *sc, struct mbuf *m, int idx);
m                 374 dev/usb/if_cdcef.c 	struct mbuf		*m = NULL;
m                 420 dev/usb/if_cdcef.c 		m = cdcef_newbuf();
m                 421 dev/usb/if_cdcef.c 		if (m == NULL) {
m                 427 dev/usb/if_cdcef.c 		m->m_pkthdr.len = m->m_len = total_len;
m                 428 dev/usb/if_cdcef.c 		bcopy(sc->sc_buffer_out, mtod(m, char *), total_len);
m                 429 dev/usb/if_cdcef.c 		m->m_pkthdr.rcvif = ifp;
m                 435 dev/usb/if_cdcef.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 438 dev/usb/if_cdcef.c 		ether_input_mbuf(ifp, m);
m                 459 dev/usb/if_cdcef.c 	struct mbuf		*m;
m                 461 dev/usb/if_cdcef.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 462 dev/usb/if_cdcef.c 	if (m == NULL)
m                 465 dev/usb/if_cdcef.c 	MCLGET(m, M_DONTWAIT);
m                 466 dev/usb/if_cdcef.c 	if (!(m->m_flags & M_EXT)) {
m                 467 dev/usb/if_cdcef.c 		m_freem(m);
m                 471 dev/usb/if_cdcef.c 	m->m_len = m->m_pkthdr.len = MCLBYTES;
m                 472 dev/usb/if_cdcef.c 	m_adj(m, ETHER_ALIGN);
m                 474 dev/usb/if_cdcef.c 	return (m);
m                 575 dev/usb/if_cdcef.c cdcef_encap(struct cdcef_softc *sc, struct mbuf *m, int idx)
m                 579 dev/usb/if_cdcef.c 	m_copydata(m, 0, m->m_pkthdr.len, sc->sc_buffer_in);
m                 583 dev/usb/if_cdcef.c 	    m->m_pkthdr.len, USBD_FORCE_SHORT_XFER | USBD_NO_COPY,
m                 592 dev/usb/if_cdcef.c 	sc->sc_xmit_mbuf = m;
m                 625 dev/usb/if_cue.c cue_newbuf(struct cue_softc *sc, struct cue_chain *c, struct mbuf *m)
m                 629 dev/usb/if_cue.c 	if (m == NULL) {
m                 646 dev/usb/if_cue.c 		m_new = m;
m                 724 dev/usb/if_cue.c 	struct mbuf		*m;
m                 757 dev/usb/if_cue.c 	m = c->cue_mbuf;
m                 758 dev/usb/if_cue.c 	len = UGETW(mtod(m, u_int8_t *));
m                 769 dev/usb/if_cue.c 	m_adj(m, sizeof(u_int16_t));
m                 770 dev/usb/if_cue.c 	m->m_pkthdr.len = m->m_len = total_len;
m                 772 dev/usb/if_cue.c 	m->m_pkthdr.rcvif = ifp;
m                 790 dev/usb/if_cue.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 794 dev/usb/if_cue.c 		    __func__, m->m_len));
m                 795 dev/usb/if_cue.c 	ether_input_mbuf(ifp, m);
m                 897 dev/usb/if_cue.c cue_send(struct cue_softc *sc, struct mbuf *m, int idx)
m                 909 dev/usb/if_cue.c 	m_copydata(m, 0, m->m_pkthdr.len, c->cue_buf + 2);
m                 910 dev/usb/if_cue.c 	c->cue_mbuf = m;
m                 912 dev/usb/if_cue.c 	total_len = m->m_pkthdr.len + 2;
m                 918 dev/usb/if_cue.c 	c->cue_buf[0] = (u_int8_t)m->m_pkthdr.len;
m                 919 dev/usb/if_cue.c 	c->cue_buf[1] = (u_int8_t)(m->m_pkthdr.len >> 8);
m                 620 dev/usb/if_kue.c kue_newbuf(struct kue_softc *sc, struct kue_chain *c, struct mbuf *m)
m                 626 dev/usb/if_kue.c 	if (m == NULL) {
m                 643 dev/usb/if_kue.c 		m_new = m;
m                 720 dev/usb/if_kue.c 	struct mbuf		*m;
m                 757 dev/usb/if_kue.c 	m = c->kue_mbuf;
m                 759 dev/usb/if_kue.c 	memcpy(mtod(m, char *), c->kue_buf, total_len);
m                 762 dev/usb/if_kue.c 	total_len = UGETW(mtod(m, u_int8_t *));
m                 763 dev/usb/if_kue.c 	m_adj(m, sizeof(u_int16_t));
m                 771 dev/usb/if_kue.c 	m->m_pkthdr.len = m->m_len = total_len;
m                 773 dev/usb/if_kue.c 	m->m_pkthdr.rcvif = ifp;
m                 791 dev/usb/if_kue.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 795 dev/usb/if_kue.c 		    __func__, m->m_len));
m                 796 dev/usb/if_kue.c 	ether_input_mbuf(ifp, m);
m                 862 dev/usb/if_kue.c kue_send(struct kue_softc *sc, struct mbuf *m, int idx)
m                 876 dev/usb/if_kue.c 	m_copydata(m, 0, m->m_pkthdr.len, c->kue_buf + 2);
m                 877 dev/usb/if_kue.c 	c->kue_mbuf = m;
m                 879 dev/usb/if_kue.c 	total_len = m->m_pkthdr.len + 2;
m                 884 dev/usb/if_kue.c 	c->kue_buf[0] = (u_int8_t)m->m_pkthdr.len;
m                 885 dev/usb/if_kue.c 	c->kue_buf[1] = (u_int8_t)(m->m_pkthdr.len >> 8);
m                 481 dev/usb/if_ral.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 482 dev/usb/if_ral.c 		if (data->m == NULL) {
m                 488 dev/usb/if_ral.c 		MCLGET(data->m, M_DONTWAIT);
m                 489 dev/usb/if_ral.c 		if (!(data->m->m_flags & M_EXT)) {
m                 495 dev/usb/if_ral.c 		data->buf = mtod(data->m, uint8_t *);
m                 516 dev/usb/if_ral.c 		if (data->m != NULL) {
m                 517 dev/usb/if_ral.c 			m_freem(data->m);
m                 518 dev/usb/if_ral.c 			data->m = NULL;
m                 560 dev/usb/if_ral.c 	struct mbuf *m;
m                 602 dev/usb/if_ral.c 			m = ieee80211_beacon_alloc(ic, ni);
m                 603 dev/usb/if_ral.c 			if (m == NULL) {
m                 609 dev/usb/if_ral.c 			if (ural_tx_bcn(sc, m, ni) != 0) {
m                 610 dev/usb/if_ral.c 				m_freem(m);
m                 617 dev/usb/if_ral.c 			m_freem(m);
m                 717 dev/usb/if_ral.c 	struct mbuf *mnew, *m;
m                 766 dev/usb/if_ral.c 	m = data->m;
m                 767 dev/usb/if_ral.c 	data->m = mnew;
m                 768 dev/usb/if_ral.c 	data->buf = mtod(data->m, uint8_t *);
m                 771 dev/usb/if_ral.c 	m->m_pkthdr.rcvif = ifp;
m                 772 dev/usb/if_ral.c 	m->m_pkthdr.len = m->m_len = (letoh32(desc->flags) >> 16) & 0xfff;
m                 773 dev/usb/if_ral.c 	m_adj(m, -IEEE80211_CRC_LEN);	/* trim FCS */
m                 791 dev/usb/if_ral.c 		mb.m_next = m;
m                 799 dev/usb/if_ral.c 	wh = mtod(m, struct ieee80211_frame *);
m                 803 dev/usb/if_ral.c 	ieee80211_input(ifp, m, ni, desc->rssi, 0);
m                  68 dev/usb/if_ralvar.h 	struct mbuf		*m;
m                 565 dev/usb/if_rum.c 		MGETHDR(data->m, M_DONTWAIT, MT_DATA);
m                 566 dev/usb/if_rum.c 		if (data->m == NULL) {
m                 572 dev/usb/if_rum.c 		MCLGET(data->m, M_DONTWAIT);
m                 573 dev/usb/if_rum.c 		if (!(data->m->m_flags & M_EXT)) {
m                 579 dev/usb/if_rum.c 		data->buf = mtod(data->m, uint8_t *);
m                 600 dev/usb/if_rum.c 		if (data->m != NULL) {
m                 601 dev/usb/if_rum.c 			m_freem(data->m);
m                 602 dev/usb/if_rum.c 			data->m = NULL;
m                 776 dev/usb/if_rum.c 	struct mbuf *mnew, *m;
m                 824 dev/usb/if_rum.c 	m = data->m;
m                 825 dev/usb/if_rum.c 	data->m = mnew;
m                 826 dev/usb/if_rum.c 	data->buf = mtod(data->m, uint8_t *);
m                 829 dev/usb/if_rum.c 	m->m_pkthdr.rcvif = ifp;
m                 830 dev/usb/if_rum.c 	m->m_data = (caddr_t)(desc + 1);
m                 831 dev/usb/if_rum.c 	m->m_pkthdr.len = m->m_len = (letoh32(desc->flags) >> 16) & 0xfff;
m                 849 dev/usb/if_rum.c 		mb.m_next = m;
m                 857 dev/usb/if_rum.c 	wh = mtod(m, struct ieee80211_frame *);
m                 861 dev/usb/if_rum.c 	ieee80211_input(ifp, m, ni, desc->rssi, 0);
m                  68 dev/usb/if_rumvar.h 	struct mbuf		*m;
m                1191 dev/usb/if_uath.c 	struct mbuf *m;
m                1227 dev/usb/if_uath.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1228 dev/usb/if_uath.c 	if (m == NULL) {
m                1238 dev/usb/if_uath.c 		m_freem(m);
m                1244 dev/usb/if_uath.c 	MEXTADD(m, data->buf, sc->rxbufsz, 0, uath_free_rx_data, data);
m                1247 dev/usb/if_uath.c 	m->m_pkthdr.rcvif = ifp;
m                1248 dev/usb/if_uath.c 	m->m_data = data->buf + sizeof (uint32_t);
m                1249 dev/usb/if_uath.c 	m->m_pkthdr.len = m->m_len = betoh32(desc->len) -
m                1254 dev/usb/if_uath.c 	wh = mtod(m, struct ieee80211_frame *);
m                1265 dev/usb/if_uath.c 		m_adj(m, IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN);
m                1266 dev/usb/if_uath.c 		m_adj(m, -IEEE80211_WEP_CRCLEN);
m                1267 dev/usb/if_uath.c 		wh = mtod(m, struct ieee80211_frame *);
m                1283 dev/usb/if_uath.c 		mb.m_next = m;
m                1294 dev/usb/if_uath.c 	ieee80211_input(ifp, m, ni, (int)betoh32(desc->rssi), 0);
m                 873 dev/usb/if_udav.c udav_newbuf(struct udav_softc *sc, struct udav_chain *c, struct mbuf *m)
m                 879 dev/usb/if_udav.c 	if (m == NULL) {
m                 895 dev/usb/if_udav.c 		m_new = m;
m                1009 dev/usb/if_udav.c udav_send(struct udav_softc *sc, struct mbuf *m, int idx)
m                1021 dev/usb/if_udav.c 	m_copydata(m, 0, m->m_pkthdr.len, c->udav_buf + 2);
m                1022 dev/usb/if_udav.c 	c->udav_mbuf = m;
m                1023 dev/usb/if_udav.c 	total_len = m->m_pkthdr.len;
m                1114 dev/usb/if_udav.c 	struct mbuf *m;
m                1161 dev/usb/if_udav.c 	m = c->udav_mbuf;
m                1162 dev/usb/if_udav.c 	memcpy(mtod(m, char *), c->udav_buf + UDAV_RX_HDRLEN, total_len);
m                1166 dev/usb/if_udav.c 	m->m_pkthdr.len = m->m_len = total_len;
m                1167 dev/usb/if_udav.c 	m->m_pkthdr.rcvif = ifp;
m                1178 dev/usb/if_udav.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1182 dev/usb/if_udav.c 		 __func__, m->m_len));
m                1183 dev/usb/if_udav.c 	ether_input_mbuf(ifp, m);
m                 393 dev/usb/if_upl.c upl_newbuf(struct upl_softc *sc, struct upl_chain *c, struct mbuf *m)
m                 399 dev/usb/if_upl.c 	if (m == NULL) {
m                 416 dev/usb/if_upl.c 		m_new = m;
m                 497 dev/usb/if_upl.c 	struct mbuf		*m;
m                 527 dev/usb/if_upl.c 	m = c->upl_mbuf;
m                 531 dev/usb/if_upl.c 	m->m_pkthdr.len = m->m_len = total_len;
m                 533 dev/usb/if_upl.c 	m->m_pkthdr.rcvif = ifp;
m                 551 dev/usb/if_upl.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 556 dev/usb/if_upl.c 		    __func__, m->m_len));
m                 558 dev/usb/if_upl.c 	ether_input_mbuf(ifp, m);
m                 625 dev/usb/if_upl.c upl_send(struct upl_softc *sc, struct mbuf *m, int idx)
m                 637 dev/usb/if_upl.c 	m_copydata(m, 0, m->m_pkthdr.len, c->upl_buf);
m                 638 dev/usb/if_upl.c 	c->upl_mbuf = m;
m                 640 dev/usb/if_upl.c 	total_len = m->m_pkthdr.len;
m                1000 dev/usb/if_upl.c upl_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
m                1009 dev/usb/if_upl.c 	len = m->m_pkthdr.len;
m                1015 dev/usb/if_upl.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                1030 dev/usb/if_upl.c upl_input(struct ifnet *ifp, struct mbuf *m)
m                1051 dev/usb/if_upl.c 	IF_ENQUEUE(inq, m);
m                1054 dev/usb/if_upl.c 	ifp->if_ibytes += m->m_len;
m                 763 dev/usb/if_url.c url_newbuf(struct url_softc *sc, struct url_chain *c, struct mbuf *m)
m                 769 dev/usb/if_url.c 	if (m == NULL) {
m                 785 dev/usb/if_url.c 		m_new = m;
m                 899 dev/usb/if_url.c url_send(struct url_softc *sc, struct mbuf *m, int idx)
m                 910 dev/usb/if_url.c 	m_copydata(m, 0, m->m_pkthdr.len, c->url_buf);
m                 911 dev/usb/if_url.c 	c->url_mbuf = m;
m                 912 dev/usb/if_url.c 	total_len = m->m_pkthdr.len;
m                 996 dev/usb/if_url.c 	struct mbuf *m;
m                1052 dev/usb/if_url.c 	m = c->url_mbuf;
m                1053 dev/usb/if_url.c 	m->m_pkthdr.len = m->m_len = total_len;
m                1054 dev/usb/if_url.c 	m->m_pkthdr.rcvif = ifp;
m                1065 dev/usb/if_url.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                1069 dev/usb/if_url.c 		 __func__, m->m_len));
m                1070 dev/usb/if_url.c 	ether_input_mbuf(ifp, m);
m                1858 dev/usb/if_zyd.c 	struct mbuf *m;
m                1884 dev/usb/if_zyd.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1885 dev/usb/if_zyd.c 	if (m == NULL) {
m                1892 dev/usb/if_zyd.c 		MCLGET(m, M_DONTWAIT);
m                1893 dev/usb/if_zyd.c 		if (!(m->m_flags & M_EXT)) {
m                1896 dev/usb/if_zyd.c 			m_freem(m);
m                1901 dev/usb/if_zyd.c 	m->m_pkthdr.rcvif = ifp;
m                1902 dev/usb/if_zyd.c 	m->m_pkthdr.len = m->m_len = rlen;
m                1903 dev/usb/if_zyd.c 	bcopy((const uint8_t *)(plcp + 1), mtod(m, uint8_t *), rlen);
m                1923 dev/usb/if_zyd.c 		mb.m_next = m;
m                1932 dev/usb/if_zyd.c 	wh = mtod(m, struct ieee80211_frame *);
m                1934 dev/usb/if_zyd.c 	ieee80211_input(ifp, m, ni, stat->rssi, 0);
m                1554 dev/usb/ohci.c 	int i, m;
m                1569 dev/usb/ohci.c 	m = min(sc->sc_noport, xfer->length * 8 - 1);
m                1571 dev/usb/ohci.c 	for (i = 1; i <= m; i++) {
m                 872 dev/usb/ubt.c  	struct mbuf *m;
m                 881 dev/usb/ubt.c  	IF_DEQUEUE(&unit->hci_cmdq, m);
m                 884 dev/usb/ubt.c  			unit->hci_devname, m->m_pkthdr.len);
m                 889 dev/usb/ubt.c  	len = m->m_pkthdr.len - 1;
m                 890 dev/usb/ubt.c  	m_copydata(m, 1, len, sc->sc_cmd_buf);
m                 891 dev/usb/ubt.c  	m_freem(m);
m                 963 dev/usb/ubt.c  	struct mbuf *m;
m                 976 dev/usb/ubt.c  	IF_DEQUEUE(&unit->hci_acltxq, m);
m                 979 dev/usb/ubt.c  			unit->hci_devname, m->m_pkthdr.len);
m                 981 dev/usb/ubt.c  	len = m->m_pkthdr.len - 1;
m                 989 dev/usb/ubt.c  	m_copydata(m, 1, len, sc->sc_aclwr_buf);
m                 990 dev/usb/ubt.c  	m_freem(m);
m                1072 dev/usb/ubt.c  	struct mbuf *m;
m                1089 dev/usb/ubt.c  	m = sc->sc_scowr_mbuf;
m                1091 dev/usb/ubt.c  		if (m == NULL) {
m                1092 dev/usb/ubt.c  			IF_DEQUEUE(&sc->sc_unit.hci_scotxq, m);
m                1093 dev/usb/ubt.c  			if (m == NULL)
m                1096 dev/usb/ubt.c  			m_adj(m, 1);	/* packet type */
m                1099 dev/usb/ubt.c  		if (m->m_pkthdr.len > 0) {
m                1100 dev/usb/ubt.c  			size = MIN(m->m_pkthdr.len, space);
m                1102 dev/usb/ubt.c  			m_copydata(m, 0, size, buf);
m                1103 dev/usb/ubt.c  			m_adj(m, size);
m                1110 dev/usb/ubt.c  		if (m->m_pkthdr.len == 0) {
m                1112 dev/usb/ubt.c  			hci_complete_sco(&sc->sc_unit, m);
m                1113 dev/usb/ubt.c  			m = NULL;
m                1116 dev/usb/ubt.c  	sc->sc_scowr_mbuf = m;
m                1206 dev/usb/ubt.c  	struct mbuf *m;
m                1208 dev/usb/ubt.c  	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1209 dev/usb/ubt.c  	if (m == NULL)
m                1212 dev/usb/ubt.c  	*mtod(m, uint8_t *) = type;
m                1213 dev/usb/ubt.c  	m->m_pkthdr.len = m->m_len = MHLEN;
m                1214 dev/usb/ubt.c  	m_copyback(m, 1, count, buf);	// (extends if necessary)
m                1215 dev/usb/ubt.c  	if (m->m_pkthdr.len != MAX(MHLEN, count + 1)) {
m                1216 dev/usb/ubt.c  		m_free(m);
m                1220 dev/usb/ubt.c  	m->m_pkthdr.len = count + 1;
m                1221 dev/usb/ubt.c  	m->m_len = MIN(MHLEN, m->m_pkthdr.len);
m                1223 dev/usb/ubt.c  	return m;
m                1230 dev/usb/ubt.c  	struct mbuf *m;
m                1251 dev/usb/ubt.c  	m = ubt_mbufload(buf, count, HCI_EVENT_PKT);
m                1252 dev/usb/ubt.c  	if (m != NULL)
m                1253 dev/usb/ubt.c  		hci_input_event(&sc->sc_unit, m);
m                1303 dev/usb/ubt.c  	struct mbuf *m;
m                1343 dev/usb/ubt.c  			m = ubt_mbufload(buf, count, HCI_ACL_DATA_PKT);
m                1344 dev/usb/ubt.c  			if (m != NULL)
m                1345 dev/usb/ubt.c  				hci_input_acl(&sc->sc_unit, m);
m                1394 dev/usb/ubt.c  	struct mbuf *m;
m                1448 dev/usb/ubt.c  	m = sc->sc_scord_mbuf;
m                1449 dev/usb/ubt.c  	if (m != NULL) {
m                1451 dev/usb/ubt.c  		ptr = mtod(m, uint8_t *) + m->m_pkthdr.len;
m                1452 dev/usb/ubt.c  		got = m->m_pkthdr.len;
m                1455 dev/usb/ubt.c  			want += mtod(m, hci_scodata_hdr_t *)->length ;
m                1468 dev/usb/ubt.c  			if (m == NULL) {
m                1469 dev/usb/ubt.c  				MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1470 dev/usb/ubt.c  				if (m == NULL) {
m                1478 dev/usb/ubt.c  				ptr = mtod(m, uint8_t *);
m                1503 dev/usb/ubt.c  					want += mtod(m, hci_scodata_hdr_t *)->length;
m                1506 dev/usb/ubt.c  					m->m_pkthdr.len = m->m_len = got;
m                1508 dev/usb/ubt.c  					hci_input_sco(&sc->sc_unit, m);
m                1509 dev/usb/ubt.c  					m = NULL;
m                1517 dev/usb/ubt.c  	if (m != NULL) {
m                1518 dev/usb/ubt.c  		m->m_pkthdr.len = m->m_len = got;
m                1519 dev/usb/ubt.c  		sc->sc_scord_mbuf = m;
m                 805 dev/usb/ueagle.c 	struct mbuf *m;
m                 829 dev/usb/ueagle.c 	if (vcc->m == NULL) {
m                 830 dev/usb/ueagle.c 		MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 831 dev/usb/ueagle.c 		if (m == NULL) {
m                 836 dev/usb/ueagle.c 		MCLGET(m, M_DONTWAIT);
m                 837 dev/usb/ueagle.c 		if (!(m->m_flags & M_EXT)) {
m                 839 dev/usb/ueagle.c 			m_freem(m);
m                 843 dev/usb/ueagle.c 		vcc->m = m;
m                 844 dev/usb/ueagle.c 		vcc->dst = mtod(m, uint8_t *);
m                 863 dev/usb/ueagle.c 	m = vcc->m;
m                 865 dev/usb/ueagle.c 	totlen = vcc->dst - mtod(m, uint8_t *);
m                 878 dev/usb/ueagle.c 	crc = ueagle_crc_update(CRC_INITIAL, mtod(m, uint8_t *), totlen);
m                 886 dev/usb/ueagle.c 	m->m_pkthdr.rcvif = ifp;
m                 887 dev/usb/ueagle.c 	m->m_pkthdr.len = m->m_len = pdulen;
m                 895 dev/usb/ueagle.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 900 dev/usb/ueagle.c 	atm_input(ifp, &vcc->aph, m, vcc->rxhand);
m                 901 dev/usb/ueagle.c 	vcc->m = NULL;
m                 907 dev/usb/ueagle.c fail:	m_freem(vcc->m);
m                 908 dev/usb/ueagle.c 	vcc->m = NULL;
m                 987 dev/usb/ueagle.c 	struct mbuf *m;
m                1001 dev/usb/ueagle.c 	for (m = m0; m != NULL; m = m->m_next) {
m                1002 dev/usb/ueagle.c 		src = mtod(m, uint8_t *);
m                1003 dev/usb/ueagle.c 		mleft = m->m_len;
m                1125 dev/usb/ueagle.c 	vcc->m = NULL;
m                  98 dev/usb/ueaglevar.h 	struct mbuf		*m;
m                  33 dev/usb/umassvar.h #define DIF(m, x)	if (umassdebug & (m)) do { x ; } while (0)
m                  34 dev/usb/umassvar.h #define DPRINTF(m, x)	do { if (umassdebug & (m)) printf x; } while (0)
m                  50 dev/usb/umassvar.h #define DIF(m, x)	/* nop */
m                  51 dev/usb/umassvar.h #define DPRINTF(m, x)	/* nop */
m                  80 dev/usb/usb_port.h #define IF_INPUT(ifp, m) ether_input_mbuf((ifp), (m))
m                 564 dev/wscons/wsmux.c 	struct wsmux_softc *sc, *m;
m                 578 dev/wscons/wsmux.c 	for (m = muxsc; m != NULL ; m = m->sc_base.me_parent)
m                 579 dev/wscons/wsmux.c 		if (m == sc)
m                 226 dev/wsfont/wsfont.c 	u_char *p, *m;
m                 229 dev/wsfont/wsfont.c 	m = p + font->stride * font->numchars * font->fontheight;
m                 231 dev/wsfont/wsfont.c 	for (; p < m; p++)	
m                 405 isofs/cd9660/cd9660_node.c 	int y, m, d, hour, minute, second;
m                 409 isofs/cd9660/cd9660_node.c 	m = pi[1];
m                 424 isofs/cd9660/cd9660_node.c 		days = 367*(y-1980)-7*(y+(m+9)/12)/4-3*((y+(m-9)/7)/100+1)/4+275*m/9+d-100;
m                 430 isofs/cd9660/cd9660_node.c 		days = 367*(y-1960)-7*(y+(m+9)/12)/4-3*((y+(m+9)/12-1)/100+1)/4+275*m/9+d-239;
m                 125 kern/subr_autoconf.c mapply(struct matchinfo *m, struct cfdata *cf)
m                 130 kern/subr_autoconf.c 	if (m->indirect)
m                 131 kern/subr_autoconf.c 		match = config_make_softc(m->parent, cf);
m                 142 kern/subr_autoconf.c 	if (m->fn != NULL)
m                 143 kern/subr_autoconf.c 		pri = (*m->fn)(m->parent, match, m->aux);
m                 149 kern/subr_autoconf.c 		pri = (*cf->cf_attach->ca_match)(m->parent, match, m->aux);
m                 155 kern/subr_autoconf.c 	if (pri > m->pri) {
m                 156 kern/subr_autoconf.c 		if (m->indirect && m->match)
m                 157 kern/subr_autoconf.c 			free(m->match, M_DEVBUF);
m                 158 kern/subr_autoconf.c 		m->match = match;
m                 159 kern/subr_autoconf.c 		m->pri = pri;
m                 161 kern/subr_autoconf.c 		if (m->indirect)
m                 182 kern/subr_autoconf.c 	struct matchinfo m;
m                 185 kern/subr_autoconf.c 	m.fn = fn;
m                 186 kern/subr_autoconf.c 	m.parent = parent;
m                 187 kern/subr_autoconf.c 	m.match = NULL;
m                 188 kern/subr_autoconf.c 	m.aux = aux;
m                 189 kern/subr_autoconf.c 	m.indirect = parent && parent->dv_cfdata->cf_driver->cd_indirect;
m                 190 kern/subr_autoconf.c 	m.pri = 0;
m                 205 kern/subr_autoconf.c 					mapply(&m, cf);
m                 209 kern/subr_autoconf.c 		if (m.match) {
m                 210 kern/subr_autoconf.c 			if (m.indirect)
m                 211 kern/subr_autoconf.c 				cf = ((struct device *)m.match)->dv_cfdata;
m                 213 kern/subr_autoconf.c 				cf = (struct cfdata *)m.match;
m                 219 kern/subr_autoconf.c 	return (m.match);
m                 272 kern/subr_autoconf.c 	struct matchinfo m;
m                 274 kern/subr_autoconf.c 	m.fn = fn;
m                 275 kern/subr_autoconf.c 	m.parent = ROOT;
m                 276 kern/subr_autoconf.c 	m.match = NULL;
m                 277 kern/subr_autoconf.c 	m.aux = aux;
m                 278 kern/subr_autoconf.c 	m.indirect = 0;
m                 279 kern/subr_autoconf.c 	m.pri = 0;
m                 288 kern/subr_autoconf.c 			mapply(&m, cf);
m                 290 kern/subr_autoconf.c 	return (m.match);
m                1467 kern/tty.c     		int m = cc[VMIN];
m                1485 kern/tty.c     			if (qp->c_cc < m)
m                1489 kern/tty.c     		if (m > 0) {
m                1492 kern/tty.c     			if (qp->c_cc >= m)
m                 161 kern/uipc_mbuf.c 	struct mbuf *m;
m                 165 kern/uipc_mbuf.c 	m = pool_get(&mbpool, nowait == M_WAIT ? PR_WAITOK|PR_LIMITFAIL : 0);
m                 166 kern/uipc_mbuf.c 	if (m) {
m                 167 kern/uipc_mbuf.c 		m->m_type = type;
m                 169 kern/uipc_mbuf.c 		m->m_next = (struct mbuf *)NULL;
m                 170 kern/uipc_mbuf.c 		m->m_nextpkt = (struct mbuf *)NULL;
m                 171 kern/uipc_mbuf.c 		m->m_data = m->m_dat;
m                 172 kern/uipc_mbuf.c 		m->m_flags = 0;
m                 175 kern/uipc_mbuf.c 	return (m);
m                 181 kern/uipc_mbuf.c 	struct mbuf *m;
m                 185 kern/uipc_mbuf.c 	m = pool_get(&mbpool, nowait == M_WAIT ? PR_WAITOK|PR_LIMITFAIL : 0);
m                 186 kern/uipc_mbuf.c 	if (m) {
m                 187 kern/uipc_mbuf.c 		m->m_type = type;
m                 189 kern/uipc_mbuf.c 		m->m_next = (struct mbuf *)NULL;
m                 190 kern/uipc_mbuf.c 		m->m_nextpkt = (struct mbuf *)NULL;
m                 191 kern/uipc_mbuf.c 		m->m_data = m->m_pktdat;
m                 192 kern/uipc_mbuf.c 		m->m_flags = M_PKTHDR;
m                 193 kern/uipc_mbuf.c 		m->m_pkthdr.rcvif = NULL;
m                 194 kern/uipc_mbuf.c 		SLIST_INIT(&m->m_pkthdr.tags);
m                 195 kern/uipc_mbuf.c 		m->m_pkthdr.csum_flags = 0;
m                 196 kern/uipc_mbuf.c 		m->m_pkthdr.pf.hdr = NULL;
m                 197 kern/uipc_mbuf.c 		m->m_pkthdr.pf.rtableid = 0;
m                 198 kern/uipc_mbuf.c 		m->m_pkthdr.pf.qid = 0;
m                 199 kern/uipc_mbuf.c 		m->m_pkthdr.pf.tag = 0;
m                 200 kern/uipc_mbuf.c 		m->m_pkthdr.pf.flags = 0;
m                 201 kern/uipc_mbuf.c 		m->m_pkthdr.pf.routed = 0;
m                 204 kern/uipc_mbuf.c 	return (m);
m                 210 kern/uipc_mbuf.c 	struct mbuf *m;
m                 212 kern/uipc_mbuf.c 	MGET(m, nowait, type);
m                 213 kern/uipc_mbuf.c 	if (m == NULL)
m                 215 kern/uipc_mbuf.c 	memset(mtod(m, caddr_t), 0, MLEN);
m                 216 kern/uipc_mbuf.c 	return (m);
m                 220 kern/uipc_mbuf.c m_clget(struct mbuf *m, int how)
m                 225 kern/uipc_mbuf.c 	m->m_ext.ext_buf =
m                 228 kern/uipc_mbuf.c 	if (m->m_ext.ext_buf != NULL) {
m                 229 kern/uipc_mbuf.c 		m->m_data = m->m_ext.ext_buf;
m                 230 kern/uipc_mbuf.c 		m->m_flags |= M_EXT|M_CLUSTER;
m                 231 kern/uipc_mbuf.c 		m->m_ext.ext_size = MCLBYTES;
m                 232 kern/uipc_mbuf.c 		m->m_ext.ext_free = NULL;
m                 233 kern/uipc_mbuf.c 		m->m_ext.ext_arg = NULL;
m                 234 kern/uipc_mbuf.c 		MCLINITREFERENCE(m);
m                 239 kern/uipc_mbuf.c m_free(struct mbuf *m)
m                 245 kern/uipc_mbuf.c 	mbstat.m_mtypes[m->m_type]--;
m                 246 kern/uipc_mbuf.c 	if (m->m_flags & M_PKTHDR)
m                 247 kern/uipc_mbuf.c 		m_tag_delete_chain(m);
m                 248 kern/uipc_mbuf.c 	if (m->m_flags & M_EXT) {
m                 249 kern/uipc_mbuf.c 		if (MCLISREFERENCED(m))
m                 250 kern/uipc_mbuf.c 			_MCLDEREFERENCE(m);
m                 251 kern/uipc_mbuf.c 		else if (m->m_flags & M_CLUSTER)
m                 252 kern/uipc_mbuf.c 			pool_put(&mclpool, m->m_ext.ext_buf);
m                 253 kern/uipc_mbuf.c 		else if (m->m_ext.ext_free)
m                 254 kern/uipc_mbuf.c 			(*(m->m_ext.ext_free))(m->m_ext.ext_buf,
m                 255 kern/uipc_mbuf.c 			    m->m_ext.ext_size, m->m_ext.ext_arg);
m                 257 kern/uipc_mbuf.c 			free(m->m_ext.ext_buf,m->m_ext.ext_type);
m                 258 kern/uipc_mbuf.c 		m->m_flags &= ~(M_CLUSTER|M_EXT);
m                 259 kern/uipc_mbuf.c 		m->m_ext.ext_size = 0;
m                 261 kern/uipc_mbuf.c 	n = m->m_next;
m                 262 kern/uipc_mbuf.c 	pool_put(&mbpool, m);
m                 269 kern/uipc_mbuf.c m_freem(struct mbuf *m)
m                 273 kern/uipc_mbuf.c 	if (m == NULL)
m                 276 kern/uipc_mbuf.c 		MFREE(m, n);
m                 277 kern/uipc_mbuf.c 	} while ((m = n) != NULL);
m                 290 kern/uipc_mbuf.c m_prepend(struct mbuf *m, int len, int how)
m                 297 kern/uipc_mbuf.c 	MGET(mn, how, m->m_type);
m                 299 kern/uipc_mbuf.c 		m_freem(m);
m                 302 kern/uipc_mbuf.c 	if (m->m_flags & M_PKTHDR)
m                 303 kern/uipc_mbuf.c 		M_MOVE_PKTHDR(mn, m);
m                 304 kern/uipc_mbuf.c 	mn->m_next = m;
m                 305 kern/uipc_mbuf.c 	m = mn;
m                 306 kern/uipc_mbuf.c 	MH_ALIGN(m, len);
m                 307 kern/uipc_mbuf.c 	m->m_len = len;
m                 308 kern/uipc_mbuf.c 	return (m);
m                 319 kern/uipc_mbuf.c m_copym(struct mbuf *m, int off, int len, int wait)
m                 321 kern/uipc_mbuf.c 	return m_copym0(m, off, len, wait, 0);	/* shallow copy on M_EXT */
m                 329 kern/uipc_mbuf.c m_copym2(struct mbuf *m, int off, int len, int wait)
m                 331 kern/uipc_mbuf.c 	return m_copym0(m, off, len, wait, 1);	/* deep copy */
m                 335 kern/uipc_mbuf.c m_copym0(struct mbuf *m, int off, int len, int wait, int deep)
m                 343 kern/uipc_mbuf.c 	if (off == 0 && m->m_flags & M_PKTHDR)
m                 346 kern/uipc_mbuf.c 		if (m == NULL)
m                 348 kern/uipc_mbuf.c 		if (off < m->m_len)
m                 350 kern/uipc_mbuf.c 		off -= m->m_len;
m                 351 kern/uipc_mbuf.c 		m = m->m_next;
m                 356 kern/uipc_mbuf.c 		if (m == NULL) {
m                 361 kern/uipc_mbuf.c 		MGET(n, wait, m->m_type);
m                 366 kern/uipc_mbuf.c 			M_DUP_PKTHDR(n, m);
m                 371 kern/uipc_mbuf.c 		n->m_len = min(len, m->m_len - off);
m                 372 kern/uipc_mbuf.c 		if (m->m_flags & M_EXT) {
m                 374 kern/uipc_mbuf.c 				n->m_data = m->m_data + off;
m                 375 kern/uipc_mbuf.c 				n->m_ext = m->m_ext;
m                 376 kern/uipc_mbuf.c 				MCLADDREFERENCE(m, n);
m                 386 kern/uipc_mbuf.c 				n->m_len = min(n->m_len, m->m_len - off);
m                 387 kern/uipc_mbuf.c 				memcpy(mtod(n, caddr_t), mtod(m, caddr_t) + off,
m                 391 kern/uipc_mbuf.c 			memcpy(mtod(n, caddr_t), mtod(m, caddr_t) + off,
m                 397 kern/uipc_mbuf.c 		if (off > m->m_len)
m                 400 kern/uipc_mbuf.c 		if (off == m->m_len) {
m                 401 kern/uipc_mbuf.c 			m = m->m_next;
m                 420 kern/uipc_mbuf.c m_copydata(struct mbuf *m, int off, int len, caddr_t cp)
m                 429 kern/uipc_mbuf.c 		if (m == NULL)
m                 431 kern/uipc_mbuf.c 		if (off < m->m_len)
m                 433 kern/uipc_mbuf.c 		off -= m->m_len;
m                 434 kern/uipc_mbuf.c 		m = m->m_next;
m                 437 kern/uipc_mbuf.c 		if (m == NULL)
m                 439 kern/uipc_mbuf.c 		count = min(m->m_len - off, len);
m                 440 kern/uipc_mbuf.c 		bcopy(mtod(m, caddr_t) + off, cp, count);
m                 444 kern/uipc_mbuf.c 		m = m->m_next;
m                 458 kern/uipc_mbuf.c 	struct mbuf *m = m0, *n;
m                 464 kern/uipc_mbuf.c 	while (off > (mlen = m->m_len)) {
m                 467 kern/uipc_mbuf.c 		if (m->m_next == NULL) {
m                 468 kern/uipc_mbuf.c 			n = m_getclr(M_DONTWAIT, m->m_type);
m                 472 kern/uipc_mbuf.c 			m->m_next = n;
m                 474 kern/uipc_mbuf.c 		m = m->m_next;
m                 477 kern/uipc_mbuf.c 		mlen = min (m->m_len - off, len);
m                 478 kern/uipc_mbuf.c 		bcopy(cp, off + mtod(m, caddr_t), (unsigned)mlen);
m                 486 kern/uipc_mbuf.c 		if (m->m_next == NULL) {
m                 487 kern/uipc_mbuf.c 			n = m_get(M_DONTWAIT, m->m_type);
m                 491 kern/uipc_mbuf.c 			m->m_next = n;
m                 493 kern/uipc_mbuf.c 		m = m->m_next;
m                 495 kern/uipc_mbuf.c out:	if (((m = m0)->m_flags & M_PKTHDR) && (m->m_pkthdr.len < totlen))
m                 496 kern/uipc_mbuf.c 		m->m_pkthdr.len = totlen;
m                 507 kern/uipc_mbuf.c m_cat(struct mbuf *m, struct mbuf *n)
m                 509 kern/uipc_mbuf.c 	while (m->m_next)
m                 510 kern/uipc_mbuf.c 		m = m->m_next;
m                 512 kern/uipc_mbuf.c 		if (M_READONLY(m) || n->m_len > M_TRAILINGSPACE(m)) {
m                 514 kern/uipc_mbuf.c 			m->m_next = n;
m                 518 kern/uipc_mbuf.c 		bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
m                 520 kern/uipc_mbuf.c 		m->m_len += n->m_len;
m                 529 kern/uipc_mbuf.c 	struct mbuf *m;
m                 532 kern/uipc_mbuf.c 	if ((m = mp) == NULL)
m                 538 kern/uipc_mbuf.c 		while (m != NULL && len > 0) {
m                 539 kern/uipc_mbuf.c 			if (m->m_len <= len) {
m                 540 kern/uipc_mbuf.c 				len -= m->m_len;
m                 541 kern/uipc_mbuf.c 				m->m_len = 0;
m                 542 kern/uipc_mbuf.c 				m = m->m_next;
m                 544 kern/uipc_mbuf.c 				m->m_len -= len;
m                 545 kern/uipc_mbuf.c 				m->m_data += len;
m                 549 kern/uipc_mbuf.c 		m = mp;
m                 551 kern/uipc_mbuf.c 			m->m_pkthdr.len -= (req_len - len);
m                 563 kern/uipc_mbuf.c 			count += m->m_len;
m                 564 kern/uipc_mbuf.c 			if (m->m_next == NULL)
m                 566 kern/uipc_mbuf.c 			m = m->m_next;
m                 568 kern/uipc_mbuf.c 		if (m->m_len >= len) {
m                 569 kern/uipc_mbuf.c 			m->m_len -= len;
m                 582 kern/uipc_mbuf.c 		m = mp;
m                 583 kern/uipc_mbuf.c 		if (m->m_flags & M_PKTHDR)
m                 584 kern/uipc_mbuf.c 			m->m_pkthdr.len = count;
m                 585 kern/uipc_mbuf.c 		for (; m; m = m->m_next) {
m                 586 kern/uipc_mbuf.c 			if (m->m_len >= count) {
m                 587 kern/uipc_mbuf.c 				m->m_len = count;
m                 590 kern/uipc_mbuf.c 			count -= m->m_len;
m                 592 kern/uipc_mbuf.c 		while ((m = m->m_next) != NULL)
m                 593 kern/uipc_mbuf.c 			m->m_len = 0;
m                 610 kern/uipc_mbuf.c 	struct mbuf *m;
m                 623 kern/uipc_mbuf.c 		m = n;
m                 625 kern/uipc_mbuf.c 		len -= m->m_len;
m                 629 kern/uipc_mbuf.c 		MGET(m, M_DONTWAIT, n->m_type);
m                 630 kern/uipc_mbuf.c 		if (m == NULL)
m                 632 kern/uipc_mbuf.c 		m->m_len = 0;
m                 634 kern/uipc_mbuf.c 			M_MOVE_PKTHDR(m, n);
m                 636 kern/uipc_mbuf.c 	space = &m->m_dat[MLEN] - (m->m_data + m->m_len);
m                 639 kern/uipc_mbuf.c 		bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
m                 642 kern/uipc_mbuf.c 		m->m_len += count;
m                 651 kern/uipc_mbuf.c 		(void)m_free(m);
m                 654 kern/uipc_mbuf.c 	m->m_next = n;
m                 655 kern/uipc_mbuf.c 	return (m);
m                 674 kern/uipc_mbuf.c 	struct mbuf *m;
m                 683 kern/uipc_mbuf.c 		m = n;
m                 685 kern/uipc_mbuf.c 		len -= m->m_len;
m                 689 kern/uipc_mbuf.c 		MGET(m, M_DONTWAIT, n->m_type);
m                 690 kern/uipc_mbuf.c 		if (m == NULL)
m                 692 kern/uipc_mbuf.c 		MCLGET(m, M_DONTWAIT);
m                 693 kern/uipc_mbuf.c 		if ((m->m_flags & M_EXT) == 0)
m                 695 kern/uipc_mbuf.c 		m->m_len = 0;
m                 699 kern/uipc_mbuf.c 			m->m_flags = (n->m_flags & M_COPYFLAGS) |
m                 701 kern/uipc_mbuf.c 			M_MOVE_HDR(m, n);
m                 708 kern/uipc_mbuf.c 		bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
m                 711 kern/uipc_mbuf.c 		m->m_len += count;
m                 719 kern/uipc_mbuf.c 		(void)m_free(m);
m                 722 kern/uipc_mbuf.c 	m->m_next = n;
m                 724 kern/uipc_mbuf.c 	return (m);
m                 735 kern/uipc_mbuf.c m_getptr(struct mbuf *m, int loc, int *off)
m                 739 kern/uipc_mbuf.c 		if (m->m_len > loc) {
m                 741 kern/uipc_mbuf.c 	    		return (m);
m                 744 kern/uipc_mbuf.c 	    		loc -= m->m_len;
m                 746 kern/uipc_mbuf.c 	    		if (m->m_next == NULL) {
m                 749 kern/uipc_mbuf.c 		    			*off = m->m_len;
m                 750 kern/uipc_mbuf.c 		    			return (m);
m                 755 kern/uipc_mbuf.c 	      			m = m->m_next;
m                 775 kern/uipc_mbuf.c 	struct mbuf *m, *n, *n2 = NULL, *n3;
m                 780 kern/uipc_mbuf.c 	for (m = m0; m && len > m->m_len; m = m->m_next)
m                 781 kern/uipc_mbuf.c 		len -= m->m_len;
m                 782 kern/uipc_mbuf.c 	if (m == NULL)
m                 784 kern/uipc_mbuf.c 	remain = m->m_len - len;
m                 786 kern/uipc_mbuf.c 	        if ((m->m_next) && (M_LEADINGSPACE(m->m_next) >= siz)) {
m                 787 kern/uipc_mbuf.c 		        m->m_next->m_len += siz;
m                 790 kern/uipc_mbuf.c 			m->m_next->m_data -= siz;
m                 791 kern/uipc_mbuf.c 			return m->m_next;
m                 794 kern/uipc_mbuf.c 	        n2 = m_copym2(m, len, remain, wait);
m                 809 kern/uipc_mbuf.c 	m->m_len -= remain; /* Trim */
m                 818 kern/uipc_mbuf.c 	n3->m_next = m->m_next;
m                 819 kern/uipc_mbuf.c 	m->m_next = n;
m                 831 kern/uipc_mbuf.c 	struct mbuf *m, *n;
m                 834 kern/uipc_mbuf.c 	for (m = m0; m && len > m->m_len; m = m->m_next)
m                 835 kern/uipc_mbuf.c 		len -= m->m_len;
m                 836 kern/uipc_mbuf.c 	if (m == NULL)
m                 838 kern/uipc_mbuf.c 	remain = m->m_len - len;
m                 847 kern/uipc_mbuf.c 		if (m->m_flags & M_EXT)
m                 852 kern/uipc_mbuf.c 			n->m_next = m_split(m, len, wait);
m                 862 kern/uipc_mbuf.c 		n = m->m_next;
m                 863 kern/uipc_mbuf.c 		m->m_next = NULL;
m                 866 kern/uipc_mbuf.c 		MGET(n, wait, m->m_type);
m                 872 kern/uipc_mbuf.c 	if (m->m_flags & M_EXT) {
m                 873 kern/uipc_mbuf.c 		n->m_ext = m->m_ext;
m                 874 kern/uipc_mbuf.c 		MCLADDREFERENCE(m, n);
m                 875 kern/uipc_mbuf.c 		n->m_data = m->m_data + len;
m                 877 kern/uipc_mbuf.c 		bcopy(mtod(m, caddr_t) + len, mtod(n, caddr_t), remain);
m                 880 kern/uipc_mbuf.c 	m->m_len = len;
m                 881 kern/uipc_mbuf.c 	n->m_next = m->m_next;
m                 882 kern/uipc_mbuf.c 	m->m_next = NULL;
m                 893 kern/uipc_mbuf.c 	struct mbuf *m;
m                 909 kern/uipc_mbuf.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 910 kern/uipc_mbuf.c 	if (m == NULL)
m                 912 kern/uipc_mbuf.c 	m->m_pkthdr.rcvif = ifp;
m                 913 kern/uipc_mbuf.c 	m->m_pkthdr.len = totlen;
m                 914 kern/uipc_mbuf.c 	m->m_len = MHLEN;
m                 918 kern/uipc_mbuf.c 			MGET(m, M_DONTWAIT, MT_DATA);
m                 919 kern/uipc_mbuf.c 			if (m == NULL) {
m                 923 kern/uipc_mbuf.c 			m->m_len = MLEN;
m                 927 kern/uipc_mbuf.c 			MCLGET(m, M_DONTWAIT);
m                 928 kern/uipc_mbuf.c 			if (m->m_flags & M_EXT)
m                 929 kern/uipc_mbuf.c 				m->m_len = len = min(len, MCLBYTES);
m                 931 kern/uipc_mbuf.c 				len = m->m_len;
m                 936 kern/uipc_mbuf.c 			if (len < m->m_len) {
m                 938 kern/uipc_mbuf.c 				    len + max_linkhdr <= m->m_len)
m                 939 kern/uipc_mbuf.c 					m->m_data += max_linkhdr;
m                 940 kern/uipc_mbuf.c 				m->m_len = len;
m                 942 kern/uipc_mbuf.c 				len = m->m_len;
m                 945 kern/uipc_mbuf.c 			copy(cp, mtod(m, caddr_t), (size_t)len);
m                 947 kern/uipc_mbuf.c 			bcopy(cp, mtod(m, caddr_t), (size_t)len);
m                 949 kern/uipc_mbuf.c 		*mp = m;
m                 950 kern/uipc_mbuf.c 		mp = &m->m_next;
m                 959 kern/uipc_mbuf.c m_zero(struct mbuf *m)
m                 961 kern/uipc_mbuf.c 	while (m) {
m                 963 kern/uipc_mbuf.c 		if (M_READONLY(m))
m                 966 kern/uipc_mbuf.c 		if (m->m_flags & M_EXT)
m                 967 kern/uipc_mbuf.c 			memset(m->m_ext.ext_buf, 0, m->m_ext.ext_size);
m                 969 kern/uipc_mbuf.c 			if (m->m_flags & M_PKTHDR)
m                 970 kern/uipc_mbuf.c 				memset(m->m_pktdat, 0, MHLEN);
m                 972 kern/uipc_mbuf.c 				memset(m->m_dat, 0, MLEN);
m                 974 kern/uipc_mbuf.c 		m = m->m_next;
m                 983 kern/uipc_mbuf.c m_apply(struct mbuf *m, int off, int len,
m                 994 kern/uipc_mbuf.c 		if (m == NULL)
m                 996 kern/uipc_mbuf.c 		if (off < m->m_len)
m                 998 kern/uipc_mbuf.c 		off -= m->m_len;
m                 999 kern/uipc_mbuf.c 		m = m->m_next;
m                1002 kern/uipc_mbuf.c 		if (m == NULL)
m                1004 kern/uipc_mbuf.c 		count = min(m->m_len - off, len);
m                1006 kern/uipc_mbuf.c 		rval = f(fstate, mtod(m, caddr_t) + off, count);
m                1012 kern/uipc_mbuf.c 		m = m->m_next;
m                  85 kern/uipc_mbuf2.c m_pulldown(struct mbuf *m, int off, int len, int *offp)
m                  92 kern/uipc_mbuf2.c 	if (m == NULL)
m                  95 kern/uipc_mbuf2.c 		m_freem(m);
m                  99 kern/uipc_mbuf2.c 	n = m;
m                 110 kern/uipc_mbuf2.c 		m_freem(m);
m                 134 kern/uipc_mbuf2.c 			m_freem(m);
m                 163 kern/uipc_mbuf2.c 		m_freem(m);
m                 193 kern/uipc_mbuf2.c 	MGET(o, M_DONTWAIT, m->m_type);
m                 202 kern/uipc_mbuf2.c 		m_freem(m);
m                 225 kern/uipc_mbuf2.c m_dup1(struct mbuf *m, int off, int len, int wait)
m                 232 kern/uipc_mbuf2.c 	if (off == 0 && (m->m_flags & M_PKTHDR) != 0) {
m                 233 kern/uipc_mbuf2.c 		MGETHDR(n, wait, m->m_type);
m                 236 kern/uipc_mbuf2.c 		M_DUP_PKTHDR(n, m);
m                 239 kern/uipc_mbuf2.c 		MGET(n, wait, m->m_type);
m                 252 kern/uipc_mbuf2.c 	m_copydata(m, off, len, mtod(n, caddr_t));
m                 276 kern/uipc_mbuf2.c m_tag_prepend(struct mbuf *m, struct m_tag *t)
m                 278 kern/uipc_mbuf2.c 	SLIST_INSERT_HEAD(&m->m_pkthdr.tags, t, m_tag_link);
m                 283 kern/uipc_mbuf2.c m_tag_delete(struct mbuf *m, struct m_tag *t)
m                 285 kern/uipc_mbuf2.c 	SLIST_REMOVE(&m->m_pkthdr.tags, t, m_tag, m_tag_link);
m                 291 kern/uipc_mbuf2.c m_tag_delete_chain(struct mbuf *m)
m                 295 kern/uipc_mbuf2.c 	while ((p = SLIST_FIRST(&m->m_pkthdr.tags)) != NULL) {
m                 296 kern/uipc_mbuf2.c 		SLIST_REMOVE_HEAD(&m->m_pkthdr.tags, m_tag_link);
m                 303 kern/uipc_mbuf2.c m_tag_find(struct mbuf *m, int type, struct m_tag *t)
m                 308 kern/uipc_mbuf2.c 		p = SLIST_FIRST(&m->m_pkthdr.tags);
m                 361 kern/uipc_mbuf2.c m_tag_init(struct mbuf *m)
m                 363 kern/uipc_mbuf2.c 	SLIST_INIT(&m->m_pkthdr.tags);
m                 368 kern/uipc_mbuf2.c m_tag_first(struct mbuf *m)
m                 370 kern/uipc_mbuf2.c 	return (SLIST_FIRST(&m->m_pkthdr.tags));
m                 375 kern/uipc_mbuf2.c m_tag_next(struct mbuf *m, struct m_tag *t)
m                 367 kern/uipc_socket.c 	struct mbuf *m;
m                 452 kern/uipc_socket.c 					MGETHDR(m, M_WAIT, MT_DATA);
m                 454 kern/uipc_socket.c 					m->m_pkthdr.len = 0;
m                 455 kern/uipc_socket.c 					m->m_pkthdr.rcvif = (struct ifnet *)0;
m                 457 kern/uipc_socket.c 					MGET(m, M_WAIT, MT_DATA);
m                 461 kern/uipc_socket.c 					MCLGET(m, M_WAIT);
m                 462 kern/uipc_socket.c 					if ((m->m_flags & M_EXT) == 0)
m                 467 kern/uipc_socket.c 						m->m_data += max_hdr;
m                 480 kern/uipc_socket.c 						MH_ALIGN(m, len);
m                 482 kern/uipc_socket.c 				error = uiomove(mtod(m, caddr_t), (int)len,
m                 485 kern/uipc_socket.c 				m->m_len = len;
m                 486 kern/uipc_socket.c 				*mp = m;
m                 490 kern/uipc_socket.c 				mp = &m->m_next;
m                 548 kern/uipc_socket.c 	struct mbuf *m, **mp;
m                 569 kern/uipc_socket.c 		m = m_get(M_WAIT, MT_DATA);
m                 570 kern/uipc_socket.c 		error = (*pr->pr_usrreq)(so, PRU_RCVOOB, m,
m                 575 kern/uipc_socket.c 			error = uiomove(mtod(m, caddr_t),
m                 576 kern/uipc_socket.c 			    (int) min(uio->uio_resid, m->m_len), uio);
m                 577 kern/uipc_socket.c 			m = m_free(m);
m                 578 kern/uipc_socket.c 		} while (uio->uio_resid && error == 0 && m);
m                 580 kern/uipc_socket.c 		if (m)
m                 581 kern/uipc_socket.c 			m_freem(m);
m                 594 kern/uipc_socket.c 	m = so->so_rcv.sb_mb;
m                 606 kern/uipc_socket.c 	if (m == NULL || (((flags & MSG_DONTWAIT) == 0 &&
m                 610 kern/uipc_socket.c 	    m->m_nextpkt == NULL && (pr->pr_flags & PR_ATOMIC) == 0)) {
m                 612 kern/uipc_socket.c 		if (m == NULL && so->so_rcv.sb_cc)
m                 616 kern/uipc_socket.c 			if (m)
m                 624 kern/uipc_socket.c 			if (m)
m                 629 kern/uipc_socket.c 		for (; m; m = m->m_next)
m                 630 kern/uipc_socket.c 			if (m->m_type == MT_OOBDATA  || (m->m_flags & M_EOR)) {
m                 631 kern/uipc_socket.c 				m = so->so_rcv.sb_mb;
m                 662 kern/uipc_socket.c 	KASSERT(m == so->so_rcv.sb_mb);
m                 665 kern/uipc_socket.c 	nextrecord = m->m_nextpkt;
m                 668 kern/uipc_socket.c 		if (m->m_type != MT_SONAME)
m                 674 kern/uipc_socket.c 				*paddr = m_copy(m, 0, m->m_len);
m                 675 kern/uipc_socket.c 			m = m->m_next;
m                 677 kern/uipc_socket.c 			sbfree(&so->so_rcv, m);
m                 679 kern/uipc_socket.c 				*paddr = m;
m                 680 kern/uipc_socket.c 				so->so_rcv.sb_mb = m->m_next;
m                 681 kern/uipc_socket.c 				m->m_next = 0;
m                 682 kern/uipc_socket.c 				m = so->so_rcv.sb_mb;
m                 684 kern/uipc_socket.c 				MFREE(m, so->so_rcv.sb_mb);
m                 685 kern/uipc_socket.c 				m = so->so_rcv.sb_mb;
m                 689 kern/uipc_socket.c 	while (m && m->m_type == MT_CONTROL && error == 0) {
m                 692 kern/uipc_socket.c 				*controlp = m_copy(m, 0, m->m_len);
m                 693 kern/uipc_socket.c 			m = m->m_next;
m                 695 kern/uipc_socket.c 			sbfree(&so->so_rcv, m);
m                 698 kern/uipc_socket.c 				    mtod(m, struct cmsghdr *)->cmsg_type ==
m                 700 kern/uipc_socket.c 				   error = (*pr->pr_domain->dom_externalize)(m);
m                 701 kern/uipc_socket.c 				*controlp = m;
m                 702 kern/uipc_socket.c 				so->so_rcv.sb_mb = m->m_next;
m                 703 kern/uipc_socket.c 				m->m_next = 0;
m                 704 kern/uipc_socket.c 				m = so->so_rcv.sb_mb;
m                 711 kern/uipc_socket.c 				    mtod(m, struct cmsghdr *)->cmsg_type == SCM_RIGHTS)
m                 712 kern/uipc_socket.c 					pr->pr_domain->dom_dispose(m);
m                 713 kern/uipc_socket.c 				MFREE(m, so->so_rcv.sb_mb);
m                 714 kern/uipc_socket.c 				m = so->so_rcv.sb_mb;
m                 729 kern/uipc_socket.c 	if (m) {
m                 731 kern/uipc_socket.c 			m->m_nextpkt = nextrecord;
m                 738 kern/uipc_socket.c 				KASSERT(so->so_rcv.sb_mb == m);
m                 739 kern/uipc_socket.c 				so->so_rcv.sb_lastrecord = m;
m                 742 kern/uipc_socket.c 		type = m->m_type;
m                 745 kern/uipc_socket.c 		if (m->m_flags & M_BCAST)
m                 747 kern/uipc_socket.c 		if (m->m_flags & M_MCAST)
m                 751 kern/uipc_socket.c 			KASSERT(so->so_rcv.sb_mb == m);
m                 761 kern/uipc_socket.c 	while (m && uio->uio_resid > 0 && error == 0) {
m                 762 kern/uipc_socket.c 		if (m->m_type == MT_OOBDATA) {
m                 768 kern/uipc_socket.c 		else if (m->m_type != MT_DATA && m->m_type != MT_HEADER)
m                 775 kern/uipc_socket.c 		if (len > m->m_len - moff)
m                 776 kern/uipc_socket.c 			len = m->m_len - moff;
m                 791 kern/uipc_socket.c 				uiomove(mtod(m, caddr_t) + moff, (int)len,
m                 798 kern/uipc_socket.c 		if (len == m->m_len - moff) {
m                 799 kern/uipc_socket.c 			if (m->m_flags & M_EOR)
m                 802 kern/uipc_socket.c 				m = m->m_next;
m                 805 kern/uipc_socket.c 				nextrecord = m->m_nextpkt;
m                 806 kern/uipc_socket.c 				sbfree(&so->so_rcv, m);
m                 808 kern/uipc_socket.c 					*mp = m;
m                 809 kern/uipc_socket.c 					mp = &m->m_next;
m                 810 kern/uipc_socket.c 					so->so_rcv.sb_mb = m = m->m_next;
m                 813 kern/uipc_socket.c 					MFREE(m, so->so_rcv.sb_mb);
m                 814 kern/uipc_socket.c 					m = so->so_rcv.sb_mb;
m                 820 kern/uipc_socket.c 				KASSERT(so->so_rcv.sb_mb == m);
m                 821 kern/uipc_socket.c 				if (m) {
m                 822 kern/uipc_socket.c 					m->m_nextpkt = nextrecord;
m                 824 kern/uipc_socket.c 						so->so_rcv.sb_lastrecord = m;
m                 837 kern/uipc_socket.c 					*mp = m_copym(m, 0, len, M_WAIT);
m                 838 kern/uipc_socket.c 				m->m_data += len;
m                 839 kern/uipc_socket.c 				m->m_len -= len;
m                 866 kern/uipc_socket.c 		while (flags & MSG_WAITALL && m == NULL && uio->uio_resid > 0 &&
m                 878 kern/uipc_socket.c 			if ((m = so->so_rcv.sb_mb) != NULL)
m                 879 kern/uipc_socket.c 				nextrecord = m->m_nextpkt;
m                 883 kern/uipc_socket.c 	if (m && pr->pr_flags & PR_ATOMIC) {
m                 889 kern/uipc_socket.c 		if (m == NULL) {
m                 975 kern/uipc_socket.c 	struct mbuf *m = m0;
m                 986 kern/uipc_socket.c 			if (m == NULL || m->m_len != sizeof (struct linger) ||
m                 987 kern/uipc_socket.c 			    mtod(m, struct linger *)->l_linger < 0 ||
m                 988 kern/uipc_socket.c 			    mtod(m, struct linger *)->l_linger > SHRT_MAX) {
m                 992 kern/uipc_socket.c 			so->so_linger = mtod(m, struct linger *)->l_linger;
m                1004 kern/uipc_socket.c 			if (m == NULL || m->m_len < sizeof (int)) {
m                1008 kern/uipc_socket.c 			if (*mtod(m, int *))
m                1021 kern/uipc_socket.c 			if (m == NULL || m->m_len < sizeof (int)) {
m                1025 kern/uipc_socket.c 			cnt = *mtod(m, int *);
m                1064 kern/uipc_socket.c 			if (m == NULL || m->m_len < sizeof (*tv)) {
m                1068 kern/uipc_socket.c 			tv = mtod(m, struct timeval *);
m                1096 kern/uipc_socket.c 			m = NULL;	/* freed by protocol */
m                1100 kern/uipc_socket.c 	if (m)
m                1101 kern/uipc_socket.c 		(void) m_free(m);
m                1108 kern/uipc_socket.c 	struct mbuf *m;
m                1117 kern/uipc_socket.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                1118 kern/uipc_socket.c 		m->m_len = sizeof (int);
m                1123 kern/uipc_socket.c 			m->m_len = sizeof (struct linger);
m                1124 kern/uipc_socket.c 			mtod(m, struct linger *)->l_onoff =
m                1126 kern/uipc_socket.c 			mtod(m, struct linger *)->l_linger = so->so_linger;
m                1138 kern/uipc_socket.c 			*mtod(m, int *) = so->so_options & optname;
m                1142 kern/uipc_socket.c 			*mtod(m, int *) = so->so_type;
m                1146 kern/uipc_socket.c 			*mtod(m, int *) = so->so_error;
m                1151 kern/uipc_socket.c 			*mtod(m, int *) = so->so_snd.sb_hiwat;
m                1155 kern/uipc_socket.c 			*mtod(m, int *) = so->so_rcv.sb_hiwat;
m                1159 kern/uipc_socket.c 			*mtod(m, int *) = so->so_snd.sb_lowat;
m                1163 kern/uipc_socket.c 			*mtod(m, int *) = so->so_rcv.sb_lowat;
m                1172 kern/uipc_socket.c 			m->m_len = sizeof(struct timeval);
m                1173 kern/uipc_socket.c 			mtod(m, struct timeval *)->tv_sec = val / hz;
m                1174 kern/uipc_socket.c 			mtod(m, struct timeval *)->tv_usec =
m                1180 kern/uipc_socket.c 			(void)m_free(m);
m                1183 kern/uipc_socket.c 		*mp = m;
m                 452 kern/uipc_socket2.c 	struct mbuf *m = sb->sb_mb;
m                 454 kern/uipc_socket2.c 	while (m && m->m_nextpkt)
m                 455 kern/uipc_socket2.c 		m = m->m_nextpkt;
m                 457 kern/uipc_socket2.c 	if (m != sb->sb_lastrecord) {
m                 459 kern/uipc_socket2.c 		    sb->sb_mb, sb->sb_lastrecord, m);
m                 461 kern/uipc_socket2.c 		for (m = sb->sb_mb; m != NULL; m = m->m_nextpkt)
m                 462 kern/uipc_socket2.c 			printf("\t%p\n", m);
m                 470 kern/uipc_socket2.c 	struct mbuf *m = sb->sb_mb;
m                 473 kern/uipc_socket2.c 	while (m && m->m_nextpkt)
m                 474 kern/uipc_socket2.c 		m = m->m_nextpkt;
m                 476 kern/uipc_socket2.c 	while (m && m->m_next)
m                 477 kern/uipc_socket2.c 		m = m->m_next;
m                 479 kern/uipc_socket2.c 	if (m != sb->sb_mbtail) {
m                 481 kern/uipc_socket2.c 		    sb->sb_mb, sb->sb_mbtail, m);
m                 483 kern/uipc_socket2.c 		for (m = sb->sb_mb; m != NULL; m = m->m_nextpkt) {
m                 485 kern/uipc_socket2.c 			for (n = m; n != NULL; n = n->m_next)
m                 510 kern/uipc_socket2.c sbappend(struct sockbuf *sb, struct mbuf *m)
m                 514 kern/uipc_socket2.c 	if (m == NULL)
m                 527 kern/uipc_socket2.c 				sbappendrecord(sb, m); /* XXXXXX!!!! */
m                 536 kern/uipc_socket2.c 		sb->sb_lastrecord = m;
m                 538 kern/uipc_socket2.c 	sbcompress(sb, m, n);
m                 548 kern/uipc_socket2.c sbappendstream(struct sockbuf *sb, struct mbuf *m)
m                 551 kern/uipc_socket2.c 	KDASSERT(m->m_nextpkt == NULL);
m                 556 kern/uipc_socket2.c 	sbcompress(sb, m, sb->sb_mbtail);
m                 566 kern/uipc_socket2.c 	struct mbuf *m;
m                 569 kern/uipc_socket2.c 	for (m = sb->sb_mb; m; m = m->m_next) {
m                 570 kern/uipc_socket2.c 		len += m->m_len;
m                 572 kern/uipc_socket2.c 		if (m->m_flags & M_EXT)
m                 573 kern/uipc_socket2.c 			mbcnt += m->m_ext.ext_size;
m                 574 kern/uipc_socket2.c 		if (m->m_nextpkt)
m                 592 kern/uipc_socket2.c 	struct mbuf *m;
m                 604 kern/uipc_socket2.c 	m = m0->m_next;
m                 606 kern/uipc_socket2.c 	if (m && (m0->m_flags & M_EOR)) {
m                 608 kern/uipc_socket2.c 		m->m_flags |= M_EOR;
m                 610 kern/uipc_socket2.c 	sbcompress(sb, m, m0);
m                 622 kern/uipc_socket2.c 	struct mbuf *m, **mp;
m                 629 kern/uipc_socket2.c 	for (mp = &sb->sb_mb; (m = *mp) != NULL; mp = &((*mp)->m_nextpkt)) {
m                 631 kern/uipc_socket2.c 		switch (m->m_type) {
m                 637 kern/uipc_socket2.c 			if ((m = m->m_next) != NULL)
m                 653 kern/uipc_socket2.c 	m = m0->m_next;
m                 655 kern/uipc_socket2.c 	if (m && (m0->m_flags & M_EOR)) {
m                 657 kern/uipc_socket2.c 		m->m_flags |= M_EOR;
m                 659 kern/uipc_socket2.c 	sbcompress(sb, m, m0);
m                 673 kern/uipc_socket2.c 	struct mbuf *m, *n, *nlast;
m                 689 kern/uipc_socket2.c 	MGET(m, M_DONTWAIT, MT_SONAME);
m                 690 kern/uipc_socket2.c 	if (m == NULL)
m                 692 kern/uipc_socket2.c 	m->m_len = asa->sa_len;
m                 693 kern/uipc_socket2.c 	bcopy(asa, mtod(m, caddr_t), asa->sa_len);
m                 698 kern/uipc_socket2.c 	m->m_next = control;
m                 702 kern/uipc_socket2.c 	for (n = m; n->m_next != NULL; n = n->m_next)
m                 706 kern/uipc_socket2.c 	SBLINKRECORD(sb, m);
m                 719 kern/uipc_socket2.c 	struct mbuf *m, *mlast, *n;
m                 724 kern/uipc_socket2.c 	for (m = control; ; m = m->m_next) {
m                 725 kern/uipc_socket2.c 		space += m->m_len;
m                 726 kern/uipc_socket2.c 		if (m->m_next == NULL)
m                 729 kern/uipc_socket2.c 	n = m;			/* save pointer to last control buffer */
m                 730 kern/uipc_socket2.c 	for (m = m0; m; m = m->m_next)
m                 731 kern/uipc_socket2.c 		space += m->m_len;
m                 738 kern/uipc_socket2.c 	for (m = control; m->m_next != NULL; m = m->m_next)
m                 739 kern/uipc_socket2.c 		sballoc(sb, m);
m                 740 kern/uipc_socket2.c 	sballoc(sb, m);
m                 741 kern/uipc_socket2.c 	mlast = m;
m                 758 kern/uipc_socket2.c sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n)
m                 763 kern/uipc_socket2.c 	while (m) {
m                 764 kern/uipc_socket2.c 		eor |= m->m_flags & M_EOR;
m                 765 kern/uipc_socket2.c 		if (m->m_len == 0 &&
m                 767 kern/uipc_socket2.c 		    (((o = m->m_next) || (o = n)) &&
m                 768 kern/uipc_socket2.c 		    o->m_type == m->m_type))) {
m                 769 kern/uipc_socket2.c 			if (sb->sb_lastrecord == m)
m                 770 kern/uipc_socket2.c 				sb->sb_lastrecord = m->m_next;
m                 771 kern/uipc_socket2.c 			m = m_free(m);
m                 776 kern/uipc_socket2.c 		    m->m_len <= MCLBYTES / 4 && /* XXX Don't copy too much */
m                 777 kern/uipc_socket2.c 		    m->m_len <= M_TRAILINGSPACE(n) &&
m                 778 kern/uipc_socket2.c 		    n->m_type == m->m_type) {
m                 779 kern/uipc_socket2.c 			bcopy(mtod(m, caddr_t), mtod(n, caddr_t) + n->m_len,
m                 780 kern/uipc_socket2.c 			    (unsigned)m->m_len);
m                 781 kern/uipc_socket2.c 			n->m_len += m->m_len;
m                 782 kern/uipc_socket2.c 			sb->sb_cc += m->m_len;
m                 783 kern/uipc_socket2.c 			if (m->m_type != MT_CONTROL && m->m_type != MT_SONAME)
m                 784 kern/uipc_socket2.c 				sb->sb_datacc += m->m_len;
m                 785 kern/uipc_socket2.c 			m = m_free(m);
m                 789 kern/uipc_socket2.c 			n->m_next = m;
m                 791 kern/uipc_socket2.c 			sb->sb_mb = m;
m                 792 kern/uipc_socket2.c 		sb->sb_mbtail = m;
m                 793 kern/uipc_socket2.c 		sballoc(sb, m);
m                 794 kern/uipc_socket2.c 		n = m;
m                 795 kern/uipc_socket2.c 		m->m_flags &= ~M_EOR;
m                 796 kern/uipc_socket2.c 		m = m->m_next;
m                 834 kern/uipc_socket2.c 	struct mbuf *m, *mn;
m                 837 kern/uipc_socket2.c 	next = (m = sb->sb_mb) ? m->m_nextpkt : 0;
m                 839 kern/uipc_socket2.c 		if (m == NULL) {
m                 842 kern/uipc_socket2.c 			m = next;
m                 843 kern/uipc_socket2.c 			next = m->m_nextpkt;
m                 846 kern/uipc_socket2.c 		if (m->m_len > len) {
m                 847 kern/uipc_socket2.c 			m->m_len -= len;
m                 848 kern/uipc_socket2.c 			m->m_data += len;
m                 850 kern/uipc_socket2.c 			if (m->m_type != MT_CONTROL && m->m_type != MT_SONAME)
m                 854 kern/uipc_socket2.c 		len -= m->m_len;
m                 855 kern/uipc_socket2.c 		sbfree(sb, m);
m                 856 kern/uipc_socket2.c 		MFREE(m, mn);
m                 857 kern/uipc_socket2.c 		m = mn;
m                 859 kern/uipc_socket2.c 	while (m && m->m_len == 0) {
m                 860 kern/uipc_socket2.c 		sbfree(sb, m);
m                 861 kern/uipc_socket2.c 		MFREE(m, mn);
m                 862 kern/uipc_socket2.c 		m = mn;
m                 864 kern/uipc_socket2.c 	if (m) {
m                 865 kern/uipc_socket2.c 		sb->sb_mb = m;
m                 866 kern/uipc_socket2.c 		m->m_nextpkt = next;
m                 874 kern/uipc_socket2.c 	m = sb->sb_mb;
m                 875 kern/uipc_socket2.c 	if (m == NULL) {
m                 878 kern/uipc_socket2.c 	} else if (m->m_nextpkt == NULL)
m                 879 kern/uipc_socket2.c 		sb->sb_lastrecord = m;
m                 889 kern/uipc_socket2.c 	struct mbuf *m, *mn;
m                 891 kern/uipc_socket2.c 	m = sb->sb_mb;
m                 892 kern/uipc_socket2.c 	if (m) {
m                 893 kern/uipc_socket2.c 		sb->sb_mb = m->m_nextpkt;
m                 895 kern/uipc_socket2.c 			sbfree(sb, m);
m                 896 kern/uipc_socket2.c 			MFREE(m, mn);
m                 897 kern/uipc_socket2.c 		} while ((m = mn) != NULL);
m                 910 kern/uipc_socket2.c 	struct mbuf *m;
m                 917 kern/uipc_socket2.c 	if ((m = m_get(M_DONTWAIT, MT_CONTROL)) == NULL)
m                 920 kern/uipc_socket2.c 		MCLGET(m, M_DONTWAIT);
m                 921 kern/uipc_socket2.c 		if ((m->m_flags & M_EXT) == 0) {
m                 922 kern/uipc_socket2.c 			m_free(m);
m                 926 kern/uipc_socket2.c 	cp = mtod(m, struct cmsghdr *);
m                 928 kern/uipc_socket2.c 	m->m_len = CMSG_SPACE(size);
m                 932 kern/uipc_socket2.c 	return (m);
m                 741 kern/uipc_syscalls.c 			struct mbuf *m = control;
m                 745 kern/uipc_syscalls.c 				i = m->m_len;
m                 750 kern/uipc_syscalls.c 				error = copyout(mtod(m, caddr_t), p,
m                 752 kern/uipc_syscalls.c 				if (m->m_next)
m                 758 kern/uipc_syscalls.c 			} while ((m = m->m_next) != NULL);
m                 806 kern/uipc_syscalls.c 	struct mbuf *m = NULL;
m                 816 kern/uipc_syscalls.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 818 kern/uipc_syscalls.c 			MCLGET(m, M_DONTWAIT);
m                 819 kern/uipc_syscalls.c 			if ((m->m_flags & M_EXT) == 0) {
m                 824 kern/uipc_syscalls.c 		if (m == NULL) {
m                 828 kern/uipc_syscalls.c 		error = copyin(SCARG(uap, val), mtod(m, caddr_t),
m                 833 kern/uipc_syscalls.c 		m->m_len = SCARG(uap, valsize);
m                 836 kern/uipc_syscalls.c 			 SCARG(uap, name), m);
m                 837 kern/uipc_syscalls.c 	m = NULL;
m                 839 kern/uipc_syscalls.c 	if (m)
m                 840 kern/uipc_syscalls.c 		m_freem(m);
m                 857 kern/uipc_syscalls.c 	struct mbuf *m = NULL;
m                 871 kern/uipc_syscalls.c 	    SCARG(uap, name), &m)) == 0 && SCARG(uap, val) && valsize &&
m                 872 kern/uipc_syscalls.c 	    m != NULL) {
m                 873 kern/uipc_syscalls.c 		if (valsize > m->m_len)
m                 874 kern/uipc_syscalls.c 			valsize = m->m_len;
m                 875 kern/uipc_syscalls.c 		error = copyout(mtod(m, caddr_t), SCARG(uap, val), valsize);
m                 882 kern/uipc_syscalls.c 	if (m != NULL)
m                 883 kern/uipc_syscalls.c 		(void)m_free(m);
m                 925 kern/uipc_syscalls.c 	struct mbuf *m = NULL;
m                 935 kern/uipc_syscalls.c 	m = m_getclr(M_WAIT, MT_SONAME);
m                 936 kern/uipc_syscalls.c 	error = (*so->so_proto->pr_usrreq)(so, PRU_SOCKADDR, 0, m, 0);
m                 939 kern/uipc_syscalls.c 	if (len > m->m_len)
m                 940 kern/uipc_syscalls.c 		len = m->m_len;
m                 941 kern/uipc_syscalls.c 	error = copyout(mtod(m, caddr_t), SCARG(uap, asa), len);
m                 946 kern/uipc_syscalls.c 	if (m)
m                 947 kern/uipc_syscalls.c 		m_freem(m);
m                 965 kern/uipc_syscalls.c 	struct mbuf *m = NULL;
m                 979 kern/uipc_syscalls.c 	m = m_getclr(M_WAIT, MT_SONAME);
m                 980 kern/uipc_syscalls.c 	error = (*so->so_proto->pr_usrreq)(so, PRU_PEERADDR, 0, m, 0);
m                 983 kern/uipc_syscalls.c 	if (len > m->m_len)
m                 984 kern/uipc_syscalls.c 		len = m->m_len;
m                 985 kern/uipc_syscalls.c 	error = copyout(mtod(m, caddr_t), SCARG(uap, asa), len);
m                 990 kern/uipc_syscalls.c 	m_freem(m);
m                1008 kern/uipc_syscalls.c 	struct mbuf *m = NULL;
m                1019 kern/uipc_syscalls.c 	m = m_getclr(M_WAIT, MT_SONAME);
m                1020 kern/uipc_syscalls.c 	if (m == NULL) {
m                1024 kern/uipc_syscalls.c 	error = (*so->so_proto->pr_usrreq)(so, PRU_PEEREID, 0, m, 0);
m                1025 kern/uipc_syscalls.c 	if (!error && m->m_len != sizeof(struct unpcbid))
m                1029 kern/uipc_syscalls.c 	id = mtod(m, struct unpcbid *);
m                1035 kern/uipc_syscalls.c 	m_freem(m);
m                1043 kern/uipc_syscalls.c 	struct mbuf *m;
m                1055 kern/uipc_syscalls.c 	m = m_get(M_WAIT, type);
m                1057 kern/uipc_syscalls.c 		MCLGET(m, M_WAITOK);
m                1058 kern/uipc_syscalls.c 		if ((m->m_flags & M_EXT) == 0) {
m                1059 kern/uipc_syscalls.c 			m_free(m);
m                1063 kern/uipc_syscalls.c 	m->m_len = buflen;
m                1064 kern/uipc_syscalls.c 	error = copyin(buf, mtod(m, caddr_t), buflen);
m                1066 kern/uipc_syscalls.c 		(void) m_free(m);
m                1069 kern/uipc_syscalls.c 	*mp = m;
m                1071 kern/uipc_syscalls.c 		sa = mtod(m, struct sockaddr *);
m                  64 kern/uipc_usrreq.c uipc_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
m                 196 kern/uipc_usrreq.c 			if (sbappendaddr(&so2->so_rcv, from, m, control)) {
m                 198 kern/uipc_usrreq.c 				m = NULL;
m                 225 kern/uipc_usrreq.c 				if (sbappendcontrol(rcv, m, control))
m                 228 kern/uipc_usrreq.c 				sbappend(rcv, m);
m                 235 kern/uipc_usrreq.c 			m = NULL;
m                 253 kern/uipc_usrreq.c 		((struct stat *) m)->st_blksize = so->so_snd.sb_hiwat;
m                 256 kern/uipc_usrreq.c 			((struct stat *) m)->st_blksize += so2->so_rcv.sb_cc;
m                 258 kern/uipc_usrreq.c 		((struct stat *) m)->st_dev = NODEV;
m                 261 kern/uipc_usrreq.c 		((struct stat *) m)->st_atimespec =
m                 262 kern/uipc_usrreq.c 		    ((struct stat *) m)->st_mtimespec =
m                 263 kern/uipc_usrreq.c 		    ((struct stat *) m)->st_ctimespec = unp->unp_ctime;
m                 264 kern/uipc_usrreq.c 		((struct stat *) m)->st_ino = unp->unp_ino;
m                 310 kern/uipc_usrreq.c 	if (m)
m                 311 kern/uipc_usrreq.c 		m_freem(m);
m                 919 kern/uipc_usrreq.c unp_dispose(struct mbuf *m)
m                 922 kern/uipc_usrreq.c 	if (m)
m                 923 kern/uipc_usrreq.c 		unp_scan(m, unp_discard, 1);
m                 929 kern/uipc_usrreq.c 	struct mbuf *m;
m                 936 kern/uipc_usrreq.c 		for (m = m0; m; m = m->m_next) {
m                 937 kern/uipc_usrreq.c 			if (m->m_type == MT_CONTROL &&
m                 938 kern/uipc_usrreq.c 			    m->m_len >= sizeof(*cm)) {
m                 939 kern/uipc_usrreq.c 				cm = mtod(m, struct cmsghdr *);
m                  74 lib/libkern/qdivrem.c 	int m, n, d, j, i;
m                 156 lib/libkern/qdivrem.c 	for (m = 4 - n; u[1] == 0; u++)
m                 157 lib/libkern/qdivrem.c 		m--;
m                 158 lib/libkern/qdivrem.c 	for (i = 4 - m; --i >= 0;)
m                 160 lib/libkern/qdivrem.c 	q += 4 - m;
m                 172 lib/libkern/qdivrem.c 		shl(&u[0], m + n, d);		/* u <<= d */
m                 239 lib/libkern/qdivrem.c 	} while (++j <= m);		/* D7: loop on j. */
m                 248 lib/libkern/qdivrem.c 			for (i = m + n; i > m; --i)
m                  52 lib/libsa/net.h #define	SAMENET(a1, a2, m) ((a1.s_addr & m) == (a2.s_addr & m))
m                 248 lib/libz/zutil.h    extern void z_error    OF((char *m));
m                 395 miscfs/portal/portal_vnops.c 		struct mbuf *m = 0;
m                 399 miscfs/portal/portal_vnops.c 					&m, &cm, &flags);
m                 407 miscfs/portal/portal_vnops.c 		if (m) {
m                 408 miscfs/portal/portal_vnops.c 			m = m_pullup(m, sizeof(int));	/* Needed? */
m                 409 miscfs/portal/portal_vnops.c 			if (m) {
m                 410 miscfs/portal/portal_vnops.c 				error = *(mtod(m, int *));
m                 411 miscfs/portal/portal_vnops.c 				m_freem(m);
m                 186 msdosfs/msdosfs_conv.c 	uint32_t m, month;
m                 224 msdosfs/msdosfs_conv.c 		for (m = 0; m < month - 1; m++)
m                 225 msdosfs/msdosfs_conv.c 			days += months[m];
m                 108 net/bpf.c      	struct mbuf *m;
m                 178 net/bpf.c      	MGETHDR(m, M_WAIT, MT_DATA);
m                 179 net/bpf.c      	m->m_pkthdr.rcvif = 0;
m                 180 net/bpf.c      	m->m_pkthdr.len = len - hlen;
m                 183 net/bpf.c      		MCLGET(m, M_WAIT);
m                 184 net/bpf.c      		if ((m->m_flags & M_EXT) == 0) {
m                 189 net/bpf.c      	m->m_len = len;
m                 190 net/bpf.c      	*mp = m;
m                 192 net/bpf.c      	error = uiomove(mtod(m, caddr_t), len, uio);
m                 196 net/bpf.c      	slen = bpf_filter(filter, mtod(m, u_char *), len, len);
m                 202 net/bpf.c      	if (m->m_len < hlen) {
m                 210 net/bpf.c      		bcopy(m->m_data, sockp->sa_data, hlen);
m                 211 net/bpf.c      		m->m_len -= hlen;
m                 212 net/bpf.c      		m->m_data += hlen; /* XXX */
m                 222 net/bpf.c      	m_tag_prepend(m, mtag);
m                 226 net/bpf.c      	m_freem(m);
m                 509 net/bpf.c      	struct mbuf *m;
m                 525 net/bpf.c      	error = bpf_movein(uio, d->bd_bif->bif_dlt, &m,
m                 530 net/bpf.c      	if (m->m_pkthdr.len > ifp->if_mtu) {
m                 531 net/bpf.c      		m_freem(m);
m                 539 net/bpf.c      	error = (*ifp->if_output)(ifp, m, (struct sockaddr *)&dst,
m                1131 net/bpf.c      	const struct mbuf *m;
m                1135 net/bpf.c      	m = src_arg;
m                1138 net/bpf.c      		if (m == 0)
m                1140 net/bpf.c      		count = min(m->m_len, len);
m                1141 net/bpf.c      		bcopy(mtod(m, caddr_t), (caddr_t)dst, count);
m                1142 net/bpf.c      		m = m->m_next;
m                1152 net/bpf.c      bpf_mtap(caddr_t arg, struct mbuf *m, u_int direction)
m                1159 net/bpf.c      	if (m == NULL)
m                1163 net/bpf.c      	for (m0 = m; m0 != 0; m0 = m0->m_next)
m                1171 net/bpf.c      			slen = bpf_filter(d->bd_rfilter, (u_char *)m,
m                1177 net/bpf.c      		bpf_catchpacket(d, (u_char *)m, pktlen, slen, bpf_mcopy);
m                1179 net/bpf.c      			m->m_flags |= M_FILDROP;
m                1193 net/bpf.c      bpf_mtap_hdr(caddr_t arg, caddr_t data, u_int dlen, struct mbuf *m,
m                1199 net/bpf.c      	mh.mh_next = m;
m                1204 net/bpf.c      	m->m_flags |= mh.mh_flags & M_FILDROP;
m                1217 net/bpf.c      bpf_mtap_af(caddr_t arg, u_int32_t af, struct mbuf *m, u_int direction)
m                1222 net/bpf.c      	mh.mh_next = m;
m                1227 net/bpf.c      	m->m_flags |= mh.mh_flags & M_FILDROP;
m                  70 net/bpf_filter.c #define MINDEX(len, m, k) \
m                  72 net/bpf_filter.c 	len = m->m_len; \
m                  75 net/bpf_filter.c 		m = m->m_next; \
m                  76 net/bpf_filter.c 		if (m == 0) \
m                  78 net/bpf_filter.c 		len = m->m_len; \
m                  88 net/bpf_filter.c bpf_m_xword(m, k, err)
m                  89 net/bpf_filter.c 	struct mbuf *m;
m                  98 net/bpf_filter.c 	MINDEX(len, m, k);
m                  99 net/bpf_filter.c 	cp = mtod(m, u_char *) + k;
m                 104 net/bpf_filter.c 	m0 = m->m_next;
m                 123 net/bpf_filter.c bpf_m_xhalf(m, k, err)
m                 124 net/bpf_filter.c 	struct mbuf *m;
m                 133 net/bpf_filter.c 	MINDEX(len, m, k);
m                 134 net/bpf_filter.c 	cp = mtod(m, u_char *) + k;
m                 139 net/bpf_filter.c 	m0 = m->m_next;
m                 229 net/bpf_filter.c 				struct mbuf *m;
m                 234 net/bpf_filter.c 				m = (struct mbuf *)p;
m                 235 net/bpf_filter.c 				MINDEX(len, m, k);
m                 236 net/bpf_filter.c 				A = mtod(m, u_char *)[k];
m                 295 net/bpf_filter.c 				struct mbuf *m;
m                 300 net/bpf_filter.c 				m = (struct mbuf *)p;
m                 301 net/bpf_filter.c 				MINDEX(len, m, k);
m                 302 net/bpf_filter.c 				A = mtod(m, u_char *)[k];
m                 315 net/bpf_filter.c 				struct mbuf *m;
m                 320 net/bpf_filter.c 				m = (struct mbuf *)p;
m                 321 net/bpf_filter.c 				MINDEX(len, m, k);
m                 322 net/bpf_filter.c 				X = (mtod(m, u_char *)[k] & 0xf) << 2;
m                 377 net/bridgestp.c 	struct mbuf *m;
m                 383 net/bridgestp.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 384 net/bridgestp.c 	if (m == NULL)
m                 386 net/bridgestp.c 	m->m_pkthdr.rcvif = ifp;
m                 387 net/bridgestp.c 	m->m_pkthdr.len = sizeof(*eh) + sizeof(bpdu);
m                 388 net/bridgestp.c 	m->m_len = m->m_pkthdr.len;
m                 390 net/bridgestp.c 	eh = mtod(m, struct ether_header *);
m                 400 net/bridgestp.c 	bcopy(&bpdu, mtod(m, caddr_t) + sizeof(*eh), sizeof(bpdu));
m                 404 net/bridgestp.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 487 net/bridgestp.c 	struct mbuf *m;
m                 501 net/bridgestp.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 502 net/bridgestp.c 	if (m == NULL)
m                 505 net/bridgestp.c 	eh = mtod(m, struct ether_header *);
m                 517 net/bridgestp.c 		m->m_pkthdr.len = sizeof(*eh) + BSTP_BPDU_STP_LEN;
m                 519 net/bridgestp.c 		memcpy(mtod(m, caddr_t) + sizeof(*eh), bpdu,
m                 525 net/bridgestp.c 		m->m_pkthdr.len = sizeof(*eh) + BSTP_BPDU_RSTP_LEN;
m                 527 net/bridgestp.c 		memcpy(mtod(m, caddr_t) + sizeof(*eh), bpdu,
m                 533 net/bridgestp.c 	m->m_pkthdr.rcvif = ifp;
m                 534 net/bridgestp.c 	m->m_len = m->m_pkthdr.len;
m                 537 net/bridgestp.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 597 net/bridgestp.c     struct ether_header *eh, struct mbuf *m)
m                 608 net/bridgestp.c 	if (m->m_pkthdr.len > len)
m                 609 net/bridgestp.c 		m_adj(m, len - m->m_pkthdr.len);
m                 610 net/bridgestp.c 	if ((m = m_pullup(m, sizeof(tpdu))) == NULL)
m                 612 net/bridgestp.c 	bcopy(mtod(m, struct tpdu *), &tpdu, sizeof(tpdu));
m                 646 net/bridgestp.c 		bstp_received_stp(bs, bp, &m, &tpdu);
m                 649 net/bridgestp.c 		bstp_received_rstp(bs, bp, &m, &tpdu);
m                 653 net/bridgestp.c 	if (m)
m                 654 net/bridgestp.c 		m_freem(m);
m                 489 net/bsd-comp.c     struct mbuf *m;
m                 496 net/bsd-comp.c 	    m->m_len = wptr - mtod(m, u_char *);	\
m                 497 net/bsd-comp.c 	    MGET(m->m_next, M_DONTWAIT, MT_DATA);	\
m                 498 net/bsd-comp.c 	    m = m->m_next;				\
m                 499 net/bsd-comp.c 	    if (m) {					\
m                 500 net/bsd-comp.c 		m->m_len = 0;				\
m                 502 net/bsd-comp.c 		    MCLGET(m, M_DONTWAIT);		\
m                 503 net/bsd-comp.c 		wptr = mtod(m, u_char *);		\
m                 504 net/bsd-comp.c 		cp_end = wptr + M_TRAILINGSPACE(m);	\
m                 539 net/bsd-comp.c     MGET(m, M_DONTWAIT, MT_DATA);
m                 540 net/bsd-comp.c     *mret = m;
m                 541 net/bsd-comp.c     if (m != NULL) {
m                 542 net/bsd-comp.c 	m->m_len = 0;
m                 544 net/bsd-comp.c 	    MCLGET(m, M_DONTWAIT);
m                 545 net/bsd-comp.c 	m->m_data += db->hdrlen;
m                 546 net/bsd-comp.c 	wptr = mtod(m, u_char *);
m                 547 net/bsd-comp.c 	cp_end = wptr + M_TRAILINGSPACE(m);
m                 649 net/bsd-comp.c     if (m != NULL) {
m                 650 net/bsd-comp.c 	m->m_len = wptr - mtod(m, u_char *);
m                 651 net/bsd-comp.c 	m->m_next = NULL;
m                 832 net/bsd-comp.c     struct mbuf *m, *dmp, *mret;
m                 986 net/bsd-comp.c 	    MGET(m, M_DONTWAIT, MT_DATA);
m                 987 net/bsd-comp.c 	    if (m == NULL) {
m                 991 net/bsd-comp.c 	    m->m_len = 0;
m                 992 net/bsd-comp.c 	    m->m_next = NULL;
m                 993 net/bsd-comp.c 	    dmp->m_next = m;
m                 994 net/bsd-comp.c 	    MCLGET(m, M_DONTWAIT);
m                 995 net/bsd-comp.c 	    space = M_TRAILINGSPACE(m) - (codelen + extra);
m                1001 net/bsd-comp.c 	    dmp = m;
m                 225 net/if.c       		size_t m, n, oldlim;
m                 235 net/if.c       		m = oldlim * sizeof(ifa);
m                 240 net/if.c       			bcopy((caddr_t)ifnet_addrs, q, m);
m                 246 net/if.c       		m = oldlim * sizeof(struct ifnet *);
m                 251 net/if.c       			bcopy((caddr_t)ifindex2ifnet, q, m);
m                 306 net/if.c       #define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m))
m                 613 net/if.c       	struct mbuf *m, *prev, *next;
m                 616 net/if.c       	for (m = q->ifq_head; m; m = next) {
m                 617 net/if.c       		next = m->m_nextpkt;
m                 619 net/if.c       		if ((m->m_flags & M_PKTHDR) == 0) {
m                 620 net/if.c       			prev = m;
m                 624 net/if.c       		if (m->m_pkthdr.rcvif != ifp) {
m                 625 net/if.c       			prev = m;
m                 630 net/if.c       			prev->m_nextpkt = m->m_nextpkt;
m                 632 net/if.c       			q->ifq_head = m->m_nextpkt;
m                 633 net/if.c       		if (q->ifq_tail == m)
m                 637 net/if.c       		m->m_nextpkt = NULL;
m                 638 net/if.c       		m_freem(m);
m                1091 net/if.c       	struct mbuf *m, *n;
m                1094 net/if.c       	while ((m = n) != NULL) {
m                1095 net/if.c       		n = m->m_act;
m                1096 net/if.c       		m_freem(m);
m                1560 net/if.c       	struct mbuf *m;
m                1563 net/if.c       		IF_DEQUEUE(&ifp->if_snd, m);
m                1565 net/if.c       		if (m == NULL)
m                1567 net/if.c       		m_freem(m);
m                 294 net/if.h       #define	IF_ENQUEUE(ifq, m)						\
m                 296 net/if.h       	(m)->m_nextpkt = 0;						\
m                 298 net/if.h       		(ifq)->ifq_head = m;					\
m                 300 net/if.h       		(ifq)->ifq_tail->m_nextpkt = m;				\
m                 301 net/if.h       	(ifq)->ifq_tail = m;						\
m                 304 net/if.h       #define	IF_PREPEND(ifq, m)						\
m                 306 net/if.h       	(m)->m_nextpkt = (ifq)->ifq_head;				\
m                 308 net/if.h       		(ifq)->ifq_tail = (m);					\
m                 309 net/if.h       	(ifq)->ifq_head = (m);						\
m                 312 net/if.h       #define	IF_DEQUEUE(ifq, m)						\
m                 314 net/if.h       	(m) = (ifq)->ifq_head;						\
m                 315 net/if.h       	if (m) {							\
m                 316 net/if.h       		if (((ifq)->ifq_head = (m)->m_nextpkt) == 0)		\
m                 318 net/if.h       		(m)->m_nextpkt = 0;					\
m                 323 net/if.h       #define	IF_INPUT_ENQUEUE(ifq, m)					\
m                 327 net/if.h       		m_freem(m);						\
m                 331 net/if.h       		IF_ENQUEUE(ifq, m);					\
m                 334 net/if.h       #define	IF_POLL(ifq, m)		((m) = (ifq)->ifq_head)
m                 589 net/if.h       #define	IFQ_ENQUEUE(ifq, m, pattr, err)					\
m                 592 net/if.h       		ALTQ_ENQUEUE((ifq), (m), (pattr), (err));		\
m                 595 net/if.h       			m_freem((m));					\
m                 598 net/if.h       			IF_ENQUEUE((ifq), (m));				\
m                 606 net/if.h       #define	IFQ_DEQUEUE(ifq, m)						\
m                 609 net/if.h       		(m) = tbr_dequeue((ifq), ALTDQ_REMOVE);			\
m                 611 net/if.h       		ALTQ_DEQUEUE((ifq), (m));				\
m                 613 net/if.h       		IF_DEQUEUE((ifq), (m));					\
m                 616 net/if.h       #define	IFQ_POLL(ifq, m)						\
m                 619 net/if.h       		(m) = tbr_dequeue((ifq), ALTDQ_POLL);			\
m                 621 net/if.h       		ALTQ_POLL((ifq), (m));					\
m                 623 net/if.h       		IF_POLL((ifq), (m));					\
m                 637 net/if.h       #define	IFQ_CLASSIFY(ifq, m, af, pa)					\
m                 642 net/if.h       				((ifq)->altq_clfier, (m), (af));	\
m                 644 net/if.h       		(pa)->pattr_hdr = mtod((m), caddr_t);			\
m                 651 net/if.h       #define	IFQ_ENQUEUE(ifq, m, pattr, err)					\
m                 654 net/if.h       		m_freem((m));						\
m                 657 net/if.h       		IF_ENQUEUE((ifq), (m));					\
m                 664 net/if.h       #define	IFQ_DEQUEUE(ifq, m)	IF_DEQUEUE((ifq), (m))
m                 666 net/if.h       #define	IFQ_POLL(ifq, m)	IF_POLL((ifq), (m))
m                 672 net/if.h       #define	IFQ_CLASSIFY(ifq, m, af, pa) /* nothing */
m                 688 net/if.h       #define	ether_input_mbuf(ifp, m)        ether_input((ifp), NULL, (m))
m                 140 net/if_atmsubr.c 	struct mbuf *m = m0;
m                 191 net/if_atmsubr.c 			if (!atmresolve(rt, m, dst, &atmdst)) {
m                 192 net/if_atmsubr.c 				m = NULL; 
m                 218 net/if_atmsubr.c 		M_PREPEND(m, sz, M_DONTWAIT);
m                 219 net/if_atmsubr.c 		if (m == 0)
m                 221 net/if_atmsubr.c 		ad = mtod(m, struct atm_pseudohdr *);
m                 235 net/if_atmsubr.c 	len = m->m_pkthdr.len;
m                 237 net/if_atmsubr.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 249 net/if_atmsubr.c 	if (m)
m                 250 net/if_atmsubr.c 		m_freem(m);
m                 259 net/if_atmsubr.c atm_input(ifp, ah, m, rxhand)
m                 262 net/if_atmsubr.c 	struct mbuf *m;
m                 270 net/if_atmsubr.c 		m_freem(m);
m                 273 net/if_atmsubr.c 	ifp->if_ibytes += m->m_pkthdr.len;
m                 283 net/if_atmsubr.c 	  m->m_pkthdr.rcvif = rxhand; /* XXX: overload */
m                 286 net/if_atmsubr.c 	  m_freem(m);
m                 295 net/if_atmsubr.c 	    if (m->m_len < sizeof(*alc) &&
m                 296 net/if_atmsubr.c 		(m = m_pullup(m, sizeof(*alc))) == NULL)
m                 298 net/if_atmsubr.c 	    alc = mtod(m, struct atmllc *);
m                 307 net/if_atmsubr.c 	      m_freem(m);
m                 311 net/if_atmsubr.c 	    m_adj(m, sizeof(*alc));
m                 328 net/if_atmsubr.c 	      m_freem(m);
m                 334 net/if_atmsubr.c 	IF_INPUT_ENQUEUE(inq, m);
m                 146 net/if_bridge.c     struct ether_header *, struct mbuf *m);
m                1001 net/if_bridge.c bridge_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
m                1016 net/if_bridge.c 		m_freem(m);
m                1020 net/if_bridge.c 	if (m->m_len < sizeof(*eh)) {
m                1021 net/if_bridge.c 		m = m_pullup(m, sizeof(*eh));
m                1022 net/if_bridge.c 		if (m == NULL)
m                1025 net/if_bridge.c 	eh = mtod(m, struct ether_header *);
m                1056 net/if_bridge.c 		if ((mtag = m_tag_find(m, PACKET_TAG_IPSEC_OUT_CRYPTO_NEEDED,
m                1059 net/if_bridge.c 			m_freem(m);
m                1066 net/if_bridge.c 		if (m->m_pkthdr.csum_flags & M_IPV4_CSUM_OUT ||
m                1067 net/if_bridge.c 		    m->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT ||
m                1068 net/if_bridge.c 		    m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT) {
m                1069 net/if_bridge.c 			m_freem(m);
m                1074 net/if_bridge.c 		bridge_span(sc, NULL, m);
m                1093 net/if_bridge.c 			    (m->m_flags & (M_BCAST | M_MCAST)) == 0)
m                1106 net/if_bridge.c 				mc = m;
m                1110 net/if_bridge.c 				m1 = m_copym2(m, 0, ETHER_HDR_LEN,
m                1116 net/if_bridge.c 				m2 = m_copym2(m, ETHER_HDR_LEN,
m                1142 net/if_bridge.c 			m_freem(m);
m                1148 net/if_bridge.c 	bridge_span(sc, NULL, m);
m                1150 net/if_bridge.c 		m_freem(m);
m                1154 net/if_bridge.c 	bridge_ifenqueue(sc, dst_if, m);
m                1174 net/if_bridge.c 	struct mbuf *m;
m                1180 net/if_bridge.c 			IF_DEQUEUE(&sc->sc_if.if_snd, m);
m                1182 net/if_bridge.c 			if (m == NULL)
m                1184 net/if_bridge.c 			bridgeintr_frame(sc, m);
m                1193 net/if_bridge.c bridgeintr_frame(struct bridge_softc *sc, struct mbuf *m)
m                1202 net/if_bridge.c 		m_freem(m);
m                1206 net/if_bridge.c 	src_if = m->m_pkthdr.rcvif;
m                1210 net/if_bridge.c 		bpf_mtap(sc->sc_if.if_bpf, m, BPF_DIRECTION_IN);
m                1214 net/if_bridge.c 	sc->sc_if.if_ibytes += m->m_pkthdr.len;
m                1221 net/if_bridge.c 		m_freem(m);
m                1227 net/if_bridge.c 		m_freem(m);
m                1231 net/if_bridge.c 	if (m->m_pkthdr.len < sizeof(eh)) {
m                1232 net/if_bridge.c 		m_freem(m);
m                1235 net/if_bridge.c 	m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&eh);
m                1252 net/if_bridge.c 		m_freem(m);
m                1265 net/if_bridge.c 	if ((m->m_flags & (M_BCAST | M_MCAST)) == 0) {
m                1268 net/if_bridge.c 			m_freem(m);
m                1285 net/if_bridge.c 	if (m->m_flags & M_MCAST) {
m                1289 net/if_bridge.c 			m_freem(m);
m                1294 net/if_bridge.c 			m_freem(m);
m                1299 net/if_bridge.c 			m_freem(m);
m                1304 net/if_bridge.c 	if (ifl->bif_flags & IFBIF_BLOCKNONIP && bridge_blocknonip(&eh, m)) {
m                1305 net/if_bridge.c 		m_freem(m);
m                1309 net/if_bridge.c 	if (bridge_filterrule(&ifl->bif_brlin, &eh, m) == BRL_ACTION_BLOCK) {
m                1310 net/if_bridge.c 		m_freem(m);
m                1314 net/if_bridge.c 	m = bridge_filter(sc, BRIDGE_IN, src_if, &eh, m);
m                1315 net/if_bridge.c 	if (m == NULL)
m                1322 net/if_bridge.c 	if ((m->m_flags & (M_BCAST | M_MCAST)) || dst_if == NULL) {
m                1325 net/if_bridge.c 		bridge_broadcast(sc, src_if, &eh, m);
m                1335 net/if_bridge.c 		m_freem(m);
m                1343 net/if_bridge.c 		m_freem(m);
m                1348 net/if_bridge.c 		m_freem(m);
m                1351 net/if_bridge.c 	if (bridge_filterrule(&ifl->bif_brlout, &eh, m) == BRL_ACTION_BLOCK) {
m                1352 net/if_bridge.c 		m_freem(m);
m                1356 net/if_bridge.c 	m = bridge_filter(sc, BRIDGE_OUT, dst_if, &eh, m);
m                1357 net/if_bridge.c 	if (m == NULL)
m                1361 net/if_bridge.c 	len = m->m_pkthdr.len;
m                1363 net/if_bridge.c 		bridge_fragment(sc, dst_if, &eh, m);
m                1366 net/if_bridge.c 		bridge_ifenqueue(sc, dst_if, m);
m                1376 net/if_bridge.c bridge_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
m                1387 net/if_bridge.c 	if (ifp == NULL || ifp->if_bridge == NULL || m == NULL)
m                1388 net/if_bridge.c 		return (m);
m                1390 net/if_bridge.c 	if ((m->m_flags & M_PKTHDR) == 0)
m                1393 net/if_bridge.c 	m->m_flags &= ~M_PROTO1;	/* Loop prevention */
m                1397 net/if_bridge.c 		return (m);
m                1404 net/if_bridge.c 		return (m);
m                1406 net/if_bridge.c 	bridge_span(sc, eh, m);
m                1408 net/if_bridge.c 	if (m->m_flags & (M_BCAST | M_MCAST)) {
m                1411 net/if_bridge.c 			m = bstp_input(sc->sc_stp, ifl->bif_stp, eh, m);
m                1412 net/if_bridge.c 			if (m == NULL)
m                1421 net/if_bridge.c 			return (m);
m                1428 net/if_bridge.c 		mc = m_copym2(m, 0, M_COPYALL, M_NOWAIT);
m                1430 net/if_bridge.c 			return (m);
m                1433 net/if_bridge.c 			return (m);
m                1439 net/if_bridge.c 			return (m);
m                1450 net/if_bridge.c 				m->m_flags |= M_PROTO1;
m                1451 net/if_bridge.c 				m->m_pkthdr.rcvif = ifl->ifp;
m                1452 net/if_bridge.c 				ether_input(ifl->ifp, eh, m);
m                1453 net/if_bridge.c 				m = NULL;
m                1456 net/if_bridge.c 		return (m);
m                1464 net/if_bridge.c 		return (m);
m                1484 net/if_bridge.c 			if (bridge_filterrule(&srcifl->bif_brlin, eh, m) ==
m                1486 net/if_bridge.c 				m_freem(m);
m                1489 net/if_bridge.c 			m->m_pkthdr.rcvif = ifl->ifp;
m                1491 net/if_bridge.c 				m->m_flags |= M_PROTO1;
m                1492 net/if_bridge.c 				ether_input(ifl->ifp, eh, m);
m                1493 net/if_bridge.c 				m = NULL;
m                1495 net/if_bridge.c 			return (m);
m                1503 net/if_bridge.c 			m_freem(m);
m                1507 net/if_bridge.c 	M_PREPEND(m, ETHER_HDR_LEN, M_DONTWAIT);
m                1508 net/if_bridge.c 	if (m == NULL)
m                1510 net/if_bridge.c 	bcopy(eh, mtod(m, caddr_t), ETHER_HDR_LEN);
m                1513 net/if_bridge.c 		m_freem(m);
m                1517 net/if_bridge.c 	IF_ENQUEUE(&sc->sc_if.if_snd, m);
m                1530 net/if_bridge.c     struct ether_header *eh, struct mbuf *m)
m                1535 net/if_bridge.c 	int len = m->m_pkthdr.len, used = 0;
m                1553 net/if_bridge.c 		    (m->m_flags & (M_BCAST | M_MCAST)) == 0)
m                1570 net/if_bridge.c 		    bridge_blocknonip(eh, m))
m                1573 net/if_bridge.c 		if (bridge_filterrule(&p->bif_brlout, eh, m) == BRL_ACTION_BLOCK)
m                1578 net/if_bridge.c 			mc = m;
m                1583 net/if_bridge.c 			m1 = m_copym2(m, 0, ETHER_HDR_LEN,
m                1589 net/if_bridge.c 			m2 = m_copym2(m, ETHER_HDR_LEN,
m                1625 net/if_bridge.c 		m_freem(m);
m                1634 net/if_bridge.c 	struct mbuf *mc, *m;
m                1640 net/if_bridge.c 	m = m_copym2(morig, 0, M_COPYALL, M_NOWAIT);
m                1641 net/if_bridge.c 	if (m == NULL)
m                1644 net/if_bridge.c 		M_PREPEND(m, ETHER_HDR_LEN, M_DONTWAIT);
m                1645 net/if_bridge.c 		if (m == NULL)
m                1647 net/if_bridge.c 		bcopy(eh, mtod(m, caddr_t), ETHER_HDR_LEN);
m                1665 net/if_bridge.c 		mc = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                1675 net/if_bridge.c 	m_freem(m);
m                2079 net/if_bridge.c bridge_blocknonip(struct ether_header *eh, struct mbuf *m)
m                2084 net/if_bridge.c 	if (m->m_pkthdr.len < ETHER_HDR_LEN)
m                2099 net/if_bridge.c 	if (m->m_pkthdr.len <
m                2103 net/if_bridge.c 	m_copydata(m, ETHER_HDR_LEN, LLC_SNAPFRAMELEN,
m                2122 net/if_bridge.c bridge_filterrule(struct brl_head *h, struct ether_header *eh, struct mbuf *m)
m                2153 net/if_bridge.c 	pf_tag_packet(m, n->brl_tag, -1);
m                2216 net/if_bridge.c     int dir, int af, int hlen, struct mbuf *m)
m                2236 net/if_bridge.c 			if (m->m_pkthdr.len - hlen < 2 * sizeof(u_int32_t))
m                2239 net/if_bridge.c 			ip = mtod(m, struct ip *);
m                2250 net/if_bridge.c 			m_copydata(m, offsetof(struct ip, ip_dst),
m                2255 net/if_bridge.c 				m_copydata(m, hlen, sizeof(u_int32_t),
m                2258 net/if_bridge.c 				m_copydata(m, hlen + sizeof(u_int32_t),
m                2261 net/if_bridge.c 				m_copydata(m, hlen + sizeof(u_int16_t),
m                2269 net/if_bridge.c 			if (m->m_pkthdr.len - hlen < 2 * sizeof(u_int32_t))
m                2272 net/if_bridge.c 			ip6 = mtod(m, struct ip6_hdr *);
m                2285 net/if_bridge.c 			m_copydata(m, offsetof(struct ip6_hdr, ip6_nxt),
m                2290 net/if_bridge.c 				m_copydata(m, hlen, sizeof(u_int32_t),
m                2293 net/if_bridge.c 				m_copydata(m, hlen + sizeof(u_int32_t),
m                2296 net/if_bridge.c 				m_copydata(m, hlen + sizeof(u_int16_t),
m                2345 net/if_bridge.c 			(*(tdb->tdb_xform->xf_input))(m, tdb, hlen, off);
m                2355 net/if_bridge.c 		tdb = ipsp_spd_lookup(m, af, hlen, &error,
m                2367 net/if_bridge.c 				    &m, NULL) != PF_PASS) {
m                2368 net/if_bridge.c 					m_freem(m);
m                2376 net/if_bridge.c 				    &m, NULL) != PF_PASS) {
m                2377 net/if_bridge.c 					m_freem(m);
m                2383 net/if_bridge.c 			if (m == NULL)
m                2387 net/if_bridge.c 			ip = mtod(m, struct ip *);
m                2392 net/if_bridge.c 				bridge_send_icmp_err(sc, ifp, eh, m,
m                2396 net/if_bridge.c 				error = ipsp_process_packet(m, tdb, af, 0);
m                2415 net/if_bridge.c     struct ether_header *eh, struct mbuf *m)
m                2427 net/if_bridge.c 		    m->m_pkthdr.len < (LLC_SNAPFRAMELEN +
m                2429 net/if_bridge.c 			return (m);
m                2431 net/if_bridge.c 		m_copydata(m, ETHER_HDR_LEN,
m                2440 net/if_bridge.c 			return (m);
m                2444 net/if_bridge.c 			return (m);
m                2448 net/if_bridge.c 	m_adj(m, ETHER_HDR_LEN);
m                2450 net/if_bridge.c 		m_adj(m, LLC_SNAPFRAMELEN);
m                2455 net/if_bridge.c 		if (m->m_pkthdr.len < sizeof(struct ip))
m                2459 net/if_bridge.c 		if (m->m_len < sizeof(struct ip) &&
m                2460 net/if_bridge.c 		    (m = m_pullup(m, sizeof(struct ip))) == NULL) {
m                2464 net/if_bridge.c 		ip = mtod(m, struct ip *);
m                2477 net/if_bridge.c 		if (hlen > m->m_len) {
m                2478 net/if_bridge.c 			if ((m = m_pullup(m, hlen)) == NULL) {
m                2482 net/if_bridge.c 			ip = mtod(m, struct ip *);
m                2485 net/if_bridge.c 		if ((ip->ip_sum = in_cksum(m, hlen)) != 0) {
m                2493 net/if_bridge.c 		if (m->m_pkthdr.len < ntohs(ip->ip_len))
m                2495 net/if_bridge.c 		if (m->m_pkthdr.len > ntohs(ip->ip_len)) {
m                2496 net/if_bridge.c 			if (m->m_len == m->m_pkthdr.len) {
m                2497 net/if_bridge.c 				m->m_len = ntohs(ip->ip_len);
m                2498 net/if_bridge.c 				m->m_pkthdr.len = ntohs(ip->ip_len);
m                2500 net/if_bridge.c 				m_adj(m, ntohs(ip->ip_len) - m->m_pkthdr.len);
m                2506 net/if_bridge.c 		    dir, AF_INET, hlen, m))
m                2511 net/if_bridge.c 		m->m_pkthdr.rcvif = ifp;
m                2512 net/if_bridge.c 		if (pf_test(dir, ifp, &m, eh) != PF_PASS)
m                2514 net/if_bridge.c 		if (m == NULL)
m                2518 net/if_bridge.c 		if (m->m_len < hlen && ((m = m_pullup(m, hlen)) == NULL))
m                2520 net/if_bridge.c 		if (m->m_len < sizeof(struct ip))
m                2522 net/if_bridge.c 		ip = mtod(m, struct ip *);
m                2524 net/if_bridge.c 		ip->ip_sum = in_cksum(m, hlen);
m                2532 net/if_bridge.c 		if (m->m_len < sizeof(struct ip6_hdr)) {
m                2533 net/if_bridge.c 			if ((m = m_pullup(m, sizeof(struct ip6_hdr)))
m                2540 net/if_bridge.c 		ip6 = mtod(m, struct ip6_hdr *);
m                2544 net/if_bridge.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_hdrerr);
m                2553 net/if_bridge.c 		    dir, AF_INET6, hlen, m))
m                2557 net/if_bridge.c 		if (pf_test6(dir, ifp, &m, eh) != PF_PASS)
m                2559 net/if_bridge.c 		if (m == NULL)
m                2573 net/if_bridge.c 		M_PREPEND(m, LLC_SNAPFRAMELEN, M_DONTWAIT);
m                2574 net/if_bridge.c 		if (m == NULL)
m                2576 net/if_bridge.c 		bcopy(&llc, mtod(m, caddr_t), LLC_SNAPFRAMELEN);
m                2580 net/if_bridge.c 	M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
m                2581 net/if_bridge.c 	if (m == NULL)
m                2583 net/if_bridge.c 	bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
m                2585 net/if_bridge.c 	return (m);
m                2588 net/if_bridge.c 	if (m != NULL)
m                2589 net/if_bridge.c 		m_freem(m);
m                2596 net/if_bridge.c     struct ether_header *eh, struct mbuf *m)
m                2613 net/if_bridge.c 	    ((m->m_pkthdr.len - sizeof(struct ether_vlan_header)) <=
m                2616 net/if_bridge.c 		bridge_ifenqueue(sc, ifp, m);
m                2622 net/if_bridge.c 		    m->m_pkthdr.len < (LLC_SNAPFRAMELEN +
m                2626 net/if_bridge.c 		m_copydata(m, ETHER_HDR_LEN,
m                2641 net/if_bridge.c 	m_adj(m, ETHER_HDR_LEN);
m                2643 net/if_bridge.c 		m_adj(m, LLC_SNAPFRAMELEN);
m                2645 net/if_bridge.c 	if (m->m_len < sizeof(struct ip) &&
m                2646 net/if_bridge.c 	    (m = m_pullup(m, sizeof(struct ip))) == NULL)
m                2648 net/if_bridge.c 	ip = mtod(m, struct ip *);
m                2652 net/if_bridge.c 		bridge_send_icmp_err(sc, ifp, eh, m, hassnap, &llc,
m                2657 net/if_bridge.c 	error = ip_fragment(m, ifp, ifp->if_mtu);
m                2659 net/if_bridge.c 		m = NULL;
m                2663 net/if_bridge.c 	for (; m; m = m0) {
m                2664 net/if_bridge.c 		m0 = m->m_nextpkt;
m                2665 net/if_bridge.c 		m->m_nextpkt = NULL;
m                2668 net/if_bridge.c 				M_PREPEND(m, LLC_SNAPFRAMELEN, M_DONTWAIT);
m                2669 net/if_bridge.c 				if (m == NULL) {
m                2673 net/if_bridge.c 				bcopy(&llc, mtod(m, caddr_t),
m                2676 net/if_bridge.c 			M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
m                2677 net/if_bridge.c 			if (m == NULL) {
m                2681 net/if_bridge.c 			len = m->m_pkthdr.len;
m                2682 net/if_bridge.c 			bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
m                2684 net/if_bridge.c 			error = bridge_ifenqueue(sc, ifp, m);
m                2691 net/if_bridge.c 			m_freem(m);
m                2700 net/if_bridge.c 	if (m != NULL)
m                2701 net/if_bridge.c 		m_freem(m);
m                2705 net/if_bridge.c bridge_ifenqueue(struct bridge_softc *sc, struct ifnet *ifp, struct mbuf *m)
m                2713 net/if_bridge.c 		m->m_flags |= M_PROTO1;
m                2715 net/if_bridge.c 	len = m->m_pkthdr.len;
m                2716 net/if_bridge.c 	mflags = m->m_flags;
m                2717 net/if_bridge.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                2742 net/if_bridge.c 	struct mbuf *m, *n2;
m                2751 net/if_bridge.c 	m = icmp_do_error(n, type, code, 0, mtu);
m                2752 net/if_bridge.c 	if (m == NULL) {
m                2759 net/if_bridge.c 	ip = mtod(m, struct ip *);
m                2765 net/if_bridge.c 	m->m_data += hlen;
m                2766 net/if_bridge.c 	m->m_len -= hlen;
m                2767 net/if_bridge.c 	icp = mtod(m, struct icmp *);
m                2769 net/if_bridge.c 	icp->icmp_cksum = in_cksum(m, ntohs(ip->ip_len) - hlen);
m                2770 net/if_bridge.c 	m->m_data -= hlen;
m                2771 net/if_bridge.c 	m->m_len += hlen;
m                2778 net/if_bridge.c 	ip->ip_sum = in_cksum(m, hlen);
m                2787 net/if_bridge.c 		M_PREPEND(m, LLC_SNAPFRAMELEN, M_DONTWAIT);
m                2788 net/if_bridge.c 		if (m == NULL)
m                2790 net/if_bridge.c 		bcopy(llc, mtod(m, caddr_t), LLC_SNAPFRAMELEN);
m                2794 net/if_bridge.c 	M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
m                2795 net/if_bridge.c 	if (m == NULL)
m                2797 net/if_bridge.c 	bcopy(eh, mtod(m, caddr_t), sizeof(*eh));
m                2799 net/if_bridge.c 	bridge_output(ifp, m, NULL, NULL);
m                 116 net/if_enc.c   	struct mbuf *m;
m                 122 net/if_enc.c   		IF_DEQUEUE(&ifp->if_snd, m);
m                 125 net/if_enc.c   		if (m == NULL)
m                 128 net/if_enc.c   			m_freem(m);
m                 133 net/if_enc.c   encoutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
m                 136 net/if_enc.c   	m_freem(m);
m                 201 net/if_ethersubr.c 	struct mbuf *m = m0;
m                 222 net/if_ethersubr.c 			return (looutput(ifp0, m, dst, rt0));
m                 262 net/if_ethersubr.c 		if (!arpresolve(ac, rt, m, dst, edst))
m                 265 net/if_ethersubr.c 		if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX) &&
m                 266 net/if_ethersubr.c 		    !m->m_pkthdr.pf.routed)
m                 267 net/if_ethersubr.c 			mcopy = m_copy(m, 0, (int)M_COPYALL);
m                 273 net/if_ethersubr.c 		if (!nd6_storelladdr(ifp, rt, m, dst, (u_char *)edst))
m                 282 net/if_ethersubr.c 		if (!aarpresolve(ac, m, (struct sockaddr_at *)dst, edst)) {
m                 308 net/if_ethersubr.c 			M_PREPEND(m, AT_LLC_SIZE, M_DONTWAIT);
m                 309 net/if_ethersubr.c 			if (m == NULL)
m                 321 net/if_ethersubr.c 			bcopy(&llc, mtod(m, caddr_t), AT_LLC_SIZE);
m                 322 net/if_ethersubr.c 			etype = htons(m->m_pkthdr.len);
m                 355 net/if_ethersubr.c 	M_PREPEND(m, ETHER_HDR_LEN, M_DONTWAIT);
m                 356 net/if_ethersubr.c 	if (m == 0)
m                 358 net/if_ethersubr.c 	eh = mtod(m, struct ether_header *);
m                 390 net/if_ethersubr.c 		for (mtag = m_tag_find(m, PACKET_TAG_BRIDGE, NULL); mtag;
m                 391 net/if_ethersubr.c 		    mtag = m_tag_find(m, PACKET_TAG_BRIDGE, mtag)) {
m                 411 net/if_ethersubr.c 			m_tag_prepend(m, mtag);
m                 412 net/if_ethersubr.c 			error = bridge_output(ifp, m, NULL, NULL);
m                 418 net/if_ethersubr.c 	mflags = m->m_flags;
m                 419 net/if_ethersubr.c 	len = m->m_pkthdr.len;
m                 425 net/if_ethersubr.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 444 net/if_ethersubr.c 	if (m)
m                 445 net/if_ethersubr.c 		m_freem(m);
m                 455 net/if_ethersubr.c ether_input(ifp, eh, m)
m                 458 net/if_ethersubr.c 	struct mbuf *m;
m                 473 net/if_ethersubr.c 		eh = mtod(m, struct ether_header *);
m                 474 net/if_ethersubr.c 		m_adj(m, ETHER_HDR_LEN);
m                 481 net/if_ethersubr.c 		    trunk_input(ifp, eh, m) != 0) {
m                 482 net/if_ethersubr.c 			if (m)
m                 483 net/if_ethersubr.c 				m_freem(m);
m                 488 net/if_ethersubr.c 		ifp = m->m_pkthdr.rcvif;
m                 493 net/if_ethersubr.c 		m_freem(m);
m                 513 net/if_ethersubr.c 				m_freem(m);
m                 520 net/if_ethersubr.c 			m->m_flags |= M_BCAST;
m                 522 net/if_ethersubr.c 			m->m_flags |= M_MCAST;
m                 526 net/if_ethersubr.c 	ifp->if_ibytes += m->m_pkthdr.len + sizeof(*eh);
m                 531 net/if_ethersubr.c 	if (etype == ETHERTYPE_VLAN && (vlan_input(eh, m) == 0))
m                 543 net/if_ethersubr.c 		if (m->m_flags & M_PROTO1)
m                 544 net/if_ethersubr.c 			m->m_flags &= ~M_PROTO1;
m                 546 net/if_ethersubr.c 			m = bridge_input(ifp, eh, m);
m                 547 net/if_ethersubr.c 			if (m == NULL)
m                 550 net/if_ethersubr.c 			ifp = m->m_pkthdr.rcvif;
m                 559 net/if_ethersubr.c 		m_freem(m);
m                 567 net/if_ethersubr.c 		    (carp_input(m, (u_int8_t *)&eh->ether_shost,
m                 573 net/if_ethersubr.c 		    m->m_flags & (M_BCAST|M_MCAST) &&
m                 576 net/if_ethersubr.c 			m->m_flags &= ~(M_BCAST|M_MCAST);
m                 585 net/if_ethersubr.c 	if (m->m_flags & M_FILDROP) {
m                 586 net/if_ethersubr.c 		m_free(m);
m                 594 net/if_ethersubr.c 	if ((m->m_flags & (M_BCAST|M_MCAST)) == 0 &&
m                 598 net/if_ethersubr.c 			m_freem(m);
m                 622 net/if_ethersubr.c 		revarpinput(m);	/* XXX queue? */
m                 643 net/if_ethersubr.c 		aarpinput((struct arpcom *)ifp, m);
m                 657 net/if_ethersubr.c 		if (m->m_flags & (M_MCAST | M_BCAST)) {
m                 658 net/if_ethersubr.c 			m_freem(m);
m                 662 net/if_ethersubr.c 		M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
m                 663 net/if_ethersubr.c 		if (m == NULL)
m                 666 net/if_ethersubr.c 		eh_tmp = mtod(m, struct ether_header *);
m                 681 net/if_ethersubr.c 		l = mtod(m, struct llc *);
m                 698 net/if_ethersubr.c 				m_adj(m, AT_LLC_SIZE);
m                 708 net/if_ethersubr.c 				m_adj(m, AT_LLC_SIZE);
m                 710 net/if_ethersubr.c 				aarpinput((struct arpcom *)ifp, m);
m                 718 net/if_ethersubr.c 				if (m->m_pkthdr.len > etype)
m                 719 net/if_ethersubr.c 					m_adj(m, etype - m->m_pkthdr.len);
m                 720 net/if_ethersubr.c 				m->m_data += 6;		/* XXX */
m                 721 net/if_ethersubr.c 				m->m_len -= 6;		/* XXX */
m                 722 net/if_ethersubr.c 				m->m_pkthdr.len -= 6;	/* XXX */
m                 723 net/if_ethersubr.c 				M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
m                 724 net/if_ethersubr.c 				if (m == 0)
m                 726 net/if_ethersubr.c 				*mtod(m, struct ether_header *) = *eh;
m                 732 net/if_ethersubr.c 			m_freem(m);
m                 738 net/if_ethersubr.c 	IF_INPUT_ENQUEUE(inq, m);
m                 131 net/if_faith.c faithoutput(ifp, m, dst, rt)
m                 133 net/if_faith.c 	struct mbuf *m;
m                 140 net/if_faith.c 	if ((m->m_flags & M_PKTHDR) == 0)
m                 145 net/if_faith.c 		dst->sa_family = *(mtod(m, int *));
m                 146 net/if_faith.c 		m->m_len -= sizeof(int);
m                 147 net/if_faith.c 		m->m_pkthdr.len -= sizeof(int);
m                 148 net/if_faith.c 		m->m_data += sizeof(int);
m                 152 net/if_faith.c 		bpf_mtap_af(ifp->if_bpf, dst->sa_family, m, BPF_DIRECTION_OUT);
m                 156 net/if_faith.c 		m_freem(m);
m                 161 net/if_faith.c 	ifp->if_obytes += m->m_pkthdr.len;
m                 176 net/if_faith.c 		m_freem(m);
m                 182 net/if_faith.c 	m->m_pkthdr.rcvif = ifp;
m                 186 net/if_faith.c 		m_freem(m);
m                 190 net/if_faith.c 	IF_ENQUEUE(ifq, m);
m                 193 net/if_faith.c 	ifp->if_ibytes += m->m_pkthdr.len;
m                 143 net/if_fddisubr.c 	struct mbuf *m = m0;
m                 159 net/if_fddisubr.c 			return (looutput(ifp0, m, dst, rt0));
m                 198 net/if_fddisubr.c 		if (!arpresolve(ac, rt, m, dst, edst))
m                 201 net/if_fddisubr.c 		if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX) &&
m                 202 net/if_fddisubr.c 		    !m->m_pkthdr.pf.routed)
m                 203 net/if_fddisubr.c 			mcopy = m_copy(m, 0, (int)M_COPYALL);
m                 209 net/if_fddisubr.c 		if (!nd6_storelladdr(ifp, rt, m, dst, (u_char *)edst))
m                 222 net/if_fddisubr.c 		if (m->m_flags & M_MCAST) {
m                 231 net/if_fddisubr.c 			if (!ipv6_discov_resolve(ifp, rt, m, dst, edst))
m                 253 net/if_fddisubr.c 			m->m_flags |= (M_BCAST|M_MCAST);
m                 261 net/if_fddisubr.c 		fh = mtod(m, struct fddi_header *);
m                 289 net/if_fddisubr.c 			m->m_flags |= (M_BCAST|M_MCAST);
m                 304 net/if_fddisubr.c 		M_PREPEND(m, sizeof (struct llc), M_DONTWAIT);
m                 305 net/if_fddisubr.c 		if (m == 0)
m                 307 net/if_fddisubr.c 		l = mtod(m, struct llc *);
m                 318 net/if_fddisubr.c 	M_PREPEND(m, sizeof (struct fddi_header), M_DONTWAIT);
m                 319 net/if_fddisubr.c 	if (m == 0)
m                 321 net/if_fddisubr.c 	fh = mtod(m, struct fddi_header *);
m                 339 net/if_fddisubr.c 	mflags = m->m_flags;
m                 340 net/if_fddisubr.c 	len = m->m_pkthdr.len;
m                 346 net/if_fddisubr.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 365 net/if_fddisubr.c 	if (m)
m                 366 net/if_fddisubr.c 		m_freem(m);
m                 376 net/if_fddisubr.c fddi_input(ifp, fh, m)
m                 379 net/if_fddisubr.c 	struct mbuf *m;
m                 386 net/if_fddisubr.c 		m_freem(m);
m                 389 net/if_fddisubr.c 	ifp->if_ibytes += m->m_pkthdr.len + sizeof (*fh);
m                 392 net/if_fddisubr.c 		m->m_flags |= M_BCAST;
m                 394 net/if_fddisubr.c 		m->m_flags |= M_MCAST;
m                 395 net/if_fddisubr.c 	if (m->m_flags & (M_BCAST|M_MCAST))
m                 398 net/if_fddisubr.c 	l = mtod(m, struct llc *);
m                 409 net/if_fddisubr.c 		m_adj(m, LLC_SNAPFRAMELEN);
m                 413 net/if_fddisubr.c 		    (carp_input(m, (u_int8_t *)&fh->fddi_shost,
m                 451 net/if_fddisubr.c 		m_freem(m);
m                 456 net/if_fddisubr.c 	IF_INPUT_ENQUEUE(inq, m);
m                 153 net/if_gif.c   	struct mbuf *m;
m                 179 net/if_gif.c   		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 182 net/if_gif.c   		if (m == NULL)
m                 189 net/if_gif.c   		for (mtag = m_tag_find(m, PACKET_TAG_GIF, NULL); mtag;
m                 190 net/if_gif.c   		    mtag = m_tag_find(m, PACKET_TAG_GIF, mtag)) {
m                 196 net/if_gif.c   				m_freem(m);
m                 205 net/if_gif.c   			m_freem(m);
m                 209 net/if_gif.c   		m_tag_prepend(m, mtag);
m                 215 net/if_gif.c   		m->m_flags &= ~(M_BCAST|M_MCAST);
m                 219 net/if_gif.c   		tp = *mtod(m, u_int8_t *);
m                 235 net/if_gif.c   		if (ifp->if_bridge && (m->m_flags & M_PROTO1)) {
m                 236 net/if_gif.c   			m->m_flags &= ~M_PROTO1;
m                 243 net/if_gif.c   			bpf_mtap_af(ifp->if_bpf, family, m, BPF_DIRECTION_OUT);
m                 246 net/if_gif.c   		ifp->if_obytes += m->m_pkthdr.len;
m                 251 net/if_gif.c   			in_gif_output(ifp, family, m);
m                 256 net/if_gif.c   			in6_gif_output(ifp, family, m);
m                 260 net/if_gif.c   			m_freem(m);
m                 269 net/if_gif.c   gif_output(ifp, m, dst, rt)
m                 271 net/if_gif.c   	struct mbuf *m;
m                 281 net/if_gif.c   		m_freem(m);
m                 296 net/if_gif.c   		m_freem(m);
m                 306 net/if_gif.c   	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 194 net/if_gre.c   gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
m                 208 net/if_gre.c   		m_freem(m);
m                 214 net/if_gre.c   	for (mtag = m_tag_find(m, PACKET_TAG_GRE, NULL); mtag;
m                 215 net/if_gre.c   	     mtag = m_tag_find(m, PACKET_TAG_GRE, mtag)) {
m                 218 net/if_gre.c   			m_freem(m);
m                 227 net/if_gre.c   		m_freem(m);
m                 232 net/if_gre.c   	m_tag_prepend(m, mtag);
m                 234 net/if_gre.c   	m->m_flags &= ~(M_BCAST|M_MCAST);
m                 238 net/if_gre.c   		bpf_mtap_af(ifp->if_bpf, dst->sa_family, m, BPF_DIRECTION_OUT);
m                 244 net/if_gre.c   			m_freem(m);
m                 257 net/if_gre.c   			if (m->m_len < sizeof(struct ip)) {
m                 258 net/if_gre.c   				m = m_pullup(m, sizeof(struct ip));
m                 259 net/if_gre.c   				if (m == NULL) {
m                 264 net/if_gre.c   					inp = mtod(m, struct ip *);
m                 266 net/if_gre.c   				if (m->m_len < inp->ip_hl << 2) {
m                 267 net/if_gre.c   					m = m_pullup(m, inp->ip_hl << 2);
m                 268 net/if_gre.c   					if (m == NULL) {
m                 276 net/if_gre.c   			inp = mtod(m, struct ip *);
m                 301 net/if_gre.c   			if ((m->m_data - msiz) < m->m_pktdat) {
m                 306 net/if_gre.c   					m_freem(m);
m                 310 net/if_gre.c   				M_MOVE_HDR(m0, m);
m                 314 net/if_gre.c   				m0->m_pkthdr.len = m->m_pkthdr.len + msiz;
m                 315 net/if_gre.c   				m->m_data += inp->ip_hl << 2;
m                 316 net/if_gre.c   				m->m_len -= inp->ip_hl << 2;
m                 321 net/if_gre.c   				m0->m_next = m;
m                 322 net/if_gre.c   				m = m0;
m                 324 net/if_gre.c   				m->m_data -= msiz;
m                 325 net/if_gre.c   				m->m_len += msiz;
m                 326 net/if_gre.c   				m->m_pkthdr.len += msiz;
m                 327 net/if_gre.c   				bcopy(inp, mtod(m, caddr_t),
m                 332 net/if_gre.c   			inp = mtod(m, struct ip *);
m                 337 net/if_gre.c   			m_freem(m);
m                 344 net/if_gre.c   			m_freem(m);
m                 351 net/if_gre.c   			if (m->m_len < sizeof(struct ip)) {
m                 352 net/if_gre.c   				m = m_pullup(m, sizeof(struct ip));
m                 353 net/if_gre.c   				if (m == NULL) {
m                 360 net/if_gre.c   			inp = mtod(m, struct ip *);
m                 376 net/if_gre.c   			m_freem(m);
m                 381 net/if_gre.c   		M_PREPEND(m, sizeof(struct greip), M_DONTWAIT);
m                 384 net/if_gre.c   		m_freem(m);
m                 389 net/if_gre.c   	if (m == NULL) {
m                 395 net/if_gre.c   	gh = mtod(m, struct greip *);
m                 410 net/if_gre.c   		gh->gi_len = htons(m->m_pkthdr.len);
m                 414 net/if_gre.c   	ifp->if_obytes += m->m_pkthdr.len;
m                 417 net/if_gre.c   	error = ip_output(m, (void *)NULL, &sc->route, 0, (void *)NULL, (void *)NULL);
m                 228 net/if_loop.c  looutput(ifp, m, dst, rt)
m                 230 net/if_loop.c  	struct mbuf *m;
m                 237 net/if_loop.c  	if ((m->m_flags & M_PKTHDR) == 0)
m                 246 net/if_loop.c  		bpf_mtap_af(ifp->if_bpf, htonl(dst->sa_family), m,
m                 249 net/if_loop.c  	m->m_pkthdr.rcvif = ifp;
m                 252 net/if_loop.c  		m_freem(m);
m                 258 net/if_loop.c  	ifp->if_obytes += m->m_pkthdr.len;
m                 270 net/if_loop.c  		M_PREPEND(m, sizeof(int32_t), M_DONTWAIT);
m                 271 net/if_loop.c  		if (m == 0)
m                 273 net/if_loop.c  		afp = mtod(m, int32_t *);
m                 277 net/if_loop.c  		IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 306 net/if_loop.c  		m_freem(m);
m                 312 net/if_loop.c  		m_freem(m);
m                 316 net/if_loop.c  	IF_ENQUEUE(ifq, m);
m                 319 net/if_loop.c  	ifp->if_ibytes += m->m_pkthdr.len;
m                 330 net/if_loop.c  	struct mbuf *m;
m                 336 net/if_loop.c  		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 338 net/if_loop.c  		if (m == NULL)
m                 341 net/if_loop.c  		afp = mtod(m, int32_t *);
m                 343 net/if_loop.c  		m_adj(m, sizeof(int32_t));
m                 354 net/if_loop.c  			m->m_flags |= M_LOOP;
m                 367 net/if_loop.c  			m_freem(m);
m                 374 net/if_loop.c  			m_freem(m);
m                 378 net/if_loop.c  		IF_ENQUEUE(ifq, m);
m                 381 net/if_loop.c  		ifp->if_ibytes += m->m_pkthdr.len;
m                 165 net/if_pflog.c 	struct mbuf *m;
m                 171 net/if_pflog.c 		IF_DEQUEUE(&ifp->if_snd, m);
m                 174 net/if_pflog.c 		if (m == NULL)
m                 177 net/if_pflog.c 			m_freem(m);
m                 182 net/if_pflog.c pflogoutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
m                 185 net/if_pflog.c 	m_freem(m);
m                 211 net/if_pflog.c pflog_packet(struct pfi_kif *kif, struct mbuf *m, sa_family_t af, u_int8_t dir,
m                 219 net/if_pflog.c 	if (kif == NULL || m == NULL || rm == NULL || pd == NULL)
m                 259 net/if_pflog.c 		ip = mtod(m, struct ip *);
m                 261 net/if_pflog.c 		ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
m                 266 net/if_pflog.c 	ifn->if_obytes += m->m_pkthdr.len;
m                 267 net/if_pflog.c 	bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, PFLOG_HDRLEN, m,
m                 189 net/if_pfsync.c 	struct mbuf *m;
m                 195 net/if_pfsync.c 		IF_DEQUEUE(&ifp->if_snd, m);
m                 198 net/if_pfsync.c 		if (m == NULL)
m                 201 net/if_pfsync.c 			m_freem(m);
m                 324 net/if_pfsync.c pfsync_input(struct mbuf *m, ...)
m                 326 net/if_pfsync.c 	struct ip *ip = mtod(m, struct ip *);
m                 353 net/if_pfsync.c 	if (sc->sc_sync_ifp != m->m_pkthdr.rcvif) {
m                 366 net/if_pfsync.c 	if (m->m_pkthdr.len < iplen + sizeof(*ph)) {
m                 371 net/if_pfsync.c 	if (iplen + sizeof(*ph) > m->m_len) {
m                 372 net/if_pfsync.c 		if ((m = m_pullup(m, iplen + sizeof(*ph))) == NULL) {
m                 376 net/if_pfsync.c 		ip = mtod(m, struct ip *);
m                 407 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 448 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 482 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 590 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 615 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 714 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 741 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 787 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 827 net/if_pfsync.c 		if ((mp = m_pulldown(m, iplen + sizeof(*ph),
m                 842 net/if_pfsync.c 	if (m)
m                 843 net/if_pfsync.c 		m_freem(m);
m                 847 net/if_pfsync.c pfsyncoutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
m                 850 net/if_pfsync.c 	m_freem(m);
m                1024 net/if_pfsync.c 	struct mbuf *m;
m                1027 net/if_pfsync.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1028 net/if_pfsync.c 	if (m == NULL) {
m                1065 net/if_pfsync.c 		MCLGET(m, M_DONTWAIT);
m                1066 net/if_pfsync.c 		if ((m->m_flags & M_EXT) == 0) {
m                1067 net/if_pfsync.c 			m_free(m);
m                1071 net/if_pfsync.c 		m->m_data += (MCLBYTES - len) &~ (sizeof(long) - 1);
m                1073 net/if_pfsync.c 		MH_ALIGN(m, len);
m                1075 net/if_pfsync.c 	m->m_pkthdr.rcvif = NULL;
m                1076 net/if_pfsync.c 	m->m_pkthdr.len = m->m_len = sizeof(struct pfsync_header);
m                1077 net/if_pfsync.c 	h = mtod(m, struct pfsync_header *);
m                1091 net/if_pfsync.c 	return (m);
m                1510 net/if_pfsync.c 	struct mbuf *m;
m                1516 net/if_pfsync.c 	m = sc->sc_mbuf;
m                1522 net/if_pfsync.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1526 net/if_pfsync.c 		m_freem(m);
m                1527 net/if_pfsync.c 		m = sc->sc_mbuf_net;
m                1532 net/if_pfsync.c 	return pfsync_sendout_mbuf(sc, m);
m                1541 net/if_pfsync.c 	struct mbuf *m;
m                1547 net/if_pfsync.c 	m = sc->sc_mbuf_tdb;
m                1553 net/if_pfsync.c 		bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                1556 net/if_pfsync.c 	return pfsync_sendout_mbuf(sc, m);
m                1560 net/if_pfsync.c pfsync_sendout_mbuf(struct pfsync_softc *sc, struct mbuf *m)
m                1567 net/if_pfsync.c 		M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);
m                1568 net/if_pfsync.c 		if (m == NULL) {
m                1572 net/if_pfsync.c 		ip = mtod(m, struct ip *);
m                1576 net/if_pfsync.c 		ip->ip_len = htons(m->m_pkthdr.len);
m                1587 net/if_pfsync.c 			m->m_flags |= M_MCAST;
m                1593 net/if_pfsync.c 		if (ip_output(m, NULL, NULL, IP_RAWOUTPUT, &sc->sc_imo, NULL))
m                1596 net/if_pfsync.c 		m_freem(m);
m                 162 net/if_ppp.c   static void	ppp_ccp(struct ppp_softc *, struct mbuf *m, int rcvd);
m                 175 net/if_ppp.c   #define M_IS_CLUSTER(m)	((m)->m_flags & M_EXT)
m                 177 net/if_ppp.c   #define M_DATASTART(m)	\
m                 178 net/if_ppp.c   	(M_IS_CLUSTER(m) ? (m)->m_ext.ext_buf : \
m                 179 net/if_ppp.c   	    (m)->m_flags & M_PKTHDR ? (m)->m_pktdat : (m)->m_dat)
m                 181 net/if_ppp.c   #define M_DATASIZE(m)	\
m                 182 net/if_ppp.c   	(M_IS_CLUSTER(m) ? (m)->m_ext.ext_size : \
m                 183 net/if_ppp.c   	    (m)->m_flags & M_PKTHDR ? MHLEN: MLEN)
m                 342 net/if_ppp.c       struct mbuf *m;
m                 351 net/if_ppp.c   	IF_DEQUEUE(&sc->sc_rawq, m);
m                 352 net/if_ppp.c   	if (m == NULL)
m                 354 net/if_ppp.c   	m_freem(m);
m                 357 net/if_ppp.c   	IF_DEQUEUE(&sc->sc_inq, m);
m                 358 net/if_ppp.c   	if (m == NULL)
m                 360 net/if_ppp.c   	m_freem(m);
m                 363 net/if_ppp.c   	IF_DEQUEUE(&sc->sc_fastq, m);
m                 364 net/if_ppp.c   	if (m == NULL)
m                 366 net/if_ppp.c   	m_freem(m);
m                 368 net/if_ppp.c       while ((m = sc->sc_npqueue) != NULL) {
m                 369 net/if_ppp.c   	sc->sc_npqueue = m->m_nextpkt;
m                 370 net/if_ppp.c   	m_freem(m);
m                 895 net/if_ppp.c       struct mbuf *m, **mpp;
m                 902 net/if_ppp.c       for (mpp = &sc->sc_npqueue; (m = *mpp) != NULL; ) {
m                 903 net/if_ppp.c   	switch (PPP_PROTOCOL(mtod(m, u_char *))) {
m                 916 net/if_ppp.c   	    *mpp = m->m_nextpkt;
m                 917 net/if_ppp.c   	    m->m_nextpkt = NULL;
m                 918 net/if_ppp.c   	    if ((m->m_flags & M_HIGHPRI)
m                 926 net/if_ppp.c   		    m_freem(m);
m                 930 net/if_ppp.c   		    IF_ENQUEUE(ifq, m);
m                 934 net/if_ppp.c   		IFQ_ENQUEUE(&sc->sc_if.if_snd, m, NULL, error);
m                 943 net/if_ppp.c   	    *mpp = m->m_nextpkt;
m                 944 net/if_ppp.c   	    m_freem(m);
m                 948 net/if_ppp.c   	    mpp = &m->m_nextpkt;
m                 980 net/if_ppp.c       struct mbuf *m, *mp;
m                 988 net/if_ppp.c       IF_DEQUEUE(&sc->sc_fastq, m);
m                 989 net/if_ppp.c       if (m == NULL)
m                 990 net/if_ppp.c   	IFQ_DEQUEUE(&sc->sc_if.if_snd, m);
m                 991 net/if_ppp.c       if (m == NULL)
m                1000 net/if_ppp.c       cp = mtod(m, u_char *);
m                1015 net/if_ppp.c   	    mp = m;
m                1033 net/if_ppp.c   		    cp = mtod(m, u_char *);
m                1047 net/if_ppp.c   	ppp_ccp(sc, m, 0);
m                1059 net/if_ppp.c   	for (mp = m; mp != NULL; mp = mp->m_next)
m                1062 net/if_ppp.c   	    (sc->sc_xc_state, &mcomp, m, slen,
m                1067 net/if_ppp.c   		m_freem(m);
m                1068 net/if_ppp.c   		m = mcomp;
m                1069 net/if_ppp.c   		cp = mtod(m, u_char *);
m                1086 net/if_ppp.c   	m->m_data += 2;
m                1087 net/if_ppp.c   	m->m_len -= 2;
m                1091 net/if_ppp.c   	if (mtod(m, u_char *) == cp) {
m                1095 net/if_ppp.c   	++m->m_data;
m                1096 net/if_ppp.c   	--m->m_len;
m                1099 net/if_ppp.c       return m;
m                1110 net/if_ppp.c       struct mbuf *m;
m                1125 net/if_ppp.c   	    IF_DEQUEUE(&sc->sc_rawq, m);
m                1127 net/if_ppp.c   	    if (m == NULL)
m                1129 net/if_ppp.c   	    ppp_inproc(sc, m);
m                1141 net/if_ppp.c   ppp_ccp(sc, m, rcvd)
m                1143 net/if_ppp.c       struct mbuf *m;
m                1153 net/if_ppp.c       if (m->m_len <= PPP_HDRLEN) {
m                1154 net/if_ppp.c   	mp = m->m_next;
m                1159 net/if_ppp.c   	mp = m;
m                1259 net/if_ppp.c   ppppktin(sc, m, lost)
m                1261 net/if_ppp.c       struct mbuf *m;
m                1267 net/if_ppp.c   	m->m_flags |= M_ERRMARK;
m                1268 net/if_ppp.c       IF_ENQUEUE(&sc->sc_rawq, m);
m                1281 net/if_ppp.c   ppp_inproc(sc, m)
m                1283 net/if_ppp.c       struct mbuf *m;
m                1297 net/if_ppp.c   	for (mp = m; mp != NULL; mp = mp->m_next)
m                1300 net/if_ppp.c   	pppdumpm(m);
m                1303 net/if_ppp.c       cp = mtod(m, u_char *);
m                1308 net/if_ppp.c       if (m->m_flags & M_ERRMARK) {
m                1309 net/if_ppp.c   	m->m_flags &= ~M_ERRMARK;
m                1323 net/if_ppp.c   	rv = (*sc->sc_rcomp->decompress)(sc->sc_rc_state, m, &dmp);
m                1325 net/if_ppp.c   	    m_freem(m);
m                1330 net/if_ppp.c   	    m = dmp;
m                1331 net/if_ppp.c   	    cp = mtod(m, u_char *);
m                1353 net/if_ppp.c   	    (*sc->sc_rcomp->incomp)(sc->sc_rc_state, m);
m                1356 net/if_ppp.c   	    ppp_ccp(sc, m, 1);
m                1362 net/if_ppp.c       for (mp = m; mp != NULL; mp = mp->m_next)
m                1385 net/if_ppp.c   	xlen = sl_uncompress_tcp_core(cp + PPP_HDRLEN, m->m_len - PPP_HDRLEN,
m                1409 net/if_ppp.c   	if (m->m_flags & M_PKTHDR)
m                1410 net/if_ppp.c   		M_MOVE_HDR(mp, m);
m                1424 net/if_ppp.c   	m->m_data += PPP_HDRLEN + xlen;
m                1425 net/if_ppp.c   	m->m_len -= PPP_HDRLEN + xlen;
m                1426 net/if_ppp.c   	if (m->m_len <= M_TRAILINGSPACE(mp)) {
m                1427 net/if_ppp.c   	    bcopy(mtod(m, u_char *), mtod(mp, u_char *) + mp->m_len, m->m_len);
m                1428 net/if_ppp.c   	    mp->m_len += m->m_len;
m                1429 net/if_ppp.c   	    MFREE(m, mp->m_next);
m                1431 net/if_ppp.c   	    mp->m_next = m;
m                1432 net/if_ppp.c   	m = mp;
m                1439 net/if_ppp.c   	xlen = sl_uncompress_tcp_core(cp + PPP_HDRLEN, m->m_len - PPP_HDRLEN,
m                1459 net/if_ppp.c       if (ilen <= MHLEN && M_IS_CLUSTER(m)) {
m                1462 net/if_ppp.c   	    m_copydata(m, 0, ilen, mtod(mp, caddr_t));
m                1463 net/if_ppp.c   	    m_freem(m);
m                1464 net/if_ppp.c   	    m = mp;
m                1465 net/if_ppp.c   	    m->m_len = ilen;
m                1468 net/if_ppp.c       m->m_pkthdr.len = ilen;
m                1469 net/if_ppp.c       m->m_pkthdr.rcvif = ifp;
m                1477 net/if_ppp.c   	adrs = *mtod(m, u_char *);	/* save address field */
m                1478 net/if_ppp.c   	*mtod(m, u_char *) = 0;		/* indicate inbound */
m                1480 net/if_ppp.c   	    && bpf_filter(sc->sc_pass_filt.bf_insns, (u_char *) m,
m                1483 net/if_ppp.c   	    m_freem(m);
m                1487 net/if_ppp.c   	    || bpf_filter(sc->sc_active_filt.bf_insns, (u_char *) m, ilen, 0))
m                1490 net/if_ppp.c   	*mtod(m, u_char *) = adrs;
m                1502 net/if_ppp.c   	bpf_mtap(sc->sc_bpf, m, BPF_DIRECTION_IN);
m                1515 net/if_ppp.c   	    m_freem(m);
m                1518 net/if_ppp.c   	m->m_pkthdr.len -= PPP_HDRLEN;
m                1519 net/if_ppp.c   	m->m_data += PPP_HDRLEN;
m                1520 net/if_ppp.c   	m->m_len -= PPP_HDRLEN;
m                1549 net/if_ppp.c       IF_ENQUEUE(inq, m);
m                1560 net/if_ppp.c       m_freem(m);
m                1573 net/if_ppp.c       struct mbuf *m;
m                1576 net/if_ppp.c       for (m = m0; m; m = m->m_next) {
m                1577 net/if_ppp.c   	int l = m->m_len;
m                1578 net/if_ppp.c   	u_char *rptr = (u_char *)m->m_data;
m                1587 net/if_ppp.c   	if (m->m_next) {
m                1595 net/if_ppp.c       if (m)
m                 371 net/if_pppoe.c 	struct mbuf *m;
m                 377 net/if_pppoe.c 			MBUFLOCK(IF_DEQUEUE(&ppoediscinq, m););
m                 378 net/if_pppoe.c 			if (m == NULL)
m                 380 net/if_pppoe.c 			pppoe_disc_input(m);
m                 384 net/if_pppoe.c 			MBUFLOCK(IF_DEQUEUE(&ppoeinq, m););
m                 385 net/if_pppoe.c 			if (m == NULL)
m                 387 net/if_pppoe.c 			pppoe_data_input(m);
m                 393 net/if_pppoe.c static void pppoe_dispatch_disc_pkt(struct mbuf *m, int off)
m                 415 net/if_pppoe.c 	if (m->m_len < sizeof(*eh)) {
m                 416 net/if_pppoe.c 		m = m_pullup(m, sizeof(*eh));
m                 417 net/if_pppoe.c 		if (m == NULL)
m                 420 net/if_pppoe.c 	eh = mtod(m, struct ether_header *);
m                 431 net/if_pppoe.c 	if (m->m_pkthdr.len - off <= PPPOE_HEADERLEN) {
m                 432 net/if_pppoe.c 		printf("pppoe: packet too short: %d\n", m->m_pkthdr.len);
m                 436 net/if_pppoe.c 	n = m_pulldown(m, off, sizeof(*ph), &noff);
m                 439 net/if_pppoe.c 		m = NULL;
m                 452 net/if_pppoe.c 	if (plen + off > m->m_pkthdr.len) {
m                 454 net/if_pppoe.c 		    m->m_pkthdr.len - off, plen);
m                 459 net/if_pppoe.c 	m_adj(m, off + plen - m->m_pkthdr.len);
m                 464 net/if_pppoe.c 	while (off + sizeof(*pt) <= m->m_pkthdr.len) {
m                 465 net/if_pppoe.c 		n = m_pulldown(m, off, sizeof(*pt), &noff);
m                 468 net/if_pppoe.c 			m = NULL;
m                 474 net/if_pppoe.c 		if (off + len > m->m_pkthdr.len) {
m                 489 net/if_pppoe.c 			n = m_pulldown(m, off + sizeof(*pt), len, &noff);
m                 491 net/if_pppoe.c 				m = NULL;
m                 500 net/if_pppoe.c 			    len, m->m_pkthdr.rcvif);
m                 506 net/if_pppoe.c 				n = m_pulldown(m, off + sizeof(*pt), len,
m                 510 net/if_pppoe.c 					m = NULL;
m                 533 net/if_pppoe.c 				n = m_pulldown(m, off + sizeof(*pt), len,
m                 601 net/if_pppoe.c 						 m->m_pkthdr.rcvif);
m                 712 net/if_pppoe.c 	m_freem(m);
m                 717 net/if_pppoe.c pppoe_disc_input(struct mbuf *m)
m                 721 net/if_pppoe.c 		KASSERT(m->m_flags & M_PKTHDR);
m                 722 net/if_pppoe.c 		pppoe_dispatch_disc_pkt(m, 0);
m                 724 net/if_pppoe.c 		m_freem(m);
m                 729 net/if_pppoe.c pppoe_data_input(struct mbuf *m)
m                 738 net/if_pppoe.c 	KASSERT(m->m_flags & M_PKTHDR);
m                 741 net/if_pppoe.c 	memcpy(shost, mtod(m, struct ether_header*)->ether_shost, ETHER_ADDR_LEN);
m                 743 net/if_pppoe.c 	m_adj(m, sizeof(struct ether_header));
m                 744 net/if_pppoe.c 	if (m->m_pkthdr.len <= PPPOE_HEADERLEN) {
m                 746 net/if_pppoe.c 		    m->m_pkthdr.len);
m                 749 net/if_pppoe.c 	if (m->m_len < sizeof(*ph)) {
m                 750 net/if_pppoe.c 		m = m_pullup(m, sizeof(*ph));
m                 751 net/if_pppoe.c 		if (m == NULL) {
m                 756 net/if_pppoe.c 	ph = mtod(m, struct pppoehdr *);
m                 766 net/if_pppoe.c 	sc = pppoe_find_softc_by_session(session, m->m_pkthdr.rcvif);
m                 771 net/if_pppoe.c 		pppoe_send_padt(m->m_pkthdr.rcvif, session, shost);
m                 780 net/if_pppoe.c 		bpf_mtap(sc->sc_sppp.pp_if.if_bpf, m, BPF_DIRECTION_IN);
m                 783 net/if_pppoe.c 	m_adj(m, PPPOE_HEADERLEN);
m                 791 net/if_pppoe.c 			m->m_pkthdr.len, plen);
m                 792 net/if_pppoe.c 		p = m;
m                 801 net/if_pppoe.c 	if (m->m_pkthdr.len < plen)
m                 805 net/if_pppoe.c 	m->m_pkthdr.rcvif = &sc->sc_sppp.pp_if;
m                 809 net/if_pppoe.c 	sppp_input(&sc->sc_sppp.pp_if, m);
m                 813 net/if_pppoe.c 	m_freem(m);
m                 817 net/if_pppoe.c pppoe_output(struct pppoe_softc *sc, struct mbuf *m)
m                 824 net/if_pppoe.c 		m_freem(m);
m                 830 net/if_pppoe.c 		m_freem(m);
m                 844 net/if_pppoe.c 	    ether_sprintf((unsigned char *)&sc->sc_dest), m->m_pkthdr.len));
m                 846 net/if_pppoe.c 	m->m_flags &= ~(M_BCAST|M_MCAST);
m                 848 net/if_pppoe.c 	return (sc->sc_eth_if->if_output(sc->sc_eth_if, m, &dst, NULL));
m                 980 net/if_pppoe.c 	struct mbuf *m;
m                 982 net/if_pppoe.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 983 net/if_pppoe.c 	if (m == NULL)
m                 986 net/if_pppoe.c 		MCLGET(m, M_DONTWAIT);
m                 987 net/if_pppoe.c 		if ((m->m_flags & M_EXT) == 0) {
m                 990 net/if_pppoe.c 			MFREE(m, n);
m                 994 net/if_pppoe.c 	m->m_data += sizeof(struct ether_header);
m                 995 net/if_pppoe.c 	m->m_len = len;
m                 996 net/if_pppoe.c 	m->m_pkthdr.len = len;
m                 997 net/if_pppoe.c 	m->m_pkthdr.rcvif = NULL;
m                 999 net/if_pppoe.c 	return (m);
m                1420 net/if_pppoe.c 	struct mbuf *m;
m                1433 net/if_pppoe.c 	while ((m = sppp_dequeue(ifp)) != NULL) {
m                1434 net/if_pppoe.c 		len = m->m_pkthdr.len;
m                1435 net/if_pppoe.c 		M_PREPEND(m, PPPOE_HEADERLEN, M_DONTWAIT);
m                1436 net/if_pppoe.c 		if (m == NULL) {
m                1440 net/if_pppoe.c 		p = mtod(m, u_int8_t *);
m                1445 net/if_pppoe.c 			bpf_mtap(sc->sc_sppp.pp_if.if_bpf, m,
m                1449 net/if_pppoe.c 		pppoe_output(sc, m);
m                 143 net/if_pppvar.h void	ppppktin(struct ppp_softc *sc, struct mbuf *m, int lost);
m                 411 net/if_sl.c    sloutput(ifp, m, dst, rtp)
m                 413 net/if_sl.c    	struct mbuf *m;
m                 428 net/if_sl.c    		m_freem(m);
m                 434 net/if_sl.c    		m_freem(m);
m                 439 net/if_sl.c    		m_freem(m);
m                 442 net/if_sl.c    	ip = mtod(m, struct ip *);
m                 444 net/if_sl.c    		m_freem(m);
m                 461 net/if_sl.c    	IFQ_ENQUEUE(&sc->sc_if.if_snd, m, NULL, error);
m                 486 net/if_sl.c    	struct mbuf *m;
m                 531 net/if_sl.c    		IF_DEQUEUE(&sc->sc_fastq, m);
m                 532 net/if_sl.c    		if (m)
m                 535 net/if_sl.c    			IFQ_DEQUEUE(&sc->sc_if.if_snd, m);
m                 537 net/if_sl.c    		if (m == NULL)
m                 556 net/if_sl.c    			struct mbuf *m1 = m;
m                 569 net/if_sl.c    		if ((ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) {
m                 571 net/if_sl.c    				*mtod(m, u_char *) |= sl_compress_tcp(m, ip,
m                 582 net/if_sl.c    			bcopy(mtod(m, caddr_t), &bpfbuf[SLX_CHDR], CHDR_LEN);
m                 596 net/if_sl.c    			m_freem(m);
m                 611 net/if_sl.c    		while (m) {
m                 614 net/if_sl.c    			cp = mtod(m, u_char *); ep = cp + m->m_len;
m                 662 net/if_sl.c    			MFREE(m, m2);
m                 663 net/if_sl.c    			m = m2;
m                 692 net/if_sl.c    	struct mbuf *m;
m                 697 net/if_sl.c    	m = sc->sc_mbuf;
m                 700 net/if_sl.c    		sc->sc_mbuf = m;
m                 710 net/if_sl.c    		sc->sc_mbuf = m;
m                 716 net/if_sl.c    	m->m_data = sc->sc_pktstart;
m                 718 net/if_sl.c    	m->m_len = len;
m                 719 net/if_sl.c    	m->m_pkthdr.len = len;
m                 720 net/if_sl.c    	m->m_pkthdr.rcvif = &sc->sc_if;
m                 721 net/if_sl.c    	return (m);
m                 733 net/if_sl.c    	struct mbuf *m;
m                 847 net/if_sl.c    		m = sl_btom(sc, len);
m                 848 net/if_sl.c    		if (m == NULL)
m                 861 net/if_sl.c    			M_PREPEND(m, SLIP_HDRLEN, M_DONTWAIT);
m                 862 net/if_sl.c    			if (m == NULL)
m                 865 net/if_sl.c    			hp = mtod(m, u_char *);
m                 870 net/if_sl.c    			bpf_mtap(sc->sc_bpf, m, BPF_DIRECTION_IN);
m                 873 net/if_sl.c    			m_adj(m, SLIP_HDRLEN);
m                 884 net/if_sl.c    			m_freem(m);
m                 888 net/if_sl.c    			IF_ENQUEUE(&ipintrq, m);
m                 194 net/if_sppp.h  void sppp_input (struct ifnet *ifp, struct mbuf *m);
m                 283 net/if_spppsubr.c HIDE int sppp_output(struct ifnet *ifp, struct mbuf *m,
m                 287 net/if_spppsubr.c HIDE void sppp_cisco_input(struct sppp *sp, struct mbuf *m);
m                 290 net/if_spppsubr.c 			  struct mbuf *m);
m                 343 net/if_spppsubr.c HIDE void sppp_pap_input(struct sppp *sp, struct mbuf *m);
m                 353 net/if_spppsubr.c HIDE void sppp_chap_input(struct sppp *sp, struct mbuf *m);
m                 441 net/if_spppsubr.c sppp_input(struct ifnet *ifp, struct mbuf *m)
m                 452 net/if_spppsubr.c 		ifp->if_ibytes += m->m_pkthdr.len + sp->pp_framebytes;
m                 458 net/if_spppsubr.c 	if (m->m_pkthdr.len <= PPP_HEADER_LEN) {
m                 463 net/if_spppsubr.c 			    SPP_ARGS(ifp), m->m_pkthdr.len);
m                 467 net/if_spppsubr.c 		m_freem (m);
m                 472 net/if_spppsubr.c 		memcpy(&ht.protocol, mtod(m, char *), sizeof(ht.protocol));
m                 473 net/if_spppsubr.c 		m_adj(m, 2);
m                 479 net/if_spppsubr.c 		h = mtod (m, struct ppp_header*);
m                 480 net/if_spppsubr.c 		m_adj (m, PPP_HEADER_LEN);
m                 484 net/if_spppsubr.c 	if (m->m_len < m->m_pkthdr.len) {
m                 485 net/if_spppsubr.c 		m = m_pullup2(m, m->m_pkthdr.len);
m                 486 net/if_spppsubr.c 		if (m == NULL) {
m                 523 net/if_spppsubr.c 			sppp_cp_input(&lcp, sp, m);
m                 524 net/if_spppsubr.c 			m_freem (m);
m                 528 net/if_spppsubr.c 				sppp_pap_input(sp, m);
m                 529 net/if_spppsubr.c 			m_freem (m);
m                 533 net/if_spppsubr.c 				sppp_chap_input(sp, m);
m                 534 net/if_spppsubr.c 			m_freem (m);
m                 539 net/if_spppsubr.c 				sppp_cp_input(&ipcp, sp, m);
m                 540 net/if_spppsubr.c 			m_freem (m);
m                 569 net/if_spppsubr.c 			sppp_cisco_input ((struct sppp*) ifp, m);
m                 570 net/if_spppsubr.c 			m_freem (m);
m                 607 net/if_spppsubr.c 	IF_ENQUEUE(inq, m);
m                 615 net/if_spppsubr.c sppp_output(struct ifnet *ifp, struct mbuf *m,
m                 632 net/if_spppsubr.c 		m_freem (m);
m                 657 net/if_spppsubr.c 		if (m->m_len >= sizeof(struct ip)) {
m                 658 net/if_spppsubr.c 			ip = mtod(m, struct ip *);
m                 660 net/if_spppsubr.c 			    m->m_len >= sizeof(struct ip) + (ip->ip_hl << 2) +
m                 680 net/if_spppsubr.c 			m_freem(m);
m                 701 net/if_spppsubr.c 	M_PREPEND (m, PPP_HEADER_LEN, M_DONTWAIT);
m                 702 net/if_spppsubr.c 	if (!m) {
m                 714 net/if_spppsubr.c 	h = mtod (m, struct ppp_header*);
m                 746 net/if_spppsubr.c 		m_freem(m);
m                 753 net/if_spppsubr.c 		M_PREPEND(m, 2, M_DONTWAIT);
m                 754 net/if_spppsubr.c 		if (m == NULL) {
m                 763 net/if_spppsubr.c 		*mtod(m, u_int16_t *) = protocol;
m                 771 net/if_spppsubr.c 	len = m->m_pkthdr.len;
m                 779 net/if_spppsubr.c 			m_freem (m);
m                 783 net/if_spppsubr.c 			IF_ENQUEUE (ifq, m);
m                 785 net/if_spppsubr.c 		IFQ_ENQUEUE(&ifp->if_snd, m, NULL, rv);
m                 904 net/if_spppsubr.c 	struct mbuf *m;
m                 914 net/if_spppsubr.c 	IF_DEQUEUE(&sp->pp_cpq, m);
m                 915 net/if_spppsubr.c 	if (m == NULL &&
m                 917 net/if_spppsubr.c 		IF_DEQUEUE(&sp->pp_fastq, m);
m                 918 net/if_spppsubr.c 		if (m == NULL)
m                 919 net/if_spppsubr.c 			IFQ_DEQUEUE (&sp->pp_if.if_snd, m);
m                 922 net/if_spppsubr.c 	return m;
m                 932 net/if_spppsubr.c 	struct mbuf *m;
m                 936 net/if_spppsubr.c 	m = sp->pp_cpq.ifq_head;
m                 937 net/if_spppsubr.c 	if (m == NULL &&
m                 940 net/if_spppsubr.c 		if ((m = sp->pp_fastq.ifq_head) == NULL)
m                 941 net/if_spppsubr.c 			IFQ_POLL(&sp->pp_if.if_snd, m);
m                 943 net/if_spppsubr.c 	return (m);
m                1047 net/if_spppsubr.c sppp_cisco_input(struct sppp *sp, struct mbuf *m)
m                1053 net/if_spppsubr.c 	if (m->m_pkthdr.len < CISCO_PACKET_LEN) {
m                1057 net/if_spppsubr.c 			    SPP_ARGS(ifp), m->m_pkthdr.len);
m                1060 net/if_spppsubr.c 	h = mtod (m, struct cisco_packet*);
m                1065 net/if_spppsubr.c 		    SPP_ARGS(ifp), m->m_pkthdr.len,
m                1127 net/if_spppsubr.c 	struct mbuf *m;
m                1132 net/if_spppsubr.c 	MGETHDR (m, M_DONTWAIT, MT_DATA);
m                1133 net/if_spppsubr.c 	if (! m)
m                1135 net/if_spppsubr.c 	m->m_pkthdr.len = m->m_len = PPP_HEADER_LEN + CISCO_PACKET_LEN;
m                1136 net/if_spppsubr.c 	m->m_pkthdr.rcvif = 0;
m                1138 net/if_spppsubr.c 	h = mtod (m, struct ppp_header*);
m                1161 net/if_spppsubr.c 		m_freem (m);
m                1162 net/if_spppsubr.c 		m = NULL;
m                1164 net/if_spppsubr.c 		IF_ENQUEUE (&sp->pp_cpq, m);
m                1167 net/if_spppsubr.c 	if (m != NULL)
m                1168 net/if_spppsubr.c 		ifp->if_obytes += m->m_pkthdr.len + sp->pp_framebytes;
m                1185 net/if_spppsubr.c 	struct mbuf *m;
m                1192 net/if_spppsubr.c 	MGETHDR (m, M_DONTWAIT, MT_DATA);
m                1193 net/if_spppsubr.c 	if (! m)
m                1195 net/if_spppsubr.c 	m->m_pkthdr.len = m->m_len = pkthdrlen + LCP_HEADER_LEN + len;
m                1196 net/if_spppsubr.c 	m->m_pkthdr.rcvif = 0;
m                1199 net/if_spppsubr.c 		*mtod(m, u_int16_t *) = htons(proto);
m                1200 net/if_spppsubr.c 		lh = (struct lcp_header *)(mtod(m, u_int8_t *) + 2);
m                1202 net/if_spppsubr.c 		h = mtod (m, struct ppp_header*);
m                1227 net/if_spppsubr.c 		m_freem (m);
m                1229 net/if_spppsubr.c 		m = NULL;
m                1231 net/if_spppsubr.c 		IF_ENQUEUE (&sp->pp_cpq, m);
m                1234 net/if_spppsubr.c 	if (m != NULL)
m                1235 net/if_spppsubr.c 		ifp->if_obytes += m->m_pkthdr.len + sp->pp_framebytes;
m                1242 net/if_spppsubr.c sppp_cp_input(const struct cp *cp, struct sppp *sp, struct mbuf *m)
m                1246 net/if_spppsubr.c 	int len = m->m_pkthdr.len;
m                1258 net/if_spppsubr.c 	h = mtod (m, struct lcp_header*);
m                1591 net/if_spppsubr.c 			     m->m_pkthdr.len, h);
m                3064 net/if_spppsubr.c sppp_chap_input(struct sppp *sp, struct mbuf *m)
m                3073 net/if_spppsubr.c 	len = m->m_pkthdr.len;
m                3081 net/if_spppsubr.c 	h = mtod (m, struct lcp_header*);
m                3474 net/if_spppsubr.c sppp_pap_input(struct sppp *sp, struct mbuf *m)
m                3482 net/if_spppsubr.c 	len = m->m_pkthdr.len;
m                3490 net/if_spppsubr.c 	h = mtod (m, struct lcp_header*);
m                3791 net/if_spppsubr.c 	struct mbuf *m;
m                3799 net/if_spppsubr.c 	MGETHDR (m, M_DONTWAIT, MT_DATA);
m                3800 net/if_spppsubr.c 	if (! m)
m                3802 net/if_spppsubr.c 	m->m_pkthdr.rcvif = 0;
m                3805 net/if_spppsubr.c 		*mtod(m, u_int16_t *) = htons(cp->proto);
m                3807 net/if_spppsubr.c 		lh = (struct lcp_header *)(mtod(m, u_int8_t *) + 2);
m                3809 net/if_spppsubr.c 		h = mtod (m, struct ppp_header*);
m                3829 net/if_spppsubr.c 			m_freem(m);
m                3838 net/if_spppsubr.c 	m->m_pkthdr.len = m->m_len = pkthdrlen + LCP_HEADER_LEN + len;
m                3853 net/if_spppsubr.c 		m_freem (m);
m                3855 net/if_spppsubr.c 		m = NULL;
m                3857 net/if_spppsubr.c 		IF_ENQUEUE (&sp->pp_cpq, m);
m                3860 net/if_spppsubr.c 	if (m != NULL)
m                3861 net/if_spppsubr.c 		ifp->if_obytes += m->m_pkthdr.len + sp->pp_framebytes;
m                3870 net/if_spppsubr.c 	struct mbuf *m, *n;
m                3873 net/if_spppsubr.c 	while ((m = n)) {
m                3874 net/if_spppsubr.c 		n = m->m_act;
m                3875 net/if_spppsubr.c 		m_freem (m);
m                 267 net/if_strip.c void	strip_sendbody(struct st_softc *sc, struct mbuf *m);
m                 568 net/if_strip.c strip_sendbody(sc, m)
m                 570 net/if_strip.c 	struct mbuf *m;
m                 578 net/if_strip.c 	while (m) {
m                 587 net/if_strip.c 		dp = StuffData(mtod(m, u_char *), m->m_len, dp, &rllstate_ptr);
m                 589 net/if_strip.c 		MFREE(m, m2);
m                 590 net/if_strip.c 		m = m2;
m                 609 net/if_strip.c 	m_freem(m);
m                 658 net/if_strip.c 		struct mbuf *m;
m                 659 net/if_strip.c 		MFREE(m0, m);
m                 660 net/if_strip.c 		m0 = m;
m                 701 net/if_strip.c stripoutput(ifp, m, dst, rt)
m                 703 net/if_strip.c 	struct mbuf *m;
m                 719 net/if_strip.c 		m_freem(m);
m                 724 net/if_strip.c 		m_freem(m);
m                 752 net/if_strip.c 			m_freem(m);
m                 771 net/if_strip.c 		m_freem(m);
m                 777 net/if_strip.c 	ip = mtod(m, struct ip *);
m                 779 net/if_strip.c 		m_freem(m);
m                 793 net/if_strip.c 	M_PREPEND(m, sizeof(struct st_header), M_DONTWAIT);
m                 794 net/if_strip.c 	if (m == 0) {
m                 824 net/if_strip.c 	shp = mtod(m, struct st_header *);
m                 849 net/if_strip.c 			m_freem(m);
m                 852 net/if_strip.c 			IF_ENQUEUE(ifq, m);
m                 856 net/if_strip.c 		IFQ_ENQUEUE(&sc->sc_if.if_snd, m, NULL, error);
m                 891 net/if_strip.c 	struct mbuf *m;
m                 949 net/if_strip.c 		IF_DEQUEUE(&sc->sc_fastq, m);
m                 950 net/if_strip.c 		if (m)
m                 953 net/if_strip.c 			IFQ_DEQUEUE(&sc->sc_if.if_snd, m);
m                 955 net/if_strip.c 		if (m == NULL) {
m                 974 net/if_strip.c 			struct mbuf *m1 = m;
m                 987 net/if_strip.c 		if ((ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) {
m                 989 net/if_strip.c 				*mtod(m, u_char *) |= sl_compress_tcp(m, ip,
m                1002 net/if_strip.c 			bcopy(mtod(m, caddr_t)+STRIP_HDRLEN, &cp[SLX_CHDR], CHDR_LEN);
m                1016 net/if_strip.c 			m_freem(m);
m                1022 net/if_strip.c 		if (strip_send(sc, m) == NULL) {
m                1071 net/if_strip.c 	struct mbuf *m;
m                1073 net/if_strip.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1074 net/if_strip.c 	if (m == NULL)
m                1085 net/if_strip.c 		MCLGET(m, M_DONTWAIT);
m                1086 net/if_strip.c 		if ((m->m_flags & M_EXT) == 0) {
m                1091 net/if_strip.c 			(void) m_free(m);
m                1094 net/if_strip.c 		sc->sc_ep = mtod(m, u_char *) + SLBUFSIZE;
m                1095 net/if_strip.c 		m->m_data = (caddr_t)sc->sc_buf;
m                1096 net/if_strip.c 		m->m_ext.ext_buf = (caddr_t)((long)sc->sc_buf &~ MCLOFSET);
m                1098 net/if_strip.c 		bcopy((caddr_t)sc->sc_buf, mtod(m, caddr_t), len);
m                1100 net/if_strip.c 	m->m_len = len;
m                1101 net/if_strip.c 	m->m_pkthdr.len = len;
m                1102 net/if_strip.c 	m->m_pkthdr.rcvif = &sc->sc_if;
m                1103 net/if_strip.c 	return (m);
m                1120 net/if_strip.c 	struct mbuf *m;
m                1259 net/if_strip.c 	m = strip_btom(sc, len);
m                1260 net/if_strip.c 	if (m == NULL) {
m                1273 net/if_strip.c 		m_freem(m);
m                1275 net/if_strip.c 		IF_ENQUEUE(&ipintrq, m);
m                 391 net/if_trunk.c 	int m = 0;
m                 396 net/if_trunk.c 			m = MAX(m, trunk_port_checkstacking(tr_ptr));
m                 400 net/if_trunk.c 	return (m + 1);
m                 894 net/if_trunk.c 	struct mbuf *m;
m                 898 net/if_trunk.c 		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 899 net/if_trunk.c 		if (m == NULL)
m                 904 net/if_trunk.c 			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 908 net/if_trunk.c 			error = (*tr->tr_start)(tr, m);
m                 910 net/if_trunk.c 			m_free(m);
m                 922 net/if_trunk.c trunk_enqueue(struct ifnet *ifp, struct mbuf *m)
m                 927 net/if_trunk.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 933 net/if_trunk.c 	ifp->if_obytes += m->m_pkthdr.len;
m                 934 net/if_trunk.c 	if (m->m_flags & M_MCAST)
m                 941 net/if_trunk.c trunk_hashmbuf(struct mbuf *m, u_int32_t key)
m                 956 net/if_trunk.c 	if (m->m_len < off)
m                 958 net/if_trunk.c 	eh = mtod(m, struct ether_header *);
m                 966 net/if_trunk.c 		    trunk_lb_gethdr(m, off, EVL_ENCAPLEN, &vlanbuf)) == NULL)
m                 977 net/if_trunk.c 		    trunk_lb_gethdr(m, off, sizeof(*ip), &ipbuf)) == NULL)
m                 986 net/if_trunk.c 		    trunk_lb_gethdr(m, off, sizeof(*ip6), &ip6buf)) == NULL)
m                1043 net/if_trunk.c trunk_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
m                1064 net/if_trunk.c 	error = (*tr->tr_input)(tr, tp, eh, m);
m                1070 net/if_trunk.c 		bpf_mtap_hdr(trifp->if_bpf, (char *)eh, ETHER_HDR_LEN, m,
m                1220 net/if_trunk.c trunk_rr_start(struct trunk_softc *tr, struct mbuf *m)
m                1229 net/if_trunk.c 	if ((error = trunk_enqueue(tp->tp_if, m)) != 0)
m                1241 net/if_trunk.c     struct ether_header *eh, struct mbuf *m)
m                1246 net/if_trunk.c 	m->m_pkthdr.rcvif = ifp;
m                1277 net/if_trunk.c trunk_fail_start(struct trunk_softc *tr, struct mbuf *m)
m                1286 net/if_trunk.c 	return (trunk_enqueue(tp->tp_if, m));
m                1291 net/if_trunk.c     struct ether_header *eh, struct mbuf *m)
m                1297 net/if_trunk.c 		m->m_pkthdr.rcvif = ifp;
m                1308 net/if_trunk.c 			m->m_pkthdr.rcvif = ifp;
m                1390 net/if_trunk.c trunk_lb_gethdr(struct mbuf *m, u_int off, u_int len, void *buf)
m                1392 net/if_trunk.c 	if (m->m_pkthdr.len < (off + len)) {
m                1394 net/if_trunk.c 	} else if (m->m_len < (off + len)) {
m                1395 net/if_trunk.c 		m_copydata(m, off, len, buf);
m                1398 net/if_trunk.c 	return (mtod(m, const void *) + off);
m                1402 net/if_trunk.c trunk_lb_start(struct trunk_softc *tr, struct mbuf *m)
m                1409 net/if_trunk.c 	p = trunk_hashmbuf(m, lb->lb_key);
m                1422 net/if_trunk.c 	return (trunk_enqueue(tp->tp_if, m));
m                1427 net/if_trunk.c     struct ether_header *eh, struct mbuf *m)
m                1432 net/if_trunk.c 	m->m_pkthdr.rcvif = ifp;
m                 602 net/if_tun.c   	struct mbuf		*m;
m                 663 net/if_tun.c   		IFQ_POLL(&tp->tun_if.if_snd, m);
m                 664 net/if_tun.c   		if (m != NULL)
m                 665 net/if_tun.c   			*(int *)data = m->m_pkthdr.len;
m                 712 net/if_tun.c   	struct mbuf		*m, *m0;
m                 755 net/if_tun.c   		MFREE(m0, m);
m                 756 net/if_tun.c   		m0 = m;
m                 779 net/if_tun.c   	struct mbuf		*top, **mp, *m;
m                 797 net/if_tun.c   	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 798 net/if_tun.c   	if (m == NULL)
m                 802 net/if_tun.c   		MCLGET(m, M_DONTWAIT);
m                 803 net/if_tun.c   		if (!(m->m_flags & M_EXT)) {
m                 804 net/if_tun.c   			m_free(m);
m                 818 net/if_tun.c   		m->m_data += ETHER_ALIGN;
m                 821 net/if_tun.c   		m->m_len = min(mlen, uio->uio_resid);
m                 822 net/if_tun.c   		error = uiomove(mtod (m, caddr_t), m->m_len, uio);
m                 823 net/if_tun.c   		*mp = m;
m                 824 net/if_tun.c   		mp = &m->m_next;
m                 826 net/if_tun.c   			MGET(m, M_DONTWAIT, MT_DATA);
m                 827 net/if_tun.c   			if (m == NULL) {
m                 833 net/if_tun.c   				MCLGET(m, M_DONTWAIT);
m                 834 net/if_tun.c   				if (!(m->m_flags & M_EXT)) {
m                 836 net/if_tun.c   					m_free(m);
m                 923 net/if_tun.c   	struct mbuf		*m;
m                 934 net/if_tun.c   		IFQ_POLL(&ifp->if_snd, m);
m                 935 net/if_tun.c   		if (m != NULL) {
m                1017 net/if_tun.c   	struct mbuf		*m;
m                1028 net/if_tun.c   	IFQ_POLL(&ifp->if_snd, m);
m                1029 net/if_tun.c   	if (m != NULL) {
m                1085 net/if_tun.c   	struct mbuf		*m;
m                1092 net/if_tun.c   	IFQ_POLL(&ifp->if_snd, m);
m                1093 net/if_tun.c   	if (m != NULL) {
m                1097 net/if_tun.c   				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 180 net/if_vlan.c  	struct mbuf *m;
m                 188 net/if_vlan.c  		IFQ_DEQUEUE(&ifp->if_snd, m);
m                 189 net/if_vlan.c  		if (m == NULL)
m                 197 net/if_vlan.c  			m_freem(m);
m                 203 net/if_vlan.c  			bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
m                 225 net/if_vlan.c  			m->m_pkthdr.rcvif = ifp;
m                 226 net/if_vlan.c  			m->m_flags |= M_PROTO1;
m                 230 net/if_vlan.c  			m_copydata(m, 0, ETHER_HDR_LEN, (caddr_t)&evh);
m                 236 net/if_vlan.c  			m_adj(m, ETHER_HDR_LEN);
m                 237 net/if_vlan.c  			M_PREPEND(m, sizeof(evh), M_DONTWAIT);
m                 238 net/if_vlan.c  			if (m == NULL) {
m                 243 net/if_vlan.c  			m_copyback(m, 0, sizeof(evh), &evh);
m                 250 net/if_vlan.c  		p->if_obytes += m->m_pkthdr.len;
m                 251 net/if_vlan.c  		if (m->m_flags & M_MCAST)
m                 253 net/if_vlan.c  		IFQ_ENQUEUE(&p->if_snd, m, NULL, error);
m                 273 net/if_vlan.c  vlan_input(eh, m)
m                 275 net/if_vlan.c  	struct mbuf *m;
m                 279 net/if_vlan.c  	struct ifnet *ifp = m->m_pkthdr.rcvif;
m                 281 net/if_vlan.c  	if (m->m_len < EVL_ENCAPLEN &&
m                 282 net/if_vlan.c  	    (m = m_pullup(m, EVL_ENCAPLEN)) == NULL) {
m                 287 net/if_vlan.c  	tag = EVL_VLANOFTAG(ntohs(*mtod(m, u_int16_t *)));
m                 290 net/if_vlan.c  		if (m->m_pkthdr.rcvif == ifv->ifv_p && tag == ifv->ifv_tag)
m                 298 net/if_vlan.c  		m_freem(m);
m                 309 net/if_vlan.c  	m->m_pkthdr.rcvif = &ifv->ifv_if;
m                 310 net/if_vlan.c  	eh->ether_type = mtod(m, u_int16_t *)[1];
m                 311 net/if_vlan.c  	m->m_len -= EVL_ENCAPLEN;
m                 312 net/if_vlan.c  	m->m_data += EVL_ENCAPLEN;
m                 313 net/if_vlan.c  	m->m_pkthdr.len -= EVL_ENCAPLEN;
m                 318 net/if_vlan.c  		    m, BPF_DIRECTION_IN);
m                 321 net/if_vlan.c  	ether_input(&ifv->ifv_if, eh, m);
m                 100 net/if_vlan_var.h extern	int vlan_input(struct ether_header *eh, struct mbuf *m);
m                1504 net/pf.c       pf_modulate_sack(struct mbuf *m, int off, struct pf_pdesc *pd,
m                1514 net/pf.c       	    !pf_pull_hdr(m, off + sizeof(*th), opts, hlen, NULL, NULL, pd->af))
m                1552 net/pf.c       		m_copyback(m, off + sizeof(*th), thoptlen, opts);
m                1563 net/pf.c       	struct mbuf	*m;
m                1593 net/pf.c       	m = m_gethdr(M_DONTWAIT, MT_HEADER);
m                1594 net/pf.c       	if (m == NULL)
m                1597 net/pf.c       		m->m_pkthdr.pf.flags |= PF_TAG_GENERATED;
m                1598 net/pf.c       	m->m_pkthdr.pf.tag = rtag;
m                1601 net/pf.c       		m->m_pkthdr.pf.rtableid = m->m_pkthdr.pf.rtableid;
m                1605 net/pf.c       		m->m_pkthdr.pf.qid = r->qid;
m                1607 net/pf.c       		m->m_pkthdr.pf.hdr = mtod(m, struct ip *);
m                1610 net/pf.c       	m->m_data += max_linkhdr;
m                1611 net/pf.c       	m->m_pkthdr.len = m->m_len = len;
m                1612 net/pf.c       	m->m_pkthdr.rcvif = NULL;
m                1613 net/pf.c       	bzero(m->m_data, len);
m                1617 net/pf.c       		h = mtod(m, struct ip *);
m                1630 net/pf.c       		h6 = mtod(m, struct ip6_hdr *);
m                1664 net/pf.c       		th->th_sum = in_cksum(m, len);
m                1675 net/pf.c       			ip_output(m, (void *)NULL, (void *)NULL, 0,
m                1683 net/pf.c       				m_freem(m);
m                1693 net/pf.c       			ip_output(m, (void *)NULL, &ro, IP_ROUTETOETHER,
m                1701 net/pf.c       		th->th_sum = in6_cksum(m, IPPROTO_TCP,
m                1707 net/pf.c       		ip6_output(m, NULL, NULL, 0, NULL, NULL, NULL);
m                1714 net/pf.c       pf_send_icmp(struct mbuf *m, u_int8_t type, u_int8_t code, sa_family_t af,
m                1719 net/pf.c       	m0 = m_copy(m, 0, M_COPYALL);
m                1753 net/pf.c       pf_match_addr(u_int8_t n, struct pf_addr *a, struct pf_addr *m,
m                1761 net/pf.c       		if ((a->addr32[0] & m->addr32[0]) ==
m                1762 net/pf.c       		    (b->addr32[0] & m->addr32[0]))
m                1768 net/pf.c       		if (((a->addr32[0] & m->addr32[0]) ==
m                1769 net/pf.c       		     (b->addr32[0] & m->addr32[0])) &&
m                1770 net/pf.c       		    ((a->addr32[1] & m->addr32[1]) ==
m                1771 net/pf.c       		     (b->addr32[1] & m->addr32[1])) &&
m                1772 net/pf.c       		    ((a->addr32[2] & m->addr32[2]) ==
m                1773 net/pf.c       		     (b->addr32[2] & m->addr32[2])) &&
m                1774 net/pf.c       		    ((a->addr32[3] & m->addr32[3]) ==
m                1775 net/pf.c       		     (b->addr32[3] & m->addr32[3])))
m                1845 net/pf.c       pf_match_tag(struct mbuf *m, struct pf_rule *r, int *tag)
m                1848 net/pf.c       		*tag = m->m_pkthdr.pf.tag;
m                1855 net/pf.c       pf_tag_packet(struct mbuf *m, int tag, int rtableid)
m                1861 net/pf.c       		m->m_pkthdr.pf.tag = tag;
m                1863 net/pf.c       		m->m_pkthdr.pf.rtableid = rtableid;
m                2329 net/pf.c       pf_match_translation(struct pf_pdesc *pd, struct mbuf *m, int off,
m                2380 net/pf.c       		else if (r->match_tag && !pf_match_tag(m, r, &tag))
m                2383 net/pf.c       		    IPPROTO_TCP || !pf_osfp_match(pf_osfp_fingerprint(pd, m,
m                2401 net/pf.c       	if (pf_tag_packet(m, tag, rtableid))
m                2410 net/pf.c       pf_get_translation(struct pf_pdesc *pd, struct mbuf *m, int off, int direction,
m                2419 net/pf.c       		r = pf_match_translation(pd, m, off, direction, kif, saddr,
m                2422 net/pf.c       			r = pf_match_translation(pd, m, off, direction, kif,
m                2425 net/pf.c       		r = pf_match_translation(pd, m, off, direction, kif, saddr,
m                2428 net/pf.c       			r = pf_match_translation(pd, m, off, direction, kif,
m                2636 net/pf.c       pf_get_wscale(struct mbuf *m, int off, u_int16_t th_off, sa_family_t af)
m                2646 net/pf.c       	if (!pf_pull_hdr(m, off, hdr, hlen, NULL, NULL, af))
m                2676 net/pf.c       pf_get_mss(struct mbuf *m, int off, u_int16_t th_off, sa_family_t af)
m                2686 net/pf.c       	if (!pf_pull_hdr(m, off, hdr, hlen, NULL, NULL, af))
m                2841 net/pf.c           struct pfi_kif *kif, struct mbuf *m, int off, void *h,
m                2920 net/pf.c       		if ((nr = pf_get_translation(pd, m, off, PF_OUT, kif, &nsn,
m                2944 net/pf.c       				m_copyback(m, off, ICMP_MINLEN, pd->hdr.icmp);
m                2978 net/pf.c       		if ((nr = pf_get_translation(pd, m, off, PF_IN, kif, &nsn,
m                3082 net/pf.c       		else if (r->match_tag && !pf_match_tag(m, r, &tag))
m                3086 net/pf.c       		    pf_osfp_fingerprint(pd, m, off, th),
m                3118 net/pf.c       			m_copyback(m, off, hdrlen, pd->hdr.any);
m                3119 net/pf.c       		PFLOG_PACKET(kif, h, m, af, direction, reason, r->log ? r : nr,
m                3206 net/pf.c       			struct ip	*h = mtod(m, struct ip *);
m                3208 net/pf.c       			if (pf_check_proto_cksum(m, off,
m                3222 net/pf.c       			pf_send_icmp(m, r->return_icmp >> 8,
m                3225 net/pf.c       			pf_send_icmp(m, r->return_icmp6 >> 8,
m                3232 net/pf.c       	if (pf_tag_packet(m, tag, rtableid)) {
m                3315 net/pf.c       				s->src.wscale = pf_get_wscale(m, off,
m                3365 net/pf.c       			    pf_normalize_tcp_init(m, off, pd, th, &s->src,
m                3374 net/pf.c       			    pf_normalize_tcp_stateful(m, off, pd, &reason,
m                3477 net/pf.c       			mss = pf_get_mss(m, off, th->th_off, af);
m                3491 net/pf.c       		m_copyback(m, off, hdrlen, pd->hdr.any);
m                3498 net/pf.c           struct mbuf *m, void *h, struct pf_pdesc *pd, struct pf_rule **am,
m                3534 net/pf.c       		else if (r->match_tag && !pf_match_tag(m, r, &tag))
m                3560 net/pf.c       		PFLOG_PACKET(kif, h, m, af, direction, reason, r, a, ruleset,
m                3566 net/pf.c       	if (pf_tag_packet(m, tag, -1)) {
m                3576 net/pf.c           struct mbuf *m, int off, void *h, struct pf_pdesc *pd,
m                3719 net/pf.c       			if (pf_normalize_tcp_init(m, off, pd, th, src, dst)) {
m                3742 net/pf.c       				src->wscale = pf_get_wscale(m, off, th->th_off,
m                3830 net/pf.c       		if (pf_modulate_sack(m, off, pd, th, dst))
m                3849 net/pf.c       			if (pf_normalize_tcp_stateful(m, off, pd, reason, th,
m                3946 net/pf.c       			if (pf_normalize_tcp_stateful(m, off, pd, reason, th,
m                4024 net/pf.c       		m_copyback(m, off, sizeof(*th), th);
m                4027 net/pf.c       		m_copyback(m, off, sizeof(*th), th);
m                4035 net/pf.c           struct mbuf *m, int off, void *h, struct pf_pdesc *pd)
m                4088 net/pf.c       		m_copyback(m, off, sizeof(*uh), uh);
m                4096 net/pf.c           struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason)
m                4174 net/pf.c       					m_copyback(m, off, ICMP_MINLEN,
m                4183 net/pf.c       					m_copyback(m, off,
m                4202 net/pf.c       					m_copyback(m, off, ICMP_MINLEN,
m                4211 net/pf.c       					m_copyback(m, off,
m                4246 net/pf.c       			if (!pf_pull_hdr(m, ipoff2, &h2, sizeof(h2),
m                4275 net/pf.c       			if (!pf_pull_hdr(m, ipoff2, &h2_6, sizeof(h2_6),
m                4303 net/pf.c       					if (!pf_pull_hdr(m, off2, &opt6,
m                4340 net/pf.c       			if (!pf_pull_hdr(m, off2, &th, 8, NULL, reason,
m                4422 net/pf.c       					m_copyback(m, off, ICMP_MINLEN,
m                4424 net/pf.c       					m_copyback(m, ipoff2, sizeof(h2),
m                4430 net/pf.c       					m_copyback(m, off,
m                4433 net/pf.c       					m_copyback(m, ipoff2, sizeof(h2_6),
m                4438 net/pf.c       				m_copyback(m, off2, 8, &th);
m                4447 net/pf.c       			if (!pf_pull_hdr(m, off2, &uh, sizeof(uh),
m                4491 net/pf.c       					m_copyback(m, off, ICMP_MINLEN,
m                4493 net/pf.c       					m_copyback(m, ipoff2, sizeof(h2), &h2);
m                4498 net/pf.c       					m_copyback(m, off,
m                4501 net/pf.c       					m_copyback(m, ipoff2, sizeof(h2_6),
m                4506 net/pf.c       				m_copyback(m, off2, sizeof(uh), &uh);
m                4516 net/pf.c       			if (!pf_pull_hdr(m, off2, &iih, ICMP_MINLEN,
m                4556 net/pf.c       				m_copyback(m, off, ICMP_MINLEN, pd->hdr.icmp);
m                4557 net/pf.c       				m_copyback(m, ipoff2, sizeof(h2), &h2);
m                4558 net/pf.c       				m_copyback(m, off2, ICMP_MINLEN, &iih);
m                4569 net/pf.c       			if (!pf_pull_hdr(m, off2, &iih,
m                4608 net/pf.c       				m_copyback(m, off, sizeof(struct icmp6_hdr),
m                4610 net/pf.c       				m_copyback(m, ipoff2, sizeof(h2_6), &h2_6);
m                4611 net/pf.c       				m_copyback(m, off2, sizeof(struct icmp6_hdr),
m                4655 net/pf.c       					m_copyback(m, off, ICMP_MINLEN,
m                4657 net/pf.c       					m_copyback(m, ipoff2, sizeof(h2), &h2);
m                4662 net/pf.c       					m_copyback(m, off,
m                4665 net/pf.c       					m_copyback(m, ipoff2, sizeof(h2_6),
m                4769 net/pf.c       pf_pull_hdr(struct mbuf *m, int off, void *p, int len,
m                4775 net/pf.c       		struct ip	*h = mtod(m, struct ip *);
m                4787 net/pf.c       		if (m->m_pkthdr.len < off + len ||
m                4798 net/pf.c       		struct ip6_hdr	*h = mtod(m, struct ip6_hdr *);
m                4800 net/pf.c       		if (m->m_pkthdr.len < off + len ||
m                4811 net/pf.c       	m_copydata(m, off, len, p);
m                4941 net/pf.c       pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
m                4957 net/pf.c       	if (m == NULL || *m == NULL || r == NULL ||
m                4961 net/pf.c       	if ((*m)->m_pkthdr.pf.routed++ > 3) {
m                4962 net/pf.c       		m0 = *m;
m                4963 net/pf.c       		*m = NULL;
m                4968 net/pf.c       		if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
m                4973 net/pf.c       		m0 = *m;
m                5122 net/pf.c       		*m = NULL;
m                5135 net/pf.c       pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
m                5148 net/pf.c       	if (m == NULL || *m == NULL || r == NULL ||
m                5152 net/pf.c       	if ((*m)->m_pkthdr.pf.routed++ > 3) {
m                5153 net/pf.c       		m0 = *m;
m                5154 net/pf.c       		*m = NULL;
m                5159 net/pf.c       		if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
m                5164 net/pf.c       		m0 = *m;
m                5240 net/pf.c       		*m = NULL;
m                5257 net/pf.c       pf_check_proto_cksum(struct mbuf *m, int off, int len, u_int8_t p,
m                5281 net/pf.c       	if (m->m_pkthdr.csum_flags & flag_ok)
m                5283 net/pf.c       	if (m->m_pkthdr.csum_flags & flag_bad)
m                5287 net/pf.c       	if (m->m_pkthdr.len < off + len)
m                5293 net/pf.c       			if (m->m_len < off)
m                5295 net/pf.c       			m->m_data += off;
m                5296 net/pf.c       			m->m_len -= off;
m                5297 net/pf.c       			sum = in_cksum(m, len);
m                5298 net/pf.c       			m->m_data -= off;
m                5299 net/pf.c       			m->m_len += off;
m                5301 net/pf.c       			if (m->m_len < sizeof(struct ip))
m                5303 net/pf.c       			sum = in4_cksum(m, p, off, len);
m                5309 net/pf.c       		if (m->m_len < sizeof(struct ip6_hdr))
m                5311 net/pf.c       		sum = in6_cksum(m, p, off, len);
m                5318 net/pf.c       		m->m_pkthdr.csum_flags |= flag_bad;
m                5337 net/pf.c       	m->m_pkthdr.csum_flags |= flag_ok;
m                5348 net/pf.c       	struct mbuf		*m = *m0;
m                5375 net/pf.c       	if ((m->m_flags & M_PKTHDR) == 0)
m                5379 net/pf.c       	if (m->m_pkthdr.len < (int)sizeof(*h)) {
m                5386 net/pf.c       	if (m->m_pkthdr.pf.flags & PF_TAG_GENERATED)
m                5394 net/pf.c       	m = *m0;	/* pf_normalize messes with m0 */
m                5395 net/pf.c       	h = mtod(m, struct ip *);
m                5417 net/pf.c       		action = pf_test_fragment(&r, dir, kif, m, h,
m                5428 net/pf.c       		if (!pf_pull_hdr(m, off, &th, sizeof(th),
m                5436 net/pf.c       		action = pf_normalize_tcp(dir, kif, m, 0, off, h, &pd);
m                5439 net/pf.c       		action = pf_test_state_tcp(&s, dir, kif, m, off, h, &pd,
m                5450 net/pf.c       			    m, off, h, &pd, &a, &ruleset, &ipintrq);
m                5458 net/pf.c       		if (!pf_pull_hdr(m, off, &uh, sizeof(uh),
m                5464 net/pf.c       		    ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
m                5470 net/pf.c       		action = pf_test_state_udp(&s, dir, kif, m, off, h, &pd);
m                5480 net/pf.c       			    m, off, h, &pd, &a, &ruleset, &ipintrq);
m                5488 net/pf.c       		if (!pf_pull_hdr(m, off, &ih, ICMP_MINLEN,
m                5493 net/pf.c       		action = pf_test_state_icmp(&s, dir, kif, m, off, h, &pd,
m                5504 net/pf.c       			    m, off, h, &pd, &a, &ruleset, &ipintrq);
m                5518 net/pf.c       			action = pf_test_rule(&r, &s, dir, kif, m, off, h,
m                5534 net/pf.c       		pf_tag_packet(m, s ? s->tag : 0, r->rtableid);
m                5539 net/pf.c       			m->m_pkthdr.pf.qid = r->pqid;
m                5541 net/pf.c       			m->m_pkthdr.pf.qid = r->qid;
m                5543 net/pf.c       		m->m_pkthdr.pf.hdr = h;
m                5557 net/pf.c       		m->m_pkthdr.pf.flags |= PF_TAG_TRANSLATE_LOCALHOST;
m                5567 net/pf.c       		PFLOG_PACKET(kif, h, m, AF_INET, dir, reason, lr, a, ruleset,
m                5657 net/pf.c       	struct mbuf		*m = *m0, *n = NULL;
m                5684 net/pf.c       	if ((m->m_flags & M_PKTHDR) == 0)
m                5688 net/pf.c       	if (m->m_pkthdr.len < (int)sizeof(*h)) {
m                5695 net/pf.c       	if (m->m_pkthdr.pf.flags & PF_TAG_GENERATED)
m                5703 net/pf.c       	m = *m0;	/* pf_normalize messes with m0 */
m                5704 net/pf.c       	h = mtod(m, struct ip6_hdr *);
m                5727 net/pf.c       	off = ((caddr_t)h - m->m_data) + sizeof(struct ip6_hdr);
m                5732 net/pf.c       			action = pf_test_fragment(&r, dir, kif, m, h,
m                5748 net/pf.c       			if (!pf_pull_hdr(m, off, &rthdr, sizeof(rthdr), NULL,
m                5773 net/pf.c       			if (!pf_pull_hdr(m, off, &opt6, sizeof(opt6),
m                5797 net/pf.c       		n = m;
m                5805 net/pf.c       		if (!pf_pull_hdr(m, off, &th, sizeof(th),
m                5811 net/pf.c       		action = pf_normalize_tcp(dir, kif, m, 0, off, h, &pd);
m                5814 net/pf.c       		action = pf_test_state_tcp(&s, dir, kif, m, off, h, &pd,
m                5825 net/pf.c       			    m, off, h, &pd, &a, &ruleset, &ip6intrq);
m                5833 net/pf.c       		if (!pf_pull_hdr(m, off, &uh, sizeof(uh),
m                5839 net/pf.c       		    ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
m                5845 net/pf.c       		action = pf_test_state_udp(&s, dir, kif, m, off, h, &pd);
m                5855 net/pf.c       			    m, off, h, &pd, &a, &ruleset, &ip6intrq);
m                5863 net/pf.c       		if (!pf_pull_hdr(m, off, &ih, sizeof(ih),
m                5869 net/pf.c       		    m, off, h, &pd, &reason);
m                5879 net/pf.c       			    m, off, h, &pd, &a, &ruleset, &ip6intrq);
m                5893 net/pf.c       			action = pf_test_rule(&r, &s, dir, kif, m, off, h,
m                5899 net/pf.c       	if (n != m) {
m                5915 net/pf.c       		pf_tag_packet(m, s ? s->tag : 0, r->rtableid);
m                5920 net/pf.c       			m->m_pkthdr.pf.qid = r->pqid;
m                5922 net/pf.c       			m->m_pkthdr.pf.qid = r->qid;
m                5924 net/pf.c       		m->m_pkthdr.pf.hdr = h;
m                5933 net/pf.c       		m->m_pkthdr.pf.flags |= PF_TAG_TRANSLATE_LOCALHOST;
m                5943 net/pf.c       		PFLOG_PACKET(kif, h, m, AF_INET6, dir, reason, lr, a, ruleset,
m                 735 net/pf_if.c    	struct pf_addr *m = addr;
m                 739 net/pf_if.c    	while (j < 4 && m->addr32[j] == 0xffffffff) {
m                 744 net/pf_if.c    		tmp = ntohl(m->addr32[j]);
m                1772 net/pf_ioctl.c 		int			 m = 0, direction = pnl->direction;
m                1796 net/pf_ioctl.c 				state = pf_find_state_all(&key, PF_EXT_GWY, &m);
m                1802 net/pf_ioctl.c 				state = pf_find_state_all(&key, PF_LAN_EXT, &m);
m                1804 net/pf_ioctl.c 			if (m > 1)
m                 324 net/pf_norm.c  	struct mbuf	*m = *m0, *m2;
m                 336 net/pf_norm.c  	m->m_data += hlen;
m                 337 net/pf_norm.c  	m->m_len -= hlen;
m                 472 net/pf_norm.c  	m = frent->fr_m;
m                 473 net/pf_norm.c  	m2 = m->m_next;
m                 474 net/pf_norm.c  	m->m_next = NULL;
m                 475 net/pf_norm.c  	m_cat(m, m2);
m                 484 net/pf_norm.c  		m_cat(m, m2);
m                 496 net/pf_norm.c  	m->m_len += hlen;
m                 497 net/pf_norm.c  	m->m_data -= hlen;
m                 501 net/pf_norm.c  	if (m->m_flags & M_PKTHDR) {
m                 503 net/pf_norm.c  		for (m2 = m; m2; m2 = m2->m_next)
m                 505 net/pf_norm.c  		m->m_pkthdr.len = plen;
m                 508 net/pf_norm.c  	DPFPRINTF(("complete: %p(%d)\n", m, ntohs(ip->ip_len)));
m                 509 net/pf_norm.c  	return (m);
m                 515 net/pf_norm.c  	m_freem(m);
m                 523 net/pf_norm.c  	struct mbuf		*m = *m0;
m                 625 net/pf_norm.c  				*m0 = m_copym2(m, 0, h->ip_hl << 2, M_NOWAIT);
m                 629 net/pf_norm.c  				m_adj(m, precut + (h->ip_hl << 2));
m                 630 net/pf_norm.c  				m_cat(*m0, m);
m                 631 net/pf_norm.c  				m = *m0;
m                 632 net/pf_norm.c  				if (m->m_flags & M_PKTHDR) {
m                 635 net/pf_norm.c  					for (t = m; t; t = t->m_next)
m                 637 net/pf_norm.c  					m->m_pkthdr.len = plen;
m                 641 net/pf_norm.c  				h = mtod(m, struct ip *);
m                 644 net/pf_norm.c  				KASSERT((int)m->m_len ==
m                 692 net/pf_norm.c  				m_adj(m, -aftercut);
m                 693 net/pf_norm.c  				if (m->m_flags & M_PKTHDR) {
m                 696 net/pf_norm.c  					for (t = m; t; t = t->m_next)
m                 698 net/pf_norm.c  					m->m_pkthdr.len = plen;
m                 700 net/pf_norm.c  				h = mtod(m, struct ip *);
m                 701 net/pf_norm.c  				KASSERT((int)m->m_len ==
m                 785 net/pf_norm.c  	return (m);
m                 794 net/pf_norm.c  	m_freem(m);
m                 811 net/pf_norm.c  	m_freem(m);
m                 819 net/pf_norm.c  	struct mbuf		*m = *m0;
m                 823 net/pf_norm.c  	struct ip		*h = mtod(m, struct ip *);
m                 923 net/pf_norm.c  		frent->fr_m = m;
m                 927 net/pf_norm.c  		*m0 = m = pf_reassemble(m0, &frag, frent, mff);
m                 929 net/pf_norm.c  		if (m == NULL)
m                 935 net/pf_norm.c  		h = mtod(m, struct ip *);
m                 940 net/pf_norm.c  		if (dir == PF_OUT && m->m_pkthdr.pf.flags & PF_TAG_FRAGCACHE) {
m                 959 net/pf_norm.c  		*m0 = m = pf_fragcache(m0, h, &frag, mff,
m                 961 net/pf_norm.c  		if (m == NULL) {
m                 968 net/pf_norm.c  			m->m_pkthdr.pf.flags |= PF_TAG_FRAGCACHE;
m                1018 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
m                1024 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
m                1036 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET, dir, *reason, r, NULL, NULL, pd);
m                1046 net/pf_norm.c  	struct mbuf		*m = *m0;
m                1048 net/pf_norm.c  	struct ip6_hdr		*h = mtod(m, struct ip6_hdr *);
m                1094 net/pf_norm.c  	if (sizeof(struct ip6_hdr) + IPV6_MAXPACKET < m->m_pkthdr.len)
m                1108 net/pf_norm.c  			if (!pf_pull_hdr(m, off, &ext, sizeof(ext), NULL,
m                1118 net/pf_norm.c  			if (!pf_pull_hdr(m, off, &ext, sizeof(ext), NULL,
m                1124 net/pf_norm.c  				if (!pf_pull_hdr(m, ooff, &opt.ip6o_type,
m                1132 net/pf_norm.c  				if (!pf_pull_hdr(m, ooff, &opt, sizeof(opt),
m                1141 net/pf_norm.c  					if (!pf_pull_hdr(m, ooff, &jumbo,
m                1151 net/pf_norm.c  					    m->m_pkthdr.len)
m                1176 net/pf_norm.c  	if (sizeof(struct ip6_hdr) + plen > m->m_pkthdr.len)
m                1190 net/pf_norm.c  	if (!pf_pull_hdr(m, off, &frag, sizeof(frag), NULL, NULL, AF_INET6))
m                1203 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
m                1209 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
m                1215 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET6, dir, *reason, r, NULL, NULL, pd);
m                1221 net/pf_norm.c  pf_normalize_tcp(int dir, struct pfi_kif *kif, struct mbuf *m, int ipoff,
m                1255 net/pf_norm.c  			    pf_osfp_fingerprint(pd, m, off, th),
m                1319 net/pf_norm.c  	if (r->max_mss && pf_normalize_tcpopt(r, m, th, off))
m                1324 net/pf_norm.c  		m_copyback(m, off, sizeof(*th), th);
m                1331 net/pf_norm.c  		PFLOG_PACKET(kif, h, m, AF_INET, dir, reason, r, NULL, NULL, pd);
m                1336 net/pf_norm.c  pf_normalize_tcp_init(struct mbuf *m, int off, struct pf_pdesc *pd,
m                1353 net/pf_norm.c  		struct ip *h = mtod(m, struct ip *);
m                1360 net/pf_norm.c  		struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
m                1377 net/pf_norm.c  	    pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) {
m                1430 net/pf_norm.c  pf_normalize_tcp_stateful(struct mbuf *m, int off, struct pf_pdesc *pd,
m                1453 net/pf_norm.c  			struct ip *h = mtod(m, struct ip *);
m                1464 net/pf_norm.c  			struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
m                1477 net/pf_norm.c  	    pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) {
m                1545 net/pf_norm.c  			m_copyback(m, off + sizeof(struct tcphdr),
m                1821 net/pf_norm.c  pf_normalize_tcpopt(struct pf_rule *r, struct mbuf *m, struct tcphdr *th,
m                1832 net/pf_norm.c  	optp = mtod(m, caddr_t) + off + sizeof(struct tcphdr);
m                  59 net/pf_osfp.c  # define pool_init(pool, size, a, ao, f, m, p)	(*(pool)) = (size)
m                  88 net/pf_osfp.c  pf_osfp_fingerprint(struct pf_pdesc *pd, struct mbuf *m, int off,
m                 100 net/pf_osfp.c  		ip = mtod(m, struct ip *);
m                 104 net/pf_osfp.c  		ip6 = mtod(m, struct ip6_hdr *);
m                 106 net/pf_osfp.c  	if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL,
m                 237 net/pfvar.h    #define PF_MATCHA(n, a, m, b, f) \
m                 238 net/pfvar.h    	pf_match_addr(n, a, m, b, f)
m                 273 net/pfvar.h    #define PF_MATCHA(n, a, m, b, f) \
m                 274 net/pfvar.h    	pf_match_addr(n, a, m, b, f)
m                 299 net/pfvar.h    #define PF_MATCHA(n, a, m, b, f) \
m                 300 net/pfvar.h    	pf_match_addr(n, a, m, b, f)
m                 243 net/ppp-deflate.c     struct mbuf *m;
m                 258 net/ppp-deflate.c     MGET(m, M_DONTWAIT, MT_DATA);
m                 259 net/ppp-deflate.c     *mret = m;
m                 260 net/ppp-deflate.c     if (m != NULL) {
m                 261 net/ppp-deflate.c 	m->m_len = 0;
m                 263 net/ppp-deflate.c 	    MCLGET(m, M_DONTWAIT);
m                 264 net/ppp-deflate.c 	wspace = M_TRAILINGSPACE(m);
m                 266 net/ppp-deflate.c 	    m->m_data += state->hdrlen;
m                 269 net/ppp-deflate.c 	wptr = mtod(m, u_char *);
m                 315 net/ppp-deflate.c 	    if (m != NULL) {
m                 316 net/ppp-deflate.c 		m->m_len = wspace;
m                 318 net/ppp-deflate.c 		MGET(m->m_next, M_DONTWAIT, MT_DATA);
m                 319 net/ppp-deflate.c 		m = m->m_next;
m                 320 net/ppp-deflate.c 		if (m != NULL) {
m                 321 net/ppp-deflate.c 		    m->m_len = 0;
m                 323 net/ppp-deflate.c 			MCLGET(m, M_DONTWAIT);
m                 324 net/ppp-deflate.c 		    state->strm.next_out = mtod(m, u_char *);
m                 325 net/ppp-deflate.c 		    state->strm.avail_out = wspace = M_TRAILINGSPACE(m);
m                 328 net/ppp-deflate.c 	    if (m == NULL) {
m                 334 net/ppp-deflate.c     if (m != NULL)
m                 335 net/ppp-deflate.c 	olen += (m->m_len = wspace - state->strm.avail_out);
m                 342 net/ppp-deflate.c     if (m != NULL && olen < orig_len
m                 150 net/ppp_tty.c  #define M_IS_CLUSTER(m)	((m)->m_flags & M_EXT)
m                 152 net/ppp_tty.c  #define M_DATASTART(m)	\
m                 153 net/ppp_tty.c  	(M_IS_CLUSTER(m) ? (m)->m_ext.ext_buf : \
m                 154 net/ppp_tty.c  	    (m)->m_flags & M_PKTHDR ? (m)->m_pktdat : (m)->m_dat)
m                 156 net/ppp_tty.c  #define M_DATASIZE(m)	\
m                 157 net/ppp_tty.c  	(M_IS_CLUSTER(m) ? (m)->m_ext.ext_size : \
m                 158 net/ppp_tty.c  	    (m)->m_flags & M_PKTHDR ? MHLEN: MLEN)
m                 298 net/ppp_tty.c      struct mbuf *m, *m0;
m                 339 net/ppp_tty.c      for (m = m0; m && uio->uio_resid; m = m->m_next)
m                 340 net/ppp_tty.c  	if ((error = uiomove(mtod(m, u_char *), m->m_len, uio)) != 0)
m                 356 net/ppp_tty.c      struct mbuf *m, *m0, **mp;
m                 369 net/ppp_tty.c      for (mp = &m0; uio->uio_resid; mp = &m->m_next) {
m                 371 net/ppp_tty.c  	    MGETHDR(m, M_WAIT, MT_DATA);
m                 372 net/ppp_tty.c  	    m->m_pkthdr.len = uio->uio_resid - PPP_HDRLEN;
m                 373 net/ppp_tty.c  	    m->m_pkthdr.rcvif = NULL;
m                 375 net/ppp_tty.c  	    MGET(m, M_WAIT, MT_DATA);
m                 376 net/ppp_tty.c  	*mp = m;
m                 377 net/ppp_tty.c  	m->m_len = 0;
m                 379 net/ppp_tty.c  	    MCLGET(m, M_DONTWAIT);
m                 380 net/ppp_tty.c  	len = M_TRAILINGSPACE(m);
m                 383 net/ppp_tty.c  	if ((error = uiomove(mtod(m, u_char *), len, uio)) != 0) {
m                 387 net/ppp_tty.c  	m->m_len = len;
m                 523 net/ppp_tty.c      struct mbuf *m;
m                 536 net/ppp_tty.c  	m = sc->sc_outm;
m                 537 net/ppp_tty.c  	if (m == NULL) {
m                 541 net/ppp_tty.c  	    m = ppp_dequeue(sc);
m                 542 net/ppp_tty.c  	    if (m == NULL) {
m                 558 net/ppp_tty.c  	    sc->sc_outfcs = pppfcs(PPP_INITFCS, mtod(m, u_char *), m->m_len);
m                 562 net/ppp_tty.c  	    start = mtod(m, u_char *);
m                 563 net/ppp_tty.c  	    len = m->m_len;
m                 614 net/ppp_tty.c  	    if (done && m->m_next == NULL) {
m                 656 net/ppp_tty.c  		m->m_data = start;
m                 657 net/ppp_tty.c  		m->m_len = len;
m                 662 net/ppp_tty.c  	    MFREE(m, m2);
m                 663 net/ppp_tty.c  	    m = m2;
m                 664 net/ppp_tty.c  	    if (m == NULL) {
m                 668 net/ppp_tty.c  	    sc->sc_outfcs = pppfcs(sc->sc_outfcs, mtod(m, u_char *), m->m_len);
m                 676 net/ppp_tty.c  	sc->sc_outm = m;
m                 677 net/ppp_tty.c  	if (m)
m                 783 net/ppp_tty.c      struct mbuf *m, **mp;
m                 790 net/ppp_tty.c  	if ((m = *mp) == NULL) {
m                 791 net/ppp_tty.c  	    MGETHDR(m, M_DONTWAIT, MT_DATA);
m                 792 net/ppp_tty.c  	    if (m == NULL)
m                 794 net/ppp_tty.c  	    *mp = m;
m                 795 net/ppp_tty.c  	    MCLGET(m, M_DONTWAIT);
m                 797 net/ppp_tty.c  	len -= M_DATASIZE(m);
m                 798 net/ppp_tty.c  	mp = &m->m_next;
m                 817 net/ppp_tty.c      struct mbuf *m;
m                 914 net/ppp_tty.c  	    for (m = sc->sc_m; m->m_next != sc->sc_mc; m = m->m_next)
m                 916 net/ppp_tty.c  	    sc->sc_mc = m;
m                 921 net/ppp_tty.c  	m = sc->sc_m;
m                 925 net/ppp_tty.c  	ppppktin(sc, m, sc->sc_flags & SC_PKTLOST);
m                 975 net/ppp_tty.c  	m = sc->sc_m;
m                 976 net/ppp_tty.c  	m->m_len = 0;
m                 977 net/ppp_tty.c  	m->m_data = M_DATASTART(sc->sc_m);
m                 978 net/ppp_tty.c  	sc->sc_mc = m;
m                 979 net/ppp_tty.c  	sc->sc_mp = mtod(m, char *);
m                 991 net/ppp_tty.c  	    m->m_len += 2;
m                1021 net/ppp_tty.c      m = sc->sc_mc;
m                1022 net/ppp_tty.c      if (M_TRAILINGSPACE(m) <= 0) {
m                1023 net/ppp_tty.c  	if (m->m_next == NULL) {
m                1025 net/ppp_tty.c  	    if (m->m_next == NULL) {
m                1031 net/ppp_tty.c  	sc->sc_mc = m = m->m_next;
m                1032 net/ppp_tty.c  	m->m_len = 0;
m                1033 net/ppp_tty.c  	m->m_data = M_DATASTART(m);
m                1034 net/ppp_tty.c  	sc->sc_mp = mtod(m, char *);
m                1037 net/ppp_tty.c      ++m->m_len;
m                 126 net/radix.c    	caddr_t v = v_arg, m = m_arg;
m                 129 net/radix.c    		if ((x->rn_bmask & m[x->rn_off]) &&
m                 141 net/radix.c    	caddr_t m = m_arg, n = n_arg;
m                 143 net/radix.c    	int longer = (*(u_char *)n++) - (int)(*(u_char *)m++);
m                 149 net/radix.c    		if (*n & ~(*m))
m                 151 net/radix.c    		if (*n++ != *m++)
m                 158 net/radix.c    		for (lim2 = m - longer; m < lim2; )
m                 159 net/radix.c    			if (*m++)
m                 272 net/radix.c    		struct radix_mask *m;
m                 274 net/radix.c    		m = t->rn_mklist;
m                 275 net/radix.c    		if (m) {
m                 283 net/radix.c    				if (m->rm_flags & RNF_NORMAL) {
m                 284 net/radix.c    					if (rn_b <= m->rm_b)
m                 285 net/radix.c    						return (m->rm_leaf);
m                 288 net/radix.c    					x = rn_search_m(v, t, m->rm_mask);
m                 289 net/radix.c    					while (x && x->rn_mask != m->rm_mask)
m                 294 net/radix.c    				m = m->rm_mklist;
m                 295 net/radix.c    			} while (m);
m                 485 net/radix.c    	struct radix_mask *m;
m                 487 net/radix.c    	MKGet(m);
m                 488 net/radix.c    	if (m == 0) {
m                 492 net/radix.c    	Bzero(m, sizeof *m);
m                 493 net/radix.c    	m->rm_b = tt->rn_b;
m                 494 net/radix.c    	m->rm_flags = tt->rn_flags;
m                 496 net/radix.c    		m->rm_leaf = tt;
m                 498 net/radix.c    		m->rm_mask = tt->rn_mask;
m                 499 net/radix.c    	m->rm_mklist = next;
m                 500 net/radix.c    	tt->rn_mklist = m;
m                 501 net/radix.c    	return m;
m                 514 net/radix.c    	struct radix_mask *m, **mp;
m                 629 net/radix.c    			*mp = m = rn_new_radix_mask(x, 0);
m                 630 net/radix.c    			if (m)
m                 631 net/radix.c    				mp = &m->rm_mklist;
m                 637 net/radix.c    		for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist)
m                 638 net/radix.c    			if (m->rm_b >= b_leaf)
m                 640 net/radix.c    		t->rn_mklist = m;
m                 658 net/radix.c    	for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) {
m                 659 net/radix.c    		if (m->rm_b < b_leaf)
m                 661 net/radix.c    		if (m->rm_b > b_leaf)
m                 663 net/radix.c    		if (m->rm_flags & RNF_NORMAL) {
m                 664 net/radix.c    			mmask = m->rm_leaf->rn_mask;
m                 671 net/radix.c    			mmask = m->rm_mask;
m                 673 net/radix.c    			m->rm_refs++;
m                 674 net/radix.c    			tt->rn_mklist = m;
m                 689 net/radix.c    	struct radix_mask *m, *saved_m, **mp;
m                 733 net/radix.c    	if (tt->rn_mask == 0 || (saved_m = m = tt->rn_mklist) == 0)
m                 736 net/radix.c    		if (m->rm_leaf != tt || m->rm_refs > 0) {
m                 741 net/radix.c    		if (m->rm_mask != tt->rn_mask) {
m                 745 net/radix.c    		if (--m->rm_refs >= 0)
m                 756 net/radix.c    	for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist)
m                 757 net/radix.c    		if (m == saved_m) {
m                 758 net/radix.c    			*mp = m->rm_mklist;
m                 759 net/radix.c    			MKFree(m);
m                 762 net/radix.c    	if (m == 0) {
m                 848 net/radix.c    			for (mp = &x->rn_mklist; (m = *mp);)
m                 849 net/radix.c    				mp = &m->rm_mklist;
m                 855 net/radix.c    			for (m = t->rn_mklist; m && x; x = x->rn_dupedkey)
m                 856 net/radix.c    				if (m == x->rn_mklist) {
m                 857 net/radix.c    					struct radix_mask *mm = m->rm_mklist;
m                 859 net/radix.c    					if (--(m->rm_refs) < 0)
m                 860 net/radix.c    						MKFree(m);
m                 861 net/radix.c    					m = mm;
m                 863 net/radix.c    			if (m)
m                 865 net/radix.c    				    "rn_delete: Orphaned Mask", m, x);
m                  96 net/radix.h    #define MKGet(m) {\
m                  98 net/radix.h    		m = rn_mkfreelist; \
m                  99 net/radix.h    		rn_mkfreelist = (m)->rm_mklist; \
m                 101 net/radix.h    		R_Malloc(m, struct radix_mask *, sizeof (*(m))); }\
m                 103 net/radix.h    #define MKFree(m) { (m)->rm_mklist = rn_mkfreelist; rn_mkfreelist = (m);}
m                  73 net/raw_usrreq.c 	struct mbuf *m = m0;
m                 109 net/raw_usrreq.c 			if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
m                 124 net/raw_usrreq.c 		    m, (struct mbuf *)0) == 0)
m                 125 net/raw_usrreq.c 			m_freem(m);
m                 131 net/raw_usrreq.c 		m_freem(m);
m                 150 net/raw_usrreq.c raw_usrreq(so, req, m, nam, control)
m                 153 net/raw_usrreq.c 	struct mbuf *m, *nam, *control;
m                 259 net/raw_usrreq.c 		error = (*so->so_proto->pr_output)(m, so);
m                 260 net/raw_usrreq.c 		m = NULL;
m                 314 net/raw_usrreq.c 	if (m != NULL)
m                 315 net/raw_usrreq.c 		m_freem(m);
m                1002 net/route.c    	struct mbuf		*m = NULL;
m                1012 net/route.c    			m = m_get(M_DONTWAIT, MT_SONAME);
m                1013 net/route.c    			if (m == NULL)
m                1015 net/route.c    			deldst = mtod(m, struct sockaddr *);
m                1022 net/route.c    				if (m != NULL)
m                1023 net/route.c    					(void) m_free(m);
m                 106 net/rtsock.c   route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
m                 138 net/rtsock.c   		error = raw_usrreq(so, req, m, nam, control);
m                 162 net/rtsock.c   route_output(struct mbuf *m, ...)
m                 180 net/rtsock.c   	va_start(ap, m);
m                 184 net/rtsock.c   	if (m == 0 || ((m->m_len < sizeof(int32_t)) &&
m                 185 net/rtsock.c   	    (m = m_pullup(m, sizeof(int32_t))) == 0))
m                 187 net/rtsock.c   	if ((m->m_flags & M_PKTHDR) == 0)
m                 189 net/rtsock.c   	len = m->m_pkthdr.len;
m                 191 net/rtsock.c   	    len != mtod(m, struct rt_msghdr *)->rtm_msglen) {
m                 202 net/rtsock.c   	m_copydata(m, 0, len, (caddr_t)rtm);
m                 460 net/rtsock.c   			m_freem(m);
m                 471 net/rtsock.c   		m_copyback(m, 0, rtm->rtm_msglen, rtm);
m                 472 net/rtsock.c   		if (m->m_pkthdr.len < rtm->rtm_msglen) {
m                 473 net/rtsock.c   			m_freem(m);
m                 474 net/rtsock.c   			m = NULL;
m                 475 net/rtsock.c   		} else if (m->m_pkthdr.len > rtm->rtm_msglen)
m                 476 net/rtsock.c   			m_adj(m, rtm->rtm_msglen - m->m_pkthdr.len);
m                 479 net/rtsock.c   	if (m)
m                 480 net/rtsock.c   		raw_input(m, &route_proto, &route_src, &route_dst);
m                 529 net/rtsock.c   	struct mbuf		*m;
m                 551 net/rtsock.c   	m = m_gethdr(M_DONTWAIT, MT_DATA);
m                 552 net/rtsock.c   	if (m && len > MHLEN) {
m                 553 net/rtsock.c   		MCLGET(m, M_DONTWAIT);
m                 554 net/rtsock.c   		if ((m->m_flags & M_EXT) == 0) {
m                 555 net/rtsock.c   			m_free(m);
m                 556 net/rtsock.c   			m = NULL;
m                 559 net/rtsock.c   	if (m == 0)
m                 560 net/rtsock.c   		return (m);
m                 561 net/rtsock.c   	m->m_pkthdr.len = m->m_len = len;
m                 562 net/rtsock.c   	m->m_pkthdr.rcvif = NULL;
m                 563 net/rtsock.c   	rtm = mtod(m, struct rt_msghdr *);
m                 570 net/rtsock.c   		m_copyback(m, len, dlen, sa);
m                 573 net/rtsock.c   	if (m->m_pkthdr.len != len) {
m                 574 net/rtsock.c   		m_freem(m);
m                 580 net/rtsock.c   	return (m);
m                 660 net/rtsock.c   	struct mbuf		*m;
m                 665 net/rtsock.c   	m = rt_msg1(type, rtinfo);
m                 666 net/rtsock.c   	if (m == 0)
m                 668 net/rtsock.c   	rtm = mtod(m, struct rt_msghdr *);
m                 679 net/rtsock.c   	raw_input(m, &route_proto, &route_src, &route_dst);
m                 690 net/rtsock.c   	struct mbuf		*m;
m                 696 net/rtsock.c   	m = rt_msg1(RTM_IFINFO, &info);
m                 697 net/rtsock.c   	if (m == 0)
m                 699 net/rtsock.c   	ifm = mtod(m, struct if_msghdr *);
m                 705 net/rtsock.c   	raw_input(m, &route_proto, &route_src, &route_dst);
m                 722 net/rtsock.c   	struct mbuf		*m = NULL;
m                 743 net/rtsock.c   			if ((m = rt_msg1(ncmd, &info)) == NULL)
m                 745 net/rtsock.c   			ifam = mtod(m, struct ifa_msghdr *);
m                 760 net/rtsock.c   			if ((m = rt_msg1(cmd, &info)) == NULL)
m                 762 net/rtsock.c   			rtm = mtod(m, struct rt_msghdr *);
m                 772 net/rtsock.c   		raw_input(m, &route_proto, &route_src, &route_dst);
m                 784 net/rtsock.c   	struct mbuf			*m;
m                 790 net/rtsock.c   	m = rt_msg1(RTM_IFANNOUNCE, &info);
m                 791 net/rtsock.c   	if (m == 0)
m                 793 net/rtsock.c   	ifan = mtod(m, struct if_announcemsghdr *);
m                 798 net/rtsock.c   	raw_input(m, &route_proto, &route_src, &route_dst);
m                 174 net/slcompress.c sl_compress_tcp(m, ip, comp, compress_cid)
m                 175 net/slcompress.c 	struct mbuf *m;
m                 195 net/slcompress.c 	if ((ip->ip_off & htons(0x3fff)) || m->m_len < 40)
m                 408 net/slcompress.c 	m->m_len -= hlen;
m                 409 net/slcompress.c 	m->m_data += hlen;
m                1125 net/zlib.c         unsigned n, m;
m                1163 net/zlib.c                     m = *--p;
m                1164 net/zlib.c                     *p = (Pos)(m >= wsize ? m-wsize : NIL);
m                1170 net/zlib.c                     m = *--p;
m                1171 net/zlib.c                     *p = (Pos)(m >= wsize ? m-wsize : NIL);
m                1815 net/zlib.c     #define smaller(tree, n, m, depth) \
m                1816 net/zlib.c        (tree[n].Freq < tree[m].Freq || \
m                1817 net/zlib.c        (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
m                1871 net/zlib.c         int n, m;           /* iterate over the tree elements */
m                1926 net/zlib.c                 m = s->heap[--h];
m                1927 net/zlib.c                 if (m > max_code) continue;
m                1928 net/zlib.c                 if (tree[m].Len != (unsigned) bits) {
m                1929 net/zlib.c                     Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
m                1930 net/zlib.c                     s->opt_len += ((long)bits - (long)tree[m].Len)
m                1931 net/zlib.c                                   *(long)tree[m].Freq;
m                1932 net/zlib.c                     tree[m].Len = (ush)bits;
m                1996 net/zlib.c         int n, m;          /* iterate over heap elements */
m                2040 net/zlib.c             m = s->heap[SMALLEST]; /* m = node of next least frequency */
m                2043 net/zlib.c             s->heap[--(s->heap_max)] = m;
m                2046 net/zlib.c             tree[node].Freq = tree[n].Freq + tree[m].Freq;
m                2047 net/zlib.c             s->depth[node] = (uch) (MAX(s->depth[n], s->depth[m]) + 1);
m                2048 net/zlib.c             tree[n].Dad = tree[m].Dad = (ush)node;
m                2052 net/zlib.c                         node, tree[node].Freq, n, tree[n].Freq, m, tree[m].Freq);
m                3001 net/zlib.c       uInt m;       /* number of marker bytes found in a row */
m                3015 net/zlib.c       m = z->state->sub.marker;
m                3018 net/zlib.c       while (n && m < 4)
m                3020 net/zlib.c         if (*p == (Byte)(m < 2 ? 0 : 0xff))
m                3021 net/zlib.c           m++;
m                3023 net/zlib.c           m = 0;
m                3025 net/zlib.c           m = 4 - m;
m                3033 net/zlib.c       z->state->sub.marker = m;
m                3036 net/zlib.c       if (m != 4)
m                3123 net/zlib.c     #define LOADOUT {q=s->write;m=WAVAIL;}
m                3124 net/zlib.c     #define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=WAVAIL;}}
m                3126 net/zlib.c     #define NEEDOUT {if(m==0){WRAP if(m==0){FLUSH WRAP if(m==0) LEAVE}}r=Z_OK;}
m                3127 net/zlib.c     #define OUTBYTE(a) {*q++=(Byte)(a);m--;}
m                3280 net/zlib.c       uInt m;               /* bytes to end of window or read pointer */
m                3356 net/zlib.c           if (t > m) t = m;
m                3359 net/zlib.c           q += t;  m -= t;
m                3568 net/zlib.c         uInt m;               /* bytes to end of window or read pointer */
m                3583 net/zlib.c     	if (t > m) t = m;
m                3596 net/zlib.c     	    m = WAVAIL;
m                3709 net/zlib.c     local int huft_build(b, n, s, d, e, t, m, zs)
m                3716 net/zlib.c     uIntf *m;               /* maximum lookup bits, returns actual */
m                3759 net/zlib.c         *m = 0;
m                3765 net/zlib.c       l = *m;
m                3778 net/zlib.c       *m = l;
m                4174 net/zlib.c       uInt m;               /* bytes to end of window or read pointer */
m                4186 net/zlib.c           if (m >= 258 && n >= 10)
m                4440 net/zlib.c       uInt m;               /* bytes to end of window or read pointer */
m                4465 net/zlib.c           m--;
m                4493 net/zlib.c                 m -= c;
m                4539 net/zlib.c               m--;
m                4558 net/zlib.c       } while (m >= 258 && n >= 10);
m                 824 net80211/ieee80211.c 		u_int	m;	/* rate + mode */
m                 883 net80211/ieee80211.c 		if (rates[i].m == mask)
m                 366 net80211/ieee80211_crypto.c 	struct mbuf *m, *n, *n0;
m                 384 net80211/ieee80211_crypto.c 	m = m0;
m                 385 net80211/ieee80211_crypto.c 	left = m->m_pkthdr.len;
m                 386 net80211/ieee80211_crypto.c 	MGET(n, M_DONTWAIT, m->m_type);
m                 395 net80211/ieee80211_crypto.c 	M_DUP_PKTHDR(n, m);
m                 409 net80211/ieee80211_crypto.c 	wh = mtod(m, struct ieee80211_frame *);
m                 443 net80211/ieee80211_crypto.c 		ivp = mtod(m, u_int8_t *) + moff;
m                 464 net80211/ieee80211_crypto.c 		len = m->m_len - moff;
m                 466 net80211/ieee80211_crypto.c 			m = m->m_next;
m                 494 net80211/ieee80211_crypto.c 		rc4_crypt(ctx, mtod(m, caddr_t) + moff,
m                 498 net80211/ieee80211_crypto.c 			    mtod(m, u_int8_t *) + moff, len);
m                 528 net80211/ieee80211_crypto.c 			if (len > m->m_len - moff)
m                 529 net80211/ieee80211_crypto.c 				len = m->m_len - moff;
m                 531 net80211/ieee80211_crypto.c 				rc4_crypt(ctx, mtod(m, caddr_t) + moff,
m                 533 net80211/ieee80211_crypto.c 			m = m->m_next;
m                 129 net80211/ieee80211_input.c ieee80211_input(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni,
m                 144 net80211/ieee80211_input.c 	if (m->m_flags & M_HASFCS) {
m                 145 net80211/ieee80211_input.c 		m_adj(m, -IEEE80211_CRC_LEN);
m                 146 net80211/ieee80211_input.c 		m->m_flags &= ~M_HASFCS;
m                 157 net80211/ieee80211_input.c 	if (m->m_pkthdr.len < sizeof(struct ieee80211_frame_min)) {
m                 159 net80211/ieee80211_input.c 		    __func__, m->m_pkthdr.len));
m                 164 net80211/ieee80211_input.c 	wh = mtod(m, struct ieee80211_frame *);
m                 181 net80211/ieee80211_input.c 	if (m->m_pkthdr.len < sizeof(struct ieee80211_frame)) {
m                 183 net80211/ieee80211_input.c 		    __func__, m->m_pkthdr.len));
m                 239 net80211/ieee80211_input.c 			struct mbuf *m;
m                 240 net80211/ieee80211_input.c 			IF_DEQUEUE(&ni->ni_savedq, m);
m                 241 net80211/ieee80211_input.c 			IF_ENQUEUE(&ic->ic_pwrsaveq, m);
m                 348 net80211/ieee80211_input.c 				m = ieee80211_wep_crypt(ifp, m, 0);
m                 349 net80211/ieee80211_input.c 				if (m == NULL) {
m                 353 net80211/ieee80211_input.c 				wh = mtod(m, struct ieee80211_frame *);
m                 362 net80211/ieee80211_input.c 			bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_IN);
m                 364 net80211/ieee80211_input.c 		m = ieee80211_decap(ifp, m, hdrlen);
m                 365 net80211/ieee80211_input.c 		if (m == NULL) {
m                 372 net80211/ieee80211_input.c 		eh = mtod(m, struct ether_header *);
m                 389 net80211/ieee80211_input.c 				m1 = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 398 net80211/ieee80211_input.c 						m1 = m;
m                 399 net80211/ieee80211_input.c 						m = NULL;
m                 409 net80211/ieee80211_input.c 					if (m != NULL)
m                 415 net80211/ieee80211_input.c 		if (m != NULL) {
m                 422 net80211/ieee80211_input.c 				bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
m                 424 net80211/ieee80211_input.c 			ether_input_mbuf(ifp, m);
m                 479 net80211/ieee80211_input.c 			bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_IN);
m                 485 net80211/ieee80211_input.c 		if (m->m_flags & M_FILDROP) {
m                 486 net80211/ieee80211_input.c 			m_freem(m);
m                 490 net80211/ieee80211_input.c 		(*ic->ic_recv_mgmt)(ic, m, ni, subtype, rssi, rstamp);
m                 491 net80211/ieee80211_input.c 		m_freem(m);
m                 506 net80211/ieee80211_input.c 			ieee80211_recv_pspoll(ic, m, rssi, rstamp);
m                 518 net80211/ieee80211_input.c 	if (m != NULL) {
m                 521 net80211/ieee80211_input.c 			bpf_mtap(ic->ic_rawbpf, m, BPF_DIRECTION_IN);
m                 523 net80211/ieee80211_input.c 		m_freem(m);
m                 528 net80211/ieee80211_input.c ieee80211_decap(struct ifnet *ifp, struct mbuf *m, int hdrlen)
m                 534 net80211/ieee80211_input.c 	if (m->m_len < hdrlen + sizeof(*llc)) {
m                 535 net80211/ieee80211_input.c 		m = m_pullup(m, hdrlen + sizeof(*llc));
m                 536 net80211/ieee80211_input.c 		if (m == NULL)
m                 539 net80211/ieee80211_input.c 	memcpy(&wh, mtod(m, caddr_t), sizeof(wh));
m                 540 net80211/ieee80211_input.c 	llc = (struct llc *)(mtod(m, caddr_t) + hdrlen);
m                 547 net80211/ieee80211_input.c 		m_adj(m, hdrlen + sizeof(struct llc) - sizeof(*eh));
m                 550 net80211/ieee80211_input.c 		m_adj(m, hdrlen - sizeof(*eh));
m                 552 net80211/ieee80211_input.c 	eh = mtod(m, struct ether_header *);
m                 569 net80211/ieee80211_input.c 		m_freem(m);
m                 572 net80211/ieee80211_input.c 	if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), u_int32_t)) {
m                 580 net80211/ieee80211_input.c 		pktlen = m->m_pkthdr.len;
m                 585 net80211/ieee80211_input.c 					m_freem(m);
m                 588 net80211/ieee80211_input.c 				M_DUP_PKTHDR(n, m);
m                 593 net80211/ieee80211_input.c 					m_freem(m);
m                 613 net80211/ieee80211_input.c 			m_copydata(m, off, n->m_len, mtod(n, caddr_t));
m                 618 net80211/ieee80211_input.c 		m_freem(m);
m                 619 net80211/ieee80211_input.c 		m = n0;
m                 622 net80211/ieee80211_input.c 		eh = mtod(m, struct ether_header *);
m                 623 net80211/ieee80211_input.c 		eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh));
m                 625 net80211/ieee80211_input.c 	return m;
m                 940 net80211/ieee80211_input.c 	u_int16_t m, n, s;
m                 971 net80211/ieee80211_input.c 	m = LE_READ_2(frm);
m                 975 net80211/ieee80211_input.c 	if (frm + m * 4 > efrm)
m                 978 net80211/ieee80211_input.c 	while (m-- > 0) {
m                2543 net80211/ieee80211_input.c 	struct mbuf *m;
m                2576 net80211/ieee80211_input.c 	IF_DEQUEUE(&ni->ni_savedq, m);
m                2577 net80211/ieee80211_input.c 	if (m == NULL) {
m                2584 net80211/ieee80211_input.c 	wh = mtod(m, struct ieee80211_frame *);
m                2600 net80211/ieee80211_input.c 	IF_ENQUEUE(&ic->ic_pwrsaveq, m);
m                 105 net80211/ieee80211_output.c ieee80211_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
m                 120 net80211/ieee80211_output.c 	if ((mtag = m_tag_find(m, PACKET_TAG_DLT, NULL)) != NULL) {
m                 133 net80211/ieee80211_output.c 		IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                 141 net80211/ieee80211_output.c 		ifp->if_obytes += m->m_pkthdr.len;
m                 142 net80211/ieee80211_output.c 		if (m->m_flags & M_MCAST)
m                 152 net80211/ieee80211_output.c 	return (ether_output(ifp, m, dst, rt));
m                 155 net80211/ieee80211_output.c 	if (m)
m                 156 net80211/ieee80211_output.c 		m_freem(m);
m                 169 net80211/ieee80211_output.c     struct mbuf *m, int type)
m                 186 net80211/ieee80211_output.c 	M_PREPEND(m, sizeof(struct ieee80211_frame), M_DONTWAIT);
m                 187 net80211/ieee80211_output.c 	if (m == NULL)
m                 189 net80211/ieee80211_output.c 	m->m_pkthdr.rcvif = (void *)ni;
m                 191 net80211/ieee80211_output.c 	wh = mtod(m, struct ieee80211_frame *);
m                 221 net80211/ieee80211_output.c 	IF_ENQUEUE(&ic->ic_mgtq, m);
m                 383 net80211/ieee80211_output.c ieee80211_classify(struct ieee80211com *ic, struct mbuf *m)
m                 389 net80211/ieee80211_output.c 	if ((m->m_flags & M_PROTO1) == M_PROTO1 && m->m_pkthdr.rcvif != NULL) {
m                 390 net80211/ieee80211_output.c 		const struct ifvlan *ifv = m->m_pkthdr.rcvif->if_softc;
m                 398 net80211/ieee80211_output.c 	eh = mtod(m, struct ether_header *);
m                 436 net80211/ieee80211_output.c ieee80211_encap(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node **pni)
m                 449 net80211/ieee80211_output.c 	if ((mtag = m_tag_find(m, PACKET_TAG_DLT, NULL)) != NULL) {
m                 455 net80211/ieee80211_output.c 		wh = mtod(m, struct ieee80211_frame *);
m                 457 net80211/ieee80211_output.c 		if (m->m_pkthdr.len < sizeof(struct ieee80211_frame_min))
m                 490 net80211/ieee80211_output.c 		return (m);
m                 494 net80211/ieee80211_output.c 	if (m->m_len < sizeof(struct ether_header)) {
m                 495 net80211/ieee80211_output.c 		m = m_pullup(m, sizeof(struct ether_header));
m                 496 net80211/ieee80211_output.c 		if (m == NULL) {
m                 501 net80211/ieee80211_output.c 	memcpy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
m                 524 net80211/ieee80211_output.c 		tid = ieee80211_classify(ic, m);
m                 531 net80211/ieee80211_output.c 	m_adj(m, sizeof(struct ether_header) - sizeof(struct llc));
m                 532 net80211/ieee80211_output.c 	llc = mtod(m, struct llc *);
m                 539 net80211/ieee80211_output.c 	M_PREPEND(m, hdrlen, M_DONTWAIT);
m                 540 net80211/ieee80211_output.c 	if (m == NULL) {
m                 544 net80211/ieee80211_output.c 	wh = mtod(m, struct ieee80211_frame *);
m                 587 net80211/ieee80211_output.c 	return m;
m                 589 net80211/ieee80211_output.c 	if (m != NULL)
m                 590 net80211/ieee80211_output.c 		m_freem(m);
m                 948 net80211/ieee80211_output.c 	struct mbuf *m;
m                 955 net80211/ieee80211_output.c 	MGETHDR(m, flags, type);
m                 956 net80211/ieee80211_output.c 	if (m != NULL && pktlen > MHLEN) {
m                 957 net80211/ieee80211_output.c 		MCLGET(m, flags);
m                 958 net80211/ieee80211_output.c 		if (!(m->m_flags & M_EXT))
m                 959 net80211/ieee80211_output.c 			m = m_free(m);
m                 961 net80211/ieee80211_output.c 	return m;
m                 975 net80211/ieee80211_output.c 	struct mbuf *m;
m                 978 net80211/ieee80211_output.c 	m = ieee80211_getmbuf(M_DONTWAIT, MT_DATA,
m                 983 net80211/ieee80211_output.c 	if (m == NULL)
m                 986 net80211/ieee80211_output.c 	m->m_data += sizeof(struct ieee80211_frame);
m                 988 net80211/ieee80211_output.c 	frm = mtod(m, u_int8_t *);
m                 994 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
m                 996 net80211/ieee80211_output.c 	return m;
m                1017 net80211/ieee80211_output.c 	struct mbuf *m;
m                1020 net80211/ieee80211_output.c 	m = ieee80211_getmbuf(M_DONTWAIT, MT_DATA,
m                1032 net80211/ieee80211_output.c 	if (m == NULL)
m                1035 net80211/ieee80211_output.c 	m->m_data += sizeof(struct ieee80211_frame);
m                1037 net80211/ieee80211_output.c 	frm = mtod(m, u_int8_t *);
m                1061 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
m                1063 net80211/ieee80211_output.c 	return m;
m                1076 net80211/ieee80211_output.c 	struct mbuf *m;
m                1079 net80211/ieee80211_output.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1080 net80211/ieee80211_output.c 	if (m == NULL)
m                1082 net80211/ieee80211_output.c 	MH_ALIGN(m, 2 * 3);
m                1083 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = 2 * 3;
m                1085 net80211/ieee80211_output.c 	frm = mtod(m, u_int8_t *);
m                1090 net80211/ieee80211_output.c 	return m;
m                1101 net80211/ieee80211_output.c 	struct mbuf *m;
m                1103 net80211/ieee80211_output.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1104 net80211/ieee80211_output.c 	if (m == NULL)
m                1106 net80211/ieee80211_output.c 	MH_ALIGN(m, 2);
m                1108 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = 2;
m                1109 net80211/ieee80211_output.c 	*mtod(m, u_int16_t *) = htole16(reason);
m                1111 net80211/ieee80211_output.c 	return m;
m                1130 net80211/ieee80211_output.c 	struct mbuf *m;
m                1134 net80211/ieee80211_output.c 	m = ieee80211_getmbuf(M_DONTWAIT, MT_DATA,
m                1145 net80211/ieee80211_output.c 	if (m == NULL)
m                1148 net80211/ieee80211_output.c 	m->m_data += sizeof(struct ieee80211_frame);
m                1150 net80211/ieee80211_output.c 	frm = mtod(m, u_int8_t *);
m                1178 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
m                1180 net80211/ieee80211_output.c 	return m;
m                1197 net80211/ieee80211_output.c 	struct mbuf *m;
m                1200 net80211/ieee80211_output.c 	m = ieee80211_getmbuf(M_DONTWAIT, MT_DATA,
m                1206 net80211/ieee80211_output.c 	if (m == NULL)
m                1209 net80211/ieee80211_output.c 	m->m_data += sizeof(struct ieee80211_frame);
m                1211 net80211/ieee80211_output.c 	frm = mtod(m, u_int8_t *);
m                1226 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
m                1228 net80211/ieee80211_output.c 	return m;
m                1239 net80211/ieee80211_output.c 	struct mbuf *m;
m                1241 net80211/ieee80211_output.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1242 net80211/ieee80211_output.c 	if (m == NULL)
m                1244 net80211/ieee80211_output.c 	MH_ALIGN(m, 2);
m                1246 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = 2;
m                1247 net80211/ieee80211_output.c 	*mtod(m, u_int16_t *) = htole16(reason);
m                1249 net80211/ieee80211_output.c 	return m;
m                1263 net80211/ieee80211_output.c 	struct mbuf *m;
m                1278 net80211/ieee80211_output.c 		if ((m = ieee80211_get_probe_req(ic, ni)) == NULL)
m                1285 net80211/ieee80211_output.c 		if ((m = ieee80211_get_probe_resp(ic, ni)) == NULL)
m                1290 net80211/ieee80211_output.c 		m = ieee80211_get_auth(ic, ni, arg >> 16, arg & 0xffff);
m                1291 net80211/ieee80211_output.c 		if (m == NULL)
m                1299 net80211/ieee80211_output.c 		if ((m = ieee80211_get_deauth(ic, ni, arg)) == NULL)
m                1310 net80211/ieee80211_output.c 		if ((m = ieee80211_get_assoc_req(ic, ni, type)) == NULL)
m                1318 net80211/ieee80211_output.c 		if ((m = ieee80211_get_assoc_resp(ic, ni, arg)) == NULL)
m                1323 net80211/ieee80211_output.c 		if ((m = ieee80211_get_disassoc(ic, ni, arg)) == NULL)
m                1339 net80211/ieee80211_output.c 	ret = ieee80211_mgmt_output(ifp, ni, m, type);
m                1359 net80211/ieee80211_output.c 	struct mbuf *m;
m                1361 net80211/ieee80211_output.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1362 net80211/ieee80211_output.c 	if (m == NULL)
m                1365 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = sizeof (struct ieee80211_frame_rts);
m                1367 net80211/ieee80211_output.c 	rts = mtod(m, struct ieee80211_frame_rts *);
m                1375 net80211/ieee80211_output.c 	return m;
m                1385 net80211/ieee80211_output.c 	struct mbuf *m;
m                1387 net80211/ieee80211_output.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                1388 net80211/ieee80211_output.c 	if (m == NULL)
m                1391 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = sizeof (struct ieee80211_frame_cts);
m                1393 net80211/ieee80211_output.c 	cts = mtod(m, struct ieee80211_frame_cts *);
m                1400 net80211/ieee80211_output.c 	return m;
m                1424 net80211/ieee80211_output.c 	struct mbuf *m;
m                1427 net80211/ieee80211_output.c 	m = ieee80211_getmbuf(M_DONTWAIT, MT_DATA,
m                1439 net80211/ieee80211_output.c 	if (m == NULL)
m                1442 net80211/ieee80211_output.c 	wh = mtod(m, struct ieee80211_frame *);
m                1480 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
m                1481 net80211/ieee80211_output.c 	m->m_pkthdr.rcvif = (void *)ni;
m                1483 net80211/ieee80211_output.c 	return m;
m                1510 net80211/ieee80211_output.c ieee80211_send_eapol_key(struct ieee80211com *ic, struct mbuf *m,
m                1519 net80211/ieee80211_output.c 	M_PREPEND(m, sizeof(struct ether_header), M_DONTWAIT);
m                1520 net80211/ieee80211_output.c 	if (m == NULL)
m                1522 net80211/ieee80211_output.c 	eh = mtod(m, struct ether_header *);
m                1538 net80211/ieee80211_output.c 	len = m->m_len - sizeof(struct ether_header);
m                1552 net80211/ieee80211_output.c 	IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
m                1557 net80211/ieee80211_output.c 	ifp->if_obytes += m->m_pkthdr.len;
m                1603 net80211/ieee80211_output.c 	struct mbuf *m;
m                1610 net80211/ieee80211_output.c 	MGETHDR(m, flags, type);
m                1611 net80211/ieee80211_output.c 	if (m != NULL && pktlen > MHLEN) {
m                1612 net80211/ieee80211_output.c 		MCLGET(m, flags);
m                1613 net80211/ieee80211_output.c 		if (!(m->m_flags & M_EXT))
m                1614 net80211/ieee80211_output.c 			m = m_free(m);
m                1616 net80211/ieee80211_output.c 	m->m_data += sizeof(struct ether_header);
m                1617 net80211/ieee80211_output.c 	return m;
m                1628 net80211/ieee80211_output.c 	struct mbuf *m;
m                1633 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA,
m                1635 net80211/ieee80211_output.c 	if (m == NULL)
m                1637 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1657 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - (u_int8_t *)key;
m                1664 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1676 net80211/ieee80211_output.c 	struct mbuf *m;
m                1680 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA,
m                1682 net80211/ieee80211_output.c 	if (m == NULL)
m                1684 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1707 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - (u_int8_t *)key;
m                1714 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1726 net80211/ieee80211_output.c 	struct mbuf *m;
m                1730 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA,
m                1735 net80211/ieee80211_output.c 	if (m == NULL)
m                1737 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1764 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - (u_int8_t *)key;
m                1771 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1782 net80211/ieee80211_output.c 	struct mbuf *m;
m                1785 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA, 0);
m                1786 net80211/ieee80211_output.c 	if (m == NULL)
m                1788 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1805 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = sizeof(*key);
m                1812 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1824 net80211/ieee80211_output.c 	struct mbuf *m;
m                1828 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA,
m                1832 net80211/ieee80211_output.c 	if (m == NULL)
m                1834 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1859 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = frm - (u_int8_t *)key;
m                1866 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1879 net80211/ieee80211_output.c 	struct mbuf *m;
m                1881 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA, 0);
m                1882 net80211/ieee80211_output.c 	if (m == NULL)
m                1884 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1902 net80211/ieee80211_output.c 	m->m_pkthdr.len = m->m_len = sizeof(*key);
m                1909 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1922 net80211/ieee80211_output.c 	struct mbuf *m;
m                1924 net80211/ieee80211_output.c 	m = ieee80211_get_eapol_key(M_DONTWAIT, MT_DATA, 0);
m                1925 net80211/ieee80211_output.c 	if (m == NULL)
m                1927 net80211/ieee80211_output.c 	key = mtod(m, struct ieee80211_eapol_key *);
m                1944 net80211/ieee80211_output.c 	return ieee80211_send_eapol_key(ic, m, ni);
m                1949 net80211/ieee80211_output.c     struct mbuf *m)
m                1957 net80211/ieee80211_output.c 		m_freem(m);
m                1970 net80211/ieee80211_output.c 		IF_ENQUEUE(&ni->ni_savedq, m);
m                1971 net80211/ieee80211_output.c 		m->m_pkthdr.rcvif = (void *)ni;
m                 192 netatalk/aarp.c     struct mbuf		*m;
m                 199 netatalk/aarp.c     if (( m = m_gethdr( M_DONTWAIT, MT_DATA )) == NULL ) {
m                 202 netatalk/aarp.c     m->m_len = sizeof( *ea );
m                 203 netatalk/aarp.c     m->m_pkthdr.len = sizeof( *ea );
m                 204 netatalk/aarp.c     MH_ALIGN( m, sizeof( *ea ));
m                 206 netatalk/aarp.c     ea = mtod( m, struct ether_aarp *);
m                 226 netatalk/aarp.c 	m_freem( m );
m                 236 netatalk/aarp.c 	M_PREPEND( m, AT_LLC_SIZE, M_DONTWAIT );
m                 237 netatalk/aarp.c 	if (!m)
m                 240 netatalk/aarp.c 	llc = mtod( m, struct llc *);
m                 264 netatalk/aarp.c     (*ac->ac_if.if_output)(&ac->ac_if, m, &sa , NULL);
m                 268 netatalk/aarp.c aarpresolve( ac, m, destsat, desten )
m                 270 netatalk/aarp.c     struct mbuf		*m;
m                 281 netatalk/aarp.c 	    m_freem( m );
m                 301 netatalk/aarp.c 	aat->aat_hold = m;
m                 318 netatalk/aarp.c     aat->aat_hold = m;
m                 325 netatalk/aarp.c aarpinput( ac, m )
m                 327 netatalk/aarp.c     struct mbuf		*m;
m                 334 netatalk/aarp.c     if ( m->m_len < sizeof( struct arphdr )) {
m                 338 netatalk/aarp.c     ar = mtod( m, struct arphdr *);
m                 343 netatalk/aarp.c     if ( m->m_len < sizeof( struct arphdr ) + 2 * ar->ar_hln +
m                 350 netatalk/aarp.c 	at_aarpinput( ac, m );
m                 358 netatalk/aarp.c     m_freem( m );
m                 363 netatalk/aarp.c at_aarpinput( ac, m )
m                 365 netatalk/aarp.c     struct mbuf		*m;
m                 378 netatalk/aarp.c     ea = mtod( m, struct ether_aarp *);
m                 383 netatalk/aarp.c 	m_freem( m );
m                 395 netatalk/aarp.c 	m_freem( m );
m                 408 netatalk/aarp.c 	    m_freem( m );
m                 426 netatalk/aarp.c 	    m_freem( m );
m                 449 netatalk/aarp.c 	    m_freem( m );
m                 462 netatalk/aarp.c 	    m_freem( m );
m                 476 netatalk/aarp.c 	    m_freem( m );
m                 509 netatalk/aarp.c 	m_freem( m );
m                 526 netatalk/aarp.c 	M_PREPEND( m, AT_LLC_SIZE, M_DONTWAIT );
m                 527 netatalk/aarp.c 	if ( m == NULL ) {
m                 530 netatalk/aarp.c 	llc = mtod( m, struct llc *);
m                 549 netatalk/aarp.c     (*ac->ac_if.if_output)( &ac->ac_if, m, &sa, NULL );
m                 606 netatalk/aarp.c     struct mbuf		*m;
m                 641 netatalk/aarp.c     if (( m = m_gethdr( M_DONTWAIT, MT_DATA )) == NULL ) {
m                 644 netatalk/aarp.c     m->m_len = sizeof( *ea );
m                 645 netatalk/aarp.c     m->m_pkthdr.len = sizeof( *ea );
m                 646 netatalk/aarp.c     MH_ALIGN( m, sizeof( *ea ));
m                 648 netatalk/aarp.c     ea = mtod( m, struct ether_aarp *);
m                 666 netatalk/aarp.c 	M_PREPEND( m, AT_LLC_SIZE, M_DONTWAIT );
m                 667 netatalk/aarp.c 	if (!m)
m                 670 netatalk/aarp.c 	llc = mtod( m, struct llc *);
m                 691 netatalk/aarp.c     (*ac->ac_if.if_output)(&ac->ac_if, m, &sa, NULL );
m                  98 netatalk/ddp_input.c     struct mbuf		*m;
m                 105 netatalk/ddp_input.c 	IF_DEQUEUE( &atintrq2, m );
m                 109 netatalk/ddp_input.c 	if ( m == 0 ) {			/* no more queued packets */
m                 113 netatalk/ddp_input.c 	ifp = m->m_pkthdr.rcvif;
m                 120 netatalk/ddp_input.c 	    m_freem( m );
m                 124 netatalk/ddp_input.c 	ddp_input( m, ifp, (struct elaphdr *)NULL, 2 );
m                 130 netatalk/ddp_input.c 	IF_DEQUEUE( &atintrq1, m );
m                 134 netatalk/ddp_input.c 	if ( m == 0 ) {			/* no more queued packets */
m                 138 netatalk/ddp_input.c 	ifp = m->m_pkthdr.rcvif;
m                 145 netatalk/ddp_input.c 	    m_freem( m );
m                 149 netatalk/ddp_input.c 	if ( m->m_len < SZ_ELAPHDR &&
m                 150 netatalk/ddp_input.c 		(( m = m_pullup( m, SZ_ELAPHDR )) == 0 )) {
m                 155 netatalk/ddp_input.c 	elhp = mtod( m, struct elaphdr *);
m                 156 netatalk/ddp_input.c 	m_adj( m, SZ_ELAPHDR );
m                 159 netatalk/ddp_input.c 	    ddp_input( m, ifp, (struct elaphdr *)NULL, 1 );
m                 162 netatalk/ddp_input.c 	    ddp_input( m, ifp, &elh, 1 );
m                 171 netatalk/ddp_input.c ddp_input( m, ifp, elh, phase )
m                 172 netatalk/ddp_input.c     struct mbuf		*m;
m                 189 netatalk/ddp_input.c 	if ( m->m_len < sizeof( struct ddpshdr ) &&
m                 190 netatalk/ddp_input.c 		(( m = m_pullup( m, sizeof( struct ddpshdr ))) == 0 )) {
m                 195 netatalk/ddp_input.c 	dsh = mtod( m, struct ddpshdr *);
m                 215 netatalk/ddp_input.c 	    m_freem( m );
m                 221 netatalk/ddp_input.c 	if ( m->m_len < sizeof( struct ddpehdr ) &&
m                 222 netatalk/ddp_input.c 		(( m = m_pullup( m, sizeof( struct ddpehdr ))) == 0 )) {
m                 227 netatalk/ddp_input.c 	deh = mtod( m, struct ddpehdr *);
m                 284 netatalk/ddp_input.c     mlen = m->m_pkthdr.len;
m                 287 netatalk/ddp_input.c 	m_freem( m );
m                 291 netatalk/ddp_input.c 	m_adj( m, dlen - mlen );
m                 301 netatalk/ddp_input.c 	    m_freem( m );
m                 322 netatalk/ddp_input.c 	    m_freem( m );
m                 330 netatalk/ddp_input.c 	    m_freem( m );
m                 337 netatalk/ddp_input.c 	if ( ddp_route( m, &forwro )) {
m                 349 netatalk/ddp_input.c 	m_adj( m, sizeof( struct ddpshdr ));
m                 358 netatalk/ddp_input.c 	if ( ddp_cksum && cksum && cksum != at_cksum( m, sizeof( int ))) {
m                 360 netatalk/ddp_input.c 	    m_freem( m );
m                 363 netatalk/ddp_input.c 	m_adj( m, sizeof( struct ddpehdr ));
m                 367 netatalk/ddp_input.c 	m_freem( m );
m                 372 netatalk/ddp_input.c 	    m, (struct mbuf *)0 ) == 0 ) {
m                 374 netatalk/ddp_input.c 	m_freem( m );
m                 382 netatalk/ddp_input.c m_printm( m )
m                 383 netatalk/ddp_input.c     struct mbuf	*m;
m                 385 netatalk/ddp_input.c     for (; m; m = m->m_next ) {
m                 386 netatalk/ddp_input.c 	bprint( mtod( m, char * ), m->m_len );
m                 102 netatalk/ddp_output.c ddp_output(struct mbuf *m, ...)
m                 108 netatalk/ddp_output.c     va_start(ap, m);
m                 112 netatalk/ddp_output.c     M_PREPEND( m, sizeof( struct ddpehdr ), M_DONTWAIT );
m                 113 netatalk/ddp_output.c     if (!m)
m                 116 netatalk/ddp_output.c     deh = mtod( m, struct ddpehdr *);
m                 120 netatalk/ddp_output.c     deh->deh_len = m->m_pkthdr.len;
m                 134 netatalk/ddp_output.c 	deh->deh_sum = at_cksum( m, sizeof( int ));
m                 140 netatalk/ddp_output.c     return( ddp_route( m, &ddp->ddp_route ));
m                 144 netatalk/ddp_output.c at_cksum( m, skip )
m                 145 netatalk/ddp_output.c     struct mbuf	*m;
m                 151 netatalk/ddp_output.c     for (; m; m = m->m_next ) {
m                 152 netatalk/ddp_output.c 	for ( data = mtod( m, u_int8_t * ), end = data + m->m_len; data < end;
m                 173 netatalk/ddp_output.c ddp_route( m, ro )
m                 174 netatalk/ddp_output.c     struct mbuf		*m;
m                 194 netatalk/ddp_output.c 	m_freem( m );
m                 205 netatalk/ddp_output.c 	if (( m = m_pullup( m, MIN( MHLEN, m->m_pkthdr.len ))) == 0 ) {
m                 209 netatalk/ddp_output.c 	M_PREPEND(m, SZ_ELAPHDR, M_DONTWAIT);
m                 210 netatalk/ddp_output.c 	if (!m)
m                 213 netatalk/ddp_output.c 	elh = mtod( m, struct elaphdr *);
m                 237 netatalk/ddp_output.c     return((*ifp->if_output)( ifp, m, (struct sockaddr *) &gate, NULL ));
m                 102 netatalk/ddp_usrreq.c ddp_usrreq( so, req, m, addr, rights )
m                 105 netatalk/ddp_usrreq.c     struct mbuf		*m, *addr, *rights;
m                 115 netatalk/ddp_usrreq.c 	return( at_control( (u_long) m, (caddr_t) addr,
m                 199 netatalk/ddp_usrreq.c 	error = ddp_output( m, ddp );
m                 200 netatalk/ddp_usrreq.c 	m = NULL;
m                 243 netatalk/ddp_usrreq.c     if ( m != NULL ) {
m                 244 netatalk/ddp_usrreq.c 	m_freem( m );
m                2227 netbt/hci.h    #define M_GETCTX(m, t)	((t)(m)->m_pkthdr.rcvif)
m                2228 netbt/hci.h    #define M_SETCTX(m, c)	((m)->m_pkthdr.rcvif = (void *)(c))
m                 138 netbt/hci_event.c hci_event(struct mbuf *m, struct hci_unit *unit)
m                 142 netbt/hci_event.c 	KASSERT(m->m_flags & M_PKTHDR);
m                 144 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(hdr));
m                 145 netbt/hci_event.c 	m_copydata(m, 0, sizeof(hdr), (caddr_t)&hdr);
m                 146 netbt/hci_event.c 	m_adj(m, sizeof(hdr));
m                 154 netbt/hci_event.c 		hci_event_command_status(unit, m);
m                 158 netbt/hci_event.c 		hci_event_command_compl(unit, m);
m                 162 netbt/hci_event.c 		hci_event_num_compl_pkts(unit, m);
m                 166 netbt/hci_event.c 		hci_event_inquiry_result(unit, m);
m                 170 netbt/hci_event.c 		hci_event_con_compl(unit, m);
m                 174 netbt/hci_event.c 		hci_event_discon_compl(unit, m);
m                 178 netbt/hci_event.c 		hci_event_con_req(unit, m);
m                 182 netbt/hci_event.c 		hci_event_auth_compl(unit, m);
m                 186 netbt/hci_event.c 		hci_event_encryption_change(unit, m);
m                 190 netbt/hci_event.c 		hci_event_change_con_link_key_compl(unit, m);
m                 229 netbt/hci_event.c 	m_freem(m);
m                 239 netbt/hci_event.c hci_event_command_status(struct hci_unit *unit, struct mbuf *m)
m                 244 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 245 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 246 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 276 netbt/hci_event.c 		IF_DEQUEUE(&unit->hci_cmdwait, m);
m                 277 netbt/hci_event.c 		hci_output_cmd(unit, m);
m                 288 netbt/hci_event.c hci_event_command_compl(struct hci_unit *unit, struct mbuf *m)
m                 292 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 293 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 294 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 308 netbt/hci_event.c 		hci_cmd_read_bdaddr(unit, m);
m                 312 netbt/hci_event.c 		hci_cmd_read_buffer_size(unit, m);
m                 316 netbt/hci_event.c 		hci_cmd_read_local_features(unit, m);
m                 320 netbt/hci_event.c 		hci_cmd_reset(unit, m);
m                 328 netbt/hci_event.c 		IF_DEQUEUE(&unit->hci_cmdwait, m);
m                 329 netbt/hci_event.c 		hci_output_cmd(unit, m);
m                 343 netbt/hci_event.c hci_event_num_compl_pkts(struct hci_unit *unit, struct mbuf *m)
m                 350 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 351 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 352 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 355 netbt/hci_event.c 		m_copydata(m, 0, sizeof(handle), (caddr_t)&handle);
m                 356 netbt/hci_event.c 		m_adj(m, sizeof(handle));
m                 359 netbt/hci_event.c 		m_copydata(m, 0, sizeof(num), (caddr_t)&num);
m                 360 netbt/hci_event.c 		m_adj(m, sizeof(num));
m                 415 netbt/hci_event.c hci_event_inquiry_result(struct hci_unit *unit, struct mbuf *m)
m                 421 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 422 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 423 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 429 netbt/hci_event.c 		m_copydata(m, 0, sizeof(bdaddr_t), (caddr_t)&bdaddr);
m                 449 netbt/hci_event.c 		m_copydata(m, 0, sizeof(hci_inquiry_response),
m                 451 netbt/hci_event.c 		m_adj(m, sizeof(hci_inquiry_response));
m                 466 netbt/hci_event.c hci_event_con_compl(struct hci_unit *unit, struct mbuf *m)
m                 473 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 474 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 475 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 558 netbt/hci_event.c hci_event_discon_compl(struct hci_unit *unit, struct mbuf *m)
m                 563 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 564 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 565 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 583 netbt/hci_event.c hci_event_con_req(struct hci_unit *unit, struct mbuf *m)
m                 590 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 591 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 592 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 631 netbt/hci_event.c hci_event_auth_compl(struct hci_unit *unit, struct mbuf *m)
m                 637 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 638 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 639 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 673 netbt/hci_event.c hci_event_encryption_change(struct hci_unit *unit, struct mbuf *m)
m                 679 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 680 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 681 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 717 netbt/hci_event.c hci_event_change_con_link_key_compl(struct hci_unit *unit, struct mbuf *m)
m                 723 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(ep));
m                 724 netbt/hci_event.c 	m_copydata(m, 0, sizeof(ep), (caddr_t)&ep);
m                 725 netbt/hci_event.c 	m_adj(m, sizeof(ep));
m                 755 netbt/hci_event.c hci_cmd_read_bdaddr(struct hci_unit *unit, struct mbuf *m)
m                 760 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(rp));
m                 761 netbt/hci_event.c 	m_copydata(m, 0, sizeof(rp), (caddr_t)&rp);
m                 762 netbt/hci_event.c 	m_adj(m, sizeof(rp));
m                 783 netbt/hci_event.c hci_cmd_read_buffer_size(struct hci_unit *unit, struct mbuf *m)
m                 788 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(rp));
m                 789 netbt/hci_event.c 	m_copydata(m, 0, sizeof(rp), (caddr_t)&rp);
m                 790 netbt/hci_event.c 	m_adj(m, sizeof(rp));
m                 814 netbt/hci_event.c hci_cmd_read_local_features(struct hci_unit *unit, struct mbuf *m)
m                 819 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(rp));
m                 820 netbt/hci_event.c 	m_copydata(m, 0, sizeof(rp), (caddr_t)&rp);
m                 821 netbt/hci_event.c 	m_adj(m, sizeof(rp));
m                 912 netbt/hci_event.c hci_cmd_reset(struct hci_unit *unit, struct mbuf *m)
m                 918 netbt/hci_event.c 	KASSERT(m->m_pkthdr.len >= sizeof(rp));
m                 919 netbt/hci_event.c 	m_copydata(m, 0, sizeof(rp), (caddr_t)&rp);
m                 920 netbt/hci_event.c 	m_adj(m, sizeof(rp));
m                 411 netbt/hci_link.c hci_acl_recv(struct mbuf *m, struct hci_unit *unit)
m                 418 netbt/hci_link.c 	KASSERT(m != NULL);
m                 421 netbt/hci_link.c 	KASSERT(m->m_pkthdr.len >= sizeof(hdr));
m                 422 netbt/hci_link.c 	m_copydata(m, 0, sizeof(hdr), (caddr_t)&hdr);
m                 423 netbt/hci_link.c 	m_adj(m, sizeof(hdr));
m                 431 netbt/hci_link.c 	if (m->m_pkthdr.len != letoh16(hdr.length)) {
m                 433 netbt/hci_link.c 			unit->hci_devname, m->m_pkthdr.len, letoh16(hdr.length));
m                 468 netbt/hci_link.c 		if (m->m_pkthdr.len < sizeof(l2cap_hdr_t)) {
m                 475 netbt/hci_link.c 		link->hl_rxp = m;
m                 476 netbt/hci_link.c 		got = m->m_pkthdr.len;
m                 487 netbt/hci_link.c 		got = m->m_pkthdr.len + link->hl_rxp->m_pkthdr.len;
m                 488 netbt/hci_link.c 		m_cat(link->hl_rxp, m);
m                 489 netbt/hci_link.c 		m = link->hl_rxp;
m                 490 netbt/hci_link.c 		m->m_pkthdr.len = got;
m                 500 netbt/hci_link.c 	m_copydata(m, 0, sizeof(want), (caddr_t)&want);
m                 509 netbt/hci_link.c 		l2cap_recv_frame(m, link);
m                 514 netbt/hci_link.c 	m_freem(m);
m                 526 netbt/hci_link.c hci_acl_send(struct mbuf *m, struct hci_link *link,
m                 534 netbt/hci_link.c 	KASSERT(m != NULL);
m                 535 netbt/hci_link.c 	KASSERT(m->m_flags & M_PKTHDR);
m                 536 netbt/hci_link.c 	KASSERT(m->m_pkthdr.len > 0);
m                 539 netbt/hci_link.c 		m_freem(m);
m                 551 netbt/hci_link.c 	plen = m->m_pkthdr.len;
m                 559 netbt/hci_link.c 			n = m_split(m, mlen, M_DONTWAIT);
m                 567 netbt/hci_link.c 			m->m_flags |= M_PROTO1;	/* tag first fragment */
m                 570 netbt/hci_link.c 		IF_ENQUEUE(&pdu->lp_data, m);
m                 571 netbt/hci_link.c 		m = n;
m                 583 netbt/hci_link.c 	if (m) m_freem(m);
m                 609 netbt/hci_link.c 	struct mbuf *m;
m                 637 netbt/hci_link.c 		IF_DEQUEUE(&pdu->lp_data, m);
m                 638 netbt/hci_link.c 		KASSERT(m != NULL);
m                 640 netbt/hci_link.c 		if (m->m_flags & M_PROTO1)
m                 647 netbt/hci_link.c 		M_PREPEND(m, sizeof(*hdr), M_DONTWAIT);
m                 648 netbt/hci_link.c 		if (m == NULL)
m                 651 netbt/hci_link.c 		hdr = mtod(m, hci_acldata_hdr_t *);
m                 654 netbt/hci_link.c 		hdr->length = htole16(m->m_pkthdr.len - sizeof(*hdr));
m                 659 netbt/hci_link.c 		hci_output_acl(unit, m);
m                 817 netbt/hci_link.c hci_sco_recv(struct mbuf *m, struct hci_unit *unit)
m                 823 netbt/hci_link.c 	KASSERT(m != NULL);
m                 826 netbt/hci_link.c 	KASSERT(m->m_pkthdr.len >= sizeof(hdr));
m                 827 netbt/hci_link.c 	m_copydata(m, 0, sizeof(hdr), (caddr_t)&hdr);
m                 828 netbt/hci_link.c 	m_adj(m, sizeof(hdr));
m                 836 netbt/hci_link.c 	if (m->m_pkthdr.len != hdr.length) {
m                 838 netbt/hci_link.c 		    unit->hci_devname, m->m_pkthdr.len, hdr.length);
m                 854 netbt/hci_link.c 	(*link->hl_sco->sp_proto->input)(link->hl_sco->sp_upper, m);
m                 858 netbt/hci_link.c 	m_freem(m);
m                 222 netbt/hci_socket.c 	struct mbuf *m;
m                 227 netbt/hci_socket.c 		IF_POLL(&unit->hci_cmdwait, m);
m                 228 netbt/hci_socket.c 		while (m != NULL) {
m                 229 netbt/hci_socket.c 			ctx = M_GETCTX(m, struct socket *);
m                 231 netbt/hci_socket.c 				M_SETCTX(m, NULL);
m                 233 netbt/hci_socket.c 			m = m->m_nextpkt;
m                 243 netbt/hci_socket.c hci_send(struct hci_pcb *pcb, struct mbuf *m, bdaddr_t *addr)
m                 250 netbt/hci_socket.c 	KASSERT(m != NULL);
m                 254 netbt/hci_socket.c 	if (m->m_pkthdr.len < sizeof(hdr)) {
m                 258 netbt/hci_socket.c 	m_copydata(m, 0, sizeof(hdr), (caddr_t)&hdr);
m                 267 netbt/hci_socket.c 	if (m->m_pkthdr.len != sizeof(hdr) + hdr.length) {
m                 287 netbt/hci_socket.c 	m0 = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 293 netbt/hci_socket.c 	M_SETCTX(m, pcb->hp_socket);	/* enable drop callback */
m                 300 netbt/hci_socket.c 		IF_ENQUEUE(&unit->hci_cmdwait, m);
m                 302 netbt/hci_socket.c 		hci_output_cmd(unit, m);
m                 308 netbt/hci_socket.c 			m->m_pkthdr.len, err);
m                 309 netbt/hci_socket.c 	if (m) m_freem(m);
m                 330 netbt/hci_socket.c hci_usrreq(struct socket *up, int req, struct mbuf *m,
m                 343 netbt/hci_socket.c 		return hci_ioctl((unsigned long)m, (void *)nam, curproc);
m                 489 netbt/hci_socket.c 		return hci_send(pcb, m, (sa ? &sa->bt_bdaddr : &pcb->hp_raddr));
m                 516 netbt/hci_socket.c 	if (m)
m                 517 netbt/hci_socket.c 		m_freem(m);
m                 531 netbt/hci_socket.c 	struct mbuf *m;
m                 546 netbt/hci_socket.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 549 netbt/hci_socket.c 			m->m_len = sizeof(struct hci_filter);
m                 550 netbt/hci_socket.c 			memcpy(mtod(m, void *), &pcb->hp_efilter, m->m_len);
m                 554 netbt/hci_socket.c 			m->m_len = sizeof(struct hci_filter);
m                 555 netbt/hci_socket.c 			memcpy(mtod(m, void *), &pcb->hp_pfilter, m->m_len);
m                 559 netbt/hci_socket.c 			m->m_len = sizeof(int);
m                 561 netbt/hci_socket.c 				*mtod(m, int *) = 1;
m                 563 netbt/hci_socket.c 				*mtod(m, int *) = 0;
m                 568 netbt/hci_socket.c 			m_freem(m);
m                 569 netbt/hci_socket.c 			m = NULL;
m                 572 netbt/hci_socket.c 		*opt = m;
m                 576 netbt/hci_socket.c 		m = *opt;
m                 577 netbt/hci_socket.c 		if (m) switch (optname) {
m                 579 netbt/hci_socket.c 			m->m_len = min(m->m_len, sizeof(struct hci_filter));
m                 580 netbt/hci_socket.c 			memcpy(&pcb->hp_efilter, mtod(m, void *), m->m_len);
m                 584 netbt/hci_socket.c 			m->m_len = min(m->m_len, sizeof(struct hci_filter));
m                 585 netbt/hci_socket.c 			memcpy(&pcb->hp_pfilter, mtod(m, void *), m->m_len);
m                 589 netbt/hci_socket.c 			if (*mtod(m, int *))
m                 599 netbt/hci_socket.c 		m_freem(m);
m                 617 netbt/hci_socket.c hci_mtap(struct mbuf *m, struct hci_unit *unit)
m                 626 netbt/hci_socket.c 	KASSERT(m->m_len >= sizeof(type));
m                 628 netbt/hci_socket.c 	type = *mtod(m, uint8_t *);
m                 654 netbt/hci_socket.c 			KASSERT(m->m_len >= sizeof(hci_event_hdr_t));
m                 656 netbt/hci_socket.c 			event = mtod(m, hci_event_hdr_t *)->event;
m                 667 netbt/hci_socket.c 			KASSERT(m->m_len >= sizeof(hci_cmd_hdr_t));
m                 669 netbt/hci_socket.c 			opcode = letoh16(mtod(m, hci_cmd_hdr_t *)->opcode);
m                 691 netbt/hci_socket.c 			int dir = m->m_flags & M_LINK0 ? 1 : 0;
m                 703 netbt/hci_socket.c 		m0 = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 232 netbt/hci_unit.c 	struct mbuf *m;
m                 237 netbt/hci_unit.c 	m = m_gethdr(M_DONTWAIT, MT_DATA);
m                 238 netbt/hci_unit.c 	if (m == NULL)
m                 241 netbt/hci_unit.c 	p = mtod(m, hci_cmd_hdr_t *);
m                 245 netbt/hci_unit.c 	m->m_pkthdr.len = m->m_len = sizeof(hci_cmd_hdr_t);
m                 246 netbt/hci_unit.c 	M_SETCTX(m, NULL);
m                 251 netbt/hci_unit.c 		m_copyback(m, sizeof(hci_cmd_hdr_t), len, buf);
m                 252 netbt/hci_unit.c 		if (m->m_pkthdr.len != (sizeof(hci_cmd_hdr_t) + len)) {
m                 253 netbt/hci_unit.c 			m_freem(m);
m                 263 netbt/hci_unit.c 		IF_ENQUEUE(&unit->hci_cmdwait, m);
m                 265 netbt/hci_unit.c 		hci_output_cmd(unit, m);
m                 280 netbt/hci_unit.c 	struct mbuf *m;
m                 287 netbt/hci_unit.c 		IF_DEQUEUE(&unit->hci_eventq, m);
m                 289 netbt/hci_unit.c 		KASSERT(m != NULL);
m                 293 netbt/hci_unit.c 				unit->hci_devname, m->m_pkthdr.len);
m                 295 netbt/hci_unit.c 		m->m_flags |= M_LINK0;	/* mark incoming packet */
m                 296 netbt/hci_unit.c 		hci_mtap(m, unit);
m                 297 netbt/hci_unit.c 		hci_event(m, unit);
m                 303 netbt/hci_unit.c 		IF_DEQUEUE(&unit->hci_scorxq, m);
m                 305 netbt/hci_unit.c 		KASSERT(m != NULL);
m                 309 netbt/hci_unit.c 				unit->hci_devname, m->m_pkthdr.len);
m                 311 netbt/hci_unit.c 		m->m_flags |= M_LINK0;	/* mark incoming packet */
m                 312 netbt/hci_unit.c 		hci_mtap(m, unit);
m                 313 netbt/hci_unit.c 		hci_sco_recv(m, unit);
m                 319 netbt/hci_unit.c 		IF_DEQUEUE(&unit->hci_aclrxq, m);
m                 321 netbt/hci_unit.c 		KASSERT(m != NULL);
m                 325 netbt/hci_unit.c 				unit->hci_devname, m->m_pkthdr.len);
m                 327 netbt/hci_unit.c 		m->m_flags |= M_LINK0;	/* mark incoming packet */
m                 328 netbt/hci_unit.c 		hci_mtap(m, unit);
m                 329 netbt/hci_unit.c 		hci_acl_recv(m, unit);
m                 334 netbt/hci_unit.c 	IF_DEQUEUE(&unit->hci_scodone, m);
m                 335 netbt/hci_unit.c 	if (m != NULL) {
m                 343 netbt/hci_unit.c 			if (link == M_GETCTX(m, struct hci_link *)) {
m                 350 netbt/hci_unit.c 		m_freem(m);
m                 369 netbt/hci_unit.c hci_input_event(struct hci_unit *unit, struct mbuf *m)
m                 374 netbt/hci_unit.c 		m_freem(m);
m                 377 netbt/hci_unit.c 		IF_ENQUEUE(&unit->hci_eventq, m);
m                 383 netbt/hci_unit.c hci_input_acl(struct hci_unit *unit, struct mbuf *m)
m                 388 netbt/hci_unit.c 		m_freem(m);
m                 391 netbt/hci_unit.c 		IF_ENQUEUE(&unit->hci_aclrxq, m);
m                 397 netbt/hci_unit.c hci_input_sco(struct hci_unit *unit, struct mbuf *m)
m                 402 netbt/hci_unit.c 		m_freem(m);
m                 405 netbt/hci_unit.c 		IF_ENQUEUE(&unit->hci_scorxq, m);
m                 411 netbt/hci_unit.c hci_output_cmd(struct hci_unit *unit, struct mbuf *m)
m                 416 netbt/hci_unit.c 	hci_mtap(m, unit);
m                 427 netbt/hci_unit.c 	arg = M_GETCTX(m, void *);
m                 432 netbt/hci_unit.c 	IF_ENQUEUE(&unit->hci_cmdq, m);
m                 440 netbt/hci_unit.c hci_output_acl(struct hci_unit *unit, struct mbuf *m)
m                 444 netbt/hci_unit.c 	hci_mtap(m, unit);
m                 452 netbt/hci_unit.c 	IF_ENQUEUE(&unit->hci_acltxq, m);
m                 460 netbt/hci_unit.c hci_output_sco(struct hci_unit *unit, struct mbuf *m)
m                 464 netbt/hci_unit.c 	hci_mtap(m, unit);
m                 472 netbt/hci_unit.c 	IF_ENQUEUE(&unit->hci_scotxq, m);
m                 480 netbt/hci_unit.c hci_complete_sco(struct hci_unit *unit, struct mbuf *m)
m                 482 netbt/hci_unit.c 	IF_ENQUEUE(&unit->hci_scodone, m);
m                 110 netbt/l2cap_lower.c l2cap_recv_frame(struct mbuf *m, struct hci_link *link)
m                 115 netbt/l2cap_lower.c 	m_copydata(m, 0, sizeof(hdr), (caddr_t)&hdr);
m                 116 netbt/l2cap_lower.c 	m_adj(m, sizeof(hdr));
m                 124 netbt/l2cap_lower.c 	if (hdr.length != m->m_pkthdr.len)
m                 128 netbt/l2cap_lower.c 		l2cap_recv_signal(m, link);
m                 133 netbt/l2cap_lower.c 		m_freem(m);	/* TODO */
m                 140 netbt/l2cap_lower.c 		(*chan->lc_proto->input)(chan->lc_upper, m);
m                 148 netbt/l2cap_lower.c 	m_freem(m);
m                 160 netbt/l2cap_lower.c 	struct mbuf *m;
m                 194 netbt/l2cap_lower.c 	IF_DEQUEUE(&chan->lc_txq, m);
m                 197 netbt/l2cap_lower.c 	KASSERT(m != NULL);
m                 200 netbt/l2cap_lower.c 		chan->lc_lcid, m->m_pkthdr.len);
m                 203 netbt/l2cap_lower.c 	return hci_acl_send(m, chan->lc_link, chan);
m                  68 netbt/l2cap_signal.c l2cap_recv_signal(struct mbuf *m, struct hci_link *link)
m                  73 netbt/l2cap_signal.c 		if (m->m_pkthdr.len == 0)
m                  76 netbt/l2cap_signal.c 		if (m->m_pkthdr.len < sizeof(cmd))
m                  79 netbt/l2cap_signal.c 		m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                  82 netbt/l2cap_signal.c 		if (m->m_pkthdr.len < sizeof(cmd) + cmd.length)
m                  94 netbt/l2cap_signal.c 			l2cap_recv_command_rej(m, link);
m                 101 netbt/l2cap_signal.c 			l2cap_recv_connect_req(m, link);
m                 108 netbt/l2cap_signal.c 			l2cap_recv_connect_rsp(m, link);
m                 112 netbt/l2cap_signal.c 			l2cap_recv_config_req(m, link);
m                 116 netbt/l2cap_signal.c 			l2cap_recv_config_rsp(m, link);
m                 123 netbt/l2cap_signal.c 			l2cap_recv_disconnect_req(m, link);
m                 130 netbt/l2cap_signal.c 			l2cap_recv_disconnect_rsp(m, link);
m                 134 netbt/l2cap_signal.c 			m_adj(m, sizeof(cmd) + cmd.length);
m                 140 netbt/l2cap_signal.c 			m_adj(m, sizeof(cmd) + cmd.length);
m                 147 netbt/l2cap_signal.c 			l2cap_recv_info_req(m, link);
m                 151 netbt/l2cap_signal.c 			m_adj(m, sizeof(cmd) + cmd.length);
m                 166 netbt/l2cap_signal.c 	m_freem(m);
m                 175 netbt/l2cap_signal.c l2cap_recv_command_rej(struct mbuf *m, struct hci_link *link)
m                 182 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 183 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 187 netbt/l2cap_signal.c 	m_copydata(m, 0, cmd.length, (caddr_t)&cp);
m                 188 netbt/l2cap_signal.c 	m_adj(m, cmd.length);
m                 235 netbt/l2cap_signal.c l2cap_recv_connect_req(struct mbuf *m, struct hci_link *link)
m                 244 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 245 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 248 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 249 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 345 netbt/l2cap_signal.c l2cap_recv_connect_rsp(struct mbuf *m, struct hci_link *link)
m                 352 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 353 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 355 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 356 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 411 netbt/l2cap_signal.c l2cap_recv_config_req(struct mbuf *m, struct hci_link *link)
m                 422 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 423 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 429 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 430 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 470 netbt/l2cap_signal.c 		m_copydata(m, 0, sizeof(opt), (caddr_t)&opt);
m                 471 netbt/l2cap_signal.c 		m_adj(m, sizeof(opt));
m                 485 netbt/l2cap_signal.c 			m_copydata(m, 0, L2CAP_OPT_MTU_SIZE, (caddr_t)&val);
m                 546 netbt/l2cap_signal.c 		m_adj(m, opt.length);
m                 570 netbt/l2cap_signal.c 	m_adj(m, left);
m                 577 netbt/l2cap_signal.c l2cap_recv_config_rsp(struct mbuf *m, struct hci_link *link)
m                 587 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 588 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 594 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 595 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 663 netbt/l2cap_signal.c 			m_copydata(m, 0, sizeof(opt), (caddr_t)&opt);
m                 664 netbt/l2cap_signal.c 			m_adj(m, sizeof(opt));
m                 675 netbt/l2cap_signal.c 				m_copydata(m, 0, L2CAP_OPT_MTU_SIZE, (caddr_t)&val);
m                 702 netbt/l2cap_signal.c 			m_adj(m, opt.length);
m                 728 netbt/l2cap_signal.c 			m_copydata(m, 0, sizeof(opt), (caddr_t)&opt);
m                 729 netbt/l2cap_signal.c 			m_adj(m, sizeof(opt));
m                 735 netbt/l2cap_signal.c 			m_adj(m, opt.length);
m                 779 netbt/l2cap_signal.c 	m_adj(m, left);
m                 787 netbt/l2cap_signal.c l2cap_recv_disconnect_req(struct mbuf *m, struct hci_link *link)
m                 794 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 795 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 797 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 798 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 824 netbt/l2cap_signal.c l2cap_recv_disconnect_rsp(struct mbuf *m, struct hci_link *link)
m                 831 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 832 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 834 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 835 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 863 netbt/l2cap_signal.c l2cap_recv_info_req(struct mbuf *m, struct hci_link *link)
m                 869 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cmd), (caddr_t)&cmd);
m                 870 netbt/l2cap_signal.c 	m_adj(m, sizeof(cmd));
m                 872 netbt/l2cap_signal.c 	m_copydata(m, 0, sizeof(cp), (caddr_t)&cp);
m                 873 netbt/l2cap_signal.c 	m_adj(m, sizeof(cp));
m                 895 netbt/l2cap_signal.c 	struct mbuf *m;
m                 908 netbt/l2cap_signal.c 	m = m_gethdr(M_DONTWAIT, MT_DATA);
m                 909 netbt/l2cap_signal.c 	if (m == NULL)
m                 912 netbt/l2cap_signal.c 	hdr = mtod(m, l2cap_hdr_t *);
m                 915 netbt/l2cap_signal.c 	m->m_len = m->m_pkthdr.len = MHLEN;
m                 919 netbt/l2cap_signal.c 		m_copyback(m, sizeof(*hdr) + sizeof(*cmd), length, data);
m                 932 netbt/l2cap_signal.c 	if (m->m_pkthdr.len != MAX(MHLEN, length)) {
m                 933 netbt/l2cap_signal.c 		m_freem(m);
m                 937 netbt/l2cap_signal.c 	m->m_pkthdr.len = length;
m                 938 netbt/l2cap_signal.c 	m->m_len = MIN(length, MHLEN);
m                 943 netbt/l2cap_signal.c 	return hci_acl_send(m, link, NULL);
m                 106 netbt/l2cap_socket.c l2cap_usrreq(struct socket *up, int req, struct mbuf *m,
m                 202 netbt/l2cap_socket.c 		KASSERT(m != NULL);
m                 203 netbt/l2cap_socket.c 		if (m->m_pkthdr.len == 0)
m                 206 netbt/l2cap_socket.c 		if (m->m_pkthdr.len > pcb->lc_omtu) {
m                 211 netbt/l2cap_socket.c 		m0 = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 220 netbt/l2cap_socket.c 		sbappendrecord(&up->so_snd, m);
m                 255 netbt/l2cap_socket.c 	if (m) m_freem(m);
m                 271 netbt/l2cap_socket.c 	struct mbuf *m;
m                 286 netbt/l2cap_socket.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 287 netbt/l2cap_socket.c 		m->m_len = l2cap_getopt(pcb, optname, mtod(m, void *));
m                 288 netbt/l2cap_socket.c 		if (m->m_len == 0) {
m                 289 netbt/l2cap_socket.c 			m_freem(m);
m                 290 netbt/l2cap_socket.c 			m = NULL;
m                 293 netbt/l2cap_socket.c 		*opt = m;
m                 297 netbt/l2cap_socket.c 		m = *opt;
m                 298 netbt/l2cap_socket.c 		KASSERT(m != NULL);
m                 299 netbt/l2cap_socket.c 		err = l2cap_setopt(pcb, optname, mtod(m, void *));
m                 300 netbt/l2cap_socket.c 		m_freem(m);
m                 392 netbt/l2cap_socket.c l2cap_input(void *arg, struct mbuf *m)
m                 396 netbt/l2cap_socket.c 	if (m->m_pkthdr.len > sbspace(&so->so_rcv)) {
m                 398 netbt/l2cap_socket.c 			__func__, m->m_pkthdr.len);
m                 399 netbt/l2cap_socket.c 		m_freem(m);
m                 403 netbt/l2cap_socket.c 	DPRINTFN(10, "received %d bytes\n", m->m_pkthdr.len);
m                 405 netbt/l2cap_socket.c 	sbappendrecord(&so->so_rcv, m);
m                 374 netbt/l2cap_upper.c l2cap_send(struct l2cap_channel *chan, struct mbuf *m)
m                 380 netbt/l2cap_upper.c 		m_freem(m);
m                 384 netbt/l2cap_upper.c 	plen = m->m_pkthdr.len;
m                 390 netbt/l2cap_upper.c 	M_PREPEND(m, sizeof(l2cap_hdr_t), M_DONTWAIT);
m                 391 netbt/l2cap_upper.c 	if (m == NULL)
m                 394 netbt/l2cap_upper.c 	hdr = mtod(m, l2cap_hdr_t *);
m                 399 netbt/l2cap_upper.c 	IF_ENQUEUE(&chan->lc_txq, m);
m                 330 netbt/rfcomm_dlc.c 	struct mbuf *m;
m                 376 netbt/rfcomm_dlc.c 			m = NULL;
m                 381 netbt/rfcomm_dlc.c 			m = dlc->rd_txbuf;
m                 382 netbt/rfcomm_dlc.c 			if (len < m->m_pkthdr.len) {
m                 383 netbt/rfcomm_dlc.c 				dlc->rd_txbuf = m_split(m, len, M_DONTWAIT);
m                 385 netbt/rfcomm_dlc.c 					dlc->rd_txbuf = m;
m                 390 netbt/rfcomm_dlc.c 				len = m->m_pkthdr.len;
m                 397 netbt/rfcomm_dlc.c 		if (rfcomm_session_send_uih(rs, dlc, credits, m)) {
m                 596 netbt/rfcomm_session.c rfcomm_session_input(void *arg, struct mbuf *m)
m                 602 netbt/rfcomm_session.c 	KASSERT(m != NULL);
m                 612 netbt/rfcomm_session.c 	if (m->m_pkthdr.len < 4) {
m                 613 netbt/rfcomm_session.c 		DPRINTF("short frame (%d), discarded\n", m->m_pkthdr.len);
m                 618 netbt/rfcomm_session.c 	m_copydata(m, 0, 1, &b);
m                 619 netbt/rfcomm_session.c 	m_adj(m, 1);
m                 624 netbt/rfcomm_session.c 	m_copydata(m, 0, 1, &b);
m                 625 netbt/rfcomm_session.c 	m_adj(m, 1);
m                 631 netbt/rfcomm_session.c 	m_copydata(m, 0, 1, &b);
m                 632 netbt/rfcomm_session.c 	m_adj(m, 1);
m                 638 netbt/rfcomm_session.c 		if (m->m_pkthdr.len < 2) {
m                 640 netbt/rfcomm_session.c 				m->m_pkthdr.len);
m                 644 netbt/rfcomm_session.c 		m_copydata(m, 0, 1, &b);
m                 645 netbt/rfcomm_session.c 		m_adj(m, 1);
m                 653 netbt/rfcomm_session.c 	m_copydata(m, m->m_pkthdr.len - 1, 1, &b);
m                 654 netbt/rfcomm_session.c 	m_adj(m, -1);
m                 685 netbt/rfcomm_session.c 		rfcomm_session_recv_uih(rs, dlci, pf, m, len);
m                 694 netbt/rfcomm_session.c 	m_freem(m);
m                 912 netbt/rfcomm_session.c 			int pf, struct mbuf *m, int len)
m                 920 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc(rs, m);
m                 924 netbt/rfcomm_session.c 	if (m->m_pkthdr.len != len + pf) {
m                 926 netbt/rfcomm_session.c 			    m->m_pkthdr.len);
m                 947 netbt/rfcomm_session.c 			if (m->m_pkthdr.len < sizeof(credits)) {
m                 952 netbt/rfcomm_session.c 			m_copydata(m, 0, sizeof(credits), &credits);
m                 953 netbt/rfcomm_session.c 			m_adj(m, sizeof(credits));
m                 978 netbt/rfcomm_session.c 	(*dlc->rd_proto->input)(dlc->rd_upper, m);
m                 982 netbt/rfcomm_session.c 	m_freem(m);
m                 989 netbt/rfcomm_session.c rfcomm_session_recv_mcc(struct rfcomm_session *rs, struct mbuf *m)
m                1004 netbt/rfcomm_session.c 	if (m->m_pkthdr.len < sizeof(b)) {
m                1009 netbt/rfcomm_session.c 	m_copydata(m, 0, sizeof(b), &b);
m                1010 netbt/rfcomm_session.c 	m_adj(m, sizeof(b));
m                1022 netbt/rfcomm_session.c 		if (m->m_pkthdr.len < sizeof(b)) {
m                1027 netbt/rfcomm_session.c 		m_copydata(m, 0, sizeof(b), &b);
m                1028 netbt/rfcomm_session.c 		m_adj(m, sizeof(b));
m                1034 netbt/rfcomm_session.c 	if (len != m->m_pkthdr.len) {
m                1047 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc_test(rs, cr, m);
m                1059 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc_msc(rs, cr, m);
m                1063 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc_rpn(rs, cr, m);
m                1067 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc_rls(rs, cr, m);
m                1071 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc_pn(rs, cr, m);
m                1075 netbt/rfcomm_session.c 		rfcomm_session_recv_mcc_nsc(rs, cr, m);
m                1084 netbt/rfcomm_session.c 	m_freem(m);
m                1091 netbt/rfcomm_session.c rfcomm_session_recv_mcc_test(struct rfcomm_session *rs, int cr, struct mbuf *m)
m                1103 netbt/rfcomm_session.c 	len = m->m_pkthdr.len;
m                1111 netbt/rfcomm_session.c 	m_copydata(m, 0, len, data);
m                1148 netbt/rfcomm_session.c rfcomm_session_recv_mcc_msc(struct rfcomm_session *rs, int cr, struct mbuf *m)
m                1155 netbt/rfcomm_session.c 	if (m->m_pkthdr.len < sizeof(msc.address))
m                1158 netbt/rfcomm_session.c 	m_copydata(m, 0, sizeof(msc.address), &msc.address);
m                1159 netbt/rfcomm_session.c 	m_adj(m, sizeof(msc.address));
m                1178 netbt/rfcomm_session.c 	if (m->m_pkthdr.len < sizeof(msc.modem))
m                1181 netbt/rfcomm_session.c 	m_copydata(m, 0, sizeof(msc.modem), &msc.modem);
m                1182 netbt/rfcomm_session.c 	m_adj(m, sizeof(msc.modem));
m                1189 netbt/rfcomm_session.c 		if (m->m_pkthdr.len < sizeof(msc.brk))
m                1192 netbt/rfcomm_session.c 		m_copydata(m, 0, sizeof(msc.brk), &msc.brk);
m                1193 netbt/rfcomm_session.c 		m_adj(m, sizeof(msc.brk));
m                1206 netbt/rfcomm_session.c rfcomm_session_recv_mcc_rpn(struct rfcomm_session *rs, int cr, struct mbuf *m)
m                1221 netbt/rfcomm_session.c 	if (m->m_pkthdr.len == sizeof(rpn)) {
m                1222 netbt/rfcomm_session.c 		m_copydata(m, 0, sizeof(rpn), (caddr_t)&rpn);
m                1224 netbt/rfcomm_session.c 	} else if (m->m_pkthdr.len == 1) {
m                1225 netbt/rfcomm_session.c 		m_copydata(m, 0, 1, (caddr_t)&rpn);
m                1228 netbt/rfcomm_session.c 		DPRINTF("Bad RPN length (%d)\n", m->m_pkthdr.len);
m                1270 netbt/rfcomm_session.c rfcomm_session_recv_mcc_rls(struct rfcomm_session *rs, int cr, struct mbuf *m)
m                1277 netbt/rfcomm_session.c 	if (m->m_pkthdr.len != sizeof(rls)) {
m                1278 netbt/rfcomm_session.c 		DPRINTF("Bad RLS length %d\n", m->m_pkthdr.len);
m                1282 netbt/rfcomm_session.c 	m_copydata(m, 0, sizeof(rls), (caddr_t)&rls);
m                1299 netbt/rfcomm_session.c rfcomm_session_recv_mcc_pn(struct rfcomm_session *rs, int cr, struct mbuf *m)
m                1305 netbt/rfcomm_session.c 	if (m->m_pkthdr.len != sizeof(pn)) {
m                1306 netbt/rfcomm_session.c 		DPRINTF("Bad PN length %d\n", m->m_pkthdr.len);
m                1310 netbt/rfcomm_session.c 	m_copydata(m, 0, sizeof(pn), (caddr_t)&pn);
m                1421 netbt/rfcomm_session.c     int cr, struct mbuf *m)
m                1452 netbt/rfcomm_session.c 	struct mbuf *m;
m                1459 netbt/rfcomm_session.c 	m = m_gethdr(M_DONTWAIT, MT_DATA);
m                1460 netbt/rfcomm_session.c 	if (m == NULL) {
m                1477 netbt/rfcomm_session.c 	hdr = mtod(m, struct rfcomm_cmd_hdr *);
m                1489 netbt/rfcomm_session.c 	m->m_pkthdr.len = m->m_len = sizeof(struct rfcomm_cmd_hdr);
m                1493 netbt/rfcomm_session.c 	credit->rc_len = m->m_pkthdr.len;
m                1497 netbt/rfcomm_session.c 		dlci, type, m->m_pkthdr.len, fcs);
m                1499 netbt/rfcomm_session.c 	return l2cap_send(rs->rs_l2cap, m);
m                1511 netbt/rfcomm_session.c 			int credits, struct mbuf *m)
m                1520 netbt/rfcomm_session.c 	len = (m == NULL) ? 0 : m->m_pkthdr.len;
m                1580 netbt/rfcomm_session.c 	m0->m_next = m;
m                1581 netbt/rfcomm_session.c 	m = NULL;
m                1612 netbt/rfcomm_session.c 	if (m != NULL)
m                1613 netbt/rfcomm_session.c 		m_freem(m);
m                1629 netbt/rfcomm_session.c 	struct mbuf *m;
m                1633 netbt/rfcomm_session.c 	m = m_gethdr(M_DONTWAIT, MT_DATA);
m                1634 netbt/rfcomm_session.c 	if (m == NULL)
m                1637 netbt/rfcomm_session.c 	hdr = mtod(m, uint8_t *);
m                1665 netbt/rfcomm_session.c 		m_freem(m);
m                1672 netbt/rfcomm_session.c 	hlen = hdr - mtod(m, uint8_t *);
m                1675 netbt/rfcomm_session.c 		m->m_pkthdr.len = m->m_len = MHLEN;
m                1676 netbt/rfcomm_session.c 		m_copyback(m, hlen, len, data);
m                1677 netbt/rfcomm_session.c 		if (m->m_pkthdr.len != max(MHLEN, hlen + len)) {
m                1678 netbt/rfcomm_session.c 			m_freem(m);
m                1683 netbt/rfcomm_session.c 	m->m_pkthdr.len = hlen + len;
m                1684 netbt/rfcomm_session.c 	m->m_len = min(MHLEN, m->m_pkthdr.len);
m                1687 netbt/rfcomm_session.c 		(cr ? "command" : "response"), type, m->m_pkthdr.len);
m                1689 netbt/rfcomm_session.c 	return rfcomm_session_send_uih(rs, NULL, 0, m);
m                 105 netbt/rfcomm_socket.c rfcomm_usrreq(struct socket *up, int req, struct mbuf *m,
m                 209 netbt/rfcomm_socket.c 		KASSERT(m != NULL);
m                 214 netbt/rfcomm_socket.c 		m0 = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 218 netbt/rfcomm_socket.c 		sbappendstream(&up->so_snd, m);
m                 256 netbt/rfcomm_socket.c 	if (m) m_freem(m);
m                 270 netbt/rfcomm_socket.c 	struct mbuf *m;
m                 285 netbt/rfcomm_socket.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 286 netbt/rfcomm_socket.c 		m->m_len = rfcomm_getopt(pcb, optname, mtod(m, void *));
m                 287 netbt/rfcomm_socket.c 		if (m->m_len == 0) {
m                 288 netbt/rfcomm_socket.c 			m_freem(m);
m                 289 netbt/rfcomm_socket.c 			m = NULL;
m                 292 netbt/rfcomm_socket.c 		*opt = m;
m                 296 netbt/rfcomm_socket.c 		m = *opt;
m                 297 netbt/rfcomm_socket.c 		KASSERT(m != NULL);
m                 298 netbt/rfcomm_socket.c 		err = rfcomm_setopt(pcb, optname, mtod(m, void *));
m                 299 netbt/rfcomm_socket.c 		m_freem(m);
m                 403 netbt/rfcomm_socket.c rfcomm_input(void *arg, struct mbuf *m)
m                 409 netbt/rfcomm_socket.c 	if (m->m_pkthdr.len > sbspace(&so->so_rcv)) {
m                 411 netbt/rfcomm_socket.c 			__func__, m->m_pkthdr.len);
m                 412 netbt/rfcomm_socket.c 		m_freem(m);
m                 416 netbt/rfcomm_socket.c 	DPRINTFN(10, "received %d bytes\n", m->m_pkthdr.len);
m                 418 netbt/rfcomm_socket.c 	sbappendstream(&so->so_rcv, m);
m                 374 netbt/rfcomm_upper.c rfcomm_send(struct rfcomm_dlc *dlc, struct mbuf *m)
m                 378 netbt/rfcomm_upper.c 		dlc->rd_txbuf->m_pkthdr.len += m->m_pkthdr.len;
m                 379 netbt/rfcomm_upper.c 		m_cat(dlc->rd_txbuf, m);
m                 381 netbt/rfcomm_upper.c 		dlc->rd_txbuf = m;
m                  98 netbt/sco_socket.c sco_usrreq(struct socket *up, int req, struct mbuf *m,
m                 191 netbt/sco_socket.c 		KASSERT(m != NULL);
m                 192 netbt/sco_socket.c 		if (m->m_pkthdr.len == 0)
m                 195 netbt/sco_socket.c 		if (m->m_pkthdr.len > pcb->sp_mtu) {
m                 200 netbt/sco_socket.c 		m0 = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 209 netbt/sco_socket.c 		sbappendrecord(&up->so_snd, m);
m                 244 netbt/sco_socket.c 	if (m) m_freem(m);
m                 257 netbt/sco_socket.c 	struct mbuf *m;
m                 272 netbt/sco_socket.c 		m = m_get(M_WAIT, MT_SOOPTS);
m                 273 netbt/sco_socket.c 		m->m_len = sco_getopt(pcb, optname, mtod(m, uint8_t *));
m                 274 netbt/sco_socket.c 		if (m->m_len == 0) {
m                 275 netbt/sco_socket.c 			m_freem(m);
m                 276 netbt/sco_socket.c 			m = NULL;
m                 279 netbt/sco_socket.c 		*opt = m;
m                 283 netbt/sco_socket.c 		m = *opt;
m                 284 netbt/sco_socket.c 		KASSERT(m != NULL);
m                 285 netbt/sco_socket.c 		err = sco_setopt(pcb, optname, mtod(m, uint8_t *));
m                 286 netbt/sco_socket.c 		m_freem(m);
m                 363 netbt/sco_socket.c sco_input(void *arg, struct mbuf *m)
m                 373 netbt/sco_socket.c 	while (m->m_pkthdr.len > sbspace(&so->so_rcv))
m                 376 netbt/sco_socket.c 	DPRINTFN(10, "received %d bytes\n", m->m_pkthdr.len);
m                 378 netbt/sco_socket.c 	sbappendrecord(&so->so_rcv, m);
m                 277 netbt/sco_upper.c sco_send(struct sco_pcb *pcb, struct mbuf *m)
m                 283 netbt/sco_upper.c 		m_freem(m);
m                 287 netbt/sco_upper.c 	plen = m->m_pkthdr.len;
m                 296 netbt/sco_upper.c 		m_freem(m);
m                 300 netbt/sco_upper.c 	M_PREPEND(m, sizeof(hci_scodata_hdr_t), M_DONTWAIT);
m                 301 netbt/sco_upper.c 	if (m == NULL)
m                 304 netbt/sco_upper.c 	hdr = mtod(m, hci_scodata_hdr_t *);
m                 310 netbt/sco_upper.c 	M_SETCTX(m, pcb->sp_link);
m                 311 netbt/sco_upper.c 	hci_output_sco(pcb->sp_link->hl_unit, m);
m                 224 netinet/if_atm.c atmresolve(rt, m, dst, desten)
m                 226 netinet/if_atm.c 	struct mbuf *m;
m                 232 netinet/if_atm.c 	if (m->m_flags & (M_BCAST|M_MCAST)) {
m                 277 netinet/if_atm.c 	m_freem(m);
m                 327 netinet/if_ether.c 	struct mbuf *m;
m                 332 netinet/if_ether.c 	if ((m = m_gethdr(M_DONTWAIT, MT_DATA)) == NULL)
m                 334 netinet/if_ether.c 	m->m_len = sizeof(*ea);
m                 335 netinet/if_ether.c 	m->m_pkthdr.len = sizeof(*ea);
m                 336 netinet/if_ether.c 	MH_ALIGN(m, sizeof(*ea));
m                 337 netinet/if_ether.c 	ea = mtod(m, struct ether_arp *);
m                 355 netinet/if_ether.c 	(*ifp->if_output)(ifp, m, &sa, (struct rtentry *)0);
m                 369 netinet/if_ether.c arpresolve(ac, rt, m, dst, desten)
m                 372 netinet/if_ether.c 	struct mbuf *m;
m                 379 netinet/if_ether.c 	if (m->m_flags & M_BCAST) {	/* broadcast */
m                 384 netinet/if_ether.c 	if (m->m_flags & M_MCAST) {	/* multicast */
m                 402 netinet/if_ether.c 		m_freem(m);
m                 425 netinet/if_ether.c 	la->la_hold = m;
m                 468 netinet/if_ether.c 	struct mbuf *m;
m                 474 netinet/if_ether.c 		IF_DEQUEUE(&arpintrq, m);
m                 476 netinet/if_ether.c 		if (m == 0 || (m->m_flags & M_PKTHDR) == 0)
m                 480 netinet/if_ether.c 		if (m->m_len < len && (m = m_pullup(m, len)) == NULL)
m                 483 netinet/if_ether.c 		ar = mtod(m, struct arphdr *);
m                 485 netinet/if_ether.c 			m_freem(m);
m                 490 netinet/if_ether.c 		if (m->m_len < len && (m = m_pullup(m, len)) == NULL)
m                 496 netinet/if_ether.c 			in_arpinput(m);
m                 499 netinet/if_ether.c 		m_freem(m);
m                 518 netinet/if_ether.c in_arpinput(m)
m                 519 netinet/if_ether.c 	struct mbuf *m;
m                 522 netinet/if_ether.c 	struct arpcom *ac = (struct arpcom *)m->m_pkthdr.rcvif;
m                 539 netinet/if_ether.c 	ea = mtod(m, struct ether_arp *);
m                 544 netinet/if_ether.c 	if ((op == ARPOP_REPLY) && (m->m_flags & (M_BCAST|M_MCAST))) {
m                 563 netinet/if_ether.c 			if (ia->ia_ifp == m->m_pkthdr.rcvif &&
m                 569 netinet/if_ether.c 			if (ia->ia_ifp == m->m_pkthdr.rcvif)
m                 579 netinet/if_ether.c 		if (m->m_pkthdr.rcvif->if_bridge != NULL) {
m                 580 netinet/if_ether.c 			if (m->m_pkthdr.rcvif->if_bridge ==
m                 585 netinet/if_ether.c 			    m->m_pkthdr.rcvif->if_bridge ==
m                 606 netinet/if_ether.c 			if (ia->ia_ifp == m->m_pkthdr.rcvif)
m                 611 netinet/if_ether.c 	if (ia == NULL && m->m_pkthdr.rcvif->if_type != IFT_CARP) {
m                 614 netinet/if_ether.c 		TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrlist, ifa_list) {
m                 703 netinet/if_ether.c 		m_freem(m);
m                 716 netinet/if_ether.c 		    m->m_pkthdr.rcvif->if_type != IFT_CARP)
m                 740 netinet/if_ether.c 	(*ac->ac_if.if_output)(&ac->ac_if, m, &sa, (struct rtentry *)0);
m                 833 netinet/if_ether.c revarpinput(m)
m                 834 netinet/if_ether.c 	struct mbuf *m;
m                 838 netinet/if_ether.c 	if (m->m_len < sizeof(struct arphdr))
m                 840 netinet/if_ether.c 	ar = mtod(m, struct arphdr *);
m                 843 netinet/if_ether.c 	if (m->m_len < sizeof(struct arphdr) + 2 * (ar->ar_hln + ar->ar_pln))
m                 849 netinet/if_ether.c 		in_revarpinput(m);
m                 856 netinet/if_ether.c 	m_freem(m);
m                 871 netinet/if_ether.c in_revarpinput(m)
m                 872 netinet/if_ether.c 	struct mbuf *m;
m                 878 netinet/if_ether.c 	ar = mtod(m, struct ether_arp *);
m                 883 netinet/if_ether.c 		in_arpinput(m);
m                 893 netinet/if_ether.c 	ifp = m->m_pkthdr.rcvif;
m                 908 netinet/if_ether.c 	m_freem(m);
m                 920 netinet/if_ether.c 	struct mbuf *m;
m                 925 netinet/if_ether.c 	if ((m = m_gethdr(M_DONTWAIT, MT_DATA)) == NULL)
m                 927 netinet/if_ether.c 	m->m_len = sizeof(*ea);
m                 928 netinet/if_ether.c 	m->m_pkthdr.len = sizeof(*ea);
m                 929 netinet/if_ether.c 	MH_ALIGN(m, sizeof(*ea));
m                 930 netinet/if_ether.c 	ea = mtod(m, struct ether_arp *);
m                 949 netinet/if_ether.c 	ifp->if_output(ifp, m, &sa, (struct rtentry *)0);
m                 122 netinet/igmp.c igmp_input(struct mbuf *m, ...)
m                 125 netinet/igmp.c 	struct ifnet *ifp = m->m_pkthdr.rcvif;
m                 126 netinet/igmp.c 	struct ip *ip = mtod(m, struct ip *);
m                 137 netinet/igmp.c 	va_start(ap, m);
m                 150 netinet/igmp.c 		m_freem(m);
m                 154 netinet/igmp.c 	if ((m->m_flags & M_EXT || m->m_len < minlen) &&
m                 155 netinet/igmp.c 	    (m = m_pullup(m, minlen)) == NULL) {
m                 163 netinet/igmp.c 	m->m_data += iphlen;
m                 164 netinet/igmp.c 	m->m_len -= iphlen;
m                 165 netinet/igmp.c 	igmp = mtod(m, struct igmp *);
m                 166 netinet/igmp.c 	if (in_cksum(m, igmplen)) {
m                 168 netinet/igmp.c 		m_freem(m);
m                 171 netinet/igmp.c 	m->m_data -= iphlen;
m                 172 netinet/igmp.c 	m->m_len += iphlen;
m                 173 netinet/igmp.c 	ip = mtod(m, struct ip *);
m                 186 netinet/igmp.c 				m_freem(m);
m                 194 netinet/igmp.c 				m_freem(m);
m                 219 netinet/igmp.c 				m_freem(m);
m                 276 netinet/igmp.c 			m_freem(m);
m                 342 netinet/igmp.c 			m_freem(m);
m                 392 netinet/igmp.c 	rip_input(m);
m                 500 netinet/igmp.c 	struct mbuf *m;
m                 508 netinet/igmp.c 	MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                 509 netinet/igmp.c 	if (m == NULL)
m                 515 netinet/igmp.c 	m->m_data += max_linkhdr;
m                 516 netinet/igmp.c 	m->m_len = sizeof(struct ip) + IGMP_MINLEN;
m                 517 netinet/igmp.c 	m->m_pkthdr.len = sizeof(struct ip) + IGMP_MINLEN;
m                 519 netinet/igmp.c 	ip = mtod(m, struct ip *);
m                 531 netinet/igmp.c 	m->m_data += sizeof(struct ip);
m                 532 netinet/igmp.c 	m->m_len -= sizeof(struct ip);
m                 533 netinet/igmp.c 	igmp = mtod(m, struct igmp *);
m                 538 netinet/igmp.c 	igmp->igmp_cksum = in_cksum(m, IGMP_MINLEN);
m                 539 netinet/igmp.c 	m->m_data -= sizeof(struct ip);
m                 540 netinet/igmp.c 	m->m_len += sizeof(struct ip);
m                 557 netinet/igmp.c 	ip_output(m, (struct mbuf *)0, (struct route *)0, IP_MULTICASTOPTS,
m                  90 netinet/in4_cksum.c in4_cksum(m, nxt, off, len)
m                  91 netinet/in4_cksum.c 	struct mbuf *m;
m                 116 netinet/in4_cksum.c 		if (m->m_len < sizeof(struct ip))
m                 121 netinet/in4_cksum.c 		u.ipov.ih_src = mtod(m, struct ip *)->ip_src;
m                 122 netinet/in4_cksum.c 		u.ipov.ih_dst = mtod(m, struct ip *)->ip_dst;
m                 130 netinet/in4_cksum.c 	while (m && off > 0) {
m                 131 netinet/in4_cksum.c 		if (m->m_len > off)
m                 133 netinet/in4_cksum.c 		off -= m->m_len;
m                 134 netinet/in4_cksum.c 		m = m->m_next;
m                 137 netinet/in4_cksum.c 	for (;m && len; m = m->m_next) {
m                 138 netinet/in4_cksum.c 		if (m->m_len == 0)
m                 140 netinet/in4_cksum.c 		w = (u_int16_t *)(mtod(m, caddr_t) + off);
m                 153 netinet/in4_cksum.c 			mlen = m->m_len - off - 1;
m                 156 netinet/in4_cksum.c 			mlen = m->m_len - off;
m                  51 netinet/in_cksum.c in_cksum(m, len)
m                  52 netinet/in_cksum.c 	struct mbuf *m;
m                  69 netinet/in_cksum.c 	for (;m && len; m = m->m_next) {
m                  70 netinet/in_cksum.c 		if (m->m_len == 0)
m                  72 netinet/in_cksum.c 		w = mtod(m, u_int16_t *);
m                  85 netinet/in_cksum.c 			mlen = m->m_len - 1;
m                  88 netinet/in_cksum.c 			mlen = m->m_len;
m                  57 netinet/in_gif.c in_gif_output(ifp, family, m)
m                  60 netinet/in_gif.c 	struct mbuf	*m;
m                  73 netinet/in_gif.c 		m_freem(m);
m                 105 netinet/in_gif.c 		m_freem(m);
m                 113 netinet/in_gif.c 		error = etherip_output(m, &tdb, &mp, 0, 0);
m                 116 netinet/in_gif.c 	error = ipip_output(m, &tdb, &mp, 0, 0);
m                 122 netinet/in_gif.c 	m = mp;
m                 124 netinet/in_gif.c 	return ip_output(m, (void *)NULL, (void *)NULL, 0, (void *)NULL,
m                 129 netinet/in_gif.c in_gif_input(struct mbuf *m, ...)
m                 137 netinet/in_gif.c 	va_start(ap, m);
m                 142 netinet/in_gif.c 	if (m->m_flags & M_TUNNEL) {
m                 143 netinet/in_gif.c 		m->m_flags &= ~M_TUNNEL;
m                 147 netinet/in_gif.c 	ip = mtod(m, struct ip *);
m                 170 netinet/in_gif.c 		m->m_pkthdr.rcvif = gifp;
m                 172 netinet/in_gif.c 		gifp->if_ibytes += m->m_pkthdr.len;
m                 173 netinet/in_gif.c 		ipip_input(m, off, gifp); /* We have a configured GIF */
m                 178 netinet/in_gif.c 	ip4_input(m, off); /* No GIF interface was configured */
m                 223 netinet/in_pcb.h #define	DP_SET(m, p)	((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] |= (1 << ((p) % DP_MAPBITS)))
m                 224 netinet/in_pcb.h #define	DP_CLR(m, p)	((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] &= ~(1 << ((p) % DP_MAPBITS)))
m                 225 netinet/in_pcb.h #define	DP_ISSET(m, p)	((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] & (1 << ((p) % DP_MAPBITS)))
m                 277 netinet/ip6.h  #define IP6_EXTHDR_GET(val, typ, m, off, len) \
m                 281 netinet/ip6.h  	if ((m)->m_len >= (off) + (len))				\
m                 282 netinet/ip6.h  		(val) = (typ)(mtod((m), caddr_t) + (off));		\
m                 284 netinet/ip6.h  		t = m_pulldown((m), (off), (len), &tmp);		\
m                 291 netinet/ip6.h  			(m) = NULL;					\
m                 296 netinet/ip6.h  #define IP6_EXTHDR_GET0(val, typ, m, off, len) \
m                 299 netinet/ip6.h  	if ((off) == 0 && (m)->m_len >= len)				\
m                 300 netinet/ip6.h  		(val) = (typ)mtod((m), caddr_t);			\
m                 302 netinet/ip6.h  		t = m_pulldown((m), (off), (len), NULL);		\
m                 309 netinet/ip6.h  			(m) = NULL;					\
m                 198 netinet/ip_ah.c 	struct mbuf *m = *m0;
m                 220 netinet/ip_ah.c 		*m0 = m = m_pullup(m, skip);
m                 221 netinet/ip_ah.c 		if (m == NULL) {
m                 228 netinet/ip_ah.c 		ip = mtod(m, struct ip *);
m                 242 netinet/ip_ah.c 		ptr = mtod(m, unsigned char *) + sizeof(struct ip);
m                 255 netinet/ip_ah.c 				m_freem(m);
m                 280 netinet/ip_ah.c 					m_freem(m);
m                 296 netinet/ip_ah.c 					m_freem(m);
m                 322 netinet/ip_ah.c 					m_freem(m);
m                 339 netinet/ip_ah.c 				m_freem(m);
m                 350 netinet/ip_ah.c 		m_copydata(m, 0, sizeof(ip6), (caddr_t) &ip6);
m                 357 netinet/ip_ah.c 			m_freem(m);
m                 373 netinet/ip_ah.c 		m_copyback(m, 0, sizeof(struct ip6_hdr), &ip6);
m                 377 netinet/ip_ah.c 			if (m->m_len <= skip) {
m                 384 netinet/ip_ah.c 					m_freem(m);
m                 392 netinet/ip_ah.c 				m_copydata(m, sizeof(struct ip6_hdr),
m                 397 netinet/ip_ah.c 				ptr = mtod(m, unsigned char *) +
m                 428 netinet/ip_ah.c 						m_freem(m);
m                 449 netinet/ip_ah.c 						m_freem(m);
m                 497 netinet/ip_ah.c 					m_copydata(m, 0, sizeof(ip6),
m                 501 netinet/ip_ah.c 					m_copyback(m, 0, sizeof(ip6), &ip6);
m                 518 netinet/ip_ah.c 				m_freem(m);
m                 525 netinet/ip_ah.c 			m_copyback(m, sizeof(struct ip6_hdr),
m                 542 netinet/ip_ah.c ah_input(struct mbuf *m, struct tdb *tdb, int skip, int protoff)
m                 560 netinet/ip_ah.c 	m_copydata(m, skip + offsetof(struct ah, ah_hl), sizeof(u_int8_t),
m                 565 netinet/ip_ah.c 		m_copydata(m, skip + offsetof(struct ah, ah_rpl),
m                 580 netinet/ip_ah.c 			m_freem(m);
m                 589 netinet/ip_ah.c 			m_freem(m);
m                 598 netinet/ip_ah.c 			m_freem(m);
m                 610 netinet/ip_ah.c 		m_freem(m);
m                 616 netinet/ip_ah.c 	    (m->m_pkthdr.len - skip - hl * sizeof(u_int32_t));
m                 617 netinet/ip_ah.c 	ahstat.ahs_ibytes += (m->m_pkthdr.len - skip - hl * sizeof(u_int32_t));
m                 624 netinet/ip_ah.c 		m_freem(m);
m                 638 netinet/ip_ah.c 		m_freem(m);
m                 648 netinet/ip_ah.c 	crda->crd_len = m->m_pkthdr.len;
m                 658 netinet/ip_ah.c 	for (mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_CRYPTO_DONE, NULL);
m                 660 netinet/ip_ah.c 	     mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_CRYPTO_DONE, mtag)) {
m                 683 netinet/ip_ah.c 		m_freem(m);
m                 698 netinet/ip_ah.c 		m_copydata(m, 0, skip + rplen + ahx->authsize,
m                 702 netinet/ip_ah.c 		m_copyback(m, skip + rplen, ahx->authsize, ipseczeroes);
m                 705 netinet/ip_ah.c 		if ((btsx = ah_massage_headers(&m, tdb->tdb_dst.sa.sa_family,
m                 715 netinet/ip_ah.c 	crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */
m                 717 netinet/ip_ah.c 	crp->crp_buf = (caddr_t) m;
m                 744 netinet/ip_ah.c 	struct mbuf *m1, *m0, *m;
m                 763 netinet/ip_ah.c 	m = (struct mbuf *) crp->crp_buf;
m                 764 netinet/ip_ah.c 	if (m == NULL) {
m                 812 netinet/ip_ah.c 	m_copydata(m, skip + rplen, ahx->authsize, calc);
m                 838 netinet/ip_ah.c 		m_copyback(m, 0, skip, ptr);
m                 841 netinet/ip_ah.c 		m_copydata(m, skip, sizeof(u_int8_t), &prot);
m                 842 netinet/ip_ah.c 		m_copyback(m, protoff, sizeof(u_int8_t), &prot);
m                 849 netinet/ip_ah.c 		m_copydata(m, skip + offsetof(struct ah, ah_rpl),
m                 891 netinet/ip_ah.c 	m1 = m_getptr(m, skip, &roff);
m                 895 netinet/ip_ah.c 		m_freem(m);
m                 912 netinet/ip_ah.c 			m->m_pkthdr.len -= rplen + ahx->authsize;
m                 931 netinet/ip_ah.c 				m->m_pkthdr.len -=
m                 945 netinet/ip_ah.c 				m->m_pkthdr.len -= (m1->m_len - roff);
m                 959 netinet/ip_ah.c 			m->m_pkthdr.len -= rplen + ahx->authsize;
m                 962 netinet/ip_ah.c 	error = ipsec_common_input_cb(m, tdb, skip, protoff, mtag);
m                 969 netinet/ip_ah.c 	if (m != NULL)
m                 970 netinet/ip_ah.c 		m_freem(m);
m                 982 netinet/ip_ah.c ah_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
m                 998 netinet/ip_ah.c 	ifn->if_obytes += m->m_pkthdr.len;
m                1009 netinet/ip_ah.c 		bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, ENC_HDRLEN, m,
m                1024 netinet/ip_ah.c 		m_freem(m);
m                1038 netinet/ip_ah.c 		if (rplen + ahx->authsize + m->m_pkthdr.len > IP_MAXPACKET) {
m                1042 netinet/ip_ah.c 			m_freem(m);
m                1052 netinet/ip_ah.c 		if (rplen + ahx->authsize + m->m_pkthdr.len > IPV6_MAXPACKET) {
m                1056 netinet/ip_ah.c 			m_freem(m);
m                1067 netinet/ip_ah.c 		m_freem(m);
m                1073 netinet/ip_ah.c 	tdb->tdb_cur_bytes += m->m_pkthdr.len - skip;
m                1074 netinet/ip_ah.c 	ahstat.ahs_obytes += m->m_pkthdr.len - skip;
m                1081 netinet/ip_ah.c 		m_freem(m);
m                1097 netinet/ip_ah.c 	mi = m;
m                1109 netinet/ip_ah.c 			m_freem(m);
m                1116 netinet/ip_ah.c 			m = n;
m                1122 netinet/ip_ah.c 	mi = m_inject(m, skip, rplen + ahx->authsize, M_DONTWAIT);
m                1128 netinet/ip_ah.c 		m_freem(m);
m                1140 netinet/ip_ah.c 	m_copydata(m, protoff, sizeof(u_int8_t), (caddr_t) &ah->ah_nh);
m                1146 netinet/ip_ah.c 	m_copyback(m, skip + rplen, ahx->authsize, ipseczeroes);
m                1158 netinet/ip_ah.c 		m_freem(m);
m                1169 netinet/ip_ah.c 	crda->crd_len = m->m_pkthdr.len;
m                1184 netinet/ip_ah.c 		m_freem(m);
m                1195 netinet/ip_ah.c 		m_copydata(m, 0, skip, (caddr_t) (tc + 1));
m                1209 netinet/ip_ah.c 			m_copyback(m, offsetof(struct ip, ip_len),
m                1220 netinet/ip_ah.c 			m_copyback(m, offsetof(struct ip6_hdr, ip6_plen),
m                1231 netinet/ip_ah.c 		m_copyback(m, protoff, sizeof(u_int8_t), &prot);
m                1234 netinet/ip_ah.c 		if ((len = ah_massage_headers(&m, tdb->tdb_dst.sa.sa_family,
m                1244 netinet/ip_ah.c 		m_copyback(m, protoff, sizeof(u_int8_t), &prot);
m                1248 netinet/ip_ah.c 	crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */
m                1250 netinet/ip_ah.c 	crp->crp_buf = (caddr_t) m;
m                1278 netinet/ip_ah.c 	struct mbuf *m;
m                1288 netinet/ip_ah.c 	m = (struct mbuf *) crp->crp_buf;
m                1289 netinet/ip_ah.c 	if (m == NULL) {
m                1331 netinet/ip_ah.c 		m_copyback(m, 0, skip, ptr);
m                1338 netinet/ip_ah.c 	err =  ipsp_process_done(m, tdb);
m                1345 netinet/ip_ah.c 	if (m != NULL)
m                1346 netinet/ip_ah.c 		m_freem(m);
m                 503 netinet/ip_carp.c carp_proto_input(struct mbuf *m, ...)
m                 505 netinet/ip_carp.c 	struct ip *ip = mtod(m, struct ip *);
m                 511 netinet/ip_carp.c 	va_start(ap, m);
m                 518 netinet/ip_carp.c 		m_freem(m);
m                 523 netinet/ip_carp.c 	if (m->m_pkthdr.rcvif->if_type != IFT_CARP) {
m                 526 netinet/ip_carp.c 		    m->m_pkthdr.rcvif->if_xname));
m                 527 netinet/ip_carp.c 		m_freem(m);
m                 535 netinet/ip_carp.c 		    CARP_DFLTTL, m->m_pkthdr.rcvif->if_xname));
m                 536 netinet/ip_carp.c 		m_freem(m);
m                 546 netinet/ip_carp.c 	if (len > m->m_pkthdr.len) {
m                 548 netinet/ip_carp.c 		CARP_LOG(sc, ("packet too short %d on %s", m->m_pkthdr.len,
m                 549 netinet/ip_carp.c 		    m->m_pkthdr.rcvif->if_xname));
m                 550 netinet/ip_carp.c 		m_freem(m);
m                 554 netinet/ip_carp.c 	if ((m = m_pullup2(m, len)) == NULL) {
m                 558 netinet/ip_carp.c 	ip = mtod(m, struct ip *);
m                 562 netinet/ip_carp.c 	m->m_data += iplen;
m                 563 netinet/ip_carp.c 	if (carp_cksum(m, len - iplen)) {
m                 566 netinet/ip_carp.c 		    m->m_pkthdr.rcvif->if_xname));
m                 567 netinet/ip_carp.c 		m_freem(m);
m                 570 netinet/ip_carp.c 	m->m_data -= iplen;
m                 572 netinet/ip_carp.c 	carp_proto_input_c(m, ch, AF_INET);
m                 579 netinet/ip_carp.c 	struct mbuf *m = *mp;
m                 581 netinet/ip_carp.c 	struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
m                 588 netinet/ip_carp.c 		m_freem(m);
m                 593 netinet/ip_carp.c 	if (m->m_pkthdr.rcvif->if_type != IFT_CARP) {
m                 596 netinet/ip_carp.c 		    m->m_pkthdr.rcvif->if_xname));
m                 597 netinet/ip_carp.c 		m_freem(m);
m                 605 netinet/ip_carp.c 		    CARP_DFLTTL, m->m_pkthdr.rcvif->if_xname));
m                 606 netinet/ip_carp.c 		m_freem(m);
m                 611 netinet/ip_carp.c 	len = m->m_len;
m                 612 netinet/ip_carp.c 	IP6_EXTHDR_GET(ch, struct carp_header *, m, *offp, sizeof(*ch));
m                 621 netinet/ip_carp.c 	m->m_data += *offp;
m                 622 netinet/ip_carp.c 	if (carp_cksum(m, sizeof(*ch))) {
m                 625 netinet/ip_carp.c 		    m->m_pkthdr.rcvif->if_xname));
m                 626 netinet/ip_carp.c 		m_freem(m);
m                 629 netinet/ip_carp.c 	m->m_data -= *offp;
m                 631 netinet/ip_carp.c 	carp_proto_input_c(m, ch, AF_INET6);
m                 637 netinet/ip_carp.c carp_proto_input_c(struct mbuf *m, struct carp_header *ch, sa_family_t af)
m                 644 netinet/ip_carp.c 	    m->m_pkthdr.rcvif->if_carpdev->if_carp)->vhif_vrs, sc_list)
m                 651 netinet/ip_carp.c 		m_freem(m);
m                 671 netinet/ip_carp.c 			struct ip *ip = mtod(m, struct ip *);
m                 674 netinet/ip_carp.c 				m_freem(m);
m                 680 netinet/ip_carp.c 			struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
m                 690 netinet/ip_carp.c 				m_freem(m);
m                 699 netinet/ip_carp.c 	sc->sc_if.if_ibytes += m->m_pkthdr.len;
m                 707 netinet/ip_carp.c 		m_freem(m);
m                 716 netinet/ip_carp.c 		m_freem(m);
m                 794 netinet/ip_carp.c 	m_freem(m);
m                 944 netinet/ip_carp.c carp_prepare_ad(struct mbuf *m, struct carp_softc *sc, struct carp_header *ch)
m                 994 netinet/ip_carp.c 	struct mbuf *m;
m                1035 netinet/ip_carp.c 		MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                1036 netinet/ip_carp.c 		if (m == NULL) {
m                1043 netinet/ip_carp.c 		m->m_pkthdr.len = len;
m                1044 netinet/ip_carp.c 		m->m_pkthdr.rcvif = NULL;
m                1045 netinet/ip_carp.c 		m->m_len = len;
m                1046 netinet/ip_carp.c 		MH_ALIGN(m, m->m_len);
m                1047 netinet/ip_carp.c 		m->m_flags |= M_MCAST;
m                1048 netinet/ip_carp.c 		ip = mtod(m, struct ip *);
m                1071 netinet/ip_carp.c 		if (carp_prepare_ad(m, sc, ch_ptr))
m                1074 netinet/ip_carp.c 		m->m_data += sizeof(*ip);
m                1075 netinet/ip_carp.c 		ch_ptr->carp_cksum = carp_cksum(m, len - sizeof(*ip));
m                1076 netinet/ip_carp.c 		m->m_data -= sizeof(*ip);
m                1083 netinet/ip_carp.c 		error = ip_output(m, NULL, NULL, IP_RAWOUTPUT, &sc->sc_imo,
m                1118 netinet/ip_carp.c 		MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                1119 netinet/ip_carp.c 		if (m == NULL) {
m                1126 netinet/ip_carp.c 		m->m_pkthdr.len = len;
m                1127 netinet/ip_carp.c 		m->m_pkthdr.rcvif = NULL;
m                1128 netinet/ip_carp.c 		m->m_len = len;
m                1129 netinet/ip_carp.c 		MH_ALIGN(m, m->m_len);
m                1130 netinet/ip_carp.c 		m->m_flags |= M_MCAST;
m                1131 netinet/ip_carp.c 		ip6 = mtod(m, struct ip6_hdr *);
m                1154 netinet/ip_carp.c 		if (carp_prepare_ad(m, sc, ch_ptr))
m                1157 netinet/ip_carp.c 		m->m_data += sizeof(*ip6);
m                1158 netinet/ip_carp.c 		ch_ptr->carp_cksum = carp_cksum(m, len - sizeof(*ip6));
m                1159 netinet/ip_carp.c 		m->m_data -= sizeof(*ip6);
m                1166 netinet/ip_carp.c 		error = ip6_output(m, NULL, NULL, 0, &sc->sc_im6o, NULL, NULL);
m                1503 netinet/ip_carp.c carp_input(struct mbuf *m, u_int8_t *shost, u_int8_t *dhost, u_int16_t etype)
m                1506 netinet/ip_carp.c 	struct carp_if *cif = (struct carp_if *)m->m_pkthdr.rcvif->if_carp;
m                1513 netinet/ip_carp.c 	if ((ifp = carp_ourether(cif, &eh, m->m_pkthdr.rcvif->if_type, 0)))
m                1515 netinet/ip_carp.c 	else if (m->m_flags & (M_BCAST|M_MCAST)) {
m                1524 netinet/ip_carp.c 			m0 = m_copym2(m, 0, M_COPYALL, M_DONTWAIT);
m                1536 netinet/ip_carp.c 	m->m_pkthdr.rcvif = ifp;
m                1540 netinet/ip_carp.c 		bpf_mtap_hdr(ifp->if_bpf, (char *)&eh, ETHER_HDR_LEN, m,
m                1544 netinet/ip_carp.c 	ether_input(ifp, &eh, m);
m                1550 netinet/ip_carp.c carp_lsdrop(struct mbuf *m, sa_family_t af, u_int32_t *src, u_int32_t *dst)
m                1552 netinet/ip_carp.c 	struct carp_softc *sc = m->m_pkthdr.rcvif->if_softc;
m                1560 netinet/ip_carp.c 	if (m->m_flags & (M_BCAST|M_MCAST))
m                2297 netinet/ip_carp.c carp_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
m                2303 netinet/ip_carp.c 		return (sc->sc_carpdev->if_output(ifp, m, sa, rt));
m                2305 netinet/ip_carp.c 		m_freem(m);
m                 289 netinet/ip_esp.c esp_input(struct mbuf *m, struct tdb *tdb, int skip, int protoff)
m                 312 netinet/ip_esp.c 	plen = m->m_pkthdr.len - (skip + hlen + alen);
m                 316 netinet/ip_esp.c 		m_freem(m);
m                 328 netinet/ip_esp.c 			m_freem(m);
m                 335 netinet/ip_esp.c 		m_copydata(m, skip + sizeof(u_int32_t), sizeof(u_int32_t),
m                 345 netinet/ip_esp.c 			m_freem(m);
m                 353 netinet/ip_esp.c 			m_freem(m);
m                 357 netinet/ip_esp.c 			m_freem(m);
m                 365 netinet/ip_esp.c 	tdb->tdb_cur_bytes += m->m_pkthdr.len - skip - hlen - alen;
m                 366 netinet/ip_esp.c 	espstat.esps_ibytes += m->m_pkthdr.len - skip - hlen - alen;
m                 373 netinet/ip_esp.c 		m_freem(m);
m                 386 netinet/ip_esp.c 	for (mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_CRYPTO_DONE, NULL);
m                 388 netinet/ip_esp.c 	     mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_CRYPTO_DONE, mtag)) {
m                 403 netinet/ip_esp.c 		m_freem(m);
m                 417 netinet/ip_esp.c 		m_freem(m);
m                 433 netinet/ip_esp.c 		crda->crd_len = m->m_pkthdr.len - (skip + alen);
m                 434 netinet/ip_esp.c 		crda->crd_inject = m->m_pkthdr.len - alen;
m                 442 netinet/ip_esp.c 			m_copydata(m, m->m_pkthdr.len - alen, alen, (caddr_t) (tc + 1));
m                 447 netinet/ip_esp.c 	crp->crp_ilen = m->m_pkthdr.len; /* Total input length */
m                 449 netinet/ip_esp.c 	crp->crp_buf = (caddr_t) m;
m                 464 netinet/ip_esp.c 		crde->crd_len = m->m_pkthdr.len - (skip + hlen + alen);
m                 469 netinet/ip_esp.c 			m_copydata(m, crde->crd_inject, tdb->tdb_ivlen, crde->crd_iv);
m                 498 netinet/ip_esp.c 	struct mbuf *m1, *mo, *m;
m                 514 netinet/ip_esp.c 	m = (struct mbuf *) crp->crp_buf;
m                 515 netinet/ip_esp.c 	if (m == NULL) {
m                 561 netinet/ip_esp.c 			m_copydata(m, m->m_pkthdr.len - esph->authsize,
m                 577 netinet/ip_esp.c 		m_adj(m, -(esph->authsize));
m                 583 netinet/ip_esp.c 		m_copydata(m, skip + sizeof(u_int32_t), sizeof(u_int32_t),
m                 625 netinet/ip_esp.c 	m1 = m_getptr(m, skip, &roff);
m                 631 netinet/ip_esp.c 		m_freem(m);
m                 640 netinet/ip_esp.c 			m->m_pkthdr.len -= hlen;
m                 652 netinet/ip_esp.c 			m->m_pkthdr.len -= (roff + hlen - m1->m_len);
m                 662 netinet/ip_esp.c 			m->m_pkthdr.len -= (m1->m_len - roff);
m                 675 netinet/ip_esp.c 		m->m_pkthdr.len -= hlen;
m                 679 netinet/ip_esp.c 	m_copydata(m, m->m_pkthdr.len - 3, 3, lastthree);
m                 682 netinet/ip_esp.c 	if (lastthree[1] + 2 > m->m_pkthdr.len - skip) {
m                 686 netinet/ip_esp.c 		m_freem(m);
m                 696 netinet/ip_esp.c 			m_freem(m);
m                 702 netinet/ip_esp.c 	m_adj(m, -(lastthree[1] + 2));
m                 705 netinet/ip_esp.c 	m_copyback(m, protoff, sizeof(u_int8_t), lastthree + 2);
m                 708 netinet/ip_esp.c 	error = ipsec_common_input_cb(m, tdb, skip, protoff, mtag);
m                 715 netinet/ip_esp.c 	if (m != NULL)
m                 716 netinet/ip_esp.c 		m_freem(m);
m                 727 netinet/ip_esp.c esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
m                 744 netinet/ip_esp.c 	ifn->if_obytes += m->m_pkthdr.len;
m                 758 netinet/ip_esp.c 		bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, ENC_HDRLEN, m,
m                 768 netinet/ip_esp.c 	rlen = m->m_pkthdr.len - skip; /* Raw payload length. */
m                 791 netinet/ip_esp.c 			m_freem(m);
m                 805 netinet/ip_esp.c 			m_freem(m);
m                 816 netinet/ip_esp.c 		m_freem(m);
m                 822 netinet/ip_esp.c 	tdb->tdb_cur_bytes += m->m_pkthdr.len - skip;
m                 823 netinet/ip_esp.c 	espstat.esps_obytes += m->m_pkthdr.len - skip;
m                 830 netinet/ip_esp.c 		m_freem(m);
m                 846 netinet/ip_esp.c 	mi = m;
m                 860 netinet/ip_esp.c 			m_freem(m);
m                 867 netinet/ip_esp.c 			m = n;
m                 873 netinet/ip_esp.c 	mo = m_inject(m, skip, hlen, M_DONTWAIT);
m                 878 netinet/ip_esp.c 		m_freem(m);
m                 898 netinet/ip_esp.c 	pad = (u_char *) m_pad(m, padding + alen);
m                 914 netinet/ip_esp.c 	m_copydata(m, protoff, sizeof(u_int8_t), pad + padding - 1);
m                 918 netinet/ip_esp.c 	m_copyback(m, protoff, sizeof(u_int8_t), &prot);
m                 923 netinet/ip_esp.c 		m_freem(m);
m                 936 netinet/ip_esp.c 		crde->crd_len = m->m_pkthdr.len - (skip + hlen + alen);
m                 942 netinet/ip_esp.c 			m_copyback(m, crde->crd_inject, tdb->tdb_ivlen,
m                 967 netinet/ip_esp.c 		m_freem(m);
m                 980 netinet/ip_esp.c 	crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */
m                 982 netinet/ip_esp.c 	crp->crp_buf = (caddr_t) m;
m                 990 netinet/ip_esp.c 		crda->crd_len = m->m_pkthdr.len - (skip + alen);
m                 991 netinet/ip_esp.c 		crda->crd_inject = m->m_pkthdr.len - alen;
m                1014 netinet/ip_esp.c 	struct mbuf *m;
m                1019 netinet/ip_esp.c 	m = (struct mbuf *) crp->crp_buf;
m                1020 netinet/ip_esp.c 	if (m == NULL) {
m                1069 netinet/ip_esp.c 		m_copydata(m, m->m_pkthdr.len - tdb->tdb_ivlen, tdb->tdb_ivlen,
m                1073 netinet/ip_esp.c 	error = ipsp_process_done(m, tdb);
m                1080 netinet/ip_esp.c 	if (m != NULL)
m                1081 netinet/ip_esp.c 		m_freem(m);
m                1146 netinet/ip_esp.c m_pad(struct mbuf *m, int n)
m                1154 netinet/ip_esp.c 		m_freem(m);
m                1158 netinet/ip_esp.c 	len = m->m_pkthdr.len;
m                1160 netinet/ip_esp.c 	m0 = m;
m                1169 netinet/ip_esp.c 		    "%d)\n", m->m_pkthdr.len,
m                1170 netinet/ip_esp.c 		    m->m_pkthdr.len + m0->m_len - len));
m                1172 netinet/ip_esp.c 		m_freem(m);
m                1180 netinet/ip_esp.c 			    "instead of %d)\n", m->m_pkthdr.len,
m                1181 netinet/ip_esp.c 			    m->m_pkthdr.len + m1->m_next->m_len));
m                1183 netinet/ip_esp.c 			m_freem(m);
m                1207 netinet/ip_esp.c 	m->m_pkthdr.len += pad;
m                  79 netinet/ip_ether.c etherip_input(struct mbuf *m, ...)
m                  95 netinet/ip_ether.c 	va_start(ap, m);
m                 102 netinet/ip_ether.c 	if (!etherip_allow && (m->m_flags & (M_AUTH|M_CONF)) == 0) {
m                 105 netinet/ip_ether.c 		m_freem(m);
m                 113 netinet/ip_ether.c 	if (m->m_pkthdr.len < iphlen + sizeof(struct ether_header) +
m                 117 netinet/ip_ether.c 		m_freem(m);
m                 122 netinet/ip_ether.c 	m_copydata(m, iphlen, sizeof(struct etherip_header), (caddr_t)&eip);
m                 127 netinet/ip_ether.c 		m_freem(m);
m                 140 netinet/ip_ether.c 		m_freem(m);
m                 149 netinet/ip_ether.c 		m_freem(m);
m                 154 netinet/ip_ether.c 	if (m->m_len < iphlen + sizeof(struct ether_header) +
m                 156 netinet/ip_ether.c 		if ((m = m_pullup(m, iphlen + sizeof(struct ether_header) +
m                 168 netinet/ip_ether.c 	v = *mtod(m, u_int8_t *);
m                 174 netinet/ip_ether.c 		m_copydata(m, offsetof(struct ip, ip_src),
m                 177 netinet/ip_ether.c 		m_copydata(m, offsetof(struct ip, ip_dst),
m                 186 netinet/ip_ether.c 		m_copydata(m, offsetof(struct ip6_hdr, ip6_src),
m                 189 netinet/ip_ether.c 		m_copydata(m, offsetof(struct ip6_hdr, ip6_dst),
m                 196 netinet/ip_ether.c 		m_freem(m);
m                 202 netinet/ip_ether.c 	m_adj(m, iphlen + sizeof(struct etherip_header));
m                 205 netinet/ip_ether.c 	etheripstat.etherip_ibytes += m->m_pkthdr.len;
m                 208 netinet/ip_ether.c 	m_copydata(m, 0, sizeof(eh), (void *) &eh);
m                 211 netinet/ip_ether.c 	m->m_flags &= ~(M_BCAST|M_MCAST|M_AUTH|M_CONF|M_AUTH_AH);
m                 215 netinet/ip_ether.c 			m->m_flags |= M_BCAST;
m                 217 netinet/ip_ether.c 			m->m_flags |= M_MCAST;
m                 238 netinet/ip_ether.c 		m_freem(m);
m                 243 netinet/ip_ether.c 		bpf_mtap_af(sc->gif_if.if_bpf, AF_LINK, m, BPF_DIRECTION_IN);
m                 247 netinet/ip_ether.c 	m_adj(m, sizeof(struct ether_header));
m                 255 netinet/ip_ether.c 	m->m_pkthdr.rcvif = &sc->gif_if;
m                 256 netinet/ip_ether.c 	if (m->m_flags & (M_BCAST|M_MCAST))
m                 260 netinet/ip_ether.c 	m = bridge_input(&sc->gif_if, &eh, m);
m                 262 netinet/ip_ether.c 	if (m == NULL)
m                 268 netinet/ip_ether.c 	m_freem(m);
m                 273 netinet/ip_ether.c etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
m                 295 netinet/ip_ether.c 		m_freem(m);
m                 304 netinet/ip_ether.c 		m_freem(m);
m                 313 netinet/ip_ether.c 		m_freem(m);
m                 332 netinet/ip_ether.c 		m_freem(m);
m                 339 netinet/ip_ether.c 	if (!(m->m_flags & M_PKTHDR)) {
m                 341 netinet/ip_ether.c 		m_freem(m);
m                 349 netinet/ip_ether.c 		m_freem(m);
m                 352 netinet/ip_ether.c 	M_MOVE_PKTHDR(m0, m);
m                 353 netinet/ip_ether.c 	m0->m_next = m;
m                 356 netinet/ip_ether.c 	m = m0;
m                 360 netinet/ip_ether.c 	etheripstat.etherip_obytes += m->m_pkthdr.len - hlen;
m                 365 netinet/ip_ether.c 		ipo = mtod(m, struct ip *);
m                 369 netinet/ip_ether.c 		ipo->ip_len = htons(m->m_pkthdr.len);
m                 388 netinet/ip_ether.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 394 netinet/ip_ether.c 		ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
m                 405 netinet/ip_ether.c 	m_copyback(m, hlen - sizeof(struct etherip_header),
m                 408 netinet/ip_ether.c 	*mp = m;
m                  96 netinet/ip_gre.c gre_input2(m , hlen, proto)
m                  97 netinet/ip_gre.c         struct mbuf *m;
m                 108 netinet/ip_gre.c 	if ((sc = gre_lookup(m, proto)) == NULL) {
m                 113 netinet/ip_gre.c 	if (m->m_len < sizeof(*gip)) {
m                 114 netinet/ip_gre.c 		m = m_pullup(m, sizeof(*gip));
m                 115 netinet/ip_gre.c 		if (m == NULL)
m                 118 netinet/ip_gre.c 	gip = mtod(m, struct greip *);
m                 120 netinet/ip_gre.c 	m->m_pkthdr.rcvif = &sc->sc_if;
m                 123 netinet/ip_gre.c 	sc->sc_if.if_ibytes += m->m_pkthdr.len;
m                 188 netinet/ip_gre.c 	if (hlen > m->m_pkthdr.len) {
m                 189 netinet/ip_gre.c 		m_freem(m);
m                 192 netinet/ip_gre.c 	m_adj(m, hlen);
m                 196 netinet/ip_gre.c 		bpf_mtap_af(sc->sc_if.if_bpf, af, m, BPF_DIRECTION_IN);
m                 200 netinet/ip_gre.c 	IF_INPUT_ENQUEUE(ifq, m);
m                 212 netinet/ip_gre.c gre_input(struct mbuf *m, ...)
m                 217 netinet/ip_gre.c 	va_start(ap, m);
m                 222 netinet/ip_gre.c 	        m_freem(m);
m                 226 netinet/ip_gre.c 	ret = gre_input2(m, hlen, IPPROTO_GRE);
m                 235 netinet/ip_gre.c 		rip_input(m, hlen, IPPROTO_GRE);
m                 246 netinet/ip_gre.c gre_mobile_input(struct mbuf *m, ...)
m                 257 netinet/ip_gre.c 	va_start(ap, m);
m                 262 netinet/ip_gre.c 	        m_freem(m);
m                 266 netinet/ip_gre.c 	if ((sc = gre_lookup(m, IPPROTO_MOBILE)) == NULL) {
m                 268 netinet/ip_gre.c 		m_freem(m);
m                 272 netinet/ip_gre.c 	if (m->m_len < sizeof(*mip)) {
m                 273 netinet/ip_gre.c 		m = m_pullup(m, sizeof(*mip));
m                 274 netinet/ip_gre.c 		if (m == NULL)
m                 277 netinet/ip_gre.c 	ip = mtod(m, struct ip *);
m                 278 netinet/ip_gre.c 	mip = mtod(m, struct mobip_h *);
m                 280 netinet/ip_gre.c 	m->m_pkthdr.rcvif = &sc->sc_if;
m                 283 netinet/ip_gre.c 	sc->sc_if.if_ibytes += m->m_pkthdr.len;
m                 292 netinet/ip_gre.c 	if (m->m_len < (ip->ip_hl << 2) + msiz) {
m                 293 netinet/ip_gre.c 		m = m_pullup(m, (ip->ip_hl << 2) + msiz);
m                 294 netinet/ip_gre.c 		if (m == NULL)
m                 296 netinet/ip_gre.c 		ip = mtod(m, struct ip *);
m                 297 netinet/ip_gre.c 		mip = mtod(m, struct mobip_h *);
m                 304 netinet/ip_gre.c 		m_freem(m);
m                 309 netinet/ip_gre.c 	      m->m_len - msiz - (ip->ip_hl << 2));
m                 311 netinet/ip_gre.c 	m->m_len -= msiz;
m                 313 netinet/ip_gre.c 	m->m_pkthdr.len -= msiz;
m                 316 netinet/ip_gre.c 	ip->ip_sum = in_cksum(m,(ip->ip_hl << 2));
m                 322 netinet/ip_gre.c 		bpf_mtap_af(sc->sc_if.if_bpf, AF_INET, m, BPF_DIRECTION_IN);
m                 326 netinet/ip_gre.c 	IF_INPUT_ENQUEUE(ifq, m);
m                 334 netinet/ip_gre.c gre_lookup(m, proto)
m                 335 netinet/ip_gre.c 	struct mbuf *m;
m                 338 netinet/ip_gre.c 	struct ip *ip = mtod(m, struct ip *);
m                 143 netinet/ip_icmp.c 	struct mbuf *m;
m                 184 netinet/ip_icmp.c 	for (m = n; m && (mblen < icmplen); m = m->m_next)
m                 185 netinet/ip_icmp.c 		mblen += m->m_len;
m                 201 netinet/ip_icmp.c 	m = m_gethdr(M_DONTWAIT, MT_HEADER);
m                 202 netinet/ip_icmp.c 	if (m && (sizeof (struct ip) + icmplen + ICMP_MINLEN > MHLEN)) {
m                 203 netinet/ip_icmp.c 		MCLGET(m, M_DONTWAIT);
m                 204 netinet/ip_icmp.c 		if ((m->m_flags & M_EXT) == 0) {
m                 205 netinet/ip_icmp.c 			m_freem(m);
m                 206 netinet/ip_icmp.c 			m = NULL;
m                 209 netinet/ip_icmp.c 	if (m == NULL)
m                 211 netinet/ip_icmp.c 	m->m_len = icmplen + ICMP_MINLEN;
m                 212 netinet/ip_icmp.c 	if ((m->m_flags & M_EXT) == 0)
m                 213 netinet/ip_icmp.c 		MH_ALIGN(m, m->m_len);
m                 214 netinet/ip_icmp.c 	icp = mtod(m, struct icmp *);
m                 242 netinet/ip_icmp.c 	if ((m->m_flags & M_EXT) == 0 &&
m                 243 netinet/ip_icmp.c 	    m->m_data - sizeof(struct ip) < m->m_pktdat)
m                 245 netinet/ip_icmp.c 	m->m_data -= sizeof(struct ip);
m                 246 netinet/ip_icmp.c 	m->m_len += sizeof(struct ip);
m                 247 netinet/ip_icmp.c 	m->m_pkthdr.len = m->m_len;
m                 248 netinet/ip_icmp.c 	m->m_pkthdr.rcvif = n->m_pkthdr.rcvif;
m                 249 netinet/ip_icmp.c 	nip = mtod(m, struct ip *);
m                 253 netinet/ip_icmp.c 	nip->ip_len = htons(m->m_len);
m                 263 netinet/ip_icmp.c 		m->m_pkthdr.pf.flags |= PF_TAG_GENERATED;
m                 266 netinet/ip_icmp.c 	return (m);
m                 282 netinet/ip_icmp.c 	struct mbuf *m;
m                 284 netinet/ip_icmp.c 	m = icmp_do_error(n, type, code, dest, destmtu);
m                 285 netinet/ip_icmp.c 	if (m != NULL)
m                 286 netinet/ip_icmp.c 		icmp_reflect(m);
m                 297 netinet/ip_icmp.c icmp_input(struct mbuf *m, ...)
m                 300 netinet/ip_icmp.c 	struct ip *ip = mtod(m, struct ip *);
m                 311 netinet/ip_icmp.c 	va_start(ap, m);
m                 334 netinet/ip_icmp.c 	if (m->m_len < i && (m = m_pullup(m, i)) == NULL) {
m                 338 netinet/ip_icmp.c 	ip = mtod(m, struct ip *);
m                 339 netinet/ip_icmp.c 	m->m_len -= hlen;
m                 340 netinet/ip_icmp.c 	m->m_data += hlen;
m                 341 netinet/ip_icmp.c 	icp = mtod(m, struct icmp *);
m                 342 netinet/ip_icmp.c 	if (in_cksum(m, icmplen)) {
m                 346 netinet/ip_icmp.c 	m->m_len += hlen;
m                 347 netinet/ip_icmp.c 	m->m_data -= hlen;
m                 416 netinet/ip_icmp.c 		if (m->m_flags & M_PKTHDR)
m                 417 netinet/ip_icmp.c 			m_tag_delete_chain(m);
m                 437 netinet/ip_icmp.c 				if ((m = m_pullup(m, (ip->ip_hl << 2) +
m                 442 netinet/ip_icmp.c 				ip = mtod(m, struct ip *);
m                 444 netinet/ip_icmp.c 				    (m->m_data + (ip->ip_hl << 2));
m                 454 netinet/ip_icmp.c 		if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 455 netinet/ip_icmp.c 		    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 456 netinet/ip_icmp.c 		    carp_lsdrop(m, AF_INET, &icmpsrc.sin_addr.s_addr,
m                 475 netinet/ip_icmp.c 		    (m->m_flags & (M_MCAST | M_BCAST)) != 0) {
m                 487 netinet/ip_icmp.c 		    (m->m_flags & (M_MCAST | M_BCAST)) != 0) {
m                 516 netinet/ip_icmp.c 		if (m->m_pkthdr.rcvif == NULL)
m                 519 netinet/ip_icmp.c 		    m->m_pkthdr.rcvif));
m                 532 netinet/ip_icmp.c 		if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 533 netinet/ip_icmp.c 		    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 534 netinet/ip_icmp.c 		    carp_lsdrop(m, AF_INET, &ip->ip_src.s_addr,
m                 539 netinet/ip_icmp.c 		if (m->m_flags & M_PKTHDR)
m                 540 netinet/ip_icmp.c 			m_tag_delete_chain(m);
m                 544 netinet/ip_icmp.c 		icmp_reflect(m);
m                 549 netinet/ip_icmp.c 		if (m->m_flags & M_PKTHDR)
m                 550 netinet/ip_icmp.c 			m_tag_delete_chain(m);
m                 581 netinet/ip_icmp.c 		if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 582 netinet/ip_icmp.c 		    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 583 netinet/ip_icmp.c 		    carp_lsdrop(m, AF_INET, &icmpsrc.sin_addr.s_addr,
m                 623 netinet/ip_icmp.c 	rip_input(m);
m                 627 netinet/ip_icmp.c 	m_freem(m);
m                 634 netinet/ip_icmp.c icmp_reflect(struct mbuf *m)
m                 636 netinet/ip_icmp.c 	struct ip *ip = mtod(m, struct ip *);
m                 645 netinet/ip_icmp.c 		m_freem(m);	/* Bad return address */
m                 680 netinet/ip_icmp.c 			m_freem(m);
m                 758 netinet/ip_icmp.c 		m->m_len -= optlen;
m                 759 netinet/ip_icmp.c 		if (m->m_flags & M_PKTHDR)
m                 760 netinet/ip_icmp.c 			m->m_pkthdr.len -= optlen;
m                 763 netinet/ip_icmp.c 		    (unsigned)(m->m_len - sizeof(struct ip)));
m                 765 netinet/ip_icmp.c 	m->m_flags &= ~(M_BCAST|M_MCAST);
m                 766 netinet/ip_icmp.c 	icmp_send(m, opts);
m                 777 netinet/ip_icmp.c icmp_send(struct mbuf *m, struct mbuf *opts)
m                 779 netinet/ip_icmp.c 	struct ip *ip = mtod(m, struct ip *);
m                 784 netinet/ip_icmp.c 	m->m_data += hlen;
m                 785 netinet/ip_icmp.c 	m->m_len -= hlen;
m                 786 netinet/ip_icmp.c 	icp = mtod(m, struct icmp *);
m                 788 netinet/ip_icmp.c 	icp->icmp_cksum = in_cksum(m, ntohs(ip->ip_len) - hlen);
m                 789 netinet/ip_icmp.c 	m->m_data -= hlen;
m                 790 netinet/ip_icmp.c 	m->m_len += hlen;
m                 800 netinet/ip_icmp.c 	(void)ip_output(m, opts, (void *)NULL, 0, (void *)NULL, (void *)NULL);
m                 253 netinet/ip_input.c 	struct mbuf *m;
m                 262 netinet/ip_input.c 		IF_DEQUEUE(&ipintrq, m);
m                 264 netinet/ip_input.c 		if (m == 0)
m                 267 netinet/ip_input.c 		if ((m->m_flags & M_PKTHDR) == 0)
m                 270 netinet/ip_input.c 		ipv4_input(m);
m                 279 netinet/ip_input.c ipv4_input(m)
m                 280 netinet/ip_input.c 	struct mbuf *m;
m                 302 netinet/ip_input.c 	if (m->m_len < sizeof (struct ip) &&
m                 303 netinet/ip_input.c 	    (m = m_pullup(m, sizeof (struct ip))) == NULL) {
m                 307 netinet/ip_input.c 	ip = mtod(m, struct ip *);
m                 317 netinet/ip_input.c 	if (hlen > m->m_len) {
m                 318 netinet/ip_input.c 		if ((m = m_pullup(m, hlen)) == NULL) {
m                 322 netinet/ip_input.c 		ip = mtod(m, struct ip *);
m                 328 netinet/ip_input.c 		if ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) {
m                 334 netinet/ip_input.c 	if ((m->m_pkthdr.csum_flags & M_IPV4_CSUM_IN_OK) == 0) {
m                 335 netinet/ip_input.c 		if (m->m_pkthdr.csum_flags & M_IPV4_CSUM_IN_BAD) {
m                 341 netinet/ip_input.c 		if (in_cksum(m, hlen) != 0) {
m                 346 netinet/ip_input.c 		m->m_pkthdr.csum_flags &= ~M_IPV4_CSUM_IN_OK;
m                 367 netinet/ip_input.c 	if (m->m_pkthdr.len < len) {
m                 371 netinet/ip_input.c 	if (m->m_pkthdr.len > len) {
m                 372 netinet/ip_input.c 		if (m->m_len == m->m_pkthdr.len) {
m                 373 netinet/ip_input.c 			m->m_len = len;
m                 374 netinet/ip_input.c 			m->m_pkthdr.len = len;
m                 376 netinet/ip_input.c 			m_adj(m, len - m->m_pkthdr.len);
m                 380 netinet/ip_input.c 	if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 381 netinet/ip_input.c 	    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 383 netinet/ip_input.c 	    carp_lsdrop(m, AF_INET, &ip->ip_src.s_addr,
m                 393 netinet/ip_input.c 	if (pf_test(PF_IN, m->m_pkthdr.rcvif, &m, NULL) != PF_PASS)
m                 395 netinet/ip_input.c 	if (m == NULL)
m                 398 netinet/ip_input.c 	ip = mtod(m, struct ip *);
m                 410 netinet/ip_input.c 	if (hlen > sizeof (struct ip) && ip_dooptions(m)) {
m                 417 netinet/ip_input.c 	if ((ia = in_iawithaddr(ip->ip_dst, m)) != NULL &&
m                 426 netinet/ip_input.c 		if (m->m_flags & M_EXT) {
m                 427 netinet/ip_input.c 			if ((m = m_pullup(m, hlen)) == NULL) {
m                 431 netinet/ip_input.c 			ip = mtod(m, struct ip *);
m                 446 netinet/ip_input.c 			if (ip_mforward(m, m->m_pkthdr.rcvif) != 0) {
m                 448 netinet/ip_input.c 				m_freem(m);
m                 466 netinet/ip_input.c 		IN_LOOKUP_MULTI(ip->ip_dst, m->m_pkthdr.rcvif, inm);
m                 471 netinet/ip_input.c 			m_freem(m);
m                 481 netinet/ip_input.c 	if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 482 netinet/ip_input.c 	    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 484 netinet/ip_input.c 	    carp_lsdrop(m, AF_INET, &ip->ip_src.s_addr,
m                 493 netinet/ip_input.c 		m_freem(m);
m                 502 netinet/ip_input.c 		mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL);
m                 509 netinet/ip_input.c 	        ipsp_spd_lookup(m, AF_INET, hlen, &error,
m                 516 netinet/ip_input.c 			m_freem(m);
m                 527 netinet/ip_input.c 	ip_forward(m, pfrdr);
m                 539 netinet/ip_input.c 		if (m->m_flags & M_EXT) {		/* XXX */
m                 540 netinet/ip_input.c 			if ((m = m_pullup(m, hlen)) == NULL) {
m                 544 netinet/ip_input.c 			ip = mtod(m, struct ip *);
m                 604 netinet/ip_input.c 			ipqe->ipqe_m = m;
m                 606 netinet/ip_input.c 			m = ip_reass(ipqe, fp);
m                 607 netinet/ip_input.c 			if (m == 0) {
m                 612 netinet/ip_input.c 			ip = mtod(m, struct ip *);
m                 667 netinet/ip_input.c 	mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL);
m                 674 netinet/ip_input.c 	ipsp_spd_lookup(m, AF_INET, hlen, &error, IPSP_DIRECTION_IN,
m                 681 netinet/ip_input.c 		m_freem(m);
m                 693 netinet/ip_input.c 	(*inetsw[ip_protox[ip->ip_p]].pr_input)(m, hlen, NULL, 0);
m                 696 netinet/ip_input.c 	m_freem(m);
m                 700 netinet/ip_input.c in_iawithaddr(ina, m)
m                 702 netinet/ip_input.c 	struct mbuf *m;
m                 712 netinet/ip_input.c 		if (((ip_directedbcast == 0) || (m && ip_directedbcast &&
m                 713 netinet/ip_input.c 		    ia->ia_ifp == m->m_pkthdr.rcvif)) &&
m                 724 netinet/ip_input.c 				if (m)
m                 725 netinet/ip_input.c 					m->m_flags |= M_BCAST;
m                 745 netinet/ip_input.c 	struct mbuf *m = ipqe->ipqe_m;
m                 757 netinet/ip_input.c 	m->m_data += hlen;
m                 758 netinet/ip_input.c 	m->m_len -= hlen;
m                 877 netinet/ip_input.c 	m = q->ipqe_m;
m                 878 netinet/ip_input.c 	t = m->m_next;
m                 879 netinet/ip_input.c 	m->m_next = 0;
m                 880 netinet/ip_input.c 	m_cat(m, t);
m                 889 netinet/ip_input.c 		m_cat(m, t);
m                 903 netinet/ip_input.c 	m->m_len += (ip->ip_hl << 2);
m                 904 netinet/ip_input.c 	m->m_data -= (ip->ip_hl << 2);
m                 906 netinet/ip_input.c 	if (m->m_flags & M_PKTHDR) { /* XXX this should be done elsewhere */
m                 908 netinet/ip_input.c 		for (t = m; t; t = t->m_next)
m                 910 netinet/ip_input.c 		m->m_pkthdr.len = plen;
m                 912 netinet/ip_input.c 	return (m);
m                 916 netinet/ip_input.c 	m_freem(m);
m                1010 netinet/ip_input.c ip_dooptions(m)
m                1011 netinet/ip_input.c 	struct mbuf *m;
m                1013 netinet/ip_input.c 	struct ip *ip = mtod(m, struct ip *);
m                1175 netinet/ip_input.c 							    m->m_pkthdr.rcvif);
m                1207 netinet/ip_input.c 		ip_forward(m, 1);
m                1212 netinet/ip_input.c 	icmp_error(m, type, code, 0, 0);
m                1321 netinet/ip_input.c 	struct mbuf *m;
m                1325 netinet/ip_input.c 	m = m_get(M_DONTWAIT, MT_SOOPTS);
m                1326 netinet/ip_input.c 	if (m == 0)
m                1332 netinet/ip_input.c 	m->m_len = ip_nhops * sizeof(struct in_addr) + sizeof(struct in_addr) +
m                1336 netinet/ip_input.c 		printf("ip_srcroute: nhops %d mlen %d", ip_nhops, m->m_len);
m                1343 netinet/ip_input.c 	*(mtod(m, struct in_addr *)) = *p--;
m                1346 netinet/ip_input.c 		printf(" hops %x", ntohl(mtod(m, struct in_addr *)->s_addr));
m                1355 netinet/ip_input.c 	    mtod(m, caddr_t) + sizeof(struct in_addr), OPTSIZ);
m                1356 netinet/ip_input.c 	q = (struct in_addr *)(mtod(m, caddr_t) +
m                1378 netinet/ip_input.c 	return (m);
m                1389 netinet/ip_input.c ip_stripoptions(m, mopt)
m                1390 netinet/ip_input.c 	struct mbuf *m;
m                1394 netinet/ip_input.c 	struct ip *ip = mtod(m, struct ip *);
m                1400 netinet/ip_input.c 	i = m->m_len - (sizeof (struct ip) + olen);
m                1402 netinet/ip_input.c 	m->m_len -= olen;
m                1403 netinet/ip_input.c 	if (m->m_flags & M_PKTHDR)
m                1404 netinet/ip_input.c 		m->m_pkthdr.len -= olen;
m                1432 netinet/ip_input.c ip_forward(m, srcrt)
m                1433 netinet/ip_input.c 	struct mbuf *m;
m                1436 netinet/ip_input.c 	struct ip *ip = mtod(m, struct ip *);
m                1449 netinet/ip_input.c 	if (m->m_flags & M_BCAST || in_canforward(ip->ip_dst) == 0) {
m                1451 netinet/ip_input.c 		m_freem(m);
m                1455 netinet/ip_input.c 		icmp_error(m, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, dest, 0);
m                1460 netinet/ip_input.c 	rtableid = m->m_pkthdr.pf.rtableid;
m                1477 netinet/ip_input.c 			icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, dest, 0);
m                1489 netinet/ip_input.c 	mcopy = m_copym(m, 0, min(ntohs(ip->ip_len), 68), M_DONTWAIT);
m                1505 netinet/ip_input.c 	if (rt->rt_ifp == m->m_pkthdr.rcvif &&
m                1527 netinet/ip_input.c 	error = ip_output(m, (struct mbuf *)NULL, &ipforward_rt,
m                1679 netinet/ip_input.c     struct mbuf *m)
m                1719 netinet/ip_input.c 		if ((ifp = m->m_pkthdr.rcvif) == NULL ||
m                 142 netinet/ip_ipcomp.c ipcomp_input(m, tdb, skip, protoff)
m                 143 netinet/ip_ipcomp.c 	struct mbuf    *m;
m                 160 netinet/ip_ipcomp.c 		m_freem(m);
m                 169 netinet/ip_ipcomp.c 		m_freem(m);
m                 179 netinet/ip_ipcomp.c 	crdc->crd_len = m->m_pkthdr.len - (skip + hlen);
m                 188 netinet/ip_ipcomp.c 	crp->crp_ilen = m->m_pkthdr.len - (skip + hlen);
m                 190 netinet/ip_ipcomp.c 	crp->crp_buf = (caddr_t) m;
m                 214 netinet/ip_ipcomp.c 	struct mbuf *m, *m1, *mo;
m                 230 netinet/ip_ipcomp.c 	m = (struct mbuf *) crp->crp_buf;
m                 231 netinet/ip_ipcomp.c 	if (m == NULL) {
m                 253 netinet/ip_ipcomp.c 	tdb->tdb_cur_bytes += m->m_pkthdr.len - (skip + hlen);
m                 254 netinet/ip_ipcomp.c 	ipcompstat.ipcomps_ibytes += m->m_pkthdr.len - (skip + hlen);
m                 294 netinet/ip_ipcomp.c 	m->m_pkthdr.len = clen + hlen + skip;
m                 296 netinet/ip_ipcomp.c 	if ((m->m_len < skip + hlen) && (m = m_pullup(m, skip + hlen)) == 0) {
m                 302 netinet/ip_ipcomp.c 	m1 = m_getptr(m, skip, &roff);
m                 311 netinet/ip_ipcomp.c 	addr = (caddr_t) mtod(m, struct ip *) + skip;
m                 320 netinet/ip_ipcomp.c 			m->m_pkthdr.len -= hlen;
m                 330 netinet/ip_ipcomp.c 			m->m_pkthdr.len -= (roff + hlen - m1->m_len);
m                 339 netinet/ip_ipcomp.c 			m->m_pkthdr.len -= (m1->m_len - roff);
m                 348 netinet/ip_ipcomp.c 		m->m_pkthdr.len -= hlen;
m                 355 netinet/ip_ipcomp.c 	m_copyback(m, protoff, sizeof(u_int8_t), &nproto);
m                 358 netinet/ip_ipcomp.c 	error = ipsec_common_input_cb(m, tdb, skip, protoff, NULL);
m                 365 netinet/ip_ipcomp.c 	if (m)
m                 366 netinet/ip_ipcomp.c 		m_freem(m);
m                 377 netinet/ip_ipcomp.c ipcomp_output(m, tdb, mp, skip, protoff)
m                 378 netinet/ip_ipcomp.c 	struct mbuf    *m;
m                 401 netinet/ip_ipcomp.c 		bpf_mtap_hdr(ifn->if_bpf, (char *)&hdr, ENC_HDRLEN, m,
m                 417 netinet/ip_ipcomp.c 		if (m->m_pkthdr.len + hlen > IP_MAXPACKET) {
m                 420 netinet/ip_ipcomp.c 			m_freem(m);
m                 430 netinet/ip_ipcomp.c 		if (m->m_pkthdr.len + hlen > IPV6_MAXPACKET) {
m                 433 netinet/ip_ipcomp.c 			m_freem(m);
m                 443 netinet/ip_ipcomp.c 		m_freem(m);
m                 450 netinet/ip_ipcomp.c 	tdb->tdb_cur_bytes += m->m_pkthdr.len - skip;
m                 451 netinet/ip_ipcomp.c 	ipcompstat.ipcomps_obytes += m->m_pkthdr.len - skip;
m                 458 netinet/ip_ipcomp.c 		m_freem(m);
m                 472 netinet/ip_ipcomp.c 	mi = m;
m                 486 netinet/ip_ipcomp.c 			m_freem(m);
m                 492 netinet/ip_ipcomp.c 			m = n;
m                 501 netinet/ip_ipcomp.c 		m_freem(m);
m                 510 netinet/ip_ipcomp.c 	crdc->crd_len = m->m_pkthdr.len - skip;
m                 521 netinet/ip_ipcomp.c 		m_freem(m);
m                 535 netinet/ip_ipcomp.c 	crp->crp_ilen = m->m_pkthdr.len;	/* Total input length */
m                 537 netinet/ip_ipcomp.c 	crp->crp_buf = (caddr_t) m;
m                 555 netinet/ip_ipcomp.c 	struct mbuf *m, *mo;
m                 570 netinet/ip_ipcomp.c 	m = (struct mbuf *) crp->crp_buf;
m                 571 netinet/ip_ipcomp.c 	if (m == NULL) {
m                 614 netinet/ip_ipcomp.c 		error = ipsp_process_done(m, tdb);
m                 620 netinet/ip_ipcomp.c 	mo = m_inject(m, skip, IPCOMP_HLENGTH, M_DONTWAIT);
m                 640 netinet/ip_ipcomp.c 		ip = mtod(m, struct ip *);
m                 647 netinet/ip_ipcomp.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 666 netinet/ip_ipcomp.c 	error = ipsp_process_done(m, tdb);
m                 673 netinet/ip_ipcomp.c 	if (m)
m                 674 netinet/ip_ipcomp.c 		m_freem(m);
m                  89 netinet/ip_ipip.c ip4_input6(struct mbuf **m, int *offp, int proto)
m                  92 netinet/ip_ipip.c 	if (!ipip_allow && ((*m)->m_flags & (M_AUTH|M_CONF)) == 0) {
m                  95 netinet/ip_ipip.c 		m_freem(*m);
m                  99 netinet/ip_ipip.c 	ipip_input(*m, *offp, NULL);
m                 109 netinet/ip_ipip.c ip4_input(struct mbuf *m, ...)
m                 115 netinet/ip_ipip.c 	if (!ipip_allow && (m->m_flags & (M_AUTH|M_CONF)) == 0) {
m                 118 netinet/ip_ipip.c 		m_freem(m);
m                 122 netinet/ip_ipip.c 	va_start(ap, m);
m                 126 netinet/ip_ipip.c 	ipip_input(m, iphlen, NULL);
m                 138 netinet/ip_ipip.c ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
m                 158 netinet/ip_ipip.c 	m_copydata(m, 0, 1, &v);
m                 173 netinet/ip_ipip.c 		m_freem(m);
m                 178 netinet/ip_ipip.c 	if (m->m_len < hlen) {
m                 179 netinet/ip_ipip.c 		if ((m = m_pullup(m, hlen)) == NULL) {
m                 186 netinet/ip_ipip.c 	ipo = mtod(m, struct ip *);
m                 197 netinet/ip_ipip.c 		otos = (ntohl(mtod(m, struct ip6_hdr *)->ip6_flow) >> 20) & 0xff;
m                 205 netinet/ip_ipip.c 	m_adj(m, iphlen);
m                 208 netinet/ip_ipip.c 	if (m->m_pkthdr.len < sizeof(struct ip)) {
m                 210 netinet/ip_ipip.c 		m_freem(m);
m                 214 netinet/ip_ipip.c 	m_copydata(m, 0, 1, &v);
m                 230 netinet/ip_ipip.c 		m_freem(m);
m                 237 netinet/ip_ipip.c 	if (m->m_len < hlen) {
m                 238 netinet/ip_ipip.c 		if ((m = m_pullup(m, hlen)) == NULL) {
m                 255 netinet/ip_ipip.c                 ipo = mtod(m, struct ip *);
m                 258 netinet/ip_ipip.c 			m_freem(m);
m                 269 netinet/ip_ipip.c 			m_freem(m);
m                 281 netinet/ip_ipip.c 	if ((m->m_pkthdr.rcvif == NULL ||
m                 282 netinet/ip_ipip.c 	    !(m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK)) &&
m                 297 netinet/ip_ipip.c 						m_freem(m);
m                 313 netinet/ip_ipip.c 						m_freem(m);
m                 324 netinet/ip_ipip.c 	ipipstat.ipips_ibytes += m->m_pkthdr.len - iphlen;
m                 354 netinet/ip_ipip.c 		    m, BPF_DIRECTION_IN);
m                 360 netinet/ip_ipip.c 		m_freem(m);
m                 370 netinet/ip_ipip.c 	IF_ENQUEUE(ifq, m);
m                 377 netinet/ip_ipip.c ipip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int dummy,
m                 393 netinet/ip_ipip.c 	m_copydata(m, 0, 1, &tp);
m                 408 netinet/ip_ipip.c 			m_freem(m);
m                 413 netinet/ip_ipip.c 		M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);
m                 414 netinet/ip_ipip.c 		if (m == 0) {
m                 421 netinet/ip_ipip.c 		ipo = mtod(m, struct ip *);
m                 425 netinet/ip_ipip.c 		ipo->ip_len = htons(m->m_pkthdr.len);
m                 440 netinet/ip_ipip.c 			m_copydata(m, sizeof(struct ip) +
m                 450 netinet/ip_ipip.c 			m_copydata(m, sizeof(struct ip) +
m                 462 netinet/ip_ipip.c 			m_copydata(m, sizeof(struct ip) +
m                 471 netinet/ip_ipip.c 			m_freem(m);
m                 494 netinet/ip_ipip.c 			m_freem(m);
m                 500 netinet/ip_ipip.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 506 netinet/ip_ipip.c 		M_PREPEND(m, sizeof(struct ip6_hdr), M_DONTWAIT);
m                 507 netinet/ip_ipip.c 		if (m == 0) {
m                 515 netinet/ip_ipip.c 		ip6o = mtod(m, struct ip6_hdr *);
m                 519 netinet/ip_ipip.c 		ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6o));
m                 527 netinet/ip_ipip.c 			m_copydata(m, sizeof(struct ip6_hdr) +
m                 540 netinet/ip_ipip.c 				m_copydata(m, sizeof(struct ip6_hdr) +
m                 547 netinet/ip_ipip.c 				m_freem(m);
m                 562 netinet/ip_ipip.c 		m_freem(m);
m                 569 netinet/ip_ipip.c 	*mp = m;
m                 575 netinet/ip_ipip.c 			    m->m_pkthdr.len - sizeof(struct ip);
m                 577 netinet/ip_ipip.c 		ipipstat.ipips_obytes += m->m_pkthdr.len - sizeof(struct ip);
m                 585 netinet/ip_ipip.c 			    m->m_pkthdr.len - sizeof(struct ip6_hdr);
m                 588 netinet/ip_ipip.c 		    m->m_pkthdr.len - sizeof(struct ip6_hdr);
m                 616 netinet/ip_ipip.c ipe4_input(struct mbuf *m, ...)
m                 620 netinet/ip_ipip.c 	if (m)
m                 621 netinet/ip_ipip.c 		m_freem(m);
m                 411 netinet/ip_ipsp.c     struct ipsec_ref *local_cred, struct mbuf *m, int af,
m                 443 netinet/ip_ipsp.c     struct mbuf *m, int af, struct sockaddr_encap *filter,
m                1091 netinet/ip_ipsp.c ipsp_parse_headers(struct mbuf *m, int off, u_int8_t proto)
m                1123 netinet/ip_ipsp.c 			m_copydata(m, off, sizeof(struct ip), (caddr_t) &iph);
m                1137 netinet/ip_ipsp.c 			m_copydata(m, off + offsetof(struct ip6_hdr, ip6_dst),
m                1145 netinet/ip_ipsp.c 			for (l = ip6_nexthdr(m, off, proto, &nxtp); l != -1;
m                1146 netinet/ip_ipsp.c 			    l = ip6_nexthdr(m, off, proto, &nxtp)) {
m                1162 netinet/ip_ipsp.c 					m_copydata(m, off + sizeof(u_int32_t),
m                1176 netinet/ip_ipsp.c 						m_copydata(m, off +
m                1192 netinet/ip_ipsp.c 			m_copydata(m, off, sizeof(u_int32_t), (caddr_t) &spi);
m                1244 netinet/ip_ipsp.c 			m_copydata(m, m->m_pkthdr.len - trail - 8, 8,
m                1271 netinet/ip_ipsp.c 				m_copydata(m, off + sizeof(u_int32_t),
m                1274 netinet/ip_ipsp.c 				m_copydata(m, off, sizeof(u_int32_t),
m                1305 netinet/ip_ipsp.c 				m_copydata(m, off, 2 * sizeof(u_int8_t), foo);
m                  99 netinet/ip_mroute.c #define	M_PULLUP(m, len)						 \
m                 101 netinet/ip_mroute.c 		if ((m) && ((m)->m_flags & M_EXT || (m)->m_len < (len))) \
m                 102 netinet/ip_mroute.c 			(m) = m_pullup((m), (len));			 \
m                 394 netinet/ip_mroute.c ip_mrouter_set(struct socket *so, int optname, struct mbuf **m)
m                 403 netinet/ip_mroute.c 			error = ip_mrouter_init(so, *m);
m                 409 netinet/ip_mroute.c 			error = add_vif(*m);
m                 412 netinet/ip_mroute.c 			error = del_vif(*m);
m                 415 netinet/ip_mroute.c 			error = add_mfc(*m);
m                 418 netinet/ip_mroute.c 			error = del_mfc(*m);
m                 421 netinet/ip_mroute.c 			error = set_assert(*m);
m                 424 netinet/ip_mroute.c 			error = set_api_config(*m);
m                 427 netinet/ip_mroute.c 			error = add_bw_upcall(*m);
m                 430 netinet/ip_mroute.c 			error = del_bw_upcall(*m);
m                 437 netinet/ip_mroute.c 	if (*m)
m                 438 netinet/ip_mroute.c 		m_free(*m);
m                 446 netinet/ip_mroute.c ip_mrouter_get(struct socket *so, int optname, struct mbuf **m)
m                 453 netinet/ip_mroute.c 		*m = m_get(M_WAIT, MT_SOOPTS);
m                 457 netinet/ip_mroute.c 			error = get_version(*m);
m                 460 netinet/ip_mroute.c 			error = get_assert(*m);
m                 463 netinet/ip_mroute.c 			error = get_api_support(*m);
m                 466 netinet/ip_mroute.c 			error = get_api_config(*m);
m                 474 netinet/ip_mroute.c 			m_free(*m);
m                 553 netinet/ip_mroute.c ip_mrouter_init(struct socket *so, struct mbuf *m)
m                 566 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(int))
m                 569 netinet/ip_mroute.c 	v = mtod(m, int *);
m                 686 netinet/ip_mroute.c get_version(struct mbuf *m)
m                 688 netinet/ip_mroute.c 	int *v = mtod(m, int *);
m                 691 netinet/ip_mroute.c 	m->m_len = sizeof(int);
m                 699 netinet/ip_mroute.c set_assert(struct mbuf *m)
m                 703 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(int))
m                 706 netinet/ip_mroute.c 	i = mtod(m, int *);
m                 715 netinet/ip_mroute.c get_assert(struct mbuf *m)
m                 717 netinet/ip_mroute.c 	int *i = mtod(m, int *);
m                 720 netinet/ip_mroute.c 	m->m_len = sizeof(int);
m                 728 netinet/ip_mroute.c set_api_config(struct mbuf *m)
m                 733 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(u_int32_t))
m                 736 netinet/ip_mroute.c 	apival = mtod(m, u_int32_t *);
m                 770 netinet/ip_mroute.c get_api_support(struct mbuf *m)
m                 774 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(u_int32_t))
m                 777 netinet/ip_mroute.c 	apival = mtod(m, u_int32_t *);
m                 788 netinet/ip_mroute.c get_api_config(struct mbuf *m)
m                 792 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(u_int32_t))
m                 795 netinet/ip_mroute.c 	apival = mtod(m, u_int32_t *);
m                 808 netinet/ip_mroute.c add_vif(struct mbuf *m)
m                 817 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(struct vifctl))
m                 820 netinet/ip_mroute.c 	vifcp = mtod(m, struct vifctl *);
m                 936 netinet/ip_mroute.c 	struct mbuf *m, *n;
m                 945 netinet/ip_mroute.c 	for (m = vifp->tbf_q; m != NULL; m = n) {
m                 946 netinet/ip_mroute.c 		n = m->m_nextpkt;
m                 947 netinet/ip_mroute.c 		m_freem(m);
m                 970 netinet/ip_mroute.c del_vif(struct mbuf *m)
m                 977 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(vifi_t))
m                 980 netinet/ip_mroute.c 	vifip = mtod(m, vifi_t *);
m                1085 netinet/ip_mroute.c 		m_freem(rte->m);
m                1097 netinet/ip_mroute.c add_mfc(struct mbuf *m)
m                1111 netinet/ip_mroute.c 	if (m == NULL || m->m_len < mfcctl_size)
m                1118 netinet/ip_mroute.c 		struct mfcctl2 *mp2 = mtod(m, struct mfcctl2 *);
m                1121 netinet/ip_mroute.c 		struct mfcctl *mp = mtod(m, struct mfcctl *);
m                1181 netinet/ip_mroute.c 					ip_mdq(rte->m, rte->ifp, rt, -1);
m                1183 netinet/ip_mroute.c 					ip_mdq(rte->m, rte->ifp, rt);
m                1186 netinet/ip_mroute.c 				m_freem(rte->m);
m                1269 netinet/ip_mroute.c del_mfc(struct mbuf *m)
m                1276 netinet/ip_mroute.c 	struct mfcctl *mp = mtod(m, struct mfcctl *);
m                1283 netinet/ip_mroute.c 	if (m == NULL || m->m_len < mfcctl_size)
m                1348 netinet/ip_mroute.c ip_mforward(struct mbuf *m, struct ifnet *ifp, struct ip_moptions *imo)
m                1350 netinet/ip_mroute.c ip_mforward(struct mbuf *m, struct ifnet *ifp)
m                1353 netinet/ip_mroute.c 	struct ip *ip = mtod(m, struct ip *);
m                1396 netinet/ip_mroute.c 		return (ip_mdq(m, ifp, (struct mfc *)NULL, vifi));
m                1422 netinet/ip_mroute.c 		return (ip_mdq(m, ifp, rt, -1));
m                1424 netinet/ip_mroute.c 		return (ip_mdq(m, ifp, rt));
m                1461 netinet/ip_mroute.c 		mb0 = m_copy(m, 0, M_COPYALL);
m                1502 netinet/ip_mroute.c 			mm = m_copy(m, 0, hlen);
m                1581 netinet/ip_mroute.c 		rte->m = mb0;
m                1646 netinet/ip_mroute.c ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt, vifi_t xmt_vif)
m                1648 netinet/ip_mroute.c ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt)
m                1651 netinet/ip_mroute.c 	struct ip  *ip = mtod(m, struct ip *);
m                1661 netinet/ip_mroute.c #define MC_SEND(ip, vifp, m) do {					\
m                1663 netinet/ip_mroute.c 		encap_send((ip), (vifp), (m));				\
m                1665 netinet/ip_mroute.c 		phyint_send((ip), (vifp), (m));				\
m                1677 netinet/ip_mroute.c 			pim_register_send(ip, viftable + xmt_vif, m, rt);
m                1680 netinet/ip_mroute.c 		MC_SEND(ip, viftable + xmt_vif, m);
m                1737 netinet/ip_mroute.c 				struct mbuf *mm = m_copy(m, 0, hlen);
m                1788 netinet/ip_mroute.c 				pim_register_send(ip, vifp, m, rt);
m                1791 netinet/ip_mroute.c 			MC_SEND(ip, vifp, m);
m                1824 netinet/ip_mroute.c phyint_send(struct ip *ip, struct vif *vifp, struct mbuf *m)
m                1834 netinet/ip_mroute.c 	mb_copy = m_copy(m, 0, M_COPYALL);
m                1847 netinet/ip_mroute.c encap_send(struct ip *ip, struct vif *vifp, struct mbuf *m)
m                1854 netinet/ip_mroute.c 	if (m->m_pkthdr.csum_flags & (M_TCPV4_CSUM_OUT | M_UDPV4_CSUM_OUT)) {
m                1855 netinet/ip_mroute.c 		in_delayed_cksum(m);
m                1856 netinet/ip_mroute.c 		m->m_pkthdr.csum_flags &=
m                1872 netinet/ip_mroute.c 	if ((mb_copy->m_next = m_copy(m, 0, M_COPYALL)) == NULL) {
m                1913 netinet/ip_mroute.c tbf_control(struct vif *vifp, struct mbuf *m, struct ip *ip, u_int32_t len)
m                1919 netinet/ip_mroute.c 		m_freem(m);
m                1932 netinet/ip_mroute.c 			tbf_send_packet(vifp, m);
m                1935 netinet/ip_mroute.c 			tbf_queue(vifp, m);
m                1943 netinet/ip_mroute.c 			m_freem(m);
m                1946 netinet/ip_mroute.c 			tbf_queue(vifp, m);
m                1956 netinet/ip_mroute.c tbf_queue(struct vif *vifp, struct mbuf *m)
m                1961 netinet/ip_mroute.c 	*vifp->tbf_t = m;
m                1962 netinet/ip_mroute.c 	vifp->tbf_t = &m->m_nextpkt;
m                1975 netinet/ip_mroute.c 	struct mbuf *m;
m                1983 netinet/ip_mroute.c 	for (m = vifp->tbf_q; m != NULL; m = vifp->tbf_q) {
m                1984 netinet/ip_mroute.c 		len = ntohs(mtod(m, struct ip *)->ip_len);
m                1992 netinet/ip_mroute.c 			if ((vifp->tbf_q = m->m_nextpkt) == NULL)
m                1996 netinet/ip_mroute.c 			m->m_nextpkt = NULL;
m                1998 netinet/ip_mroute.c 			tbf_send_packet(vifp, m);
m                2027 netinet/ip_mroute.c 	struct mbuf **mp, *m;
m                2032 netinet/ip_mroute.c 	for (mp = &vifp->tbf_q, m = *mp;
m                2033 netinet/ip_mroute.c 	    m != NULL;
m                2034 netinet/ip_mroute.c 	    mp = &m->m_nextpkt, m = *mp) {
m                2035 netinet/ip_mroute.c 		if (p > priority(vifp, mtod(m, struct ip *))) {
m                2036 netinet/ip_mroute.c 			if ((*mp = m->m_nextpkt) == NULL)
m                2040 netinet/ip_mroute.c 			m_freem(m);
m                2051 netinet/ip_mroute.c tbf_send_packet(struct vif *vifp, struct mbuf *m)
m                2058 netinet/ip_mroute.c 		ip_output(m, (struct mbuf *)NULL, &vifp->v_route,
m                2069 netinet/ip_mroute.c 		imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1;
m                2075 netinet/ip_mroute.c 		error = ip_output(m, (struct mbuf *)NULL, (struct route *)NULL,
m                2162 netinet/ip_mroute.c ip_rsvp_vif_init(struct socket *so, struct mbuf *m)
m                2175 netinet/ip_mroute.c 	if (m == NULL || m->m_len != sizeof(int)) {
m                2178 netinet/ip_mroute.c 	vifi = *(mtod(m, int *));
m                2212 netinet/ip_mroute.c ip_rsvp_vif_done(struct socket *so, struct mbuf *m)
m                2225 netinet/ip_mroute.c 	if (m == NULL || m->m_len != sizeof(int)) {
m                2228 netinet/ip_mroute.c 	vifi = *(mtod(m, int *));
m                2292 netinet/ip_mroute.c rsvp_input(struct mbuf *m, struct ifnet *ifp)
m                2295 netinet/ip_mroute.c 	struct ip *ip = mtod(m, struct ip *);
m                2307 netinet/ip_mroute.c 		m_freem(m);
m                2319 netinet/ip_mroute.c 		rip_input(m, 0);	/*XXX*/
m                2339 netinet/ip_mroute.c 		m_freem(m);
m                2355 netinet/ip_mroute.c 		m_freem(m);
m                2362 netinet/ip_mroute.c 	if (rsvpdebug && m)
m                2364 netinet/ip_mroute.c 		    m->m_len, sbspace(&viftable[vifi].v_rsvpd->so_rcv));
m                2366 netinet/ip_mroute.c 	if (socket_send(viftable[vifi].v_rsvpd, m, &rsvp_src) < 0)
m                2409 netinet/ip_mroute.c add_bw_upcall(struct mbuf *m)
m                2420 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(struct bw_upcall))
m                2423 netinet/ip_mroute.c 	req = mtod(m, struct bw_upcall *);
m                2507 netinet/ip_mroute.c del_bw_upcall(struct mbuf *m)
m                2514 netinet/ip_mroute.c 	if (m == NULL || m->m_len < sizeof(struct bw_upcall))
m                2517 netinet/ip_mroute.c 	req = mtod(m, struct bw_upcall *);
m                2708 netinet/ip_mroute.c 	struct mbuf *m;
m                2730 netinet/ip_mroute.c 	MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                2731 netinet/ip_mroute.c 	if (m == NULL) {
m                2736 netinet/ip_mroute.c 	m->m_len = m->m_pkthdr.len = 0;
m                2737 netinet/ip_mroute.c 	m_copyback(m, 0, sizeof(struct igmpmsg), (caddr_t)&igmpmsg);
m                2738 netinet/ip_mroute.c 	m_copyback(m, sizeof(struct igmpmsg), len, (caddr_t)&bw_upcalls[0]);
m                2745 netinet/ip_mroute.c 	if (socket_send(ip_mrouter, m, &k_igmpsrc) < 0) {
m                2960 netinet/ip_mroute.c 	struct mbuf *m, struct mfc *rt)
m                2967 netinet/ip_mroute.c 	mb_copy = pim_register_prepare(ip, m);
m                2999 netinet/ip_mroute.c pim_register_prepare(struct ip *ip, struct mbuf *m)
m                3005 netinet/ip_mroute.c 	if (m->m_pkthdr.csum_flags & (M_TCPV4_CSUM_OUT | M_UDPV4_CSUM_OUT)) {
m                3006 netinet/ip_mroute.c 		in_delayed_cksum(m);
m                3007 netinet/ip_mroute.c 		m->m_pkthdr.csum_flags &=
m                3015 netinet/ip_mroute.c 	mb_copy = m_copy(m, 0, M_COPYALL);
m                3170 netinet/ip_mroute.c pim_input(struct mbuf *m, ...)
m                3172 netinet/ip_mroute.c 	struct ip *ip = mtod(m, struct ip *);
m                3180 netinet/ip_mroute.c 	va_start(ap, m);
m                3195 netinet/ip_mroute.c 		m_freem(m);
m                3213 netinet/ip_mroute.c 	if ((m->m_flags & M_EXT || m->m_len < minlen) &&
m                3214 netinet/ip_mroute.c 	    (m = m_pullup(m, minlen)) == NULL) {
m                3219 netinet/ip_mroute.c 	ip = mtod(m, struct ip *);
m                3223 netinet/ip_mroute.c 	m->m_data += iphlen;
m                3224 netinet/ip_mroute.c 	m->m_len  -= iphlen;
m                3225 netinet/ip_mroute.c 	pim = mtod(m, struct pim *);
m                3235 netinet/ip_mroute.c 	    in_cksum(m, PIM_MINLEN) == 0) {
m                3237 netinet/ip_mroute.c 	} else if (in_cksum(m, datalen)) {
m                3241 netinet/ip_mroute.c 		m_freem(m);
m                3250 netinet/ip_mroute.c 		m_freem(m);
m                3255 netinet/ip_mroute.c 	m->m_data -= iphlen;
m                3256 netinet/ip_mroute.c 	m->m_len  += iphlen;
m                3277 netinet/ip_mroute.c 			m_freem(m);
m                3291 netinet/ip_mroute.c 			m_freem(m);
m                3314 netinet/ip_mroute.c 			m_freem(m);
m                3326 netinet/ip_mroute.c 			m_freem(m);
m                3344 netinet/ip_mroute.c 			m->m_data += (iphlen + PIM_MINLEN);
m                3345 netinet/ip_mroute.c 			m->m_len  -= (iphlen + PIM_MINLEN);
m                3348 netinet/ip_mroute.c 			encap_ip->ip_sum = in_cksum(m, encap_ip->ip_hl << 2);
m                3351 netinet/ip_mroute.c 			m->m_data -= (iphlen + PIM_MINLEN);
m                3352 netinet/ip_mroute.c 			m->m_len  += (iphlen + PIM_MINLEN);
m                3363 netinet/ip_mroute.c 		mcp = m_copy(m, 0, iphlen + PIM_REG_MINLEN);
m                3367 netinet/ip_mroute.c 			m_freem(m);
m                3377 netinet/ip_mroute.c 		m_adj(m, iphlen + PIM_MINLEN);
m                3388 netinet/ip_mroute.c 		looutput(vifp, m, (struct sockaddr *)&dst,
m                3392 netinet/ip_mroute.c 		m = mcp;
m                3404 netinet/ip_mroute.c 	rip_input(m);
m                  50 netinet/ip_mroute.h #define	VIFM_SET(n, m)			((m) |= (1 << (n)))
m                  51 netinet/ip_mroute.h #define	VIFM_CLR(n, m)			((m) &= ~(1 << (n)))
m                  52 netinet/ip_mroute.h #define	VIFM_ISSET(n, m)		((m) & (1 << (n)))
m                  53 netinet/ip_mroute.h #define	VIFM_SETALL(m)			((m) = 0xffffffff)
m                  54 netinet/ip_mroute.h #define	VIFM_CLRALL(m)			((m) = 0x00000000)
m                 291 netinet/ip_mroute.h 	struct	mbuf *m;		/* a copy of the packet */
m                 101 netinet/ip_output.c 	struct mbuf *m = m0;
m                 139 netinet/ip_output.c 	if ((m->m_flags & M_PKTHDR) == 0)
m                 143 netinet/ip_output.c 		m = ip_insertoptions(m, opt, &len);
m                 147 netinet/ip_output.c 	ip = mtod(m, struct ip *);
m                 256 netinet/ip_output.c 	mtag = m_tag_find(m, PACKET_TAG_IPSEC_PENDING_TDB, NULL);
m                 267 netinet/ip_output.c 		m_tag_delete(m, mtag);
m                 270 netinet/ip_output.c 		tdb = ipsp_spd_lookup(m, AF_INET, hlen, &error,
m                 293 netinet/ip_output.c 			m_freem(m);
m                 298 netinet/ip_output.c 		for (mtag = m_tag_first(m); mtag != NULL;
m                 299 netinet/ip_output.c 		    mtag = m_tag_next(m, mtag)) {
m                 325 netinet/ip_output.c 		if (m->m_pkthdr.csum_flags & (M_TCPV4_CSUM_OUT | M_UDPV4_CSUM_OUT)) {
m                 326 netinet/ip_output.c 			in_delayed_cksum(m);
m                 327 netinet/ip_output.c 			m->m_pkthdr.csum_flags &=
m                 419 netinet/ip_output.c 		m->m_flags |= (ip->ip_dst.s_addr == INADDR_BROADCAST) ?
m                 452 netinet/ip_output.c 		if ((((m->m_flags & M_MCAST) &&
m                 454 netinet/ip_output.c 		     ((m->m_flags & M_BCAST) &&
m                 485 netinet/ip_output.c 			if (m->m_pkthdr.csum_flags &
m                 487 netinet/ip_output.c 				in_delayed_cksum(m);
m                 488 netinet/ip_output.c 				m->m_pkthdr.csum_flags &=
m                 491 netinet/ip_output.c 			ip_mloopback(ifp, m, dst);
m                 511 netinet/ip_output.c 				if (ip_mforward(m, ifp) != 0) {
m                 512 netinet/ip_output.c 					m_freem(m);
m                 527 netinet/ip_output.c 			m_freem(m);
m                 554 netinet/ip_output.c 		m->m_flags |= M_BCAST;
m                 556 netinet/ip_output.c 		m->m_flags &= ~M_BCAST;
m                 579 netinet/ip_output.c 		if (pf_test(PF_OUT, &encif[0].sc_if, &m, NULL) != PF_PASS) {
m                 582 netinet/ip_output.c 			m_freem(m);
m                 585 netinet/ip_output.c 		if (m == NULL) {
m                 589 netinet/ip_output.c 		ip = mtod(m, struct ip *);
m                 598 netinet/ip_output.c 			m_freem(m);
m                 649 netinet/ip_output.c 		m->m_flags &= ~(M_MCAST | M_BCAST);
m                 652 netinet/ip_output.c 		error = ipsp_process_packet(m, tdb, AF_INET, 0);
m                 661 netinet/ip_output.c 	if (ipsec_in_use && (mtag = m_tag_find(m,
m                 666 netinet/ip_output.c 		m_freem(m);
m                 673 netinet/ip_output.c 	if (m->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT) {
m                 676 netinet/ip_output.c 			in_delayed_cksum(m);
m                 677 netinet/ip_output.c 			m->m_pkthdr.csum_flags &= ~M_TCPV4_CSUM_OUT; /* Clear */
m                 679 netinet/ip_output.c 	} else if (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT) {
m                 682 netinet/ip_output.c 			in_delayed_cksum(m);
m                 683 netinet/ip_output.c 			m->m_pkthdr.csum_flags &= ~M_UDPV4_CSUM_OUT; /* Clear */
m                 691 netinet/ip_output.c 	if (pf_test(PF_OUT, ifp, &m, NULL) != PF_PASS) {
m                 693 netinet/ip_output.c 		m_freem(m);
m                 696 netinet/ip_output.c 	if (m == NULL)
m                 699 netinet/ip_output.c 	ip = mtod(m, struct ip *);
m                 705 netinet/ip_output.c 	    (m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL) == NULL)) {
m                 707 netinet/ip_output.c 		m_freem(m);
m                 726 netinet/ip_output.c 			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_OUT;
m                 730 netinet/ip_output.c 			ip->ip_sum = in_cksum(m, hlen);
m                 733 netinet/ip_output.c 		if (m->m_pkthdr.csum_flags & M_TCPV4_CSUM_OUT)
m                 735 netinet/ip_output.c 		else if (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT)
m                 737 netinet/ip_output.c 		error = (*ifp->if_output)(ifp, m, sintosa(dst), ro->ro_rt);
m                 766 netinet/ip_output.c 	error = ip_fragment(m, ifp, mtu);
m                 768 netinet/ip_output.c 		m = m0 = NULL;
m                 772 netinet/ip_output.c 	for (; m; m = m0) {
m                 773 netinet/ip_output.c 		m0 = m->m_nextpkt;
m                 774 netinet/ip_output.c 		m->m_nextpkt = 0;
m                 776 netinet/ip_output.c 			error = (*ifp->if_output)(ifp, m, sintosa(dst),
m                 779 netinet/ip_output.c 			m_freem(m);
m                 791 netinet/ip_output.c 	if (error == EMSGSIZE && ip_mtudisc && icmp_mtu != 0 && m != NULL)
m                 792 netinet/ip_output.c 		ipsec_adjust_mtu(m, icmp_mtu);
m                 799 netinet/ip_output.c ip_fragment(struct mbuf *m, struct ifnet *ifp, u_long mtu)
m                 810 netinet/ip_output.c 	ip = mtod(m, struct ip *);
m                 815 netinet/ip_output.c 		m_freem(m);
m                 823 netinet/ip_output.c 	if (m->m_pkthdr.csum_flags & (M_TCPV4_CSUM_OUT | M_UDPV4_CSUM_OUT)) {
m                 824 netinet/ip_output.c 		in_delayed_cksum(m);
m                 825 netinet/ip_output.c 		m->m_pkthdr.csum_flags &= ~(M_UDPV4_CSUM_OUT | M_TCPV4_CSUM_OUT);
m                 829 netinet/ip_output.c 	mnext = &m->m_nextpkt;
m                 835 netinet/ip_output.c 	m0 = m;
m                 838 netinet/ip_output.c 		MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                 839 netinet/ip_output.c 		if (m == 0) {
m                 844 netinet/ip_output.c 		*mnext = m;
m                 845 netinet/ip_output.c 		mnext = &m->m_nextpkt;
m                 846 netinet/ip_output.c 		m->m_data += max_linkhdr;
m                 847 netinet/ip_output.c 		mhip = mtod(m, struct ip *);
m                 850 netinet/ip_output.c 		m->m_flags |= m0->m_flags & (M_MCAST|M_BCAST);
m                 855 netinet/ip_output.c 		m->m_len = mhlen;
m                 865 netinet/ip_output.c 		m->m_next = m_copy(m0, off, len);
m                 866 netinet/ip_output.c 		if (m->m_next == 0) {
m                 871 netinet/ip_output.c 		m->m_pkthdr.len = mhlen + len;
m                 872 netinet/ip_output.c 		m->m_pkthdr.rcvif = (struct ifnet *)0;
m                 877 netinet/ip_output.c 			m->m_pkthdr.csum_flags |= M_IPV4_CSUM_OUT;
m                 881 netinet/ip_output.c 			mhip->ip_sum = in_cksum(m, mhlen);
m                 890 netinet/ip_output.c 	m = m0;
m                 891 netinet/ip_output.c 	m_adj(m, hlen + firstlen - ntohs(ip->ip_len));
m                 892 netinet/ip_output.c 	m->m_pkthdr.len = hlen + firstlen;
m                 893 netinet/ip_output.c 	ip->ip_len = htons((u_int16_t)m->m_pkthdr.len);
m                 898 netinet/ip_output.c 		m->m_pkthdr.csum_flags |= M_IPV4_CSUM_OUT;
m                 902 netinet/ip_output.c 		ip->ip_sum = in_cksum(m, hlen);
m                 920 netinet/ip_output.c 		for (m = m0; m; m = m0) {
m                 921 netinet/ip_output.c 			m0 = m->m_nextpkt;
m                 922 netinet/ip_output.c 			m->m_nextpkt = NULL;
m                 923 netinet/ip_output.c 			m_freem(m);
m                 936 netinet/ip_output.c ip_insertoptions(m, opt, phlen)
m                 937 netinet/ip_output.c 	struct mbuf *m;
m                 943 netinet/ip_output.c 	struct ip *ip = mtod(m, struct ip *);
m                 948 netinet/ip_output.c 		return (m);		/* XXX should fail */
m                 951 netinet/ip_output.c 	if (m->m_flags & M_EXT || m->m_data - optlen < m->m_pktdat) {
m                 954 netinet/ip_output.c 			return (m);
m                 955 netinet/ip_output.c 		M_MOVE_HDR(n, m);
m                 957 netinet/ip_output.c 		m->m_len -= sizeof(struct ip);
m                 958 netinet/ip_output.c 		m->m_data += sizeof(struct ip);
m                 959 netinet/ip_output.c 		n->m_next = m;
m                 960 netinet/ip_output.c 		m = n;
m                 961 netinet/ip_output.c 		m->m_len = optlen + sizeof(struct ip);
m                 962 netinet/ip_output.c 		m->m_data += max_linkhdr;
m                 963 netinet/ip_output.c 		bcopy((caddr_t)ip, mtod(m, caddr_t), sizeof(struct ip));
m                 965 netinet/ip_output.c 		m->m_data -= optlen;
m                 966 netinet/ip_output.c 		m->m_len += optlen;
m                 967 netinet/ip_output.c 		m->m_pkthdr.len += optlen;
m                 968 netinet/ip_output.c 		ovbcopy((caddr_t)ip, mtod(m, caddr_t), sizeof(struct ip));
m                 970 netinet/ip_output.c 	ip = mtod(m, struct ip *);
m                 974 netinet/ip_output.c 	return (m);
m                1034 netinet/ip_output.c 	struct mbuf *m = *mp;
m                1053 netinet/ip_output.c 			return (ip_pcbopts(optname, &inp->inp_options, m));
m                1055 netinet/ip_output.c 			return (ip_pcbopts(&inp->inp_options, m));
m                1066 netinet/ip_output.c 			if (m == NULL || m->m_len != sizeof(int))
m                1069 netinet/ip_output.c 				optval = *mtod(m, int *);
m                1122 netinet/ip_output.c 			error = ip_setmoptions(optname, &inp->inp_moptions, m);
m                1126 netinet/ip_output.c 			if (m == 0 || m->m_len != sizeof(int))
m                1129 netinet/ip_output.c 				optval = *mtod(m, int *);
m                1162 netinet/ip_output.c 			if (m == 0 || m->m_len != sizeof(int)) {
m                1166 netinet/ip_output.c 			optval = *mtod(m, int *);
m                1243 netinet/ip_output.c 			if (m->m_len < 2) {
m                1248 netinet/ip_output.c 			m_copydata(m, 0, 2, (caddr_t) &opt16val);
m                1291 netinet/ip_output.c 			if (m->m_len == 2) {
m                1307 netinet/ip_output.c 			       sizeof(struct ipsec_ref) + m->m_len - 2,
m                1316 netinet/ip_output.c 			ipr->ref_len = m->m_len - 2;
m                1318 netinet/ip_output.c 			m_copydata(m, 2, m->m_len - 2, (caddr_t)(ipr + 1));
m                1391 netinet/ip_output.c 		if (m)
m                1392 netinet/ip_output.c 			(void)m_free(m);
m                1399 netinet/ip_output.c 			*mp = m = m_get(M_WAIT, MT_SOOPTS);
m                1401 netinet/ip_output.c 				m->m_len = inp->inp_options->m_len;
m                1403 netinet/ip_output.c 				    mtod(m, caddr_t), (unsigned)m->m_len);
m                1405 netinet/ip_output.c 				m->m_len = 0;
m                1416 netinet/ip_output.c 			*mp = m = m_get(M_WAIT, MT_SOOPTS);
m                1417 netinet/ip_output.c 			m->m_len = sizeof(int);
m                1452 netinet/ip_output.c 			*mtod(m, int *) = optval;
m                1464 netinet/ip_output.c 			*mp = m = m_get(M_WAIT, MT_SOOPTS);
m                1465 netinet/ip_output.c 			m->m_len = sizeof(int);
m                1474 netinet/ip_output.c 			*mtod(m, int *) = optval;
m                1482 netinet/ip_output.c 			m->m_len = sizeof(int);
m                1483 netinet/ip_output.c 			*mtod(m, int *) = IPSEC_LEVEL_NONE;
m                1485 netinet/ip_output.c 			m->m_len = sizeof(int);
m                1502 netinet/ip_output.c 			*mtod(m, int *) = optval;
m                1514 netinet/ip_output.c 			*mp = m = m_get(M_WAIT, MT_SOOPTS);
m                1515 netinet/ip_output.c 			m->m_len = sizeof(u_int16_t);
m                1546 netinet/ip_output.c 				*mtod(m, u_int16_t *) = opt16val;
m                1550 netinet/ip_output.c 				len = m->m_len + ipr->ref_len;
m                1552 netinet/ip_output.c 					 m_free(m);
m                1558 netinet/ip_output.c 					 MCLGET(m, M_WAITOK);
m                1559 netinet/ip_output.c 					 if ((m->m_flags & M_EXT) == 0) {
m                1560 netinet/ip_output.c 						 m_free(m);
m                1566 netinet/ip_output.c 				m->m_len = len;
m                1567 netinet/ip_output.c 				*mtod(m, u_int16_t *) = ipr->ref_type;
m                1568 netinet/ip_output.c 				m_copyback(m, sizeof(u_int16_t), ipr->ref_len,
m                1589 netinet/ip_output.c ip_pcbopts(optname, pcbopt, m)
m                1592 netinet/ip_output.c ip_pcbopts(pcbopt, m)
m                1595 netinet/ip_output.c 	struct mbuf *m;
m                1605 netinet/ip_output.c 	if (m == (struct mbuf *)0 || m->m_len == 0) {
m                1609 netinet/ip_output.c 		if (m)
m                1610 netinet/ip_output.c 			(void)m_free(m);
m                1614 netinet/ip_output.c 	if (m->m_len % sizeof(int32_t))
m                1622 netinet/ip_output.c 	if (m->m_data + m->m_len + sizeof(struct in_addr) >= &m->m_dat[MLEN])
m                1624 netinet/ip_output.c 	cnt = m->m_len;
m                1625 netinet/ip_output.c 	m->m_len += sizeof(struct in_addr);
m                1626 netinet/ip_output.c 	cp = mtod(m, u_char *) + sizeof(struct in_addr);
m                1627 netinet/ip_output.c 	ovbcopy(mtod(m, caddr_t), (caddr_t)cp, (unsigned)cnt);
m                1628 netinet/ip_output.c 	bzero(mtod(m, caddr_t), sizeof(struct in_addr));
m                1660 netinet/ip_output.c 			m->m_len -= sizeof(struct in_addr);
m                1667 netinet/ip_output.c 			bcopy((caddr_t)&cp[IPOPT_OFFSET+1], mtod(m, caddr_t),
m                1680 netinet/ip_output.c 	if (m->m_len > MAX_IPOPTLEN + sizeof(struct in_addr))
m                1682 netinet/ip_output.c 	*pcbopt = m;
m                1686 netinet/ip_output.c 	(void)m_free(m);
m                1694 netinet/ip_output.c ip_setmoptions(optname, imop, m)
m                1697 netinet/ip_output.c 	struct mbuf *m;
m                1730 netinet/ip_output.c 		if (m == NULL || m->m_len != sizeof(struct in_addr)) {
m                1734 netinet/ip_output.c 		addr = *(mtod(m, struct in_addr *));
m                1761 netinet/ip_output.c 		if (m == NULL || m->m_len != 1) {
m                1765 netinet/ip_output.c 		imo->imo_multicast_ttl = *(mtod(m, u_char *));
m                1773 netinet/ip_output.c 		if (m == NULL || m->m_len != 1 ||
m                1774 netinet/ip_output.c 		   (loop = *(mtod(m, u_char *))) > 1) {
m                1786 netinet/ip_output.c 		if (m == NULL || m->m_len != sizeof(struct ip_mreq)) {
m                1790 netinet/ip_output.c 		mreq = mtod(m, struct ip_mreq *);
m                1858 netinet/ip_output.c 		if (m == NULL || m->m_len != sizeof(struct ip_mreq)) {
m                1862 netinet/ip_output.c 		mreq = mtod(m, struct ip_mreq *);
m                1998 netinet/ip_output.c ip_mloopback(ifp, m, dst)
m                2000 netinet/ip_output.c 	struct mbuf *m;
m                2006 netinet/ip_output.c 	copym = m_copym2(m, 0, M_COPYALL, M_DONTWAIT);
m                2023 netinet/ip_output.c in_delayed_cksum(struct mbuf *m)
m                2028 netinet/ip_output.c 	ip = mtod(m, struct ip *);
m                2030 netinet/ip_output.c 	csum = in4_cksum(m, 0, offset, m->m_pkthdr.len - offset);
m                2047 netinet/ip_output.c 	if ((offset + sizeof(u_int16_t)) > m->m_len)
m                2048 netinet/ip_output.c 		m_copyback(m, offset, sizeof(csum), &csum);
m                2050 netinet/ip_output.c 		*(u_int16_t *)(mtod(m, caddr_t) + offset) = csum;
m                  80 netinet/ip_spd.c ipsp_spd_lookup(struct mbuf *m, int af, int hlen, int *error, int direction,
m                 119 netinet/ip_spd.c 		if (hlen < sizeof (struct ip) || m->m_pkthdr.len < hlen) {
m                 126 netinet/ip_spd.c 		m_copydata(m, offsetof(struct ip, ip_src),
m                 128 netinet/ip_spd.c 		m_copydata(m, offsetof(struct ip, ip_dst),
m                 130 netinet/ip_spd.c 		m_copydata(m, offsetof(struct ip, ip_p), sizeof(u_int8_t),
m                 146 netinet/ip_spd.c 			if (m->m_pkthdr.len < hlen + 2 * sizeof(u_int16_t)) {
m                 157 netinet/ip_spd.c 			m_copydata(m, hlen, sizeof(u_int16_t),
m                 159 netinet/ip_spd.c 			m_copydata(m, hlen + sizeof(u_int16_t), sizeof(u_int16_t),
m                 173 netinet/ip_spd.c 		if (hlen < sizeof (struct ip6_hdr) || m->m_pkthdr.len < hlen) {
m                 180 netinet/ip_spd.c 		m_copydata(m, offsetof(struct ip6_hdr, ip6_src),
m                 183 netinet/ip_spd.c 		m_copydata(m, offsetof(struct ip6_hdr, ip6_dst),
m                 186 netinet/ip_spd.c 		m_copydata(m, offsetof(struct ip6_hdr, ip6_nxt),
m                 203 netinet/ip_spd.c 			if (m->m_pkthdr.len < hlen + 2 * sizeof(u_int16_t)) {
m                 214 netinet/ip_spd.c 			m_copydata(m, hlen, sizeof(u_int16_t),
m                 216 netinet/ip_spd.c 			m_copydata(m, hlen + sizeof(u_int16_t), sizeof(u_int16_t),
m                 241 netinet/ip_spd.c 		return ipsp_spd_inp(m, af, hlen, error, direction,
m                 266 netinet/ip_spd.c 		return ipsp_spd_inp(m, af, hlen, error, direction, tdbp,
m                 366 netinet/ip_spd.c 			return ipsp_spd_inp(m, af, hlen, error, direction,
m                 395 netinet/ip_spd.c 				ipo->ipo_dstid, ipo->ipo_local_cred, m, af,
m                 401 netinet/ip_spd.c 				return ipsp_spd_inp(m, af, hlen, error,
m                 412 netinet/ip_spd.c 			    signore ? NULL : &ipo->ipo_src, ddst, m) != 0) {
m                 430 netinet/ip_spd.c 			return ipsp_spd_inp(m, af, hlen, error, direction,
m                 438 netinet/ip_spd.c 				return ipsp_spd_inp(m, af, hlen, error,
m                 471 netinet/ip_spd.c 			return ipsp_spd_inp(m, af, hlen, error, direction,
m                 508 netinet/ip_spd.c 				ipo->ipo_dstid, m, af, &ipo->ipo_addr,
m                 527 netinet/ip_spd.c 			    signore ? NULL : &ipo->ipo_src, ddst, m)) != 0)
m                 540 netinet/ip_spd.c 				return ipsp_spd_inp(m, af, hlen, error,
m                 551 netinet/ip_spd.c 			return ipsp_spd_inp(m, af, hlen, error, direction,
m                 747 netinet/ip_spd.c     union sockaddr_union *laddr, struct sockaddr_encap *ddst, struct mbuf *m)
m                 890 netinet/ip_spd.c ipsp_spd_inp(struct mbuf *m, int af, int hlen, int *error, int direction,
m                1014 netinet/ip_spd.c 				    inp->inp_ipo->ipo_dstid, m, af,
m                1028 netinet/ip_spd.c 			    &inp->inp_ipo->ipo_src, &inp->inp_ipo->ipo_addr, m);
m                1043 netinet/ip_spd.c 			if (ipo != NULL && m != NULL &&
m                1071 netinet/ip_spd.c 				    inp->inp_ipo->ipo_local_cred, m, af,
m                1084 netinet/ip_spd.c 			    NULL, NULL, m, af, &sipon.ipo_addr,
m                1093 netinet/ip_spd.c 			    ipo->ipo_tdb != inp->inp_tdb_out && m != NULL)
m                1120 netinet/ip_spd.c 				    &inp->inp_ipo->ipo_addr, m)) == 0)
m                1155 netinet/ip_spd.c 	m_tag_prepend(m, mtag);
m                 112 netinet/ipsec_input.c ipsec_common_input(struct mbuf *m, int skip, int protoff, int af, int sproto,
m                 128 netinet/ipsec_input.c 	if (m == 0) {
m                 138 netinet/ipsec_input.c 		rip_input(m, skip, sproto);
m                 142 netinet/ipsec_input.c 	if (m->m_pkthdr.len - skip < 2 * sizeof(u_int32_t)) {
m                 143 netinet/ipsec_input.c 		m_freem(m);
m                 152 netinet/ipsec_input.c 		m_copydata(m, skip, sizeof(u_int32_t), (caddr_t) &spi);
m                 154 netinet/ipsec_input.c 		m_copydata(m, skip + sizeof(u_int32_t), sizeof(u_int32_t),
m                 157 netinet/ipsec_input.c 		m_copydata(m, skip + sizeof(u_int16_t), sizeof(u_int16_t),
m                 175 netinet/ipsec_input.c 		m_copydata(m, offsetof(struct ip, ip_dst),
m                 184 netinet/ipsec_input.c 		m_copydata(m, offsetof(struct ip6_hdr, ip6_dst),
m                 195 netinet/ipsec_input.c 		m_freem(m);
m                 208 netinet/ipsec_input.c 		m_freem(m);
m                 217 netinet/ipsec_input.c 		m_freem(m);
m                 226 netinet/ipsec_input.c 		m_freem(m);
m                 234 netinet/ipsec_input.c 		m_freem(m);
m                 246 netinet/ipsec_input.c 		m->m_pkthdr.rcvif = &encif[0].sc_if;
m                 268 netinet/ipsec_input.c 	error = (*(tdbp->tdb_xform->xf_input))(m, tdbp, skip, protoff);
m                 278 netinet/ipsec_input.c ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
m                 303 netinet/ipsec_input.c 	if (m == NULL) {
m                 313 netinet/ipsec_input.c 		if ((m->m_len < skip) && ((m = m_pullup(m, skip)) == NULL)) {
m                 322 netinet/ipsec_input.c 		ip = mtod(m, struct ip *);
m                 323 netinet/ipsec_input.c 		ip->ip_len = htons(m->m_pkthdr.len);
m                 325 netinet/ipsec_input.c 		ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
m                 330 netinet/ipsec_input.c 			if (m->m_pkthdr.len - skip < sizeof(struct ip)) {
m                 331 netinet/ipsec_input.c 				m_freem(m);
m                 338 netinet/ipsec_input.c 			m_copydata(m, skip, sizeof(struct ip),
m                 361 netinet/ipsec_input.c 				m_freem(m);
m                 372 netinet/ipsec_input.c 			if (m->m_pkthdr.len - skip < sizeof(struct ip6_hdr)) {
m                 373 netinet/ipsec_input.c 				m_freem(m);
m                 380 netinet/ipsec_input.c 			m_copydata(m, skip, sizeof(struct ip6_hdr),
m                 402 netinet/ipsec_input.c 				m_freem(m);
m                 417 netinet/ipsec_input.c 		if (m->m_len < sizeof(struct ip6_hdr) &&
m                 418 netinet/ipsec_input.c 		    (m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
m                 429 netinet/ipsec_input.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 430 netinet/ipsec_input.c 		ip6->ip6_plen = htons(m->m_pkthdr.len -
m                 434 netinet/ipsec_input.c 		m_copydata(m, protoff, 1, (unsigned char *) &prot);
m                 439 netinet/ipsec_input.c 			if (m->m_pkthdr.len - skip < sizeof(struct ip)) {
m                 440 netinet/ipsec_input.c 				m_freem(m);
m                 447 netinet/ipsec_input.c 			m_copydata(m, skip, sizeof(struct ip), (caddr_t) &ipn);
m                 469 netinet/ipsec_input.c 				m_freem(m);
m                 480 netinet/ipsec_input.c 			if (m->m_pkthdr.len - skip < sizeof(struct ip6_hdr)) {
m                 481 netinet/ipsec_input.c 				m_freem(m);
m                 488 netinet/ipsec_input.c 			m_copydata(m, skip, sizeof(struct ip6_hdr),
m                 510 netinet/ipsec_input.c 				m_freem(m);
m                 532 netinet/ipsec_input.c 			m_freem(m);
m                 546 netinet/ipsec_input.c 		m_tag_prepend(m, mtag);
m                 555 netinet/ipsec_input.c 			m->m_flags |= M_CONF;
m                 559 netinet/ipsec_input.c 			m->m_flags |= M_AUTH;
m                 561 netinet/ipsec_input.c 		m->m_flags |= M_AUTH | M_AUTH_AH;
m                 565 netinet/ipsec_input.c 	if (pf_tag_packet(m, tdbp->tdb_tag, -1))
m                 570 netinet/ipsec_input.c 		m->m_flags |= M_TUNNEL;
m                 575 netinet/ipsec_input.c 	bpfif->if_ibytes += m->m_pkthdr.len;
m                 582 netinet/ipsec_input.c 		hdr.flags = m->m_flags & (M_AUTH|M_CONF|M_AUTH_AH);
m                 584 netinet/ipsec_input.c 		bpf_mtap_hdr(bpfif->if_bpf, (char *)&hdr, ENC_HDRLEN, m,
m                 596 netinet/ipsec_input.c 			return esp4_input_cb(m);
m                 599 netinet/ipsec_input.c 			return ah4_input_cb(m);
m                 602 netinet/ipsec_input.c 			return ipcomp4_input_cb(m);
m                 607 netinet/ipsec_input.c 			m_freem(m);
m                 617 netinet/ipsec_input.c 			return esp6_input_cb(m, skip, protoff);
m                 620 netinet/ipsec_input.c 			return ah6_input_cb(m, skip, protoff);
m                 623 netinet/ipsec_input.c 			return ipcomp6_input_cb(m, skip, protoff);
m                 628 netinet/ipsec_input.c 			m_freem(m);
m                 637 netinet/ipsec_input.c 		m_freem(m);
m                 676 netinet/ipsec_input.c ah4_input(struct mbuf *m, ...)
m                 681 netinet/ipsec_input.c 	va_start(ap, m);
m                 685 netinet/ipsec_input.c 	ipsec_common_input(m, skip, offsetof(struct ip, ip_p), AF_INET,
m                 692 netinet/ipsec_input.c ah4_input_cb(struct mbuf *m, ...)
m                 707 netinet/ipsec_input.c 		m_freem(m);
m                 713 netinet/ipsec_input.c 	IF_ENQUEUE(ifq, m);
m                 732 netinet/ipsec_input.c esp4_input(struct mbuf *m, ...)
m                 737 netinet/ipsec_input.c 	va_start(ap, m);
m                 741 netinet/ipsec_input.c 	ipsec_common_input(m, skip, offsetof(struct ip, ip_p), AF_INET,
m                 747 netinet/ipsec_input.c esp4_input_cb(struct mbuf *m, ...)
m                 761 netinet/ipsec_input.c 		m_freem(m);
m                 767 netinet/ipsec_input.c 	IF_ENQUEUE(ifq, m);
m                 775 netinet/ipsec_input.c ipcomp4_input(struct mbuf *m, ...)
m                 779 netinet/ipsec_input.c 	va_start(ap, m);
m                 783 netinet/ipsec_input.c 	ipsec_common_input(m, skip, offsetof(struct ip, ip_p), AF_INET,
m                 789 netinet/ipsec_input.c ipcomp4_input_cb(struct mbuf *m, ...)
m                 803 netinet/ipsec_input.c 		m_freem(m);
m                 808 netinet/ipsec_input.c 	IF_ENQUEUE(ifq, m);
m                1002 netinet/ipsec_input.c ah6_input_cb(struct mbuf *m, int off, int protoff)
m                1009 netinet/ipsec_input.c 	m_copydata(m, protoff, sizeof(u_int8_t), (caddr_t) &nxt8);
m                1026 netinet/ipsec_input.c 		if (m->m_pkthdr.len < off) {
m                1028 netinet/ipsec_input.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_truncated);
m                1031 netinet/ipsec_input.c 		nxt = (*inet6sw[ip6_protox[nxt]].pr_input)(&m, &off, nxt);
m                1036 netinet/ipsec_input.c 	m_freem(m);
m                1092 netinet/ipsec_input.c esp6_input_cb(struct mbuf *m, int skip, int protoff)
m                1094 netinet/ipsec_input.c 	return ah6_input_cb(m, skip, protoff);
m                1148 netinet/ipsec_input.c ipcomp6_input_cb(struct mbuf *m, int skip, int protoff)
m                1150 netinet/ipsec_input.c 	return ah6_input_cb(m, skip, protoff);
m                  75 netinet/ipsec_output.c ipsp_process_packet(struct mbuf *m, struct tdb *tdb, int af, int tunalready)
m                 100 netinet/ipsec_output.c 		m_freem(m);
m                 107 netinet/ipsec_output.c 		m_freem(m);
m                 116 netinet/ipsec_output.c 		m_freem(m);
m                 137 netinet/ipsec_output.c 		m_freem(m);
m                 182 netinet/ipsec_output.c 			if (m->m_len < i) {
m                 183 netinet/ipsec_output.c 				if ((m = m_pullup(m, i)) == NULL)
m                 188 netinet/ipsec_output.c 			ip = mtod(m, struct ip *);
m                 198 netinet/ipsec_output.c 			ip6 = mtod(m, struct ip6_hdr *);
m                 221 netinet/ipsec_output.c 				if (m->m_len < sizeof(struct ip))
m                 222 netinet/ipsec_output.c 					if ((m = m_pullup(m,
m                 226 netinet/ipsec_output.c 				ip = mtod(m, struct ip *);
m                 227 netinet/ipsec_output.c 				ip->ip_len = htons(m->m_pkthdr.len);
m                 229 netinet/ipsec_output.c 				ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
m                 236 netinet/ipsec_output.c 				if (m->m_len < sizeof(struct ip6_hdr))
m                 237 netinet/ipsec_output.c 					if ((m = m_pullup(m,
m                 241 netinet/ipsec_output.c 				if (m->m_pkthdr.len - sizeof(*ip6) >
m                 244 netinet/ipsec_output.c 					m_freem(m);
m                 247 netinet/ipsec_output.c 				ip6 = mtod(m, struct ip6_hdr *);
m                 248 netinet/ipsec_output.c 				ip6->ip6_plen = htons(m->m_pkthdr.len
m                 254 netinet/ipsec_output.c 			error = ipip_output(m, tdb, &mp, 0, 0);
m                 265 netinet/ipsec_output.c 			m = mp;
m                 270 netinet/ipsec_output.c 				if (m->m_len < sizeof(struct ip))
m                 271 netinet/ipsec_output.c 					if ((m = m_pullup(m,
m                 275 netinet/ipsec_output.c 				ip = mtod(m, struct ip *);
m                 286 netinet/ipsec_output.c 			return ipsp_process_done(m, tdb);
m                 293 netinet/ipsec_output.c 			return ipsp_process_done(m, tdb);
m                 300 netinet/ipsec_output.c 		ip = mtod(m, struct ip *);
m                 308 netinet/ipsec_output.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 353 netinet/ipsec_output.c 				m_copydata(m, i, sizeof(ip6e), (caddr_t)&ip6e);
m                 365 netinet/ipsec_output.c 		} while (i < m->m_pkthdr.len);
m                 373 netinet/ipsec_output.c 		if ((m->m_pkthdr.len - i) < tdb->tdb_compalgxform->minlen) {
m                 378 netinet/ipsec_output.c 			return ipsp_process_done(m, tdb);
m                 383 netinet/ipsec_output.c 	return (*(tdb->tdb_xform->xf_output))(m, tdb, NULL, i, off);
m                 391 netinet/ipsec_output.c ipsp_process_done(struct mbuf *m, struct tdb *tdb)
m                 411 netinet/ipsec_output.c 			m_freem(m);
m                 414 netinet/ipsec_output.c 		mi = m_inject(m, sizeof(struct ip), sizeof(struct udphdr),
m                 417 netinet/ipsec_output.c 			m_freem(m);
m                 425 netinet/ipsec_output.c 		uh->uh_ulen = htons(m->m_pkthdr.len - sizeof(struct ip));
m                 434 netinet/ipsec_output.c 		ip = mtod(m, struct ip *);
m                 435 netinet/ipsec_output.c 		ip->ip_len = htons(m->m_pkthdr.len);
m                 444 netinet/ipsec_output.c 		if (m->m_pkthdr.len < sizeof(*ip6)) {
m                 445 netinet/ipsec_output.c 			m_freem(m);
m                 448 netinet/ipsec_output.c 		if (m->m_pkthdr.len - sizeof(*ip6) > IPV6_MAXPACKET) {
m                 450 netinet/ipsec_output.c 			m_freem(m);
m                 453 netinet/ipsec_output.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 454 netinet/ipsec_output.c 		ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
m                 461 netinet/ipsec_output.c 		m_freem(m);
m                 480 netinet/ipsec_output.c 		m_freem(m);
m                 491 netinet/ipsec_output.c 	m_tag_prepend(m, mtag);
m                 495 netinet/ipsec_output.c 		return ipsp_process_packet(m, tdb->tdb_onext,
m                 500 netinet/ipsec_output.c 	if (pf_tag_packet(m, tdb->tdb_tag, -1))
m                 512 netinet/ipsec_output.c 		return ip_output(m, (void *)NULL, (void *)NULL, IP_RAWOUTPUT, (void *)NULL, (void *)NULL);
m                 521 netinet/ipsec_output.c 		return ip6_output(m, NULL, NULL, 0, NULL, NULL, NULL);
m                 591 netinet/ipsec_output.c ipsec_adjust_mtu(struct mbuf *m, u_int32_t mtu)
m                 601 netinet/ipsec_output.c 	for (mtag = m_tag_find(m, PACKET_TAG_IPSEC_OUT_DONE, NULL); mtag;
m                 602 netinet/ipsec_output.c 	     mtag = m_tag_find(m, PACKET_TAG_IPSEC_OUT_DONE, mtag)) {
m                 617 netinet/ipsec_output.c 		    adjust, m));
m                 120 netinet/raw_ip.c rip_input(struct mbuf *m, ...)
m                 122 netinet/raw_ip.c 	struct ip *ip = mtod(m, struct ip *);
m                 143 netinet/raw_ip.c 			if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
m                 161 netinet/raw_ip.c 			ip_savecontrol(last, &opts, ip, m);
m                 162 netinet/raw_ip.c 		if (sbappendaddr(&last->inp_socket->so_rcv, sintosa(&ripsrc), m,
m                 164 netinet/raw_ip.c 			m_freem(m);
m                 171 netinet/raw_ip.c 			icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PROTOCOL, 0, 0);
m                 173 netinet/raw_ip.c 			m_freem(m);
m                 184 netinet/raw_ip.c rip_output(struct mbuf *m, ...)
m                 193 netinet/raw_ip.c 	va_start(ap, m);
m                 206 netinet/raw_ip.c 		if ((m->m_pkthdr.len + sizeof(struct ip)) > IP_MAXPACKET) {
m                 207 netinet/raw_ip.c 			m_freem(m);
m                 210 netinet/raw_ip.c 		M_PREPEND(m, sizeof(struct ip), M_DONTWAIT);
m                 211 netinet/raw_ip.c 		if (!m)
m                 213 netinet/raw_ip.c 		ip = mtod(m, struct ip *);
m                 217 netinet/raw_ip.c 		ip->ip_len = htons(m->m_pkthdr.len);
m                 222 netinet/raw_ip.c 		if (m->m_pkthdr.len > IP_MAXPACKET) {
m                 223 netinet/raw_ip.c 			m_freem(m);
m                 226 netinet/raw_ip.c 		if (m->m_pkthdr.len < sizeof(struct ip)) {
m                 227 netinet/raw_ip.c 			m_freem(m);
m                 230 netinet/raw_ip.c 		ip = mtod(m, struct ip *);
m                 236 netinet/raw_ip.c 		    ntohs(ip->ip_len) > m->m_pkthdr.len ||
m                 238 netinet/raw_ip.c 			m_freem(m);
m                 255 netinet/raw_ip.c 	return (ip_output(m, inp->inp_options, &inp->inp_route, flags,
m                 264 netinet/raw_ip.c     struct mbuf **m)
m                 270 netinet/raw_ip.c 		if (op == PRCO_SETOPT && *m)
m                 271 netinet/raw_ip.c 			(void) m_free(*m);
m                 280 netinet/raw_ip.c 			if (*m == 0 || (*m)->m_len < sizeof (int))
m                 282 netinet/raw_ip.c 			else if (*mtod(*m, int *))
m                 286 netinet/raw_ip.c 			if (*m)
m                 287 netinet/raw_ip.c 				(void)m_free(*m);
m                 289 netinet/raw_ip.c 			*m = m_get(M_WAIT, M_SOOPTS);
m                 290 netinet/raw_ip.c 			(*m)->m_len = sizeof(int);
m                 291 netinet/raw_ip.c 			*mtod(*m, int *) = inp->inp_flags & INP_HDRINCL;
m                 310 netinet/raw_ip.c 			error = ip_mrouter_set(so, optname, m);
m                 313 netinet/raw_ip.c 			error = ip_mrouter_get(so, optname, m);
m                 321 netinet/raw_ip.c 		if (op == PRCO_SETOPT && *m)
m                 322 netinet/raw_ip.c 			m_free(*m);
m                 326 netinet/raw_ip.c 	return (ip_ctloutput(op, so, level, optname, m));
m                 334 netinet/raw_ip.c rip_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
m                 343 netinet/raw_ip.c 		return (in_control(so, (u_long)m, (caddr_t)nam,
m                 462 netinet/raw_ip.c 		error = rip_output(m, so, dst);
m                 463 netinet/raw_ip.c 		m = NULL;
m                 496 netinet/raw_ip.c 	if (m != NULL)
m                 497 netinet/raw_ip.c 		m_freem(m);
m                 108 netinet/tcp_input.c #define M_PH_LEN(m)      (((struct mbuf *)(m))->m_pkthdr.len)
m                 109 netinet/tcp_input.c #define M_V6_LEN(m)      (M_PH_LEN(m) - sizeof(struct ip6_hdr))
m                 110 netinet/tcp_input.c #define M_V4_LEN(m)      (M_PH_LEN(m) - sizeof(struct ip))
m                 190 netinet/tcp_input.c tcp_reass(tp, th, m, tlen)
m                 193 netinet/tcp_input.c 	struct mbuf *m;
m                 223 netinet/tcp_input.c 			m_freem(m);
m                 251 netinet/tcp_input.c 				m_freem(m);
m                 255 netinet/tcp_input.c 			m_adj(m, i);
m                 286 netinet/tcp_input.c 	tiqe->tcpqe_m = m;
m                 331 netinet/tcp_input.c 	struct mbuf *m = *mp;
m                 334 netinet/tcp_input.c 	if (m->m_pkthdr.rcvif) {
m                 335 netinet/tcp_input.c 		if (m->m_pkthdr.rcvif->if_type == IFT_FAITH) {
m                 337 netinet/tcp_input.c 			m_freem(m);
m                 347 netinet/tcp_input.c 	if (m->m_flags & M_ANYCAST6) {
m                 348 netinet/tcp_input.c 		if (m->m_len >= sizeof(struct ip6_hdr)) {
m                 349 netinet/tcp_input.c 			struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
m                 350 netinet/tcp_input.c 			icmp6_error(m, ICMP6_DST_UNREACH,
m                 354 netinet/tcp_input.c 			m_freem(m);
m                 358 netinet/tcp_input.c 	tcp_input(m, *offp, proto);
m                 368 netinet/tcp_input.c tcp_input(struct mbuf *m, ...)
m                 401 netinet/tcp_input.c 	va_start(ap, m);
m                 414 netinet/tcp_input.c 	if (m->m_flags & (M_BCAST|M_MCAST))
m                 421 netinet/tcp_input.c 	switch (mtod(m, struct ip *)->ip_v) {
m                 431 netinet/tcp_input.c 		m_freem(m);
m                 443 netinet/tcp_input.c 			m_freem(m);
m                 452 netinet/tcp_input.c 			m_freem(m);
m                 459 netinet/tcp_input.c 		m_freem(m);
m                 463 netinet/tcp_input.c 	IP6_EXTHDR_GET(th, struct tcphdr *, m, iphlen, sizeof(*th));
m                 469 netinet/tcp_input.c 	tlen = m->m_pkthdr.len - iphlen;
m                 476 netinet/tcp_input.c 		ip = mtod(m, struct ip *);
m                 478 netinet/tcp_input.c 		    in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif))
m                 487 netinet/tcp_input.c 		if ((m->m_pkthdr.csum_flags & M_TCP_CSUM_IN_OK) == 0) {
m                 488 netinet/tcp_input.c 			if (m->m_pkthdr.csum_flags & M_TCP_CSUM_IN_BAD) {
m                 493 netinet/tcp_input.c 			if (in4_cksum(m, IPPROTO_TCP, iphlen, tlen) != 0) {
m                 498 netinet/tcp_input.c 			m->m_pkthdr.csum_flags &= ~M_TCP_CSUM_IN_OK;
m                 504 netinet/tcp_input.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 538 netinet/tcp_input.c 		if (in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr), tlen)) {
m                 557 netinet/tcp_input.c 		IP6_EXTHDR_GET(th, struct tcphdr *, m, iphlen, off);
m                 610 netinet/tcp_input.c 		if (m->m_pkthdr.pf.flags & PF_TAG_TRANSLATE_LOCALHOST)
m                 720 netinet/tcp_input.c 						th, iphlen, tlen, so, m);
m                 739 netinet/tcp_input.c 						m = NULL;
m                 809 netinet/tcp_input.c 					if ((ia6 = in6ifa_ifpwithaddr(m->m_pkthdr.rcvif,
m                 849 netinet/tcp_input.c 				    so, m, optp, optlen, &opti, reuse))
m                 850 netinet/tcp_input.c 					m = NULL;
m                 868 netinet/tcp_input.c 	mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL);
m                 875 netinet/tcp_input.c 	ipsp_spd_lookup(m, af, iphlen, &error, IPSP_DIRECTION_IN,
m                 941 netinet/tcp_input.c 		if (tcp_dooptions(tp, optp, optlen, th, m, iphlen, &opti))
m                1052 netinet/tcp_input.c 				m_freem(m);
m                1097 netinet/tcp_input.c 				m_freem(m);
m                1099 netinet/tcp_input.c 				m_adj(m, iphlen + off);
m                1100 netinet/tcp_input.c 				sbappendstream(&so->so_rcv, m);
m                1262 netinet/tcp_input.c 			m_adj(m, -todrop);
m                1405 netinet/tcp_input.c 		m_adj(m, -todrop);
m                2018 netinet/tcp_input.c 		        tcp_pulloutofband(so, th->th_urp, m, hdroptlen);
m                2054 netinet/tcp_input.c 				m_freem(m);
m                2056 netinet/tcp_input.c 				m_adj(m, hdroptlen);
m                2057 netinet/tcp_input.c 				sbappendstream(&so->so_rcv, m);
m                2061 netinet/tcp_input.c 			m_adj(m, hdroptlen);
m                2062 netinet/tcp_input.c 			tiflags = tcp_reass(tp, th, m, &tlen);
m                2084 netinet/tcp_input.c 		m_freem(m);
m                2182 netinet/tcp_input.c 	m_freem(m);
m                2210 netinet/tcp_input.c 		tcp_respond(tp, mtod(m, caddr_t), m, (tcp_seq)0, th->th_ack,
m                2215 netinet/tcp_input.c 		tcp_respond(tp, mtod(m, caddr_t), m, th->th_seq + tlen,
m                2239 netinet/tcp_input.c 	m_freem(m);
m                2244 netinet/tcp_input.c tcp_dooptions(tp, cp, cnt, th, m, iphlen, oi)
m                2249 netinet/tcp_input.c 	struct mbuf *m;
m                2365 netinet/tcp_input.c 			src.sin.sin_addr = mtod(m, struct ip *)->ip_src;
m                2368 netinet/tcp_input.c 			dst.sin.sin_addr = mtod(m, struct ip *)->ip_dst;
m                2375 netinet/tcp_input.c 			src.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_src;
m                2378 netinet/tcp_input.c 			dst.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_dst;
m                2407 netinet/tcp_input.c 		if (tcp_signature(tdb, tp->pf, m, th, iphlen, 1, sig) < 0)
m                2842 netinet/tcp_input.c tcp_pulloutofband(so, urgent, m, off)
m                2845 netinet/tcp_input.c 	struct mbuf *m;
m                2851 netinet/tcp_input.c 		if (m->m_len > cnt) {
m                2852 netinet/tcp_input.c 			char *cp = mtod(m, caddr_t) + cnt;
m                2857 netinet/tcp_input.c 			bcopy(cp+1, cp, (unsigned)(m->m_len - cnt - 1));
m                2858 netinet/tcp_input.c 			m->m_len--;
m                2861 netinet/tcp_input.c 		cnt -= m->m_len;
m                2862 netinet/tcp_input.c 		m = m->m_next;
m                2863 netinet/tcp_input.c 		if (m == 0)
m                3631 netinet/tcp_input.c syn_cache_get(src, dst, th, hlen, tlen, so, m)
m                3637 netinet/tcp_input.c 	struct mbuf *m;
m                3660 netinet/tcp_input.c 		(void) syn_cache_respond(sc, m);
m                3802 netinet/tcp_input.c 		m_freem(m);
m                3866 netinet/tcp_input.c 	tcp_respond(NULL, mtod(m, caddr_t), m, (tcp_seq)0, th->th_ack, TH_RST);
m                3962 netinet/tcp_input.c syn_cache_add(src, dst, th, iphlen, so, m, optp, optlen, oi, issp)
m                3968 netinet/tcp_input.c 	struct mbuf *m;
m                4010 netinet/tcp_input.c 		if (tcp_dooptions(&tb, optp, optlen, th, m, iphlen, oi))
m                4045 netinet/tcp_input.c 		if (syn_cache_respond(sc, m) == 0) {
m                4078 netinet/tcp_input.c 	sc->sc_ourmaxseg = tcp_mss_adv(m->m_flags & M_PKTHDR ?
m                4079 netinet/tcp_input.c 	    m->m_pkthdr.rcvif : NULL, sc->sc_src.sa.sa_family);
m                4120 netinet/tcp_input.c 	if (syn_cache_respond(sc, m) == 0) {
m                4132 netinet/tcp_input.c syn_cache_respond(sc, m)
m                4134 netinet/tcp_input.c 	struct mbuf *m;
m                4160 netinet/tcp_input.c 		if (m)
m                4161 netinet/tcp_input.c 			m_freem(m);
m                4180 netinet/tcp_input.c 	if (m)
m                4181 netinet/tcp_input.c 		m_freem(m);
m                4186 netinet/tcp_input.c 	MGETHDR(m, M_DONTWAIT, MT_DATA);
m                4187 netinet/tcp_input.c 	if (m && max_linkhdr + tlen > MHLEN) {
m                4188 netinet/tcp_input.c 		MCLGET(m, M_DONTWAIT);
m                4189 netinet/tcp_input.c 		if ((m->m_flags & M_EXT) == 0) {
m                4190 netinet/tcp_input.c 			m_freem(m);
m                4191 netinet/tcp_input.c 			m = NULL;
m                4194 netinet/tcp_input.c 	if (m == NULL)
m                4198 netinet/tcp_input.c 	m->m_data += max_linkhdr;
m                4199 netinet/tcp_input.c 	m->m_len = m->m_pkthdr.len = tlen;
m                4200 netinet/tcp_input.c 	m->m_pkthdr.rcvif = NULL;
m                4201 netinet/tcp_input.c 	memset(mtod(m, u_char *), 0, tlen);
m                4205 netinet/tcp_input.c 		ip = mtod(m, struct ip *);
m                4215 netinet/tcp_input.c 		ip6 = mtod(m, struct ip6_hdr *);
m                4289 netinet/tcp_input.c 			src.sin.sin_addr = mtod(m, struct ip *)->ip_src;
m                4290 netinet/tcp_input.c 			dst.sin.sin_addr = mtod(m, struct ip *)->ip_dst;
m                4295 netinet/tcp_input.c 			src.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_src;
m                4296 netinet/tcp_input.c 			dst.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_dst;
m                4303 netinet/tcp_input.c 			if (m)
m                4304 netinet/tcp_input.c 				m_freem(m);
m                4312 netinet/tcp_input.c 		if (tcp_signature(tdb, sc->sc_src.sa.sa_family, m, th,
m                4314 netinet/tcp_input.c 			if (m)
m                4315 netinet/tcp_input.c 				m_freem(m);
m                4333 netinet/tcp_input.c 		th->th_sum = in_cksum(m, tlen);
m                4339 netinet/tcp_input.c 		th->th_sum = in6_cksum(m, IPPROTO_TCP, hlen, tlen - hlen);
m                4373 netinet/tcp_input.c 		error = ip_output(m, sc->sc_ipopts, ro,
m                4383 netinet/tcp_input.c 		error = ip6_output(m, NULL /*XXX*/, (struct route_in6 *)ro, 0,
m                 214 netinet/tcp_output.c 	struct mbuf *m;
m                 696 netinet/tcp_output.c 		if ((m = m_copypack(so->so_snd.sb_mb, off,
m                 704 netinet/tcp_output.c 		m->m_len += hdrlen;
m                 705 netinet/tcp_output.c 		m->m_data -= hdrlen;
m                 707 netinet/tcp_output.c 		MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                 708 netinet/tcp_output.c 		if (m != NULL && max_linkhdr + hdrlen > MHLEN) {
m                 709 netinet/tcp_output.c 			MCLGET(m, M_DONTWAIT);
m                 710 netinet/tcp_output.c 			if ((m->m_flags & M_EXT) == 0) {
m                 711 netinet/tcp_output.c 				m_freem(m);
m                 712 netinet/tcp_output.c 				m = NULL;
m                 715 netinet/tcp_output.c 		if (m == NULL) {
m                 719 netinet/tcp_output.c 		m->m_data += max_linkhdr;
m                 720 netinet/tcp_output.c 		m->m_len = hdrlen;
m                 721 netinet/tcp_output.c 		if (len <= M_TRAILINGSPACE(m)) {
m                 723 netinet/tcp_output.c 			    mtod(m, caddr_t) + hdrlen);
m                 724 netinet/tcp_output.c 			m->m_len += len;
m                 726 netinet/tcp_output.c 			m->m_next = m_copy(so->so_snd.sb_mb, off, (int) len);
m                 727 netinet/tcp_output.c 			if (m->m_next == 0) {
m                 728 netinet/tcp_output.c 				(void) m_free(m);
m                 752 netinet/tcp_output.c 		MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                 753 netinet/tcp_output.c 		if (m != NULL && max_linkhdr + hdrlen > MHLEN) {
m                 754 netinet/tcp_output.c 			MCLGET(m, M_DONTWAIT);
m                 755 netinet/tcp_output.c 			if ((m->m_flags & M_EXT) == 0) {
m                 756 netinet/tcp_output.c 				m_freem(m);
m                 757 netinet/tcp_output.c 				m = NULL;
m                 760 netinet/tcp_output.c 		if (m == NULL) {
m                 764 netinet/tcp_output.c 		m->m_data += max_linkhdr;
m                 765 netinet/tcp_output.c 		m->m_len = hdrlen;
m                 767 netinet/tcp_output.c 	m->m_pkthdr.rcvif = (struct ifnet *)0;
m                 768 netinet/tcp_output.c 	m->m_pkthdr.len = hdrlen + len;
m                 776 netinet/tcp_output.c 	bcopy(mtod(tp->t_template, caddr_t), mtod(m, caddr_t),
m                 778 netinet/tcp_output.c 	th = (struct tcphdr *)(mtod(m, caddr_t) + tp->t_template->m_len -
m                 910 netinet/tcp_output.c 			src.sin.sin_addr = mtod(m, struct ip *)->ip_src;
m                 913 netinet/tcp_output.c 			dst.sin.sin_addr = mtod(m, struct ip *)->ip_dst;
m                 921 netinet/tcp_output.c 			src.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_src;
m                 924 netinet/tcp_output.c 			dst.sin6.sin6_addr = mtod(m, struct ip6_hdr *)->ip6_dst;
m                 935 netinet/tcp_output.c 		if (tcp_signature(tdb, tp->pf, m, th, iphlen, 0,
m                 936 netinet/tcp_output.c 		    mtod(m, caddr_t) + hdrlen - optlen + sigoff) < 0)
m                 950 netinet/tcp_output.c 		m->m_pkthdr.csum_flags |= M_TCPV4_CSUM_OUT;
m                 958 netinet/tcp_output.c 		th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
m                1040 netinet/tcp_output.c 		tcp_trace(TA_OUTPUT, tp->t_state, tp, mtod(m, caddr_t), 0,
m                1074 netinet/tcp_output.c 			ip = mtod(m, struct ip *);
m                1075 netinet/tcp_output.c 			ip->ip_len = htons(m->m_pkthdr.len);
m                1076 netinet/tcp_output.c 			packetlen = m->m_pkthdr.len;
m                1084 netinet/tcp_output.c 		error = ip_output(m, tp->t_inpcb->inp_options,
m                1096 netinet/tcp_output.c 			ip6 = mtod(m, struct ip6_hdr *);
m                1097 netinet/tcp_output.c 			ip6->ip6_plen = m->m_pkthdr.len -
m                1099 netinet/tcp_output.c 			packetlen = m->m_pkthdr.len;
m                1107 netinet/tcp_output.c 		error = ip6_output(m, tp->t_inpcb->inp_outputopts6,
m                 208 netinet/tcp_subr.c 	struct mbuf *m;
m                 211 netinet/tcp_subr.c 	if ((m = tp->t_template) == 0) {
m                 212 netinet/tcp_subr.c 		m = m_get(M_DONTWAIT, MT_HEADER);
m                 213 netinet/tcp_subr.c 		if (m == NULL)
m                 220 netinet/tcp_subr.c 			m->m_len = sizeof(struct ip);
m                 225 netinet/tcp_subr.c 			m->m_len = sizeof(struct ip6_hdr);
m                 229 netinet/tcp_subr.c 		m->m_len += sizeof (struct tcphdr);
m                 236 netinet/tcp_subr.c 		if (m->m_len + MAX_TCPOPTLEN + max_linkhdr >= MHLEN) {
m                 237 netinet/tcp_subr.c 			MCLGET(m, M_DONTWAIT);
m                 238 netinet/tcp_subr.c 			if ((m->m_flags & M_EXT) == 0) {
m                 239 netinet/tcp_subr.c 				m_free(m);
m                 251 netinet/tcp_subr.c 			ipovly = mtod(m, struct ipovly *);
m                 259 netinet/tcp_subr.c 			th = (struct tcphdr *)(mtod(m, caddr_t) +
m                 272 netinet/tcp_subr.c 			ip6 = mtod(m, struct ip6_hdr *);
m                 283 netinet/tcp_subr.c 			th = (struct tcphdr *)(mtod(m, caddr_t) +
m                 300 netinet/tcp_subr.c 	return (m);
m                 320 netinet/tcp_subr.c tcp_respond(tp, template, m, ack, seq, flags)
m                 323 netinet/tcp_subr.c 	struct mbuf *m;
m                 349 netinet/tcp_subr.c 	if (m == 0) {
m                 350 netinet/tcp_subr.c 		m = m_gethdr(M_DONTWAIT, MT_HEADER);
m                 351 netinet/tcp_subr.c 		if (m == NULL)
m                 358 netinet/tcp_subr.c 		m->m_data += max_linkhdr;
m                 362 netinet/tcp_subr.c 			bcopy(ti, mtod(m, caddr_t), sizeof(struct tcphdr) +
m                 367 netinet/tcp_subr.c 			bcopy(ti, mtod(m, caddr_t), sizeof(struct tcphdr) +
m                 372 netinet/tcp_subr.c 		ti = mtod(m, struct tcpiphdr *);
m                 375 netinet/tcp_subr.c 		m_freem(m->m_next);
m                 376 netinet/tcp_subr.c 		m->m_next = 0;
m                 377 netinet/tcp_subr.c 		m->m_data = (caddr_t)ti;
m                 383 netinet/tcp_subr.c 			m->m_len = sizeof(struct tcphdr) + sizeof(struct ip6_hdr);
m                 390 netinet/tcp_subr.c 			m->m_len = sizeof (struct tcpiphdr);
m                 412 netinet/tcp_subr.c 	m->m_len = tlen;
m                 413 netinet/tcp_subr.c 	m->m_pkthdr.len = tlen;
m                 414 netinet/tcp_subr.c 	m->m_pkthdr.rcvif = (struct ifnet *) 0;
m                 436 netinet/tcp_subr.c 		th->th_sum = in6_cksum(m, IPPROTO_TCP,
m                 439 netinet/tcp_subr.c 		ip6_output(m, tp ? tp->t_inpcb->inp_outputopts6 : NULL,
m                 454 netinet/tcp_subr.c 		th->th_sum = in_cksum(m, tlen);
m                 457 netinet/tcp_subr.c 		ip_output(m, (void *)NULL, ro, ip_mtudisc ? IP_MTUDISC : 0,
m                 705 netinet/tcp_subr.c 	struct mbuf *m;
m                 740 netinet/tcp_subr.c 		m = ip6cp->ip6c_m;
m                 745 netinet/tcp_subr.c 		m = NULL;
m                 757 netinet/tcp_subr.c 		if (m->m_pkthdr.len < off + sizeof(*thp))
m                 765 netinet/tcp_subr.c 		m_copydata(m, off, sizeof(*thp), (caddr_t)&th);
m                1089 netinet/tcp_subr.c tcp_signature_tdb_input(m, tdbp, skip, protoff)
m                1090 netinet/tcp_subr.c 	struct mbuf *m;
m                1098 netinet/tcp_subr.c tcp_signature_tdb_output(m, tdbp, mp, skip, protoff)
m                1099 netinet/tcp_subr.c 	struct mbuf *m;
m                1118 netinet/tcp_subr.c tcp_signature(struct tdb *tdb, int af, struct mbuf *m, struct tcphdr *th,
m                1134 netinet/tcp_subr.c 		ip = mtod(m, struct ip *);
m                1140 netinet/tcp_subr.c 		ippseudo.ippseudo_len = htons(m->m_pkthdr.len - iphlen);
m                1152 netinet/tcp_subr.c 		ip6 = mtod(m, struct ip6_hdr *);
m                1159 netinet/tcp_subr.c 		ip6pseudo.ip6ph_len = htonl(m->m_pkthdr.len - iphlen);
m                1179 netinet/tcp_subr.c 	len = m->m_pkthdr.len - iphlen - th->th_off * sizeof(uint32_t);
m                1182 netinet/tcp_subr.c 	    m_apply(m, iphlen + th->th_off * sizeof(uint32_t), len,
m                 129 netinet/tcp_usrreq.c tcp6_usrreq(so, req, m, nam, control, p)
m                 132 netinet/tcp_usrreq.c 	struct mbuf *m, *nam, *control;
m                 136 netinet/tcp_usrreq.c 	return tcp_usrreq(so, req, m, nam, control);
m                 147 netinet/tcp_usrreq.c tcp_usrreq(so, req, m, nam, control)
m                 150 netinet/tcp_usrreq.c 	struct mbuf *m, *nam, *control;
m                 162 netinet/tcp_usrreq.c 			return in6_control(so, (u_long)m, (caddr_t)nam,
m                 166 netinet/tcp_usrreq.c 			return (in_control(so, (u_long)m, (caddr_t)nam,
m                 171 netinet/tcp_usrreq.c 		if (m)
m                 172 netinet/tcp_usrreq.c 			m_freem(m);
m                 189 netinet/tcp_usrreq.c 		if (m && (req == PRU_SEND || req == PRU_SENDOOB))
m                 190 netinet/tcp_usrreq.c 			m_freem(m);
m                 418 netinet/tcp_usrreq.c 		sbappendstream(&so->so_snd, m);
m                 430 netinet/tcp_usrreq.c 		((struct stat *) m)->st_blksize = so->so_snd.sb_hiwat;
m                 446 netinet/tcp_usrreq.c 		m->m_len = 1;
m                 447 netinet/tcp_usrreq.c 		*mtod(m, caddr_t) = tp->t_iobc;
m                 454 netinet/tcp_usrreq.c 			m_freem(m);
m                 466 netinet/tcp_usrreq.c 		sbappendstream(&so->so_snd, m);
m                 510 netinet/tcp_usrreq.c 	struct mbuf *m;
m                 548 netinet/tcp_usrreq.c 		m = *mp;
m                 552 netinet/tcp_usrreq.c 			if (m == NULL || m->m_len < sizeof (int))
m                 554 netinet/tcp_usrreq.c 			else if (*mtod(m, int *))
m                 561 netinet/tcp_usrreq.c 			if (m == NULL || m->m_len < sizeof (int)) {
m                 566 netinet/tcp_usrreq.c 			i = *mtod(m, int *);
m                 575 netinet/tcp_usrreq.c 			if (m == NULL || m->m_len < sizeof (int)) {
m                 590 netinet/tcp_usrreq.c 			if (*mtod(m, int *))
m                 598 netinet/tcp_usrreq.c 			if (m == NULL || m->m_len < sizeof (int)) {
m                 608 netinet/tcp_usrreq.c 			if (*mtod(m, int *)) {
m                 621 netinet/tcp_usrreq.c 		if (m)
m                 622 netinet/tcp_usrreq.c 			(void) m_free(m);
m                 626 netinet/tcp_usrreq.c 		*mp = m = m_get(M_WAIT, MT_SOOPTS);
m                 627 netinet/tcp_usrreq.c 		m->m_len = sizeof(int);
m                 631 netinet/tcp_usrreq.c 			*mtod(m, int *) = tp->t_flags & TF_NODELAY;
m                 634 netinet/tcp_usrreq.c 			*mtod(m, int *) = tp->t_maxseg;
m                 638 netinet/tcp_usrreq.c 			*mtod(m, int *) = tp->sack_enable;
m                 643 netinet/tcp_usrreq.c 			*mtod(m, int *) = tp->t_flags & TF_SIGNATURE;
m                 144 netinet/udp_usrreq.c 	struct mbuf *m = *mp;
m                 147 netinet/udp_usrreq.c 	if (m->m_pkthdr.rcvif) {
m                 148 netinet/udp_usrreq.c 		if (m->m_pkthdr.rcvif->if_type == IFT_FAITH) {
m                 150 netinet/udp_usrreq.c 			m_freem(m);
m                 156 netinet/udp_usrreq.c 	udp_input(m, *offp, proto);
m                 162 netinet/udp_usrreq.c udp_input(struct mbuf *m, ...)
m                 189 netinet/udp_usrreq.c 	va_start(ap, m);
m                 195 netinet/udp_usrreq.c 	switch (mtod(m, struct ip *)->ip_v) {
m                 197 netinet/udp_usrreq.c 		ip = mtod(m, struct ip *);
m                 206 netinet/udp_usrreq.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 214 netinet/udp_usrreq.c 	IP6_EXTHDR_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
m                 232 netinet/udp_usrreq.c 		if (m->m_pkthdr.len - iphlen != len) {
m                 233 netinet/udp_usrreq.c 			if (len > (m->m_pkthdr.len - iphlen) ||
m                 238 netinet/udp_usrreq.c 			m_adj(m, len - (m->m_pkthdr.len - iphlen));
m                 244 netinet/udp_usrreq.c 		if (len == 0 && m->m_pkthdr.len - iphlen > 0xffff)
m                 245 netinet/udp_usrreq.c 			len = m->m_pkthdr.len - iphlen;
m                 246 netinet/udp_usrreq.c 		if (len != m->m_pkthdr.len - iphlen) {
m                 284 netinet/udp_usrreq.c 		if ((uh->uh_sum = in6_cksum(m, IPPROTO_UDP, iphlen, len))) {
m                 291 netinet/udp_usrreq.c 		if ((m->m_pkthdr.csum_flags & M_UDP_CSUM_IN_OK) == 0) {
m                 292 netinet/udp_usrreq.c 			if (m->m_pkthdr.csum_flags & M_UDP_CSUM_IN_BAD) {
m                 295 netinet/udp_usrreq.c 				m_freem(m);
m                 299 netinet/udp_usrreq.c 			if ((uh->uh_sum = in4_cksum(m, IPPROTO_UDP,
m                 302 netinet/udp_usrreq.c 				m_freem(m);
m                 306 netinet/udp_usrreq.c 			m->m_pkthdr.csum_flags &= ~M_UDP_CSUM_IN_OK;
m                 318 netinet/udp_usrreq.c 		if (m->m_pkthdr.len - skip < sizeof(u_int32_t)) {
m                 320 netinet/udp_usrreq.c 			m_freem(m);
m                 323 netinet/udp_usrreq.c 		m_copydata(m, skip, sizeof(u_int32_t), (caddr_t) &spi);
m                 329 netinet/udp_usrreq.c 			if ((m = m_pullup2(m, skip)) == NULL) {
m                 335 netinet/udp_usrreq.c 			bcopy(mtod(m, u_char *),
m                 336 netinet/udp_usrreq.c 			    mtod(m, u_char *) + sizeof(struct udphdr), iphlen);
m                 337 netinet/udp_usrreq.c 			m_adj(m, sizeof(struct udphdr));
m                 341 netinet/udp_usrreq.c 			ipsec_common_input(m, skip, offsetof(struct ip, ip_p),
m                 373 netinet/udp_usrreq.c 		    m->m_pkthdr.rcvif);
m                 381 netinet/udp_usrreq.c 		    m->m_pkthdr.rcvif);
m                 389 netinet/udp_usrreq.c 	    (ip && in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif))) {
m                 392 netinet/udp_usrreq.c 	    in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif)) {
m                 459 netinet/udp_usrreq.c 				if ((n = m_copy(m, 0, M_COPYALL)) != NULL) {
m                 509 netinet/udp_usrreq.c 			ip6_savecontrol(last, m, &opts);
m                 512 netinet/udp_usrreq.c 			ip_savecontrol(last, &opts, ip, m);
m                 514 netinet/udp_usrreq.c 		m_adj(m, iphlen);
m                 516 netinet/udp_usrreq.c 		    &srcsa.sa, m, opts) == 0) {
m                 536 netinet/udp_usrreq.c 		if (m->m_pkthdr.pf.flags & PF_TAG_TRANSLATE_LOCALHOST)
m                 549 netinet/udp_usrreq.c 			if (m->m_flags & (M_BCAST | M_MCAST)) {
m                 556 netinet/udp_usrreq.c 				icmp6_error(m, ICMP6_DST_UNREACH,
m                 563 netinet/udp_usrreq.c 				icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT,
m                 571 netinet/udp_usrreq.c 	mtag = m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL);
m                 578 netinet/udp_usrreq.c 	ipsp_spd_lookup(m, srcsa.sa.sa_family, iphlen, &error,
m                 627 netinet/udp_usrreq.c 		ip6_savecontrol(inp, m, &opts);
m                 630 netinet/udp_usrreq.c 		ip_savecontrol(inp, &opts, ip, m);
m                 633 netinet/udp_usrreq.c 	m_adj(m, iphlen);
m                 634 netinet/udp_usrreq.c 	if (sbappendaddr(&inp->inp_socket->so_rcv, &srcsa.sa, m, opts) == 0) {
m                 641 netinet/udp_usrreq.c 	m_freem(m);
m                 670 netinet/udp_usrreq.c 	struct mbuf *m;
m                 700 netinet/udp_usrreq.c 		m = ip6cp->ip6c_m;
m                 705 netinet/udp_usrreq.c 		m = NULL;
m                 724 netinet/udp_usrreq.c 		sa6.sin6_scope_id = in6_addr2scopeid(m->m_pkthdr.rcvif,
m                 751 netinet/udp_usrreq.c 		if (m->m_pkthdr.len < off + sizeof(*uhp))
m                 755 netinet/udp_usrreq.c 		m_copydata(m, off, sizeof(*uhp), (caddr_t)&uh);
m                 761 netinet/udp_usrreq.c 		sa6_src.sin6_scope_id = in6_addr2scopeid(m->m_pkthdr.rcvif,
m                 875 netinet/udp_usrreq.c udp_output(struct mbuf *m, ...)
m                 880 netinet/udp_usrreq.c 	int len = m->m_pkthdr.len;
m                 885 netinet/udp_usrreq.c 	va_start(ap, m);
m                 930 netinet/udp_usrreq.c 	M_PREPEND(m, sizeof(struct udpiphdr), M_DONTWAIT);
m                 931 netinet/udp_usrreq.c 	if (m == 0) {
m                 940 netinet/udp_usrreq.c 	ui = mtod(m, struct udpiphdr *);
m                 955 netinet/udp_usrreq.c 		m->m_pkthdr.csum_flags |= M_UDPV4_CSUM_OUT;
m                 966 netinet/udp_usrreq.c 	error = ip_output(m, inp->inp_options, &inp->inp_route,
m                 982 netinet/udp_usrreq.c 	m_freem(m);
m                 991 netinet/udp_usrreq.c udp6_usrreq(so, req, m, addr, control, p)
m                 994 netinet/udp_usrreq.c 	struct mbuf *m, *addr, *control;
m                 998 netinet/udp_usrreq.c 	return udp_usrreq(so, req, m, addr, control);
m                1004 netinet/udp_usrreq.c udp_usrreq(so, req, m, addr, control)
m                1007 netinet/udp_usrreq.c 	struct mbuf *m, *addr, *control;
m                1016 netinet/udp_usrreq.c 			return (in6_control(so, (u_long)m, (caddr_t)addr,
m                1020 netinet/udp_usrreq.c 			return (in_control(so, (u_long)m, (caddr_t)addr,
m                1144 netinet/udp_usrreq.c 			return (udp6_output(inp, m, addr, control));
m                1146 netinet/udp_usrreq.c 			return (udp_output(m, inp, addr, control));
m                1148 netinet/udp_usrreq.c 		return (udp_output(m, inp, addr, control));
m                1204 netinet/udp_usrreq.c 	if (m)
m                1205 netinet/udp_usrreq.c 		m_freem(m);
m                  61 netinet6/dest6.c 	struct mbuf *m = *mp;
m                  67 netinet6/dest6.c 	IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, sizeof(*dstopts));
m                  72 netinet6/dest6.c 	IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, dstoptlen);
m                  95 netinet6/dest6.c 			optlen = ip6_unknown_opt(opt, m,
m                  96 netinet6/dest6.c 			    opt - mtod(m, u_int8_t *));
m                 108 netinet6/dest6.c 	m_freem(m);
m                 178 netinet6/frag6.c 	struct mbuf *m = *mp, *t;
m                 193 netinet6/frag6.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 194 netinet6/frag6.c 	IP6_EXTHDR_GET(ip6f, struct ip6_frag *, m, offset, sizeof(*ip6f));
m                 221 netinet6/frag6.c 	if ((m->m_flags & M_PKTHDR) != 0)
m                 222 netinet6/frag6.c 		dstifp = m->m_pkthdr.rcvif;
m                 227 netinet6/frag6.c 		icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER, offset);
m                 240 netinet6/frag6.c 		icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
m                 331 netinet6/frag6.c 			icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
m                 338 netinet6/frag6.c 		icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_HEADER,
m                 394 netinet6/frag6.c 	IP6_REASS_MBUF(ip6af) = m;
m                 534 netinet6/frag6.c 	t = m = IP6_REASS_MBUF(ip6af);
m                 551 netinet6/frag6.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 563 netinet6/frag6.c 	if (offset < m->m_len) {
m                 566 netinet6/frag6.c 		m->m_data += sizeof(struct ip6_frag);
m                 567 netinet6/frag6.c 		m->m_len -= sizeof(struct ip6_frag);
m                 570 netinet6/frag6.c 		if ((t = m_split(m, offset, M_DONTWAIT)) == NULL) {
m                 578 netinet6/frag6.c 		m_cat(m, t);
m                 585 netinet6/frag6.c 		u_int8_t *prvnxtp = ip6_get_prevhdr(m, offset); /* XXX */
m                 594 netinet6/frag6.c 	if (m->m_flags & M_PKTHDR) { /* Isn't it always true? */
m                 596 netinet6/frag6.c 		for (t = m; t; t = t->m_next)
m                 598 netinet6/frag6.c 		m->m_pkthdr.len = plen;
m                 608 netinet6/frag6.c 	*mp = m;
m                 617 netinet6/frag6.c 	m_freem(m);
m                 636 netinet6/frag6.c 		struct mbuf *m = IP6_REASS_MBUF(af6);
m                 649 netinet6/frag6.c 			ip6 = mtod(m, struct ip6_hdr *);
m                 655 netinet6/frag6.c 			icmp6_error(m, ICMP6_TIME_EXCEEDED,
m                 658 netinet6/frag6.c 			m_freem(m);
m                 277 netinet6/icmp6.c icmp6_error(m, type, code, param)
m                 278 netinet6/icmp6.c 	struct mbuf *m;
m                 292 netinet6/icmp6.c 	if (m->m_len < sizeof(struct ip6_hdr)) {
m                 293 netinet6/icmp6.c 		m = m_pullup(m, sizeof(struct ip6_hdr));
m                 294 netinet6/icmp6.c 		if (m == NULL)
m                 297 netinet6/icmp6.c 	oip6 = mtod(m, struct ip6_hdr *);
m                 310 netinet6/icmp6.c 	if ((m->m_flags & (M_BCAST|M_MCAST) ||
m                 330 netinet6/icmp6.c 	off = ip6_lasthdr(m, 0, IPPROTO_IPV6, &nxt);
m                 334 netinet6/icmp6.c 		IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off,
m                 357 netinet6/icmp6.c 	oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */
m                 369 netinet6/icmp6.c 	if (m->m_pkthdr.len >= ICMPV6_PLD_MAXLEN)
m                 370 netinet6/icmp6.c 		m_adj(m, ICMPV6_PLD_MAXLEN - m->m_pkthdr.len);
m                 373 netinet6/icmp6.c 	M_PREPEND(m, preplen, M_DONTWAIT);
m                 374 netinet6/icmp6.c 	if (m && m->m_len < preplen)
m                 375 netinet6/icmp6.c 		m = m_pullup(m, preplen);
m                 376 netinet6/icmp6.c 	if (m == NULL) {
m                 381 netinet6/icmp6.c 	nip6 = mtod(m, struct ip6_hdr *);
m                 402 netinet6/icmp6.c 	m->m_pkthdr.rcvif = NULL;
m                 405 netinet6/icmp6.c 	icmp6_reflect(m, sizeof(struct ip6_hdr)); /* header order: IPv6 - ICMPv6 */
m                 413 netinet6/icmp6.c 	m_freem(m);
m                 424 netinet6/icmp6.c 	struct mbuf *m = *mp, *n;
m                 428 netinet6/icmp6.c 	int icmp6len = m->m_pkthdr.len - *offp;
m                 431 netinet6/icmp6.c 	icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_msg);
m                 438 netinet6/icmp6.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 441 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_error);
m                 448 netinet6/icmp6.c 	IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6));
m                 455 netinet6/icmp6.c 	if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
m                 460 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_error);
m                 465 netinet6/icmp6.c 	if (m->m_pkthdr.rcvif && m->m_pkthdr.rcvif->if_type == IFT_FAITH) {
m                 483 netinet6/icmp6.c 	if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 484 netinet6/icmp6.c 	    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 486 netinet6/icmp6.c 	    carp_lsdrop(m, AF_INET6, ip6->ip6_src.s6_addr32,
m                 494 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_dstunreach);
m                 500 netinet6/icmp6.c 			icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_adminprohib);
m                 525 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_pkttoobig);
m                 536 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_timeexceed);
m                 550 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_paramprob);
m                 565 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_echo);
m                 573 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 575 netinet6/icmp6.c 			n = m;
m                 576 netinet6/icmp6.c 			m = NULL;
m                 609 netinet6/icmp6.c 				n = m;
m                 610 netinet6/icmp6.c 				m = NULL;
m                 646 netinet6/icmp6.c 		if (!m)
m                 651 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_echoreply);
m                 661 netinet6/icmp6.c 			icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_mldquery);
m                 663 netinet6/icmp6.c 			icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_mldreport);
m                 664 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 666 netinet6/icmp6.c 			mld6_input(m, off);
m                 667 netinet6/icmp6.c 			m = NULL;
m                 675 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_mlddone);
m                 701 netinet6/icmp6.c 			n = m_copym(m, 0, M_COPYALL, M_DONTWAIT);
m                 720 netinet6/icmp6.c 			MGETHDR(n, M_DONTWAIT, m->m_type);
m                 748 netinet6/icmp6.c 			M_DUP_PKTHDR(n, m); /* just for rcvif */
m                 769 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_routersolicit);
m                 774 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 776 netinet6/icmp6.c 			nd6_rs_input(m, off, icmp6len);
m                 777 netinet6/icmp6.c 			m = NULL;
m                 785 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_routeradvert);
m                 790 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 792 netinet6/icmp6.c 			nd6_ra_input(m, off, icmp6len);
m                 793 netinet6/icmp6.c 			m = NULL;
m                 801 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_neighborsolicit);
m                 806 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 808 netinet6/icmp6.c 			nd6_ns_input(m, off, icmp6len);
m                 809 netinet6/icmp6.c 			m = NULL;
m                 817 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_neighboradvert);
m                 822 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 824 netinet6/icmp6.c 			nd6_na_input(m, off, icmp6len);
m                 825 netinet6/icmp6.c 			m = NULL;
m                 833 netinet6/icmp6.c 		icmp6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_redirect);
m                 838 netinet6/icmp6.c 		if ((n = m_copym(m, 0, M_COPYALL, M_DONTWAIT)) == NULL) {
m                 840 netinet6/icmp6.c 			icmp6_redirect_input(m, off);
m                 841 netinet6/icmp6.c 			m = NULL;
m                 861 netinet6/icmp6.c 		    m->m_pkthdr.rcvif ? m->m_pkthdr.rcvif->if_index : 0));
m                 871 netinet6/icmp6.c 		if (icmp6_notify_error(m, off, icmp6len, code)) {
m                 887 netinet6/icmp6.c 	icmp6_rip6_input(&m, *offp);
m                 892 netinet6/icmp6.c 	m_freem(m);
m                 897 netinet6/icmp6.c icmp6_notify_error(m, off, icmp6len, code)
m                 898 netinet6/icmp6.c 	struct mbuf *m;
m                 910 netinet6/icmp6.c 	IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off,
m                 939 netinet6/icmp6.c 				IP6_EXTHDR_GET(eh, struct ip6_ext *, m,
m                 961 netinet6/icmp6.c 				IP6_EXTHDR_GET(rth, struct ip6_rthdr *, m,
m                 981 netinet6/icmp6.c 						       struct ip6_rthdr0 *, m,
m                 996 netinet6/icmp6.c 				IP6_EXTHDR_GET(fh, struct ip6_frag *, m,
m                1027 netinet6/icmp6.c 		IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off,
m                1042 netinet6/icmp6.c 		icmp6dst.sin6_scope_id = in6_addr2scopeid(m->m_pkthdr.rcvif,
m                1060 netinet6/icmp6.c 		icmp6src.sin6_scope_id = in6_addr2scopeid(m->m_pkthdr.rcvif,
m                1074 netinet6/icmp6.c 		ip6cp.ip6c_m = m;
m                1097 netinet6/icmp6.c 	m_freem(m);
m                1110 netinet6/icmp6.c 	struct mbuf *m = ip6cp->ip6c_m;	/* will be necessary for scope issue */
m                1141 netinet6/icmp6.c 		    htons(m->m_pkthdr.rcvif->if_index);
m                1182 netinet6/icmp6.c ni6_input(m, off)
m                1183 netinet6/icmp6.c 	struct mbuf *m;
m                1199 netinet6/icmp6.c 	ip6 = mtod(m, struct ip6_hdr *);
m                1200 netinet6/icmp6.c 	IP6_EXTHDR_GET(ni6, struct icmp6_nodeinfo *, m, off, sizeof(*ni6));
m                1228 netinet6/icmp6.c 	subjlen = m->m_pkthdr.len - off - sizeof(struct icmp6_nodeinfo);
m                1275 netinet6/icmp6.c 			m_copydata(m, off + sizeof(struct icmp6_nodeinfo),
m                1279 netinet6/icmp6.c 				if ((m->m_flags & M_PKTHDR) != 0 &&
m                1280 netinet6/icmp6.c 				    m->m_pkthdr.rcvif) {
m                1282 netinet6/icmp6.c 					    htons(m->m_pkthdr.rcvif->if_index);
m                1314 netinet6/icmp6.c 			IP6_EXTHDR_GET(subj, char *, m,
m                1357 netinet6/icmp6.c 		addrs = ni6_addrs(ni6, m, &ifp, subj);
m                1380 netinet6/icmp6.c 	MGETHDR(n, M_DONTWAIT, m->m_type);
m                1382 netinet6/icmp6.c 		m_freem(m);
m                1385 netinet6/icmp6.c 	M_DUP_PKTHDR(n, m); /* just for rcvif */
m                1402 netinet6/icmp6.c 	bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr));
m                1459 netinet6/icmp6.c 	m_freem(m);
m                1463 netinet6/icmp6.c 	m_freem(m);
m                1487 netinet6/icmp6.c 	struct mbuf *m;
m                1498 netinet6/icmp6.c 	MGET(m, M_DONTWAIT, MT_DATA);
m                1499 netinet6/icmp6.c 	if (m && len > MLEN) {
m                1500 netinet6/icmp6.c 		MCLGET(m, M_DONTWAIT);
m                1501 netinet6/icmp6.c 		if ((m->m_flags & M_EXT) == 0)
m                1504 netinet6/icmp6.c 	if (!m)
m                1506 netinet6/icmp6.c 	m->m_next = NULL;
m                1509 netinet6/icmp6.c 		m->m_len = len;
m                1510 netinet6/icmp6.c 		*mtod(m, char *) = namelen;
m                1511 netinet6/icmp6.c 		bcopy(name, mtod(m, char *) + 1, namelen);
m                1512 netinet6/icmp6.c 		return m;
m                1514 netinet6/icmp6.c 		m->m_len = 0;
m                1515 netinet6/icmp6.c 		cp = mtod(m, char *);
m                1516 netinet6/icmp6.c 		ep = mtod(m, char *) + M_TRAILINGSPACE(m);
m                1520 netinet6/icmp6.c 			return m;
m                1573 netinet6/icmp6.c 		m->m_len = cp - mtod(m, char *);
m                1574 netinet6/icmp6.c 		return m;
m                1581 netinet6/icmp6.c 	if (m)
m                1582 netinet6/icmp6.c 		m_freem(m);
m                1656 netinet6/icmp6.c ni6_addrs(ni6, m, ifpp, subj)
m                1658 netinet6/icmp6.c 	struct mbuf *m;
m                1891 netinet6/icmp6.c 	struct mbuf *m = *mp;
m                1892 netinet6/icmp6.c 	struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
m                1899 netinet6/icmp6.c 	IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6));
m                1909 netinet6/icmp6.c 	(void)in6_recoverscope(&rip6src, &ip6->ip6_src, m->m_pkthdr.rcvif);
m                1928 netinet6/icmp6.c 			if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
m                1949 netinet6/icmp6.c 			ip6_savecontrol(last, m, &opts);
m                1951 netinet6/icmp6.c 		m_adj(m, off);
m                1954 netinet6/icmp6.c 				 m, opts) == 0) {
m                1955 netinet6/icmp6.c 			m_freem(m);
m                1961 netinet6/icmp6.c 		m_freem(m);
m                1981 netinet6/icmp6.c icmp6_reflect(m, off)
m                1982 netinet6/icmp6.c 	struct	mbuf *m;
m                2016 netinet6/icmp6.c 		m_copydata(m, 0, sizeof(nip6), (caddr_t)&nip6);
m                2017 netinet6/icmp6.c 		m_adj(m, l);
m                2019 netinet6/icmp6.c 		if (m->m_len < l) {
m                2020 netinet6/icmp6.c 			if ((m = m_pullup(m, l)) == NULL)
m                2023 netinet6/icmp6.c 		bcopy((caddr_t)&nip6, mtod(m, caddr_t), sizeof(nip6));
m                2027 netinet6/icmp6.c 		if (m->m_len < l) {
m                2028 netinet6/icmp6.c 			if ((m = m_pullup(m, l)) == NULL)
m                2032 netinet6/icmp6.c 	plen = m->m_pkthdr.len - sizeof(struct ip6_hdr);
m                2033 netinet6/icmp6.c 	ip6 = mtod(m, struct ip6_hdr *);
m                2056 netinet6/icmp6.c 	in6_recoverscope(&sa6_src, &ip6->ip6_dst, m->m_pkthdr.rcvif);
m                2062 netinet6/icmp6.c 	in6_recoverscope(&sa6_dst, &t, m->m_pkthdr.rcvif);
m                2078 netinet6/icmp6.c 	if (ia == NULL && IN6_IS_ADDR_LINKLOCAL(&t) && (m->m_flags & M_LOOP)) {
m                2115 netinet6/icmp6.c 	if (m->m_pkthdr.rcvif) {
m                2117 netinet6/icmp6.c 		ip6->ip6_hlim = ND_IFINFO(m->m_pkthdr.rcvif)->chlim;
m                2122 netinet6/icmp6.c 	icmp6->icmp6_cksum = in6_cksum(m, IPPROTO_ICMPV6,
m                2129 netinet6/icmp6.c 	m->m_flags &= ~(M_BCAST|M_MCAST);
m                2137 netinet6/icmp6.c 	if (ip6_output(m, NULL, NULL, IPV6_MINMTU, NULL, &outif, NULL) != 0 &&
m                2147 netinet6/icmp6.c 	m_freem(m);
m                2171 netinet6/icmp6.c icmp6_redirect_input(m, off)
m                2172 netinet6/icmp6.c 	struct mbuf *m;
m                2175 netinet6/icmp6.c 	struct ifnet *ifp = m->m_pkthdr.rcvif;
m                2176 netinet6/icmp6.c 	struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
m                2200 netinet6/icmp6.c 	IP6_EXTHDR_GET(nd_rd, struct nd_redirect *, m, off, icmp6len);
m                2380 netinet6/icmp6.c 	m_freem(m);
m                2385 netinet6/icmp6.c 	m_freem(m);
m                2397 netinet6/icmp6.c 	struct mbuf *m = NULL;	/* newly allocated one */
m                2444 netinet6/icmp6.c 	MGETHDR(m, M_DONTWAIT, MT_HEADER);
m                2445 netinet6/icmp6.c 	if (m && IPV6_MMTU >= MHLEN)
m                2446 netinet6/icmp6.c 		MCLGET(m, M_DONTWAIT);
m                2447 netinet6/icmp6.c 	if (!m)
m                2449 netinet6/icmp6.c 	m->m_pkthdr.rcvif = NULL;
m                2450 netinet6/icmp6.c 	m->m_len = 0;
m                2451 netinet6/icmp6.c 	maxlen = M_TRAILINGSPACE(m);
m                2480 netinet6/icmp6.c 	ip6 = mtod(m, struct ip6_hdr *);
m                2549 netinet6/icmp6.c 	m->m_pkthdr.len = m->m_len = p - (u_char *)ip6;
m                2602 netinet6/icmp6.c 		m->m_pkthdr.len = m->m_len = p - (u_char *)ip6;
m                2605 netinet6/icmp6.c 		m->m_pkthdr.len += m0->m_pkthdr.len;
m                2606 netinet6/icmp6.c 		m_cat(m, m0);
m                2615 netinet6/icmp6.c 	sip6 = mtod(m, struct ip6_hdr *);
m                2631 netinet6/icmp6.c 	ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
m                2635 netinet6/icmp6.c 		= in6_cksum(m, IPPROTO_ICMPV6, sizeof(*ip6), ntohs(ip6->ip6_plen));
m                2638 netinet6/icmp6.c 	if (ip6_output(m, NULL, NULL, 0, NULL, NULL, NULL) != 0)
m                2648 netinet6/icmp6.c 	if (m)
m                2649 netinet6/icmp6.c 		m_freem(m);
m                2672 netinet6/icmp6.c 	struct mbuf *m = *mp;
m                2674 netinet6/icmp6.c 	optlen = m ? m->m_len : 0;
m                2677 netinet6/icmp6.c 		if (op == PRCO_SETOPT && m)
m                2678 netinet6/icmp6.c 			(void)m_free(m);
m                2693 netinet6/icmp6.c 			p = mtod(m, struct icmp6_filter *);
m                2708 netinet6/icmp6.c 		if (m)
m                2709 netinet6/icmp6.c 			(void)m_freem(m);
m                2722 netinet6/icmp6.c 			*mp = m = m_get(M_WAIT, MT_SOOPTS);
m                2723 netinet6/icmp6.c 			m->m_len = sizeof(struct icmp6_filter);
m                2724 netinet6/icmp6.c 			p = mtod(m, struct icmp6_filter *);
m                  88 netinet6/in6_cksum.c in6_cksum(m, nxt, off, len)
m                  89 netinet6/in6_cksum.c 	struct mbuf *m;
m                 116 netinet6/in6_cksum.c 	if (m->m_pkthdr.len < off + len) {
m                 118 netinet6/in6_cksum.c 			m->m_pkthdr.len, off, len);
m                 126 netinet6/in6_cksum.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 150 netinet6/in6_cksum.c 	while (m != NULL && off > 0) {
m                 151 netinet6/in6_cksum.c 		if (m->m_len <= off)
m                 152 netinet6/in6_cksum.c 			off -= m->m_len;
m                 155 netinet6/in6_cksum.c 		m = m->m_next;
m                 157 netinet6/in6_cksum.c 	w = (u_int16_t *)(mtod(m, u_char *) + off);
m                 158 netinet6/in6_cksum.c 	mlen = m->m_len - off;
m                 209 netinet6/in6_cksum.c 	m = m->m_next;
m                 215 netinet6/in6_cksum.c 	for (;m && len; m = m->m_next) {
m                 216 netinet6/in6_cksum.c 		if (m->m_len == 0)
m                 218 netinet6/in6_cksum.c 		w = mtod(m, u_int16_t *);
m                 231 netinet6/in6_cksum.c 			mlen = m->m_len - 1;
m                 234 netinet6/in6_cksum.c 			mlen = m->m_len;
m                  72 netinet6/in6_gif.c in6_gif_output(ifp, family, m)
m                  75 netinet6/in6_gif.c 	struct mbuf *m;
m                  89 netinet6/in6_gif.c 		m_freem(m);
m                 123 netinet6/in6_gif.c 		m_freem(m);
m                 131 netinet6/in6_gif.c 		error = etherip_output(m, &tdb, &mp, 0, 0);
m                 134 netinet6/in6_gif.c 	error = ipip_output(m, &tdb, &mp, 0, 0);
m                 140 netinet6/in6_gif.c 	m = mp;
m                 159 netinet6/in6_gif.c 			m_freem(m);
m                 169 netinet6/in6_gif.c 	error = ip6_output(m, 0, &sc->gif_ro6, IPV6_MINMTU, 0, NULL, NULL);
m                 178 netinet6/in6_gif.c 	struct mbuf *m = *mp;
m                 184 netinet6/in6_gif.c 	if (m->m_flags & (M_AUTH | M_CONF))
m                 187 netinet6/in6_gif.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 208 netinet6/in6_gif.c 	        m->m_pkthdr.rcvif = gifp;
m                 210 netinet6/in6_gif.c 		gifp->if_ibytes += m->m_pkthdr.len;
m                 211 netinet6/in6_gif.c 		ipip_input(m, *offp, gifp);
m                 217 netinet6/in6_gif.c 	ip4_input6(&m, offp, 0); /* XXX last argument ignored */
m                 364 netinet6/in6_var.h #define IN6_ARE_MASKED_ADDR_EQUAL(d, a, m)	(	\
m                 365 netinet6/in6_var.h 	(((d)->s6_addr32[0] ^ (a)->s6_addr32[0]) & (m)->s6_addr32[0]) == 0 && \
m                 366 netinet6/in6_var.h 	(((d)->s6_addr32[1] ^ (a)->s6_addr32[1]) & (m)->s6_addr32[1]) == 0 && \
m                 367 netinet6/in6_var.h 	(((d)->s6_addr32[2] ^ (a)->s6_addr32[2]) & (m)->s6_addr32[2]) == 0 && \
m                 368 netinet6/in6_var.h 	(((d)->s6_addr32[3] ^ (a)->s6_addr32[3]) & (m)->s6_addr32[3]) == 0 )
m                  88 netinet6/ip6_forward.c ip6_forward(m, srcrt)
m                  89 netinet6/ip6_forward.c 	struct mbuf *m;
m                  92 netinet6/ip6_forward.c 	struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
m                 115 netinet6/ip6_forward.c 	if ((m->m_flags & (M_BCAST|M_MCAST)) != 0 ||
m                 128 netinet6/ip6_forward.c 			    m->m_pkthdr.rcvif->if_xname);
m                 130 netinet6/ip6_forward.c 		m_freem(m);
m                 136 netinet6/ip6_forward.c 		icmp6_error(m, ICMP6_TIME_EXCEEDED,
m                 154 netinet6/ip6_forward.c 	mtag = m_tag_find(m, PACKET_TAG_IPSEC_PENDING_TDB, NULL);
m                 165 netinet6/ip6_forward.c 		m_tag_delete(m, mtag);
m                 167 netinet6/ip6_forward.c 		tdb = ipsp_spd_lookup(m, AF_INET6, sizeof(struct ip6_hdr),
m                 194 netinet6/ip6_forward.c 		for (mtag = m_tag_first(m); mtag != NULL;
m                 195 netinet6/ip6_forward.c 		    mtag = m_tag_next(m, mtag)) {
m                 223 netinet6/ip6_forward.c 	rtableid = m->m_pkthdr.pf.rtableid;
m                 235 netinet6/ip6_forward.c 	mcopy = m_copy(m, 0, imin(m->m_pkthdr.len, ICMPV6_PLD_MAXLEN));
m                 262 netinet6/ip6_forward.c 			m_freem(m);
m                 286 netinet6/ip6_forward.c 			m_freem(m);
m                 299 netinet6/ip6_forward.c 	if (in6_addr2scopeid(m->m_pkthdr.rcvif, &ip6->ip6_src) !=
m                 313 netinet6/ip6_forward.c 			    m->m_pkthdr.rcvif->if_xname, rt->rt_ifp->if_xname);
m                 318 netinet6/ip6_forward.c 		m_freem(m);
m                 336 netinet6/ip6_forward.c 			m_freem(m);
m                 340 netinet6/ip6_forward.c 		m->m_flags &= ~(M_BCAST | M_MCAST);	/* just in case */
m                 343 netinet6/ip6_forward.c 		error = ipsp_process_packet(m, tdb, AF_INET6, 0);
m                 350 netinet6/ip6_forward.c 	if (m->m_pkthdr.len > IN6_LINKMTU(rt->rt_ifp)) {
m                 359 netinet6/ip6_forward.c 		m_freem(m);
m                 375 netinet6/ip6_forward.c 	if (rt->rt_ifp == m->m_pkthdr.rcvif && !srcrt && ip6_sendredirects &&
m                 396 netinet6/ip6_forward.c 			m_freem(m);
m                 430 netinet6/ip6_forward.c 			       ip6->ip6_nxt, m->m_pkthdr.rcvif->if_xname,
m                 435 netinet6/ip6_forward.c 		origifp = m->m_pkthdr.rcvif;
m                 445 netinet6/ip6_forward.c 	if (pf_test6(PF_OUT, rt->rt_ifp, &m, NULL) != PF_PASS) {
m                 446 netinet6/ip6_forward.c 		m_freem(m);
m                 449 netinet6/ip6_forward.c 	if (m == NULL)
m                 452 netinet6/ip6_forward.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 455 netinet6/ip6_forward.c 	error = nd6_output(rt->rt_ifp, origifp, m, dst, rt);
m                 182 netinet6/ip6_input.c 	struct mbuf *m;
m                 186 netinet6/ip6_input.c 		IF_DEQUEUE(&ip6intrq, m);
m                 188 netinet6/ip6_input.c 		if (m == 0)
m                 190 netinet6/ip6_input.c 		ip6_input(m);
m                 198 netinet6/ip6_input.c ip6_input(m)
m                 199 netinet6/ip6_input.c 	struct mbuf *m;
m                 215 netinet6/ip6_input.c 	if (m->m_flags & M_EXT) {
m                 216 netinet6/ip6_input.c 		if (m->m_next)
m                 222 netinet6/ip6_input.c 		if (m->m_next) {
m                 223 netinet6/ip6_input.c 			if (m->m_flags & M_LOOP) {
m                 225 netinet6/ip6_input.c 			} else if (m->m_pkthdr.rcvif->if_index < M2MMAX)
m                 226 netinet6/ip6_input.c 				ip6stat.ip6s_m2m[m->m_pkthdr.rcvif->if_index]++;
m                 234 netinet6/ip6_input.c 	in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_receive);
m                 237 netinet6/ip6_input.c 	if (m->m_len < sizeof(struct ip6_hdr)) {
m                 239 netinet6/ip6_input.c 		inifp = m->m_pkthdr.rcvif;
m                 240 netinet6/ip6_input.c 		if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
m                 247 netinet6/ip6_input.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 251 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_hdrerr);
m                 256 netinet6/ip6_input.c 	if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 257 netinet6/ip6_input.c 	    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 259 netinet6/ip6_input.c 	    carp_lsdrop(m, AF_INET6, ip6->ip6_src.s6_addr32,
m                 274 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
m                 279 netinet6/ip6_input.c 	    !(m->m_flags & M_LOOP)) {
m                 287 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
m                 306 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
m                 320 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
m                 325 netinet6/ip6_input.c 	if (ip6_check_rh0hdr(m)) {
m                 327 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_discard);
m                 328 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_hdrerr);
m                 329 netinet6/ip6_input.c 		icmp6_error(m, ICMP6_PARAM_PROB, ICMP6_PARAMPROB_OPTION, 0);
m                 339 netinet6/ip6_input.c 	if (pf_test6(PF_IN, m->m_pkthdr.rcvif, &m, NULL) != PF_PASS)
m                 341 netinet6/ip6_input.c 	if (m == NULL)
m                 344 netinet6/ip6_input.c 	ip6 = mtod(m, struct ip6_hdr *);
m                 350 netinet6/ip6_input.c 		if (m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) {
m                 352 netinet6/ip6_input.c 			deliverifp = m->m_pkthdr.rcvif;
m                 356 netinet6/ip6_input.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
m                 362 netinet6/ip6_input.c 	if ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) {
m                 376 netinet6/ip6_input.c 		ip6->ip6_src.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);
m                 378 netinet6/ip6_input.c 		ip6->ip6_dst.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);
m                 389 netinet6/ip6_input.c 	if ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) != 0 &&
m                 391 netinet6/ip6_input.c 		if (!in6ifa_ifpwithaddr(m->m_pkthdr.rcvif, &ip6->ip6_dst)) {
m                 392 netinet6/ip6_input.c 			icmp6_error(m, ICMP6_DST_UNREACH,
m                 399 netinet6/ip6_input.c 		deliverifp = m->m_pkthdr.rcvif;
m                 409 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_mcast);
m                 414 netinet6/ip6_input.c 		IN6_LOOKUP_MULTI(ip6->ip6_dst, m->m_pkthdr.rcvif, in6m);
m                 426 netinet6/ip6_input.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_discard);
m                 429 netinet6/ip6_input.c 		deliverifp = m->m_pkthdr.rcvif;
m                 434 netinet6/ip6_input.c 	rtableid = m->m_pkthdr.pf.rtableid;
m                 491 netinet6/ip6_input.c 			m->m_flags |= M_ANYCAST6;
m                 535 netinet6/ip6_input.c 	TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrlist, ifa_list) {
m                 550 netinet6/ip6_input.c 	if (m->m_pkthdr.rcvif->if_type == IFT_CARP &&
m                 551 netinet6/ip6_input.c 	    m->m_pkthdr.rcvif->if_flags & IFF_LINK0 &&
m                 553 netinet6/ip6_input.c 	    carp_lsdrop(m, AF_INET6, ip6->ip6_src.s6_addr32,
m                 563 netinet6/ip6_input.c 		in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_discard);
m                 577 netinet6/ip6_input.c 		if (ip6_hopopts_input(&plen, &rtalert, &m, &off)) {
m                 579 netinet6/ip6_input.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_discard);
m                 585 netinet6/ip6_input.c 		ip6 = mtod(m, struct ip6_hdr *);
m                 599 netinet6/ip6_input.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_discard);
m                 600 netinet6/ip6_input.c 			in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_hdrerr);
m                 601 netinet6/ip6_input.c 			icmp6_error(m, ICMP6_PARAM_PROB,
m                 606 netinet6/ip6_input.c 		IP6_EXTHDR_GET(hbh, struct ip6_hbh *, m, sizeof(struct ip6_hdr),
m