Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 12 of 12) sorted by relevance

/haiku/src/add-ons/kernel/drivers/network/ether/rtl8139/dev/rl/
H A Dif_rl.c1118 int total_len = 0; in rl_rxeof() local
1160 total_len = rxstat >> 16; in rl_rxeof()
1161 if (total_len == RL_RXSTAT_UNFINISHED) in rl_rxeof()
1165 total_len < ETHER_MIN_LEN || in rl_rxeof()
1166 total_len > ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN) { in rl_rxeof()
1174 rx_bytes += total_len + 4; in rl_rxeof()
1183 total_len -= ETHER_CRC_LEN; in rl_rxeof()
1198 if (total_len > wrap) { in rl_rxeof()
1199 m = m_devget(rxbufpos, total_len, RL_ETHER_ALIGN, ifp, in rl_rxeof()
1202 m_copyback(m, wrap, total_len - wrap, in rl_rxeof()
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/3com/dev/xl/
H A Dif_xl.c1834 int total_len; in xl_rxeof() local
1852 total_len = rxstat & XL_RXSTAT_LENMASK; in xl_rxeof()
1861 if (total_len > XL_MAX_FRAMELEN) in xl_rxeof()
1917 m->m_pkthdr.len = m->m_len = total_len; in xl_rxeof()
2357 int error, i, nseg, total_len; local
2406 total_len = 0;
2414 total_len += sc->xl_cdata.xl_tx_segs[i].ds_len;
2432 status = total_len;
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/dev/dc/
H A Dif_dc.c2751 int i, total_len; in dc_pnic_rx_bug_war() local
2774 total_len = DC_RXBYTES(rxstat); in dc_pnic_rx_bug_war()
2785 ptr -= total_len; in dc_pnic_rx_bug_war()
2794 bcopy(ptr, mtod(m, char *), total_len); in dc_pnic_rx_bug_war()
2860 int i, total_len, rx_npkts; in dc_rxeof() local
2887 total_len = DC_RXBYTES(rxstat); in dc_rxeof()
2898 total_len = DC_RXBYTES(rxstat); in dc_rxeof()
2929 total_len -= ETHER_CRC_LEN; in dc_rxeof()
2946 m->m_pkthdr.len = m->m_len = total_len; in dc_rxeof()
2951 m0 = m_devget(mtod(m, char *), total_len, in dc_rxeof()
/haiku/src/add-ons/kernel/drivers/network/ether/rtl81xx/dev/re/
H A Dif_re.c784 int total_len, i, error = 0, phyaddr; in re_diag() local
885 total_len = RL_RXBYTES(cur_rx); in re_diag()
888 if (total_len != ETHER_MIN_LEN) { in re_diag()
2175 int i, rxerr, total_len; in re_rxeof() local
2206 total_len = rxstat & sc->rl_rxlenmask; in re_rxeof()
2272 total_len > 8191 && in re_rxeof()
2310 m->m_len = total_len; in re_rxeof()
2312 m->m_len = total_len % RE_RX_DESC_BUFLEN; in re_rxeof()
2333 m->m_pkthdr.len = total_len - ETHER_CRC_LEN; in re_rxeof()
2336 (total_len - ETHER_CRC_LEN); in re_rxeof()
/haiku/src/add-ons/kernel/drivers/network/ether/ipro100/dev/fxp/
H A Dif_fxp.c1967 int total_len; in fxp_intr_body() local
1975 total_len = le16toh(rfa->actual_size) & 0x3fff; in fxp_intr_body()
1979 total_len -= 2; in fxp_intr_body()
1981 if (total_len < (int)sizeof(struct ether_header) || in fxp_intr_body()
1982 total_len > (MCLBYTES - RFA_ALIGNMENT_FUDGE - in fxp_intr_body()
1991 m->m_pkthdr.len = m->m_len = total_len; in fxp_intr_body()
1996 fxp_rxcsum(sc, ifp, m, status, total_len); in fxp_intr_body()
/haiku/src/add-ons/kernel/drivers/network/ether/rtl8125/dev/pci/
H A Dif_rge.c1329 int i, total_len, rx = 0; local
1345 total_len = rxstat & RGE_RDCMDSTS_FRAGLEN;
1381 m->m_len = total_len;
1399 m->m_pkthdr.len = total_len - ETHER_CRC_LEN;
1402 (total_len - ETHER_CRC_LEN);
/haiku/src/add-ons/kernel/drivers/network/ether/dec21xxx/dev/de/
H A Dif_de.c3336 int total_len = 0, last_offset = 0; in tulip_rx_intr() local
3395 total_len++; in tulip_rx_intr()
3413 for (me = ms; total_len > 0; total_len--) { in tulip_rx_intr()
3431 total_len = ((DESC_STATUS(eop) >> 16) & 0x7FFF) - ETHER_CRC_LEN; in tulip_rx_intr()
3434 me->m_len = total_len - last_offset; in tulip_rx_intr()
3438 total_len); in tulip_rx_intr()
3502 m0 = m_devget(mtod(ms, caddr_t), total_len, ETHER_ALIGN, ifp, NULL); in tulip_rx_intr()
3518 ms->m_pkthdr.len = total_len; in tulip_rx_intr()
/haiku/src/add-ons/kernel/drivers/network/ether/sis900/dev/sis/
H A Dif_sis.c1481 int prog, rx_cons, rx_npkts = 0, total_len; in sis_rxeof() local
1507 total_len = (rxstat & SIS_CMDSTS_BUFLEN) - ETHER_CRC_LEN; in sis_rxeof()
1509 total_len <= (ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN - in sis_rxeof()
1529 m->m_pkthdr.len = m->m_len = total_len; in sis_rxeof()
/haiku/src/add-ons/kernel/drivers/network/ether/vt612x/dev/vge/
H A Dif_vge.c1438 int prod, prog, total_len; in vge_rxeof() local
1462 total_len = VGE_RXBYTES(rxstat); in vge_rxeof()
1524 m->m_len = total_len % (MCLBYTES - VGE_RX_BUF_ALIGN); in vge_rxeof()
1542 m->m_pkthdr.len = total_len - ETHER_CRC_LEN; in vge_rxeof()
1546 (total_len - ETHER_CRC_LEN); in vge_rxeof()
/haiku/src/add-ons/kernel/drivers/network/ether/vmx/dev/vmxnet3/
H A Dif_vmx.c1508 uint16_t total_len; in vmxnet3_isc_rxd_pkt_get() local
1600 total_len = 0; in vmxnet3_isc_rxd_pkt_get()
1613 total_len += rxcd->len; in vmxnet3_isc_rxd_pkt_get()
1626 ri->iri_len = total_len; in vmxnet3_isc_rxd_pkt_get()
/haiku/src/add-ons/kernel/drivers/network/ether/via_rhine/dev/vr/
H A Dif_vr.c1297 int cons, prog, total_len, rx_npkts; in vr_rxeof() local
1375 total_len = VR_RXBYTES(rxstat); in vr_rxeof()
1376 total_len -= ETHER_CRC_LEN; in vr_rxeof()
1377 m->m_pkthdr.len = m->m_len = total_len; in vr_rxeof()
/haiku/src/add-ons/kernel/drivers/network/ether/rdc/dev/vte/
H A Dif_vte.c1499 uint16_t status, total_len; in vte_rxeof() local
1513 total_len = VTE_RX_LEN(le16toh(rxd->rx_desc->drlen)); in vte_rxeof()
1533 m->m_pkthdr.len = m->m_len = total_len - ETHER_CRC_LEN; in vte_rxeof()