Searched refs:cur_rx (Results 1 - 24 of 24) sorted by relevance

/freebsd-11-stable/sys/dev/tx/
H A Dif_txvar.h109 u_int32_t cur_rx; member in struct:__anon11764
H A Dif_tx.c741 while ((sc->rx_desc[sc->cur_rx].status & 0x8000) == 0) {
742 buf = sc->rx_buffer + sc->cur_rx;
743 desc = sc->rx_desc + sc->cur_rx;
746 sc->cur_rx = (sc->cur_rx + 1) & RX_RING_MASK;
1629 sc->cur_rx = sc->cur_tx = sc->dirty_tx = sc->pending_txs = 0;
/freebsd-11-stable/sys/mips/idt/
H A Dif_kr.c1436 struct kr_desc *cur_rx; local
1448 cur_rx = &sc->kr_rdata.kr_rx_ring[cons];
1452 if ((cur_rx->kr_ctl & KR_CTL_D) == 0)
1457 packet_len = KR_PKTSIZE(cur_rx->kr_devcs);
1458 count = m->m_len - KR_DMASIZE(cur_rx->kr_ctl);
1466 else if ((cur_rx->kr_devcs & KR_DMARX_DEVCS_LD) == 0)
1468 else if ((cur_rx->kr_devcs & KR_DMARX_DEVCS_ROK) != 0) {
1486 cur_rx->kr_ctl = rxd->saved_ctl;
1487 cur_rx->kr_ca = rxd->saved_ca;
1488 cur_rx
[all...]
/freebsd-11-stable/sys/dev/wb/
H A Dif_wb.c878 struct wb_chain_onefrag *cur_rx; local
890 cur_rx = sc->wb_cdata.wb_rx_head;
891 sc->wb_cdata.wb_rx_head = cur_rx->wb_nextdesc;
893 m = cur_rx->wb_mbuf;
896 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) < WB_MIN_FRAMELEN) ||
897 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) > 1536) ||
901 wb_newbuf(sc, cur_rx, m);
913 wb_newbuf(sc, cur_rx, m);
918 total_len = WB_RXBYTES(cur_rx->wb_ptr->wb_status);
931 wb_newbuf(sc, cur_rx,
[all...]
/freebsd-11-stable/sys/dev/tl/
H A Dif_tl.c1418 struct tl_chain_onefrag *cur_rx; local
1426 cur_rx = sc->tl_cdata.tl_rx_head;
1427 if (!(cur_rx->tl_ptr->tlist_cstat & TL_CSTAT_FRAMECMP))
1430 sc->tl_cdata.tl_rx_head = cur_rx->tl_next;
1431 m = cur_rx->tl_mbuf;
1432 total_len = cur_rx->tl_ptr->tlist_frsize;
1434 if (tl_newbuf(sc, cur_rx) == ENOBUFS) {
1436 cur_rx->tl_ptr->tlist_frsize = MCLBYTES;
1437 cur_rx->tl_ptr->tlist_cstat = TL_CSTAT_READY;
1438 cur_rx
[all...]
/freebsd-11-stable/sys/dev/rl/
H A Dif_rl.c1124 uint16_t cur_rx; local
1133 cur_rx = (CSR_READ_2(sc, RL_CURRXADDR) + 16) % RL_RXBUFLEN;
1138 if (limit < cur_rx)
1139 max_bytes = (RL_RXBUFLEN - cur_rx) + limit;
1141 max_bytes = limit - cur_rx;
1151 rxbufpos = sc->rl_cdata.rl_rx_buf + cur_rx;
1195 ((cur_rx + sizeof(uint32_t)) % RL_RXBUFLEN);
1206 cur_rx = (total_len - wrap + ETHER_CRC_LEN);
1210 cur_rx += total_len + 4 + ETHER_CRC_LEN;
1214 cur_rx
[all...]
H A Dif_rlreg.h588 uint16_t cur_rx; member in struct:rl_chain_data
/freebsd-11-stable/sys/dev/ste/
H A Dif_ste.c593 struct ste_chain_onefrag *cur_rx; local
603 cur_rx = sc->ste_cdata.ste_rx_head;
605 cur_rx = cur_rx->ste_next) {
606 rxstat = le32toh(cur_rx->ste_ptr->ste_status);
626 cur_rx->ste_ptr->ste_status = 0;
631 m = cur_rx->ste_mbuf;
641 if (ste_newbuf(sc, cur_rx) != 0) {
643 cur_rx->ste_ptr->ste_status = 0;
657 sc->ste_cdata.ste_rx_head = cur_rx;
1621 struct ste_chain_onefrag *cur_rx; local
[all...]
/freebsd-11-stable/sys/dev/lge/
H A Dif_lge.c889 struct lge_rx_desc *cur_rx; local
903 cur_rx = &sc->lge_ldata->lge_rx_list[i];
904 rxctl = cur_rx->lge_ctl;
905 rxsts = cur_rx->lge_sts;
906 m = cur_rx->lge_mbuf;
907 cur_rx->lge_mbuf = NULL;
908 total_len = LGE_RXBYTES(cur_rx);
/freebsd-11-stable/sys/dev/my/
H A Dif_my.c1111 struct my_chain_onefrag *cur_rx; local
1119 cur_rx = sc->my_cdata.my_rx_head;
1120 sc->my_cdata.my_rx_head = cur_rx->my_nextdesc;
1124 cur_rx->my_ptr->my_status = MY_OWNByNIC;
1132 m = m_devget(mtod(cur_rx->my_mbuf, char *),
1134 cur_rx->my_ptr->my_status = MY_OWNByNIC;
1140 m = cur_rx->my_mbuf;
1148 if (my_newbuf(sc, cur_rx) == ENOBUFS) {
1150 cur_rx->my_ptr->my_status = MY_OWNByNIC;
/freebsd-11-stable/sys/dev/netmap/
H A Dif_re_netmap.h208 struct rl_desc *cur_rx = &sc->rl_ldata.rl_rx_list[nic_i]; local
209 uint32_t rxstat = le32toh(cur_rx->rl_cmdstat);
/freebsd-11-stable/sys/dev/ti/
H A Dif_ti.c2781 struct ti_rx_desc *cur_rx; local
2787 cur_rx =
2789 rxidx = cur_rx->ti_idx;
2790 ti_len = cur_rx->ti_len;
2793 if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) {
2795 vlan_tag = cur_rx->ti_vlan_tag;
2798 if (cur_rx->ti_flags & TI_BDFLAG_JUMBO_RING) {
2803 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
2820 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
2832 ti_hdr_split(m, TI_HOSTADDR(cur_rx
[all...]
/freebsd-11-stable/sys/dev/xl/
H A Dif_xl.c1832 struct xl_chain_onefrag *cur_rx; local
1849 cur_rx = sc->xl_cdata.xl_rx_head;
1850 sc->xl_cdata.xl_rx_head = cur_rx->xl_next;
1871 cur_rx->xl_ptr->xl_status = 0;
1886 cur_rx->xl_ptr->xl_status = 0;
1893 bus_dmamap_sync(sc->xl_mtag, cur_rx->xl_map,
1895 m = cur_rx->xl_mbuf;
1904 if (xl_newbuf(sc, cur_rx)) {
1906 cur_rx->xl_ptr->xl_status = 0;
/freebsd-11-stable/sys/dev/pcn/
H A Dif_pcn.c840 struct pcn_rx_desc *cur_rx; local
849 cur_rx = &sc->pcn_ldata->pcn_rx_list[i];
859 if (cur_rx->pcn_rxstat & PCN_RXSTAT_ERR) {
879 cur_rx->pcn_rxlen - ETHER_CRC_LEN;
/freebsd-11-stable/sys/dev/bge/
H A Dif_bge.c4347 struct bge_rx_bd *cur_rx; local
4361 cur_rx = &sc->bge_ldata.bge_rx_return_ring[rx_cons];
4363 rxidx = cur_rx->bge_idx;
4367 cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) {
4369 vlan_tag = cur_rx->bge_vlan_tag;
4372 if (cur_rx->bge_flags & BGE_RXBDFLAG_JUMBO_RING) {
4375 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
4388 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
4408 cur_rx->bge_len);
4412 m->m_pkthdr.len = m->m_len = cur_rx
4469 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m) argument
[all...]
/freebsd-11-stable/sys/dev/dc/
H A Dif_dc.c2746 struct dc_desc *cur_rx; local
2754 cur_rx = &sc->dc_ldata.dc_rx_list[idx];
2794 cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG);
2811 struct dc_desc *cur_rx; local
2817 cur_rx = &sc->dc_ldata.dc_rx_list[pos];
2818 if (!(le32toh(cur_rx->dc_status) & DC_RXSTAT_OWN))
2858 struct dc_desc *cur_rx; local
2879 cur_rx = &sc->dc_ldata.dc_rx_list[i];
2880 rxstat = le32toh(cur_rx->dc_status);
2896 rxstat = le32toh(cur_rx
[all...]
/freebsd-11-stable/sys/dev/sk/
H A Dif_sk.c2741 struct sk_rx_desc *cur_rx; local
2757 cur_rx = &sc_if->sk_rdata.sk_rx_ring[cons];
2758 sk_ctl = le32toh(cur_rx->sk_ctl);
2762 rxstat = le32toh(cur_rx->sk_xmac_rxstat);
2776 csum = le32toh(cur_rx->sk_csum);
2808 struct sk_rx_desc *cur_rx; local
2825 cur_rx = &sc_if->sk_rdata.sk_jumbo_rx_ring[cons];
2826 sk_ctl = le32toh(cur_rx->sk_ctl);
2830 rxstat = le32toh(cur_rx->sk_xmac_rxstat);
2844 csum = le32toh(cur_rx
[all...]
/freebsd-11-stable/sys/dev/sge/
H A Dif_sge.c1144 struct sge_desc *cur_rx; local
1160 cur_rx = &sc->sge_ldata.sge_rx_ring[cons];
1161 rxinfo = le32toh(cur_rx->sge_cmdsts);
1164 rxstat = le32toh(cur_rx->sge_sts_size);
/freebsd-11-stable/sys/dev/re/
H A Dif_re.c772 struct rl_desc *cur_rx; local
875 cur_rx = &sc->rl_ldata.rl_rx_list[0];
876 total_len = RL_RXBYTES(cur_rx);
877 rxstat = le32toh(cur_rx->rl_cmdstat);
2155 struct rl_desc *cur_rx; local
2181 cur_rx = &sc->rl_ldata.rl_rx_list[i];
2182 rxstat = le32toh(cur_rx->rl_cmdstat);
2186 rxvlan = le32toh(cur_rx->rl_vlanctl);
/freebsd-11-stable/sys/mips/atheros/
H A Dif_arge.c2424 struct arge_desc *cur_rx; local
2438 cur_rx = &sc->arge_rdata.arge_rx_ring[cons];
2442 if ((cur_rx->packet_ctrl & ARGE_DESC_EMPTY) != 0)
2449 packet_len = ARGE_DMASIZE(cur_rx->packet_ctrl);
2470 cur_rx->packet_addr = 0;
/freebsd-11-stable/sys/dev/nge/
H A Dif_nge.c1442 struct nge_desc *cur_rx; local
1467 cur_rx = &sc->nge_rdata.nge_rx_ring[cons];
1468 cmdsts = le32toh(cur_rx->nge_cmdsts);
1469 extsts = le32toh(cur_rx->nge_extsts);
/freebsd-11-stable/sys/dev/vge/
H A Dif_vge.c1436 struct vge_rx_desc *cur_rx; local
1451 cur_rx = &sc->vge_rdata.vge_rx_ring[prod];
1452 rxstat = le32toh(cur_rx->vge_sts);
1457 rxctl = le32toh(cur_rx->vge_ctl);
/freebsd-11-stable/sys/dev/vr/
H A Dif_vr.c1286 struct vr_desc *cur_rx; local
1307 cur_rx = &sc->vr_rdata.vr_rx_ring[cons];
1308 rxstat = le32toh(cur_rx->vr_status);
1309 rxctl = le32toh(cur_rx->vr_ctl);
/freebsd-11-stable/sys/dev/sis/
H A Dif_sis.c1481 struct sis_desc *cur_rx; local
1502 cur_rx = &sc->sis_rx_list[rx_cons];
1503 rxstat = le32toh(cur_rx->sis_cmdsts);

Completed in 350 milliseconds