Home
last modified time | relevance | path

Searched refs:cur_tx (Results 1 – 18 of 18) sorted by relevance

/mirbsd/src/sys/dev/ic/
Dxl.c1366 struct xl_chain *cur_tx; local
1384 cur_tx = sc->xl_cdata.xl_tx_head;
1387 ((caddr_t)cur_tx->xl_ptr - sc->sc_listkva),
1394 sc->xl_cdata.xl_tx_head = cur_tx->xl_next;
1396 if (cur_tx->map->dm_nsegs != 0) {
1397 bus_dmamap_t map = cur_tx->map;
1403 if (cur_tx->xl_mbuf != NULL) {
1404 m_freem(cur_tx->xl_mbuf);
1405 cur_tx->xl_mbuf = NULL;
1407 cur_tx->xl_next = sc->xl_cdata.xl_tx_free;
[all …]
Drtl81x9reg.h450 u_int8_t cur_tx; member
587 #define RL_CUR_TXADDR(x) ((x->rl_cdata.cur_tx * 4) + RL_TXADDR0)
588 #define RL_CUR_TXSTAT(x) ((x->rl_cdata.cur_tx * 4) + RL_TXSTAT0)
589 #define RL_CUR_TXMBUF(x) (x->rl_cdata.rl_tx_chain[x->rl_cdata.cur_tx])
590 #define RL_CUR_TXMAP(x) (x->rl_cdata.rl_tx_dmamap[x->rl_cdata.cur_tx])
Dmtd8xx.c1027 struct mtd_tx_desc *cur_tx = NULL; in mtd_txeof() local
1047 cur_tx = &sc->mtd_ldata->mtd_tx_list[idx]; in mtd_txeof()
1048 txstat = letoh32(cur_tx->td_tsw); in mtd_txeof()
1053 if (!(cur_tx->td_tcw & htole32(TCW_LD))) { in mtd_txeof()
1088 if (cur_tx != NULL) { in mtd_txeof()
Drtl81x9.c554 sc->rl_cdata.cur_tx = 0;
789 } while (sc->rl_cdata.last_tx != sc->rl_cdata.cur_tx);
940 RL_INC(sc->rl_cdata.cur_tx);
Ddc.c2290 struct dc_desc *cur_tx = NULL; local
2309 cur_tx = &sc->dc_ldata->dc_tx_list[idx];
2310 txstat = letoh32(cur_tx->dc_status);
2315 if (!(cur_tx->dc_ctl & htole32(DC_TXCTL_LASTFRAG)) ||
2316 cur_tx->dc_ctl & htole32(DC_TXCTL_SETUP)) {
2317 if (cur_tx->dc_ctl & htole32(DC_TXCTL_SETUP)) {
/mirbsd/src/sys/dev/pci/
Dif_vr.c1128 struct vr_chain *cur_tx; local
1137 cur_tx = sc->vr_cdata.vr_tx_cons;
1138 while(cur_tx->vr_mbuf != NULL) {
1142 txstat = letoh32(cur_tx->vr_ptr->vr_status);
1156 VR_TXOWN(cur_tx) = htole32(VR_TXSTAT_OWN);
1157 CSR_WRITE_4(sc, VR_TXADDR, cur_tx->vr_paddr);
1175 if (cur_tx->vr_map != NULL && cur_tx->vr_map->dm_segs > 0)
1176 bus_dmamap_unload(sc->sc_dmat, cur_tx->vr_map);
1178 m_freem(cur_tx->vr_mbuf);
1179 cur_tx->vr_mbuf = NULL;
[all …]
Dif_ste.c755 struct ste_chain *cur_tx = NULL; local
763 cur_tx = &sc->ste_cdata.ste_tx_chain[idx];
765 if (!(cur_tx->ste_ptr->ste_ctl & STE_TXCTL_DMADONE))
768 if (cur_tx->ste_mbuf != NULL) {
769 m_freem(cur_tx->ste_mbuf);
770 cur_tx->ste_mbuf = NULL;
782 if (cur_tx != NULL)
1404 struct ste_chain *prev = NULL, *cur_tx = NULL, *start_tx; local
1428 cur_tx = &sc->ste_cdata.ste_tx_chain[idx];
1430 ste_encap(sc, cur_tx, m_head);
[all …]
Dif_tl.c1213 struct tl_chain *cur_tx; local
1222 cur_tx = sc->tl_cdata.tl_tx_head;
1223 if (!(cur_tx->tl_ptr->tlist_cstat & TL_CSTAT_FRAMECMP))
1225 sc->tl_cdata.tl_tx_head = cur_tx->tl_next;
1228 m_freem(cur_tx->tl_mbuf);
1229 cur_tx->tl_mbuf = NULL;
1231 cur_tx->tl_next = sc->tl_cdata.tl_tx_free;
1232 sc->tl_cdata.tl_tx_free = cur_tx;
1233 if (!cur_tx->tl_ptr->tlist_fptr)
1555 struct tl_chain *prev = NULL, *cur_tx = NULL, *start_tx; local
[all …]
Dif_wb.c1147 struct wb_chain *cur_tx; local
1165 cur_tx = sc->wb_cdata.wb_tx_head;
1166 txstat = WB_TXSTATUS(cur_tx);
1182 m_freem(cur_tx->wb_mbuf);
1183 cur_tx->wb_mbuf = NULL;
1191 sc->wb_cdata.wb_tx_head = cur_tx->wb_nextdesc;
1424 struct wb_chain *cur_tx = NULL, *start_tx; local
1445 cur_tx = sc->wb_cdata.wb_tx_free;
1446 sc->wb_cdata.wb_tx_free = cur_tx->wb_nextdesc;
1449 wb_encap(sc, cur_tx, m_head);
[all …]
Dif_lge.c1080 struct lge_tx_desc *cur_tx = NULL; local
1097 cur_tx = &sc->lge_ldata->lge_tx_list[idx];
1100 if (cur_tx->lge_mbuf != NULL) {
1101 m_freem(cur_tx->lge_mbuf);
1102 cur_tx->lge_mbuf = NULL;
1104 cur_tx->lge_ctl = 0;
1113 if (cur_tx != NULL)
1221 struct lge_tx_desc *cur_tx; local
1231 cur_tx = &sc->lge_ldata->lge_tx_list[*txidx];
1237 f = &cur_tx->lge_frags[frag];
[all …]
Dif_sis.c1397 struct sis_desc *cur_tx = NULL; local
1412 cur_tx = &sc->sis_ldata->sis_tx_list[idx];
1415 ((caddr_t)cur_tx - sc->sc_listkva),
1419 if (SIS_OWNDESC(cur_tx))
1422 if (cur_tx->sis_ctl & SIS_CMDSTS_MORE) {
1428 if (!(cur_tx->sis_ctl & SIS_CMDSTS_PKT_OK)) {
1430 if (cur_tx->sis_txstat & SIS_TXSTAT_EXCESSCOLLS)
1432 if (cur_tx->sis_txstat & SIS_TXSTAT_OUTOFWINCOLL)
1437 (cur_tx->sis_txstat & SIS_TXSTAT_COLLCNT) >> 16;
1440 if (cur_tx->map->dm_nsegs != 0) {
[all …]
Dif_sf.c940 struct sf_tx_bufdesc_type0 *cur_tx; local
951 cur_tx = &sc->sf_ldata->sf_tx_dlist[cur_cmp->sf_index >> 7];
960 if (cur_tx->sf_mbuf != NULL) {
961 m_freem(cur_tx->sf_mbuf);
962 cur_tx->sf_mbuf = NULL;
1207 struct sf_tx_bufdesc_type0 *cur_tx = NULL; local
1227 cur_tx = &sc->sf_ldata->sf_tx_dlist[i];
1228 if (sf_encap(sc, cur_tx, m_head)) {
1239 bpf_mtap(ifp->if_bpf, cur_tx->sf_mbuf);
1248 if (cur_tx == NULL)
Dif_tx.c816 buf = sc->tx_buffer + sc->cur_tx;
817 desc = sc->tx_desc + sc->cur_tx;
818 flist = sc->tx_flist + sc->cur_tx;
859 sc->cur_tx = ( sc->cur_tx + 1 ) & TX_RING_MASK;
1591 desc = sc->tx_desc + sc->cur_tx;
1592 flist = sc->tx_flist + sc->cur_tx;
1593 buf = sc->tx_buffer + sc->cur_tx;
1617 sc->cur_tx = (sc->cur_tx + 1) & TX_RING_MASK;
1726 sc->cur_rx = sc->cur_tx = sc->dirty_tx = sc->pending_txs = 0;
Dif_nge.c1420 struct nge_desc *cur_tx = NULL; local
1435 cur_tx = &sc->nge_ldata->nge_tx_list[idx];
1437 if (NGE_OWNDESC(cur_tx))
1440 if (cur_tx->nge_ctl & NGE_CMDSTS_MORE) {
1446 if (!(cur_tx->nge_ctl & NGE_CMDSTS_PKT_OK)) {
1448 if (cur_tx->nge_txstat & NGE_TXSTAT_EXCESSCOLLS)
1450 if (cur_tx->nge_txstat & NGE_TXSTAT_OUTOFWINCOLL)
1455 (cur_tx->nge_txstat & NGE_TXSTAT_COLLCNT) >> 16;
1458 if (cur_tx->nge_mbuf != NULL) {
1459 m_freem(cur_tx->nge_mbuf);
[all …]
Dif_txvar.h305 u_int32_t cur_tx; member
Dif_sk.c1994 struct sk_tx_desc *cur_tx; in sk_txeof() local
2007 cur_tx = &sc_if->sk_rdata->sk_tx_ring[idx]; in sk_txeof()
2010 sk_dump_txdesc(cur_tx, idx); in sk_txeof()
2012 if (cur_tx->sk_ctl & SK_TXCTL_OWN) in sk_txeof()
2014 if (cur_tx->sk_ctl & SK_TXCTL_LASTFRAG) in sk_txeof()
Dif_ti.c1981 struct ti_tx_desc *cur_tx = NULL; local
1995 cur_tx = &sc->ti_rdata->ti_tx_ring[idx];
1997 if (cur_tx->ti_flags & TI_BDFLAG_END)
2018 if (cur_tx != NULL)
Dif_bge.c2131 struct bge_tx_bd *cur_tx = NULL; local
2145 cur_tx = &sc->bge_rdata->bge_tx_ring[idx];
2146 if (cur_tx->bge_flags & BGE_TXBDFLAG_END)
2159 if (cur_tx != NULL)