| /openbsd/src/sys/dev/ic/ |
| D | xl.c | 1243 struct xl_chain *cur_tx; in xl_txeof() local 1258 cur_tx = sc->xl_cdata.xl_tx_head; in xl_txeof() 1261 ((caddr_t)cur_tx->xl_ptr - sc->sc_listkva), in xl_txeof() 1268 sc->xl_cdata.xl_tx_head = cur_tx->xl_next; in xl_txeof() 1269 if (cur_tx->map->dm_nsegs != 0) { in xl_txeof() 1270 bus_dmamap_t map = cur_tx->map; in xl_txeof() 1276 if (cur_tx->xl_mbuf != NULL) { in xl_txeof() 1277 m_freem(cur_tx->xl_mbuf); in xl_txeof() 1278 cur_tx->xl_mbuf = NULL; in xl_txeof() 1280 cur_tx->xl_next = sc->xl_cdata.xl_tx_free; in xl_txeof() [all …]
|
| D | rtl81x9reg.h | 585 u_int8_t cur_tx; member 789 #define RL_CUR_TXADDR(x) ((x->rl_cdata.cur_tx * 4) + RL_TXADDR0) 790 #define RL_CUR_TXSTAT(x) ((x->rl_cdata.cur_tx * 4) + RL_TXSTAT0) 791 #define RL_CUR_TXMBUF(x) (x->rl_cdata.rl_tx_chain[x->rl_cdata.cur_tx]) 792 #define RL_CUR_TXMAP(x) (x->rl_cdata.rl_tx_dmamap[x->rl_cdata.cur_tx])
|
| D | mtd8xx.c | 988 struct mtd_tx_desc *cur_tx = NULL; in mtd_txeof() local 1008 cur_tx = &sc->mtd_ldata->mtd_tx_list[idx]; in mtd_txeof() 1009 txstat = letoh32(cur_tx->td_tsw); in mtd_txeof() 1014 if (!(cur_tx->td_tcw & htole32(TCW_LD))) { in mtd_txeof() 1048 if (cur_tx != NULL) { in mtd_txeof()
|
| D | rtl81x9.c | 522 sc->rl_cdata.cur_tx = 0; in rl_list_tx_init() 737 } while (sc->rl_cdata.last_tx != sc->rl_cdata.cur_tx); in rl_txeof() 880 RL_INC(sc->rl_cdata.cur_tx); in rl_start()
|
| D | dc.c | 2181 struct dc_desc *cur_tx = NULL; in dc_txeof() local 2200 cur_tx = &sc->dc_ldata->dc_tx_list[idx]; in dc_txeof() 2201 txstat = letoh32(cur_tx->dc_status); in dc_txeof() 2206 if (!(cur_tx->dc_ctl & htole32(DC_TXCTL_LASTFRAG)) || in dc_txeof() 2207 cur_tx->dc_ctl & htole32(DC_TXCTL_SETUP)) { in dc_txeof() 2208 if (cur_tx->dc_ctl & htole32(DC_TXCTL_SETUP)) { in dc_txeof()
|
| D | ti.c | 1668 struct ti_tx_desc *cur_tx = NULL; in ti_txeof_tigon2() local 1682 cur_tx = &sc->ti_rdata->ti_tx_ring[idx]; in ti_txeof_tigon2() 1703 if (cur_tx != NULL) in ti_txeof_tigon2()
|
| /openbsd/src/sys/dev/pci/ |
| D | if_vr.c | 978 struct vr_chain *cur_tx; in vr_txeof() local 987 cur_tx = sc->vr_cdata.vr_tx_cons; in vr_txeof() 988 while (cur_tx != sc->vr_cdata.vr_tx_prod) { in vr_txeof() 992 txstat = letoh32(cur_tx->vr_ptr->vr_status); in vr_txeof() 993 txctl = letoh32(cur_tx->vr_ptr->vr_ctl); in vr_txeof() 1007 cur_tx->vr_ptr->vr_status = htole32(VR_TXSTAT_OWN); in vr_txeof() 1008 CSR_WRITE_4(sc, VR_TXADDR, cur_tx->vr_paddr); in vr_txeof() 1030 if (cur_tx->vr_map != NULL && cur_tx->vr_map->dm_nsegs > 0) in vr_txeof() 1031 bus_dmamap_unload(sc->sc_dmat, cur_tx->vr_map); in vr_txeof() 1033 m_freem(cur_tx->vr_mbuf); in vr_txeof() [all …]
|
| D | if_wb.c | 970 struct wb_chain *cur_tx; in wb_txeof() local 988 cur_tx = sc->wb_cdata.wb_tx_head; in wb_txeof() 989 txstat = WB_TXSTATUS(cur_tx); in wb_txeof() 1004 m_freem(cur_tx->wb_mbuf); in wb_txeof() 1005 cur_tx->wb_mbuf = NULL; in wb_txeof() 1013 sc->wb_cdata.wb_tx_head = cur_tx->wb_nextdesc; in wb_txeof() 1239 struct wb_chain *cur_tx = NULL, *start_tx; in wb_start() local 1260 cur_tx = sc->wb_cdata.wb_tx_free; in wb_start() 1261 sc->wb_cdata.wb_tx_free = cur_tx->wb_nextdesc; in wb_start() 1264 wb_encap(sc, cur_tx, m_head); in wb_start() [all …]
|
| D | if_tl.c | 1116 struct tl_chain *cur_tx; in tl_intvec_txeof() local 1125 cur_tx = sc->tl_cdata.tl_tx_head; in tl_intvec_txeof() 1126 if (!(cur_tx->tl_ptr->tlist_cstat & TL_CSTAT_FRAMECMP)) in tl_intvec_txeof() 1128 sc->tl_cdata.tl_tx_head = cur_tx->tl_next; in tl_intvec_txeof() 1131 m_freem(cur_tx->tl_mbuf); in tl_intvec_txeof() 1132 cur_tx->tl_mbuf = NULL; in tl_intvec_txeof() 1134 cur_tx->tl_next = sc->tl_cdata.tl_tx_free; in tl_intvec_txeof() 1135 sc->tl_cdata.tl_tx_free = cur_tx; in tl_intvec_txeof() 1136 if (!cur_tx->tl_ptr->tlist_fptr) in tl_intvec_txeof() 1449 struct tl_chain *prev = NULL, *cur_tx = NULL, *start_tx; in tl_start() local [all …]
|
| D | if_lge.c | 757 struct lge_tx_desc *cur_tx = NULL; in lge_txeof() local 774 cur_tx = &sc->lge_ldata->lge_tx_list[idx]; in lge_txeof() 776 if (cur_tx->lge_mbuf != NULL) { in lge_txeof() 777 m_freem(cur_tx->lge_mbuf); in lge_txeof() 778 cur_tx->lge_mbuf = NULL; in lge_txeof() 780 cur_tx->lge_ctl = 0; in lge_txeof() 789 if (cur_tx != NULL) in lge_txeof() 886 struct lge_tx_desc *cur_tx; in lge_encap() local 896 cur_tx = &sc->lge_ldata->lge_tx_list[*txidx]; in lge_encap() 902 f = &cur_tx->lge_frags[frag]; in lge_encap() [all …]
|
| D | if_ste.c | 733 struct ste_chain *cur_tx = NULL; in ste_txeof() local 741 cur_tx = &sc->ste_cdata.ste_tx_chain[idx]; in ste_txeof() 743 if (!(cur_tx->ste_ptr->ste_ctl & STE_TXCTL_DMADONE)) in ste_txeof() 746 m_freem(cur_tx->ste_mbuf); in ste_txeof() 747 cur_tx->ste_mbuf = NULL; in ste_txeof() 1301 struct ste_chain *cur_tx; in ste_start() local 1329 cur_tx = &sc->ste_cdata.ste_tx_chain[idx]; in ste_start() 1331 if (ste_encap(sc, cur_tx, m_head) != 0) in ste_start() 1334 cur_tx->ste_ptr->ste_next = 0; in ste_start() 1337 cur_tx->ste_ptr->ste_ctl = STE_TXCTL_DMAINTR | 1; in ste_start() [all …]
|
| D | if_nge.c | 1108 struct nge_desc *cur_tx; in nge_txeof() local 1120 cur_tx = &sc->nge_ldata->nge_tx_list[idx]; in nge_txeof() 1122 if (NGE_OWNDESC(cur_tx)) in nge_txeof() 1125 if (cur_tx->nge_ctl & NGE_CMDSTS_MORE) { in nge_txeof() 1131 if (!(cur_tx->nge_ctl & NGE_CMDSTS_PKT_OK)) { in nge_txeof() 1133 if (cur_tx->nge_txstat & NGE_TXSTAT_EXCESSCOLLS) in nge_txeof() 1135 if (cur_tx->nge_txstat & NGE_TXSTAT_OUTOFWINCOLL) in nge_txeof() 1140 (cur_tx->nge_txstat & NGE_TXSTAT_COLLCNT) >> 16; in nge_txeof() 1142 if (cur_tx->nge_mbuf != NULL) { in nge_txeof() 1143 m_freem(cur_tx->nge_mbuf); in nge_txeof() [all …]
|
| D | if_se.c | 971 struct se_desc *cur_tx; in se_txeof() local 983 cur_tx = &ld->se_tx_ring[i]; in se_txeof() 984 txstat = letoh32(cur_tx->se_cmdsts); in se_txeof() 1007 cur_tx->se_sts_size = 0; in se_txeof() 1008 cur_tx->se_cmdsts = 0; in se_txeof() 1009 cur_tx->se_ptr = 0; in se_txeof() 1010 cur_tx->se_flags &= htole32(RING_END); in se_txeof() 1012 i * sizeof(*cur_tx), sizeof(*cur_tx), in se_txeof()
|
| D | if_sis.c | 1466 struct sis_desc *cur_tx = &sc->sis_ldata->sis_tx_list[idx]; in sis_txeof() local 1469 ((caddr_t)cur_tx - sc->sc_listkva), in sis_txeof() 1473 if (SIS_OWNDESC(cur_tx)) in sis_txeof() 1476 ctl = letoh32(cur_tx->sis_ctl); in sis_txeof() 1481 txstat = letoh32(cur_tx->sis_txstat); in sis_txeof() 1493 if (cur_tx->map->dm_nsegs != 0) { in sis_txeof() 1494 bus_dmamap_t map = cur_tx->map; in sis_txeof() 1500 if (cur_tx->sis_mbuf != NULL) { in sis_txeof() 1501 m_freem(cur_tx->sis_mbuf); in sis_txeof() 1502 cur_tx->sis_mbuf = NULL; in sis_txeof()
|
| D | if_sk.c | 1645 struct sk_tx_desc *cur_tx; in sk_txeof() local 1661 cur_tx = &sc_if->sk_rdata->sk_tx_ring[idx]; in sk_txeof() 1662 sk_ctl = lemtoh32(&cur_tx->sk_ctl); in sk_txeof() 1665 sk_dump_txdesc(cur_tx, idx); in sk_txeof()
|
| D | if_bge.c | 3677 struct bge_tx_bd *cur_tx = NULL; in bge_txeof() local 3721 cur_tx = &sc->bge_rdata->bge_tx_ring[cons]; in bge_txeof()
|