| /netbsd/src/sys/arch/sgimips/hpc/ |
| D | if_sq.c | 534 int err, totlen, nexttx, firsttx, lasttx = -1, ofree, seg; in sq_start() local 669 lasttx = nexttx; in sq_start() 674 KASSERT(lasttx != -1); in sq_start() 676 sc->sc_txdesc[lasttx].hpc3_hdd_ctl |= in sq_start() 679 sc->sc_txdesc[lasttx].hpc1_hdd_ctl |= in sq_start() 683 device_xname(sc->sc_dev), sc->sc_nexttx, lasttx, totlen)); in sq_start() 700 if (seg == lasttx) in sq_start() 719 device_xname(sc->sc_dev), lasttx - firsttx + 1, in sq_start() 720 firsttx, lasttx)); in sq_start() 731 KASSERT(lasttx != -1); in sq_start() [all …]
|
| /netbsd/src/sys/arch/mips/atheros/dev/ |
| D | if_ae.c | 552 int error, firsttx, nexttx, lasttx = 1, ofree, seg; in ae_start() local 680 lasttx = nexttx; in ae_start() 683 KASSERT(lasttx != -1); in ae_start() 687 sc->sc_txdescs[lasttx].ad_ctl |= ADCTL_Tx_LS; in ae_start() 702 if (seg == lasttx) in ae_start() 719 txs->txs_lastdesc = lasttx; in ae_start() 737 device_xname(sc->sc_dev), lasttx, firsttx)); in ae_start() 742 sc->sc_txdescs[lasttx].ad_ctl |= ADCTL_Tx_IC; in ae_start() 743 AE_CDTXSYNC(sc, lasttx, 1, in ae_start()
|
| /netbsd/src/sys/arch/powerpc/ibm4xx/dev/ |
| D | if_emac.c | 670 int error, firsttx, nexttx, lasttx, ofree, seg; in emac_start() local 672 lasttx = 0; /* XXX gcc */ in emac_start() 788 lasttx = nexttx; in emac_start() 792 sc->sc_txdescs[lasttx].md_stat_ctrl |= MAL_TX_LAST; in emac_start() 799 sc->sc_txdescs[lasttx].md_stat_ctrl |= MAL_TX_INTERRUPT; in emac_start() 802 txs->txs_lastdesc = lasttx; in emac_start()
|
| /netbsd/src/sys/dev/pci/ |
| D | if_pcn.c | 919 int error, nexttx, lasttx = -1, ofree, seg; in pcn_start() local 1059 lasttx = nexttx; in pcn_start() 1079 lasttx = nexttx; in pcn_start() 1083 KASSERT(lasttx != -1); in pcn_start() 1086 sc->sc_txdescs[lasttx].tmd1 |= htole32(LE_T1_LTINT); in pcn_start() 1089 sc->sc_txdescs[lasttx].tmd1 |= htole32(LE_T1_ENP); in pcn_start() 1107 txs->txs_lastdesc = lasttx; in pcn_start()
|
| D | if_kse.c | 920 int error, nexttx, lasttx, ofree, seg; in kse_start() local 985 lasttx = -1; in kse_start() 1001 lasttx = nexttx; in kse_start() 1014 sc->sc_txdescs[lasttx].t1 |= T1_IC; in kse_start() 1020 sc->sc_txdescs[lasttx].t1 |= T1_LS; in kse_start() 1031 txs->txs_lastdesc = lasttx; in kse_start()
|
| D | if_dge.c | 1185 int error, nexttx, lasttx = -1, ofree, seg; local 1342 lasttx = nexttx; 1352 KASSERT(lasttx != -1); 1359 sc->sc_txdescs[lasttx].dt_ctl |= 1362 txs->txs_lastdesc = lasttx; 1366 lasttx, le32toh(sc->sc_txdescs[lasttx].dt_ctl)));
|
| D | if_sip.c | 1473 sipcom_set_extsts(struct sip_softc *sc, int lasttx, struct mbuf *m0, in sipcom_set_extsts() argument 1497 sc->sc_txdescs[lasttx].sipd_words[sc->sc_extsts_idx] |= in sipcom_set_extsts() 1543 int error, nexttx, lasttx, seg; in sipcom_start() local 1663 for (nexttx = lasttx = sc->sc_txnext, seg = 0; in sipcom_start() 1680 lasttx = nexttx; in sipcom_start() 1689 sc->sc_txdescs[lasttx].sipd_words[sc->sc_cmdsts_idx] |= in sipcom_start() 1695 sipcom_set_extsts(sc, lasttx, m0, ifp->if_capenable); in sipcom_start() 1717 txs->txs_lastdesc = lasttx; in sipcom_start()
|
| D | if_xge.c | 702 int i, lasttx, plen; in xge_intr() local 731 lasttx = sc->sc_lasttx; in xge_intr() 754 if (sc->sc_lasttx != lasttx) in xge_intr()
|
| D | if_wm.c | 8942 int error, nexttx, lasttx = -1, ofree, seg, segs_needed, use_tso; in wm_send_common_locked() local 9183 lasttx = nexttx; in wm_send_common_locked() 9193 KASSERT(lasttx != -1); in wm_send_common_locked() 9200 txq->txq_descs[lasttx].wtx_cmdlen |= in wm_send_common_locked() 9210 txq->txq_descs[lasttx].wtx_cmdlen |= in wm_send_common_locked() 9212 txq->txq_descs[lasttx].wtx_fields.wtxu_vlan in wm_send_common_locked() 9216 txs->txs_lastdesc = lasttx; in wm_send_common_locked() 9221 lasttx, le32toh(txq->txq_descs[lasttx].wtx_cmdlen))); in wm_send_common_locked() 9560 int error, nexttx, lasttx = -1, seg, segs_needed; in wm_nq_send_common_locked() local 9768 lasttx = nexttx; in wm_nq_send_common_locked() [all …]
|
| /netbsd/src/sys/dev/ic/ |
| D | gem.c | 1370 int error, firsttx, nexttx = -1, lasttx = -1, ofree, seg; in gem_start() local 1548 lasttx = nexttx; in gem_start() 1553 sc->sc_txdescs[lasttx].gd_flags = in gem_start() 1561 lasttx = nexttx; in gem_start() 1565 sc->sc_txdescs[lasttx].gd_flags = GEM_DMA_WRITE(sc, flags); in gem_start() 1567 KASSERT(lasttx != -1); in gem_start() 1576 txs->txs_lastdesc = lasttx; in gem_start() 1606 device_xname(sc->sc_dev), lasttx, otxnext)); in gem_start()
|
| D | i82557.c | 809 int error, lasttx, nexttx, opending, seg, nsegs, len; in fxp_start() local 826 lasttx = sc->sc_txlast; in fxp_start() 1019 sc->sc_txdirty = FXP_NEXTTX(lasttx); in fxp_start() 1049 FXP_CDTXSYNC(sc, lasttx, in fxp_start() 1051 FXP_CDTX(sc, lasttx)->txd_txcb.cb_command &= in fxp_start() 1053 FXP_CDTXSYNC(sc, lasttx, in fxp_start()
|
| D | atw.c | 3518 int ctl, error, firsttx, nexttx, lasttx, first, ofree, seg; in atw_start() local 3531 firsttx = lasttx = sc->sc_txnext; in atw_start() 3820 lasttx = nexttx; in atw_start() 3826 sc->sc_txdescs[lasttx].at_flags |= htole32(ATW_TXFLAG_LS); in atw_start() 3841 if (seg == lasttx) in atw_start() 3858 txs->txs_lastdesc = lasttx; in atw_start() 3871 device_xname(sc->sc_dev), lasttx, firsttx)); in atw_start() 3876 sc->sc_txdescs[lasttx].at_flags |= htole32(ATW_TXFLAG_IC); in atw_start() 3877 ATW_CDTXSYNC(sc, lasttx, 1, in atw_start()
|
| D | tulip.c | 678 int error, firsttx, nexttx, lasttx = 1, ofree, seg; in tlp_start() local 818 lasttx = nexttx; in tlp_start() 821 KASSERT(lasttx != -1); in tlp_start() 825 sc->sc_txdescs[lasttx].td_ctl |= htole32(TDCTL_Tx_LS); in tlp_start() 841 if (seg == lasttx) in tlp_start() 858 txs->txs_lastdesc = lasttx; in tlp_start() 878 device_xname(sc->sc_dev), lasttx, firsttx)); in tlp_start() 883 sc->sc_txdescs[lasttx].td_ctl |= htole32(TDCTL_Tx_IC); in tlp_start() 884 TULIP_CDTXSYNC(sc, lasttx, 1, in tlp_start() 893 last_txs->txs_firstdesc != lasttx) { in tlp_start()
|