/freebsd/sys/dev/liquidio/ |
H A D | lio_rxtx.c | 57 struct mbuf *m_head; in lio_xmit() local 117 m_head = *m_headp; in lio_xmit() 122 finfo->mb = m_head; in lio_xmit() 129 ndata.datasize = m_head->m_pkthdr.len; in lio_xmit() 134 if (m_head->m_pkthdr.csum_flags & CSUM_IP) in lio_xmit() 137 if ((m_head->m_pkthdr.csum_flags & (CSUM_IP_TCP | CSUM_IP6_TCP)) || in lio_xmit() 138 (m_head->m_pkthdr.csum_flags & (CSUM_IP_UDP | CSUM_IP6_UDP))) in lio_xmit() 189 if (m_head->m_pkthdr.csum_flags & (CSUM_IP_TSO | CSUM_IP6_TSO)) { in lio_xmit() 190 tx_info->s.gso_size = m_head->m_pkthdr.tso_segsz; in lio_xmit() 191 tx_info->s.gso_segs = howmany(m_head->m_pkthdr.len, in lio_xmit() [all …]
|
/freebsd/sys/netinet/ |
H A D | tcp_lro.c | 503 lro_free_mbuf_chain(le->m_head); in tcp_lro_free() 612 if (le->m_head != NULL) { in tcp_lro_flush_active() 799 le->m_head->m_pkthdr.lro_tcp_d_len, in tcp_flush_out_entry() 800 le->m_head->m_pkthdr.lro_tcp_d_csum); in tcp_flush_out_entry() 802 le->m_head->m_pkthdr.lro_tcp_d_len + in tcp_flush_out_entry() 804 le->m_head->m_pkthdr.csum_flags = CSUM_DATA_VALID | in tcp_flush_out_entry() 806 le->m_head->m_pkthdr.csum_data = 0xffff; in tcp_flush_out_entry() 808 le->m_head->m_pkthdr.csum_flags |= CSUM_TLS_DECRYPTED; in tcp_flush_out_entry() 812 le->m_head->m_pkthdr.lro_tcp_d_len, in tcp_flush_out_entry() 813 le->m_head->m_pkthdr.lro_tcp_d_csum); in tcp_flush_out_entry() [all …]
|
H A D | tcp_lro_hpts.c | 173 if (le->m_head) { in tcp_lro_log() 174 log.u_bbr.flex3 = le->m_head->m_pkthdr.lro_nsegs; in tcp_lro_log() 175 log.u_bbr.flex4 = le->m_head->m_pkthdr.lro_tcp_d_len; in tcp_lro_log() 176 log.u_bbr.flex5 = le->m_head->m_pkthdr.len; in tcp_lro_log() 177 log.u_bbr.delRate = le->m_head->m_flags; in tcp_lro_log() 178 log.u_bbr.rttProp = le->m_head->m_pkthdr.rcv_tstmp; in tcp_lro_log() 189 log.u_bbr.bw_inuse = (uintptr_t)le->m_head; in tcp_lro_log() 470 STAILQ_HEAD(, mbuf) q = { le->m_head, in tcp_queue_pkts() 473 le->m_head = NULL; in tcp_queue_pkts() 605 for (pp = &le->m_head; *pp != NULL; ) { in _tcp_lro_flush_tcphpts() [all …]
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_os.c | 975 struct mbuf *m_head; in qla_start() local 1003 m_head = if_dequeue(ifp); in qla_start() 1005 if (m_head == NULL) { in qla_start() 1011 if (qla_send(ha, &m_head)) { in qla_start() 1012 if (m_head == NULL) in qla_start() 1016 if_sendq_prepend(ifp, m_head); in qla_start() 1020 ETHER_BPF_MTAP(ifp, m_head); in qla_start() 1035 struct mbuf *m_head = *m_headp; in qla_send() local 1043 __func__, ret, m_head->m_pkthdr.len); in qla_send() 1047 ret = bus_dmamap_load_mbuf_sg(ha->tx_tag, map, m_head, segs, &nsegs, in qla_send() [all …]
|
H A D | qla_isr.c | 95 mp = rxb->m_head; in qla_rx_intr() 104 rxb->m_head = NULL; in qla_rx_intr() 109 rxb->m_head = NULL; in qla_rx_intr() 182 (rxb->m_head)->m_pkthdr.len); in qla_replenish_jumbo_rx() 194 rxb->m_head = NULL; in qla_replenish_jumbo_rx() 233 (rxb->m_head)->m_pkthdr.len); in qla_replenish_normal_rx() 245 rxb->m_head = NULL; in qla_replenish_normal_rx()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/ |
H A D | LibCxxList.cpp | 119 ValueObject *m_head = nullptr; member in __anon1be7be510111::AbstractListFrontEnd 166 m_head = nullptr; in Update() 199 m_slow_runner = ListEntry(m_head).next(); in HasLoop() 225 ListIterator current(m_head); in GetItem() 247 ListEntry current(m_head); in CalculateNumChildren() 260 if (!m_head) in GetChildAtIndex() 301 m_head = impl_sp->GetChildMemberWithName("__next_").get(); in Update() 314 if (!m_head || !m_tail || m_node_address == 0) in CalculateNumChildren() 326 uint64_t next_val = m_head->GetValueAsUnsigned(0); in CalculateNumChildren() 335 ListEntry current(m_head); in CalculateNumChildren() [all …]
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_os.c | 1043 struct mbuf *m_head; in qls_start() local 1081 m_head = if_dequeue(ifp); in qls_start() 1083 if (m_head == NULL) { in qls_start() 1089 if (qls_send(ha, &m_head)) { in qls_start() 1090 if (m_head == NULL) in qls_start() 1094 if_sendq_prepend(ifp, m_head); in qls_start() 1098 ETHER_BPF_MTAP(ifp, m_head); in qls_start() 1114 struct mbuf *m_head = *m_headp; in qls_send() local 1120 if (M_HASHTYPE_GET(m_head) != M_HASHTYPE_NONE) in qls_send() 1121 txr_idx = m_head->m_pkthdr.flowid & (ha->num_tx_rings - 1); in qls_send() [all …]
|
H A D | qls_isr.c | 56 if (txb->m_head) { in qls_tx_comp() 61 m_freem(txb->m_head); in qls_tx_comp() 63 txb->m_head = NULL; in qls_tx_comp() 88 if (rxb->m_head == NULL) { in qls_replenish_rx() 93 rxb->m_head = NULL; in qls_replenish_rx() 98 if (rxb->m_head != NULL) { in qls_replenish_rx() 161 mp = rxb->m_head; in qls_rx_comp() 162 rxb->m_head = NULL; in qls_rx_comp()
|
/freebsd/sys/dev/hyperv/netvsc/ |
H A D | if_hn.c | 754 * NOTE: If this function failed, the m_head would be freed. 757 hn_tso_fixup(struct mbuf *m_head) in hn_tso_fixup() argument 763 KASSERT(M_WRITABLE(m_head), ("TSO mbuf not writable")); in hn_tso_fixup() 765 PULLUP_HDR(m_head, sizeof(*evl)); in hn_tso_fixup() 766 evl = mtod(m_head, struct ether_vlan_header *); in hn_tso_fixup() 771 m_head->m_pkthdr.l2hlen = ehlen; in hn_tso_fixup() 774 if (m_head->m_pkthdr.csum_flags & CSUM_IP_TSO) { in hn_tso_fixup() 778 PULLUP_HDR(m_head, ehlen + sizeof(*ip)); in hn_tso_fixup() 779 ip = mtodo(m_head, ehlen); in hn_tso_fixup() 781 m_head in hn_tso_fixup() 821 hn_set_hlen(struct mbuf * m_head) hn_set_hlen() argument 890 hn_check_tcpsyn(struct mbuf * m_head,int * tcpsyn) hn_check_tcpsyn() argument 2653 hn_txdesc_dmamap_load(struct hn_tx_ring * txr,struct hn_txdesc * txd,struct mbuf ** m_head,bus_dma_segment_t * segs,int * nsegs) hn_txdesc_dmamap_load() argument 3053 struct mbuf *m_head = *m_head0; hn_encap() local 5707 struct mbuf *m_head; hn_start_locked() local 5869 struct mbuf *m_head; hn_xmit() local [all...] |
/freebsd/sys/dev/sge/ |
H A D | if_sge.c | 1383 sge_encap(struct sge_softc *sc, struct mbuf **m_head) in sge_encap() argument 1396 if (((*m_head)->m_pkthdr.csum_flags & CSUM_TSO) != 0) { in sge_encap() 1402 if (M_WRITABLE(*m_head) == 0) { in sge_encap() 1404 m = m_dup(*m_head, M_NOWAIT); in sge_encap() 1405 m_freem(*m_head); in sge_encap() 1407 *m_head = NULL; in sge_encap() 1410 *m_head = m; in sge_encap() 1413 m = m_pullup(*m_head, ip_off); in sge_encap() 1415 *m_head = NULL; in sge_encap() 1424 *m_head = NULL; in sge_encap() [all …]
|
/freebsd/sys/dev/vr/ |
H A D | if_vr.c | 1786 vr_encap(struct vr_softc *sc, struct mbuf **m_head) in vr_encap() argument 1798 M_ASSERTPKTHDR((*m_head)); in vr_encap() 1807 m = m_defrag(*m_head, M_NOWAIT); in vr_encap() 1809 m_freem(*m_head); in vr_encap() 1810 *m_head = NULL; in vr_encap() 1813 *m_head = m; in vr_encap() 1821 if ((*m_head)->m_pkthdr.len < VR_MIN_FRAMELEN) { in vr_encap() 1822 m = *m_head; in vr_encap() 1826 m = m_dup(*m_head, M_NOWAIT); in vr_encap() 1827 m_freem(*m_head); in vr_encap() [all …]
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_os.c | 1261 struct mbuf *m_head = *m_headp; in qla_send() local 1267 if ((NULL != ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head) || in qla_send() 1271 ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head)); in qla_send() 1275 ha->tx_ring[txr_idx].tx_buf[tx_idx].m_head)); in qla_send() 1277 if (m_head) in qla_send() 1278 m_freem(m_head); in qla_send() 1286 ret = bus_dmamap_load_mbuf_sg(ha->tx_tag, map, m_head, segs, &nsegs, in qla_send() 1293 m_head->m_pkthdr.len)); in qla_send() 1295 m = m_defrag(m_head, M_NOWAIT); in qla_send() 1298 m_freem(m_head); in qla_send() [all …]
|
/freebsd/sys/powerpc/ps3/ |
H A D | if_glc.c | 70 static int glc_encap(struct glc_softc *sc, struct mbuf **m_head, 602 glc_encap(struct glc_softc *sc, struct mbuf **m_head, bus_addr_t *pktdesc) in glc_encap() argument 624 for (m = *m_head; m != NULL; m = m->m_next) in glc_encap() 628 m = m_collapse(*m_head, M_NOWAIT, nsegs_max); in glc_encap() 630 m_freem(*m_head); in glc_encap() 631 *m_head = NULL; in glc_encap() 634 *m_head = m; in glc_encap() 638 *m_head, segs, &nsegs, BUS_DMA_NOWAIT); in glc_encap() 640 m_freem(*m_head); in glc_encap() 641 *m_head = NULL; in glc_encap() [all …]
|
/freebsd/sys/dev/re/ |
H A D | if_re.c | 2729 re_encap(struct rl_softc *sc, struct mbuf **m_head) in re_encap() argument 2742 M_ASSERTPKTHDR((*m_head)); in re_encap() 2756 (*m_head)->m_pkthdr.len < RL_IP4CSUMTX_PADLEN && in re_encap() 2757 ((*m_head)->m_pkthdr.csum_flags & CSUM_IP) != 0) { in re_encap() 2758 padlen = RL_MIN_FRAMELEN - (*m_head)->m_pkthdr.len; in re_encap() 2759 if (M_WRITABLE(*m_head) == 0) { in re_encap() 2761 m_new = m_dup(*m_head, M_NOWAIT); in re_encap() 2762 m_freem(*m_head); in re_encap() 2764 *m_head = NULL; in re_encap() 2767 *m_head = m_new; in re_encap() [all …]
|
/freebsd/sys/dev/sis/ |
H A D | if_sis.c | 1758 sis_encap(struct sis_softc *sc, struct mbuf **m_head) in sis_encap() argument 1771 (*m_head)->m_pkthdr.len < SIS_MIN_FRAMELEN) { in sis_encap() 1772 m = *m_head; in sis_encap() 1776 m = m_dup(*m_head, M_NOWAIT); in sis_encap() 1777 m_freem(*m_head); in sis_encap() 1779 *m_head = NULL; in sis_encap() 1782 *m_head = m; in sis_encap() 1787 m_freem(*m_head); in sis_encap() 1788 *m_head = NULL; in sis_encap() 1799 *m_head = m; in sis_encap() [all …]
|
/freebsd/sys/dev/ale/ |
H A D | if_ale.c | 1581 ale_encap(struct ale_softc *sc, struct mbuf **m_head) in ale_encap() argument 1595 M_ASSERTPKTHDR((*m_head)); in ale_encap() 1597 m = *m_head; in ale_encap() 1616 m = m_dup(*m_head, M_NOWAIT); in ale_encap() 1618 m_freem(*m_head); in ale_encap() 1620 *m_head = NULL; in ale_encap() 1623 *m_head = m; in ale_encap() 1633 m = m_defrag(*m_head, M_NOWAIT); in ale_encap() 1635 m_freem(*m_head); in ale_encap() 1636 *m_head = NULL; in ale_encap() [all …]
|
/freebsd/sys/dev/vte/ |
H A D | if_vte.c | 969 vte_encap(struct vte_softc *sc, struct mbuf **m_head) in vte_encap() argument 978 M_ASSERTPKTHDR((*m_head)); in vte_encap() 981 m = *m_head; in vte_encap() 1030 m = m_dup(*m_head, M_NOWAIT); in vte_encap() 1032 m_freem(*m_head); in vte_encap() 1034 *m_head = NULL; in vte_encap() 1037 *m_head = m; in vte_encap() 1042 m = m_defrag(*m_head, M_NOWAIT); in vte_encap() 1044 m_freem(*m_head); in vte_encap() 1045 *m_head = NULL; in vte_encap() [all …]
|
/freebsd/sys/dev/bfe/ |
H A D | if_bfe.c | 1498 bfe_encap(struct bfe_softc *sc, struct mbuf **m_head) in bfe_encap() argument 1510 M_ASSERTPKTHDR((*m_head)); in bfe_encap() 1514 error = bus_dmamap_load_mbuf_sg(sc->bfe_txmbuf_tag, r->bfe_map, *m_head, in bfe_encap() 1517 m = m_collapse(*m_head, M_NOWAIT, BFE_MAXTXSEGS); in bfe_encap() 1519 m_freem(*m_head); in bfe_encap() 1520 *m_head = NULL; in bfe_encap() 1523 *m_head = m; in bfe_encap() 1525 *m_head, txsegs, &nsegs, 0); in bfe_encap() 1527 m_freem(*m_head); in bfe_encap() 1528 *m_head = NULL; in bfe_encap() [all …]
|
/freebsd/sys/dev/gem/ |
H A D | if_gem.c | 111 static int gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head); 1071 gem_load_txmbuf(struct gem_softc *sc, struct mbuf **m_head) in gem_load_txmbuf() argument 1089 if (((*m_head)->m_pkthdr.csum_flags & sc->sc_csum_features) != 0) { in gem_load_txmbuf() 1090 if (M_WRITABLE(*m_head) == 0) { in gem_load_txmbuf() 1091 m = m_dup(*m_head, M_NOWAIT); in gem_load_txmbuf() 1092 m_freem(*m_head); in gem_load_txmbuf() 1093 *m_head = m; in gem_load_txmbuf() 1098 m = m_pullup(*m_head, offset + sizeof(struct ip)); in gem_load_txmbuf() 1100 *m_head = NULL; in gem_load_txmbuf() 1108 *m_head = m; in gem_load_txmbuf() [all …]
|
/freebsd/sys/dev/jme/ |
H A D | if_jme.c | 1668 jme_encap(struct jme_softc *sc, struct mbuf **m_head) in jme_encap() argument 1679 M_ASSERTPKTHDR((*m_head)); in jme_encap() 1681 if (((*m_head)->m_pkthdr.csum_flags & CSUM_TSO) != 0) { in jme_encap() 1695 if (M_WRITABLE(*m_head) == 0) { in jme_encap() 1697 m = m_dup(*m_head, M_NOWAIT); in jme_encap() 1698 m_freem(*m_head); in jme_encap() 1700 *m_head = NULL; in jme_encap() 1703 *m_head = m; in jme_encap() 1706 m = m_pullup(*m_head, ip_off); in jme_encap() 1708 *m_head = NULL; in jme_encap() [all …]
|
/freebsd/sys/dev/xl/ |
H A D | if_xl.c | 2327 xl_encap(struct xl_softc *sc, struct xl_chain *c, struct mbuf **m_head) in xl_encap() argument 2336 error = bus_dmamap_load_mbuf_sg(sc->xl_mtag, c->xl_map, *m_head, in xl_encap() 2353 m_new = m_collapse(*m_head, M_NOWAIT, XL_MAXFRAGS); in xl_encap() 2355 m_freem(*m_head); in xl_encap() 2356 *m_head = NULL; in xl_encap() 2359 *m_head = m_new; in xl_encap() 2362 *m_head, sc->xl_cdata.xl_tx_segs, &nseg, BUS_DMA_NOWAIT); in xl_encap() 2364 m_freem(*m_head); in xl_encap() 2365 *m_head = NULL; in xl_encap() 2374 m_freem(*m_head); in xl_encap() [all …]
|
/freebsd/sys/dev/ste/ |
H A D | if_ste.c | 1806 ste_encap(struct ste_softc *sc, struct mbuf **m_head, struct ste_chain *txc) in ste_encap() argument 1815 M_ASSERTPKTHDR((*m_head)); in ste_encap() 1818 txc->ste_map, *m_head, txsegs, &nsegs, 0); in ste_encap() 1820 m = m_collapse(*m_head, M_NOWAIT, STE_MAXFRAGS); in ste_encap() 1822 m_freem(*m_head); in ste_encap() 1823 *m_head = NULL; in ste_encap() 1826 *m_head = m; in ste_encap() 1828 txc->ste_map, *m_head, txsegs, &nsegs, 0); in ste_encap() 1830 m_freem(*m_head); in ste_encap() 1831 *m_head = NULL; in ste_encap() [all …]
|
/freebsd/sys/dev/vge/ |
H A D | if_vge.c | 1808 vge_encap(struct vge_softc *sc, struct mbuf **m_head) in vge_encap() argument 1819 M_ASSERTPKTHDR((*m_head)); in vge_encap() 1822 if ((*m_head)->m_pkthdr.len < VGE_MIN_FRAMELEN) { in vge_encap() 1823 m = *m_head; in vge_encap() 1827 m = m_dup(*m_head, M_NOWAIT); in vge_encap() 1828 m_freem(*m_head); in vge_encap() 1830 *m_head = NULL; in vge_encap() 1833 *m_head = m; in vge_encap() 1838 m_freem(*m_head); in vge_encap() 1839 *m_head = NULL; in vge_encap() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_os.c | 3245 struct mbuf *m_head = *m_headp; in qlnx_send() local 3290 ret = bus_dmamap_load_mbuf_sg(ha->tx_tag, map, m_head, segs, &nsegs, in qlnx_send() 3294 if (m_head->m_pkthdr.csum_flags & CSUM_TSO) { in qlnx_send() 3296 fp->tx_tso_min_pkt_len = m_head->m_pkthdr.len; in qlnx_send() 3297 fp->tx_tso_min_pkt_len = m_head->m_pkthdr.len; in qlnx_send() 3299 if (fp->tx_tso_min_pkt_len > m_head->m_pkthdr.len) in qlnx_send() 3301 m_head->m_pkthdr.len; in qlnx_send() 3302 if (fp->tx_tso_max_pkt_len < m_head->m_pkthdr.len) in qlnx_send() 3304 m_head->m_pkthdr.len; in qlnx_send() 3309 if (m_head->m_pkthdr.csum_flags & CSUM_TSO) in qlnx_send() [all …]
|
/freebsd/sys/dev/age/ |
H A D | if_age.c | 1471 age_encap(struct age_softc *sc, struct mbuf **m_head) in age_encap() argument 1485 M_ASSERTPKTHDR((*m_head)); in age_encap() 1487 m = *m_head; in age_encap() 1506 m = m_dup(*m_head, M_NOWAIT); in age_encap() 1508 m_freem(*m_head); in age_encap() 1510 *m_head = NULL; in age_encap() 1513 *m_head = m; in age_encap() 1518 *m_head = NULL; in age_encap() 1530 *m_head = NULL; in age_encap() 1536 *m_head = NULL; in age_encap() [all …]
|