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

12

/freebsd-9.3-release/sys/dev/tx/
H A Dif_txvar.h109 u_int32_t cur_rx; member in struct:__anon9044
H A Dif_tx.c740 while ((sc->rx_desc[sc->cur_rx].status & 0x8000) == 0) {
741 buf = sc->rx_buffer + sc->cur_rx;
742 desc = sc->rx_desc + sc->cur_rx;
745 sc->cur_rx = (sc->cur_rx + 1) & RX_RING_MASK;
1628 sc->cur_rx = sc->cur_tx = sc->dirty_tx = sc->pending_txs = 0;
/freebsd-9.3-release/sys/mips/idt/
H A Dif_kr.c1435 struct kr_desc *cur_rx; local
1447 cur_rx = &sc->kr_rdata.kr_rx_ring[cons];
1451 if ((cur_rx->kr_ctl & KR_CTL_D) == 0)
1456 packet_len = KR_PKTSIZE(cur_rx->kr_devcs);
1457 count = m->m_len - KR_DMASIZE(cur_rx->kr_ctl);
1465 else if ((cur_rx->kr_devcs & KR_DMARX_DEVCS_LD) == 0)
1467 else if ((cur_rx->kr_devcs & KR_DMARX_DEVCS_ROK) != 0) {
1485 cur_rx->kr_ctl = rxd->saved_ctl;
1486 cur_rx->kr_ca = rxd->saved_ca;
1487 cur_rx
[all...]
/freebsd-9.3-release/sys/dev/wb/
H A Dif_wb.c879 struct wb_chain_onefrag *cur_rx; local
891 cur_rx = sc->wb_cdata.wb_rx_head;
892 sc->wb_cdata.wb_rx_head = cur_rx->wb_nextdesc;
894 m = cur_rx->wb_mbuf;
897 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) < WB_MIN_FRAMELEN) ||
898 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) > 1536) ||
902 wb_newbuf(sc, cur_rx, m);
914 wb_newbuf(sc, cur_rx, m);
919 total_len = WB_RXBYTES(cur_rx->wb_ptr->wb_status);
932 wb_newbuf(sc, cur_rx,
[all...]
/freebsd-9.3-release/sys/dev/tl/
H A Dif_tl.c1416 struct tl_chain_onefrag *cur_rx; local
1424 cur_rx = sc->tl_cdata.tl_rx_head;
1425 if (!(cur_rx->tl_ptr->tlist_cstat & TL_CSTAT_FRAMECMP))
1428 sc->tl_cdata.tl_rx_head = cur_rx->tl_next;
1429 m = cur_rx->tl_mbuf;
1430 total_len = cur_rx->tl_ptr->tlist_frsize;
1432 if (tl_newbuf(sc, cur_rx) == ENOBUFS) {
1434 cur_rx->tl_ptr->tlist_frsize = MCLBYTES;
1435 cur_rx->tl_ptr->tlist_cstat = TL_CSTAT_READY;
1436 cur_rx
[all...]
/freebsd-9.3-release/sys/pci/
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...]
/freebsd-9.3-release/sys/dev/ste/
H A Dif_ste.c592 struct ste_chain_onefrag *cur_rx; local
602 cur_rx = sc->ste_cdata.ste_rx_head;
604 cur_rx = cur_rx->ste_next) {
605 rxstat = le32toh(cur_rx->ste_ptr->ste_status);
625 cur_rx->ste_ptr->ste_status = 0;
630 m = cur_rx->ste_mbuf;
640 if (ste_newbuf(sc, cur_rx) != 0) {
642 cur_rx->ste_ptr->ste_status = 0;
656 sc->ste_cdata.ste_rx_head = cur_rx;
1622 struct ste_chain_onefrag *cur_rx; local
[all...]
/freebsd-9.3-release/sys/dev/nve/
H A Dif_nvereg.h158 u_int32_t cur_rx; member in struct:nve_softc
H A Dif_nve.c725 sc->cur_rx = 0;
762 sc->cur_rx = sc->cur_tx = sc->pending_rxs = sc->pending_txs = 0;
1480 desc = sc->rx_desc + sc->cur_rx;
1505 sc->cur_rx = (sc->cur_rx + 1) % RX_RING_SIZE;
1633 sc->cur_rx = desc - sc->rx_desc;
/freebsd-9.3-release/sys/dev/lge/
H A Dif_lge.c893 struct lge_rx_desc *cur_rx; local
907 cur_rx = &sc->lge_ldata->lge_rx_list[i];
908 rxctl = cur_rx->lge_ctl;
909 rxsts = cur_rx->lge_sts;
910 m = cur_rx->lge_mbuf;
911 cur_rx->lge_mbuf = NULL;
912 total_len = LGE_RXBYTES(cur_rx);
/freebsd-9.3-release/sys/dev/my/
H A Dif_my.c1112 struct my_chain_onefrag *cur_rx; local
1120 cur_rx = sc->my_cdata.my_rx_head;
1121 sc->my_cdata.my_rx_head = cur_rx->my_nextdesc;
1125 cur_rx->my_ptr->my_status = MY_OWNByNIC;
1133 m = m_devget(mtod(cur_rx->my_mbuf, char *),
1135 cur_rx->my_ptr->my_status = MY_OWNByNIC;
1141 m = cur_rx->my_mbuf;
1149 if (my_newbuf(sc, cur_rx) == ENOBUFS) {
1151 cur_rx->my_ptr->my_status = MY_OWNByNIC;
/freebsd-9.3-release/sys/dev/netmap/
H A Dif_re_netmap.h211 struct rl_desc *cur_rx = &sc->rl_ldata.rl_rx_list[nic_i]; local
212 uint32_t rxstat = le32toh(cur_rx->rl_cmdstat);
/freebsd-9.3-release/sys/dev/ti/
H A Dif_ti.c2775 struct ti_rx_desc *cur_rx; local
2781 cur_rx =
2783 rxidx = cur_rx->ti_idx;
2784 ti_len = cur_rx->ti_len;
2787 if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) {
2789 vlan_tag = cur_rx->ti_vlan_tag;
2792 if (cur_rx->ti_flags & TI_BDFLAG_JUMBO_RING) {
2797 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
2814 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
2826 ti_hdr_split(m, TI_HOSTADDR(cur_rx
[all...]
/freebsd-9.3-release/sys/dev/xl/
H A Dif_xl.c1830 struct xl_chain_onefrag *cur_rx; local
1847 cur_rx = sc->xl_cdata.xl_rx_head;
1848 sc->xl_cdata.xl_rx_head = cur_rx->xl_next;
1869 cur_rx->xl_ptr->xl_status = 0;
1884 cur_rx->xl_ptr->xl_status = 0;
1891 bus_dmamap_sync(sc->xl_mtag, cur_rx->xl_map,
1893 m = cur_rx->xl_mbuf;
1902 if (xl_newbuf(sc, cur_rx)) {
1904 cur_rx->xl_ptr->xl_status = 0;
/freebsd-9.3-release/sys/dev/pcn/
H A Dif_pcn.c838 struct pcn_rx_desc *cur_rx; local
847 cur_rx = &sc->pcn_ldata->pcn_rx_list[i];
857 if (cur_rx->pcn_rxstat & PCN_RXSTAT_ERR) {
877 cur_rx->pcn_rxlen - ETHER_CRC_LEN;
/freebsd-9.3-release/sys/dev/bge/
H A Dif_bge.c4352 struct bge_rx_bd *cur_rx; local
4366 cur_rx = &sc->bge_ldata.bge_rx_return_ring[rx_cons];
4368 rxidx = cur_rx->bge_idx;
4372 cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) {
4374 vlan_tag = cur_rx->bge_vlan_tag;
4377 if (cur_rx->bge_flags & BGE_RXBDFLAG_JUMBO_RING) {
4380 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
4393 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
4413 cur_rx->bge_len);
4417 m->m_pkthdr.len = m->m_len = cur_rx
4474 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m) argument
[all...]
/freebsd-9.3-release/sys/mips/atheros/
H A Dif_arge.c1697 struct arge_desc *cur_rx; local
1711 cur_rx = &sc->arge_rdata.arge_rx_ring[cons];
1715 if ((cur_rx->packet_ctrl & ARGE_DESC_EMPTY) != 0)
1722 packet_len = ARGE_DMASIZE(cur_rx->packet_ctrl);
1737 cur_rx->packet_addr = 0;
/freebsd-9.3-release/sys/dev/dc/
H A Dif_dc.c2750 struct dc_desc *cur_rx; local
2758 cur_rx = &sc->dc_ldata.dc_rx_list[idx];
2798 cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG);
2815 struct dc_desc *cur_rx; local
2821 cur_rx = &sc->dc_ldata.dc_rx_list[pos];
2822 if (!(le32toh(cur_rx->dc_status) & DC_RXSTAT_OWN))
2862 struct dc_desc *cur_rx; local
2883 cur_rx = &sc->dc_ldata.dc_rx_list[i];
2884 rxstat = le32toh(cur_rx->dc_status);
2900 rxstat = le32toh(cur_rx
[all...]
/freebsd-9.3-release/sys/dev/sk/
H A Dif_sk.c2748 struct sk_rx_desc *cur_rx; local
2764 cur_rx = &sc_if->sk_rdata.sk_rx_ring[cons];
2765 sk_ctl = le32toh(cur_rx->sk_ctl);
2769 rxstat = le32toh(cur_rx->sk_xmac_rxstat);
2783 csum = le32toh(cur_rx->sk_csum);
2815 struct sk_rx_desc *cur_rx; local
2832 cur_rx = &sc_if->sk_rdata.sk_jumbo_rx_ring[cons];
2833 sk_ctl = le32toh(cur_rx->sk_ctl);
2837 rxstat = le32toh(cur_rx->sk_xmac_rxstat);
2851 csum = le32toh(cur_rx
[all...]
/freebsd-9.3-release/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-9.3-release/sys/dev/re/
H A Dif_re.c762 struct rl_desc *cur_rx; local
865 cur_rx = &sc->rl_ldata.rl_rx_list[0];
866 total_len = RL_RXBYTES(cur_rx);
867 rxstat = le32toh(cur_rx->rl_cmdstat);
2143 struct rl_desc *cur_rx; local
2169 cur_rx = &sc->rl_ldata.rl_rx_list[i];
2170 rxstat = le32toh(cur_rx->rl_cmdstat);
2174 rxvlan = le32toh(cur_rx->rl_vlanctl);
/freebsd-9.3-release/sys/dev/nge/
H A Dif_nge.c1443 struct nge_desc *cur_rx; local
1468 cur_rx = &sc->nge_rdata.nge_rx_ring[cons];
1469 cmdsts = le32toh(cur_rx->nge_cmdsts);
1470 extsts = le32toh(cur_rx->nge_extsts);
/freebsd-9.3-release/sys/dev/vge/
H A Dif_vge.c1437 struct vge_rx_desc *cur_rx; local
1452 cur_rx = &sc->vge_rdata.vge_rx_ring[prod];
1453 rxstat = le32toh(cur_rx->vge_sts);
1458 rxctl = le32toh(cur_rx->vge_ctl);
/freebsd-9.3-release/sys/dev/vr/
H A Dif_vr.c1283 struct vr_desc *cur_rx; local
1304 cur_rx = &sc->vr_rdata.vr_rx_ring[cons];
1305 rxstat = le32toh(cur_rx->vr_status);
1306 rxctl = le32toh(cur_rx->vr_ctl);
/freebsd-9.3-release/sys/dev/sis/
H A Dif_sis.c1479 struct sis_desc *cur_rx; local
1500 cur_rx = &sc->sis_rx_list[rx_cons];
1501 rxstat = le32toh(cur_rx->sis_cmdsts);

Completed in 513 milliseconds

12