Home
last modified time | relevance | path

Searched refs:cur_rx (Results 1 – 20 of 20) sorted by relevance

/mirbsd/src/sys/dev/pci/
Dif_vr.c971 struct vr_chain_onefrag *cur_rx; local
987 cur_rx = sc->vr_cdata.vr_rx_head;
988 sc->vr_cdata.vr_rx_head = cur_rx->vr_nextdesc;
1017 cur_rx->vr_ptr->vr_status = htole32(VR_RXSTAT);
1018 cur_rx->vr_ptr->vr_data =
1019 htole32(cur_rx->vr_map->dm_segs[0].ds_addr +
1021 cur_rx->vr_ptr->vr_ctl = htole32(VR_RXCTL | VR_RXLEN);
1029 total_len = VR_RXBYTES(letoh32(cur_rx->vr_ptr->vr_status));
1040 bus_dmamap_sync(sc->sc_dmat, cur_rx->vr_map, 0,
1041 cur_rx->vr_map->dm_mapsize,
[all …]
Dif_tl.c1114 struct tl_chain_onefrag *cur_rx; local
1120 cur_rx = sc->tl_cdata.tl_rx_head;
1121 if (!(cur_rx->tl_ptr->tlist_cstat & TL_CSTAT_FRAMECMP))
1124 sc->tl_cdata.tl_rx_head = cur_rx->tl_next;
1125 m = cur_rx->tl_mbuf;
1126 total_len = cur_rx->tl_ptr->tlist_frsize;
1128 if (tl_newbuf(sc, cur_rx) == ENOBUFS) {
1130 cur_rx->tl_ptr->tlist_frsize = MCLBYTES;
1131 cur_rx->tl_ptr->tlist_cstat = TL_CSTAT_READY;
1132 cur_rx->tl_ptr->tl_frag.tlist_dcnt = MCLBYTES;
[all …]
Dif_ste.c621 struct ste_chain_onefrag *cur_rx; local
630 cur_rx = sc->ste_cdata.ste_rx_head;
631 sc->ste_cdata.ste_rx_head = cur_rx->ste_next;
641 cur_rx->ste_ptr->ste_status = 0;
654 cur_rx->ste_ptr->ste_status = 0;
659 m = cur_rx->ste_mbuf;
660 total_len = cur_rx->ste_ptr->ste_status & STE_RXSTAT_FRAMELEN;
669 if (ste_newbuf(sc, cur_rx, NULL) == ENOBUFS) {
671 cur_rx->ste_ptr->ste_status = 0;
Dif_sis.c1298 struct sis_desc *cur_rx; local
1307 cur_rx = &sc->sis_ldata->sis_rx_list[i];
1309 ((caddr_t)cur_rx - sc->sc_listkva),
1313 rxstat = cur_rx->sis_rxstat;
1314 m = cur_rx->sis_mbuf;
1315 cur_rx->sis_mbuf = NULL;
1316 total_len = SIS_RXBYTES(cur_rx);
1330 sis_newbuf(sc, cur_rx, m);
1335 bus_dmamap_sync(sc->sc_dmat, cur_rx->map, 0,
1336 cur_rx->map->dm_mapsize, BUS_DMASYNC_POSTREAD);
[all …]
Dif_wb.c1052 struct wb_chain_onefrag *cur_rx; local
1062 cur_rx = sc->wb_cdata.wb_rx_head;
1063 sc->wb_cdata.wb_rx_head = cur_rx->wb_nextdesc;
1065 m = cur_rx->wb_mbuf;
1068 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) < WB_MIN_FRAMELEN) ||
1069 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) > 1536) ||
1073 wb_newbuf(sc, cur_rx, m);
1084 wb_newbuf(sc, cur_rx, m);
1089 total_len = WB_RXBYTES(cur_rx->wb_ptr->wb_status);
1102 wb_newbuf(sc, cur_rx, m);
Dif_nge.c1300 struct nge_desc *cur_rx; local
1311 cur_rx = &sc->nge_ldata->nge_rx_list[i];
1312 rxstat = cur_rx->nge_rxstat;
1313 extsts = cur_rx->nge_extsts;
1314 m = cur_rx->nge_mbuf;
1315 cur_rx->nge_mbuf = NULL;
1316 total_len = NGE_RXBYTES(cur_rx);
1327 nge_newbuf(sc, cur_rx, m);
1345 if (nge_newbuf(sc, cur_rx, NULL) == ENOBUFS) {
1349 nge_newbuf(sc, cur_rx, m);
Dif_ti.c1803 struct ti_rx_desc *cur_rx; local
1816 cur_rx =
1818 rxidx = cur_rx->ti_idx;
1822 if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) {
1824 vlan_tag = cur_rx->ti_vlan_tag & 0xfff;
1828 if (cur_rx->ti_flags & TI_BDFLAG_JUMBO_RING) {
1832 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
1842 } else if (cur_rx->ti_flags & TI_BDFLAG_MINI_RING) {
1848 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
1865 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) {
[all …]
Dif_lge.c959 struct lge_rx_desc *cur_rx; local
973 cur_rx = &sc->lge_ldata->lge_rx_list[i];
974 rxctl = cur_rx->lge_ctl;
975 rxsts = cur_rx->lge_sts;
976 m = cur_rx->lge_mbuf;
977 cur_rx->lge_mbuf = NULL;
978 total_len = LGE_RXBYTES(cur_rx);
Dif_bge.c2007 struct bge_rx_bd *cur_rx; local
2018 cur_rx = &sc->bge_rdata->
2021 rxidx = cur_rx->bge_idx;
2025 if (cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) {
2027 vlan_tag = cur_rx->bge_vlan_tag;
2031 if (cur_rx->bge_flags & BGE_RXBDFLAG_JUMBO_RING) {
2036 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
2054 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
2075 cur_rx->bge_len);
2079 m->m_pkthdr.len = m->m_len = cur_rx->bge_len - ETHER_CRC_LEN;
[all …]
Dif_sf.c871 struct sf_rx_cmpdesc_type3 *cur_rx; local
886 cur_rx = &sc->sf_ldata->sf_rx_clist[cmpconsidx];
887 desc = &sc->sf_ldata->sf_rx_dlist_big[cur_rx->sf_endidx];
892 if (!(cur_rx->sf_status1 & SF_RXSTAT1_OK)) {
899 cur_rx->sf_len + ETHER_ALIGN, 0, ifp, NULL);
Dif_tx.c893 while( !(sc->rx_desc[sc->cur_rx].status & 0x8000) ) {
894 buf = sc->rx_buffer + sc->cur_rx;
895 desc = sc->rx_desc + sc->cur_rx;
898 sc->cur_rx = (sc->cur_rx+1) & RX_RING_MASK;
1726 sc->cur_rx = sc->cur_tx = sc->dirty_tx = sc->pending_txs = 0;
Dif_vge.c967 struct vge_rx_desc *cur_rx; in vge_rxeof() local
983 cur_rx = &sc->vge_ldata.vge_rx_list[i]; in vge_rxeof()
985 total_len = VGE_RXBYTES(cur_rx); in vge_rxeof()
986 rxstat = letoh32(cur_rx->vge_sts); in vge_rxeof()
987 rxctl = letoh32(cur_rx->vge_ctl); in vge_rxeof()
Dif_txvar.h306 u_int32_t cur_rx; member
Dif_sk.c1829 struct sk_chain *cur_rx; in sk_rxeof() local
1842 cur_rx = &sc_if->sk_cdata.sk_rx_chain[cur]; in sk_rxeof()
1846 m = cur_rx->sk_mbuf; in sk_rxeof()
1847 cur_rx->sk_mbuf = NULL; in sk_rxeof()
/mirbsd/src/sys/dev/ic/
Drtl81x9.c597 u_int16_t cur_rx; local
603 cur_rx = (CSR_READ_2(sc, RL_CURRXADDR) + 16) % RL_RXBUFLEN;
608 if (limit < cur_rx)
609 max_bytes = (RL_RXBUFLEN - cur_rx) + limit;
611 max_bytes = limit - cur_rx;
616 rxbufpos = sc->rl_cdata.rl_rx_buf + cur_rx;
669 ((cur_rx + sizeof(u_int32_t)) % RL_RXBUFLEN);
690 cur_rx = (total_len - wrap + ETHER_CRC_LEN);
698 cur_rx += total_len + 4 + ETHER_CRC_LEN;
704 cur_rx = (cur_rx + 3) & ~3;
[all …]
Dre.c578 struct rl_desc *cur_rx; local
665 cur_rx = &sc->rl_ldata.rl_rx_list[0];
666 total_len = RL_RXBYTES(cur_rx);
667 rxstat = letoh32(cur_rx->rl_cmdstat);
1068 struct rl_desc *cur_rx; local
1086 cur_rx = &sc->rl_ldata.rl_rx_list[i];
1088 total_len = RL_RXBYTES(cur_rx);
1089 rxstat = letoh32(cur_rx->rl_cmdstat);
1090 rxvlan = letoh32(cur_rx->rl_vlanctl);
Dmtd8xx.c906 struct mtd_rx_desc *cur_rx; in mtd_rxeof() local
921 cur_rx = &sc->mtd_ldata->mtd_rx_list[i]; in mtd_rxeof()
922 rxstat = letoh32(cur_rx->rd_rsr); in mtd_rxeof()
993 struct mtd_rx_desc *cur_rx; local
1003 cur_rx = &sc->mtd_ldata->mtd_rx_list[pos];
1004 if (!(cur_rx->rd_rsr & htole32(RSR_OWN)))
Dxl.c1238 struct xl_chain_onefrag *cur_rx; local
1248 cur_rx = sc->xl_cdata.xl_rx_head;
1249 sc->xl_cdata.xl_rx_head = cur_rx->xl_next;
1252 ((caddr_t)cur_rx->xl_ptr - sc->sc_listkva),
1264 cur_rx->xl_ptr->xl_status = htole32(0);
1277 cur_rx->xl_ptr->xl_status = htole32(0);
1282 m = cur_rx->xl_mbuf;
1283 total_len = letoh32(cur_rx->xl_ptr->xl_status) &
1293 if (xl_newbuf(sc, cur_rx) == ENOBUFS) {
1295 cur_rx->xl_ptr->xl_status = htole32(0);
Ddc.c2081 struct dc_desc *cur_rx; local
2089 cur_rx = &sc->dc_ldata->dc_rx_list[idx];
2130 cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG);
2186 struct dc_desc *cur_rx; local
2201 cur_rx = &sc->dc_ldata->dc_rx_list[i];
2202 rxstat = letoh32(cur_rx->dc_status);
2222 rxstat = letoh32(cur_rx->dc_status);
Drtl81x9reg.h442 u_int16_t cur_rx; member