Home
last modified time | relevance | path

Searched refs:nexttx (Results 1 – 25 of 25) sorted by relevance

/netbsd-src/sys/dev/ic/
H A Dsgec.c323 int nexttx, starttx; in zestart() local
335 nexttx = sc->sc_nexttx; in zestart()
344 map = sc->sc_xmtmap[nexttx]; in zestart()
367 starttx = nexttx; in zestart()
383 sc->sc_txmbuf[nexttx] = m; in zestart()
385 zc->zc_xmit[nexttx].ze_bufsize = len; in zestart()
386 zc->zc_xmit[nexttx].ze_bufaddr = (char *)buffer; in zestart()
387 zc->zc_xmit[nexttx].ze_tdes1 = orword; in zestart()
388 zc->zc_xmit[nexttx].ze_tdr = tdr; in zestart()
390 if (++nexttx == TXDESCS) in zestart()
[all …]
H A Ddp83932.c291 int error, olasttx, nexttx, opending, totlen, olseg; in sonic_start() local
321 nexttx = SONIC_NEXTTX(sc->sc_txlast); in sonic_start()
322 ds = &sc->sc_txsoft[nexttx]; in sonic_start()
389 tda32 = &sc->sc_tda32[nexttx]; in sonic_start()
422 SONIC_NEXTTX(nexttx)) & 0xffff); in sonic_start()
425 SONIC_CDTXSYNC32(sc, nexttx, in sonic_start()
428 tda16 = &sc->sc_tda16[nexttx]; in sonic_start()
461 SONIC_NEXTTX(nexttx)) & 0xffff); in sonic_start()
464 SONIC_CDTXSYNC16(sc, nexttx, in sonic_start()
470 sc->sc_txlast = nexttx; in sonic_start()
H A Dsmc83c170.c365 int error, firsttx, nexttx, opending, seg; in epic_start() local
392 nexttx = EPIC_NEXTTX(sc->sc_txlast); in epic_start()
393 txd = EPIC_CDTX(sc, nexttx); in epic_start()
394 fr = EPIC_CDFL(sc, nexttx); in epic_start()
395 ds = EPIC_DSTX(sc, nexttx); in epic_start()
461 EPIC_CDFLSYNC(sc, nexttx, BUS_DMASYNC_PREWRITE); in epic_start()
482 if (nexttx == firsttx) in epic_start()
488 EPIC_CDTXSYNC(sc, nexttx, in epic_start()
493 sc->sc_txlast = nexttx; in epic_start()
H A Dhd64570.c1006 int nexttx; in sca_start() local
1060 nexttx = (scp->sp_txcur + 1) % scp->sp_ntxdesc; in sca_start()
1062 nexttx = 0; in sca_start()
1066 nexttx = (scp->sp_txcur + 1) % scp->sp_ntxdesc; in sca_start()
1068 nexttx = 0; in sca_start()
1070 SCA_DPRINTF(SCA_DEBUG_TX, ("TX: nexttx %d\n", nexttx)); in sca_start()
1072 buf = scp->sp_txbuf + SCA_BSIZE * nexttx; in sca_start()
1073 buf_p = scp->sp_txbuf_p + SCA_BSIZE * nexttx; in sca_start()
1076 desc = &scp->sp_txdesc[nexttx]; in sca_start()
[all...]
H A Dgem.c1370 int error, firsttx, nexttx = -1, lasttx = -1, ofree, seg; in gem_start() local
1489 for (nexttx = firsttx, seg = 0; in gem_start()
1491 seg++, nexttx = GEM_NEXTTX(nexttx)) { in gem_start()
1500 if (nexttx == firsttx) { in gem_start()
1539 sc->sc_txdescs[nexttx].gd_addr = in gem_start()
1545 sc->sc_txdescs[nexttx].gd_flags = in gem_start()
1548 lasttx = nexttx; in gem_start()
1556 sc->sc_txdescs[nexttx].gd_addr = in gem_start()
1561 lasttx = nexttx; in gem_start()
1562 nexttx = GEM_NEXTTX(nexttx); in gem_start()
[all …]
H A Dtulip.c678 int error, firsttx, nexttx, lasttx = 1, ofree, seg; in tlp_start() local
799 for (nexttx = sc->sc_txnext, seg = 0; in tlp_start()
801 seg++, nexttx = TULIP_NEXTTX(nexttx)) { in tlp_start()
808 txd = &sc->sc_txdescs[nexttx]; in tlp_start()
810 (nexttx == firsttx) ? 0 : htole32(TDSTAT_OWN); in tlp_start()
816 (nexttx == (TULIP_NTXDESC - 1) ? in tlp_start()
818 lasttx = nexttx; in tlp_start()
863 sc->sc_txnext = nexttx; in tlp_start()
2554 int cnt, nexttx; in tlp_filter_setup() local
2755 nexttx = sc->sc_txnext; in tlp_filter_setup()
[all …]
H A Di82557.c809 int error, lasttx, nexttx, opending, seg, nsegs, len; in fxp_start() local
853 nexttx = FXP_NEXTTX(sc->sc_txlast); in fxp_start()
854 txd = FXP_CDTX(sc, nexttx); in fxp_start()
855 txs = FXP_DSTX(sc, nexttx); in fxp_start()
995 FXP_CDTXSYNC(sc, nexttx, in fxp_start()
1000 sc->sc_txlast = nexttx; in fxp_start()
H A Datw.c3518 int ctl, error, firsttx, nexttx, lasttx, first, ofree, seg; in atw_start() local
3801 for (nexttx = sc->sc_txnext, seg = 0; in atw_start()
3803 seg++, nexttx = ATW_NEXTTX(nexttx)) { in atw_start()
3810 txd = &sc->sc_txdescs[nexttx]; in atw_start()
3812 ((nexttx == firsttx) ? 0 : htole32(ATW_TXCTL_OWN)); in atw_start()
3818 ((nexttx == (ATW_NTXDESC - 1)) in atw_start()
3820 lasttx = nexttx; in atw_start()
3863 sc->sc_txnext = nexttx; in atw_start()
/netbsd-src/sys/dev/pci/
H A Dif_pcn.c919 int error, nexttx, lasttx = -1, ofree, seg; in pcn_start() local
1042 for (nexttx = sc->sc_txnext, seg = 0; in pcn_start()
1044 seg++, nexttx = PCN_NEXTTX(nexttx)) { in pcn_start()
1051 sc->sc_txdescs[nexttx].tmd0 = 0; in pcn_start()
1052 sc->sc_txdescs[nexttx].tmd2 = in pcn_start()
1054 sc->sc_txdescs[nexttx].tmd1 = in pcn_start()
1056 (nexttx == sc->sc_txnext ? 0 : LE_T1_OWN) | in pcn_start()
1059 lasttx = nexttx; in pcn_start()
1062 for (nexttx in pcn_start()
[all...]
H A Dif_dge.c1185 int error, nexttx, lasttx = -1, ofree, seg; local
1330 for (nexttx = sc->sc_txnext, seg = 0;
1332 seg++, nexttx = DGE_NEXTTX(nexttx)) {
1333 sc->sc_txdescs[nexttx].dt_baddrh =
1335 sc->sc_txdescs[nexttx].dt_baddrl =
1337 sc->sc_txdescs[nexttx].dt_ctl =
1339 sc->sc_txdescs[nexttx].dt_status = 0;
1340 sc->sc_txdescs[nexttx].dt_popts = cksumfields;
1341 sc->sc_txdescs[nexttx].dt_vlan = 0;
1342 lasttx = nexttx;
[all …]
H A Dif_xge.c946 int nexttx = 0, ntxd, error, i; in xge_start() local
960 nexttx = sc->sc_nexttx; in xge_start()
961 dmp = sc->sc_txm[nexttx]; in xge_start()
974 txd = sc->sc_txd[nexttx]; in xge_start()
975 sc->sc_txb[nexttx] = m; in xge_start()
984 ntxd = txd - sc->sc_txd[nexttx] - 1; in xge_start()
985 txd = sc->sc_txd[nexttx]; in xge_start()
1004 par = sc->sc_txdp[nexttx]; in xge_start()
1013 sc->sc_nexttx = NEXTTX(nexttx); in xge_start()
H A Dif_ste.c656 int error, olasttx, nexttx, opending, seg, totlen; in ste_start() local
685 nexttx = STE_NEXTTX(sc->sc_txlast); in ste_start()
686 tfd = &sc->sc_txdescs[nexttx]; in ste_start()
687 ds = &sc->sc_txsoft[nexttx]; in ste_start()
754 tfd->tfd_next = htole32(STE_CDTXADDR(sc, nexttx)); in ste_start()
755 tfd->tfd_control = htole32(TFD_FrameId(nexttx) | (totlen & 3)); in ste_start()
758 STE_CDTXSYNC(sc, nexttx, in ste_start()
770 sc->sc_txlast = nexttx; in ste_start()
H A Dif_stge.c826 int error, firsttx, nexttx, opending, seg, totlen; in stge_start() local
875 nexttx = STGE_NEXTTX(sc->sc_txlast); in stge_start()
876 tfd = &sc->sc_txdescs[nexttx]; in stge_start()
877 ds = &sc->sc_txsoft[nexttx]; in stge_start()
970 tfc = TFD_FrameId(nexttx) | TFD_WordAlign(/*totlen & */3) | in stge_start()
972 (((nexttx & STGE_TXINTR_SPACING_MASK) == 0) ? in stge_start()
991 STGE_CDTXSYNC(sc, nexttx, in stge_start()
1007 sc->sc_txlast = nexttx; in stge_start()
H A Dif_kse.c920 int error, nexttx, lasttx, ofree, seg; in kse_start() local
986 for (nexttx = sc->sc_txnext, seg = 0; in kse_start()
988 seg++, nexttx = KSE_NEXTTX(nexttx)) { in kse_start()
989 struct tdes *tdes = &sc->sc_txdescs[nexttx]; in kse_start()
1001 lasttx = nexttx; in kse_start()
1035 sc->sc_txnext = nexttx; in kse_start()
H A Dif_vr.c1010 int error, firsttx, nexttx, opending; in vr_start() local
1041 nexttx = VR_NEXTTX(sc->vr_txlast); in vr_start()
1042 d = VR_CDTX(sc, nexttx); in vr_start()
1043 ds = VR_DSTX(sc, nexttx); in vr_start()
1125 if (nexttx == firsttx) in vr_start()
1130 VR_CDTXSYNC(sc, nexttx, in vr_start()
1135 sc->vr_txlast = nexttx; in vr_start()
H A Dif_wm.c5406 int nexttx; in wm_flush_desc_rings() local
5436 nexttx = txq->txq_next; in wm_flush_desc_rings()
5437 txd = &txq->txq_descs[nexttx]; in wm_flush_desc_rings()
8942 int error, nexttx, lasttx = -1, ofree, seg, segs_needed, use_tso; in wm_send_common_locked()
9155 for (nexttx = txq->txq_next, seg = 0; in wm_send_common_locked()
9161 nexttx = WM_NEXTTX(txq, nexttx)) { in wm_send_common_locked()
9175 &txq->txq_descs[nexttx].wtx_addr, curaddr); in wm_send_common_locked()
9176 txq->txq_descs[nexttx].wtx_cmdlen in wm_send_common_locked()
9178 txq->txq_descs[nexttx] in wm_send_common_locked()
8941 int error, nexttx, lasttx = -1, ofree, seg, segs_needed, use_tso; wm_send_common_locked() local
9559 int error, nexttx, lasttx = -1, seg, segs_needed; wm_nq_send_common_locked() local
[all...]
H A Dif_sip.c1543 int error, nexttx, lasttx, seg; in sipcom_start() local
1663 for (nexttx = lasttx = sc->sc_txnext, seg = 0; in sipcom_start()
1665 seg++, nexttx = sip_nexttx(sc, nexttx)) { in sipcom_start()
1674 if (nexttx != sc->sc_txnext) in sipcom_start()
1678 sip_init_txdesc(sc, nexttx, in sipcom_start()
1680 lasttx = nexttx; in sipcom_start()
1721 sc->sc_txnext = nexttx; in sipcom_start()
H A Dif_jme.c1639 nexttx: in jme_ifstart()
1655 goto nexttx; in jme_ifstart()
/netbsd-src/sys/arch/mips/alchemy/dev/
H A Dif_aumac.c395 int nexttx; in aumac_start() local
417 nexttx = sc->sc_txnext; in aumac_start()
426 (void *)sc->sc_txbufs[nexttx].buf_vaddr); in aumac_start()
430 memset((char *)sc->sc_txbufs[nexttx].buf_vaddr + in aumac_start()
435 MACDMA_TX_STAT(nexttx), 0); in aumac_start()
437 MACDMA_TX_LEN(nexttx), in aumac_start()
441 MACDMA_TX_ADDR(nexttx), in aumac_start()
442 sc->sc_txbufs[nexttx].buf_paddr | TX_ADDR_EN); in aumac_start()
449 sc->sc_txnext = AUMAC_NEXTTX(nexttx); in aumac_start()
/netbsd-src/sys/arch/sgimips/hpc/
H A Dif_sq.c534 int err, totlen, nexttx, firsttx, lasttx = -1, ofree, seg; in sq_start() local
653 for (nexttx = sc->sc_nexttx, seg = 0, totlen = 0; in sq_start()
655 seg++, nexttx = SQ_NEXTTX(nexttx)) { in sq_start()
657 sc->sc_txdesc[nexttx].hpc3_hdd_bufptr = in sq_start()
659 sc->sc_txdesc[nexttx].hpc3_hdd_ctl = in sq_start()
662 sc->sc_txdesc[nexttx].hpc1_hdd_bufptr = in sq_start()
664 sc->sc_txdesc[nexttx].hpc1_hdd_ctl = in sq_start()
667 sc->sc_txdesc[nexttx].hdd_descptr = in sq_start()
668 SQ_CDTXADDR(sc, SQ_NEXTTX(nexttx)); in sq_start()
669 lasttx = nexttx; in sq_start()
[all …]
/netbsd-src/sys/arch/mips/atheros/dev/
H A Dif_ae.c552 int error, firsttx, nexttx, lasttx = 1, ofree, seg; in ae_start() local
662 for (nexttx = sc->sc_txnext, seg = 0; in ae_start()
664 seg++, nexttx = AE_NEXTTX(nexttx)) { in ae_start()
671 sc->sc_txdescs[nexttx].ad_status = in ae_start()
672 (nexttx == firsttx) ? 0 : ADSTAT_OWN; in ae_start()
673 sc->sc_txdescs[nexttx].ad_bufaddr1 = in ae_start()
675 sc->sc_txdescs[nexttx].ad_ctl = in ae_start()
678 (nexttx == (AE_NTXDESC - 1) ? in ae_start()
680 lasttx = nexttx; in ae_start()
724 sc->sc_txnext = nexttx; in ae_start()
/netbsd-src/sys/arch/mips/adm5120/dev/
H A Dif_admsw.c543 int error, nexttx, len, i; in admsw_start() local
579 nexttx = sc->sc_txnext; in admsw_start()
580 desc = &sc->sc_txldescs[nexttx]; in admsw_start()
581 ds = &sc->sc_txlsoft[nexttx]; in admsw_start()
657 if (nexttx == ADMSW_NTXLDESC - 1) in admsw_start()
662 ADMSW_CDTXLSYNC(sc, nexttx, in admsw_start()
675 sc->sc_txnext = ADMSW_NEXTTXL(nexttx); in admsw_start()
/netbsd-src/sys/arch/powerpc/ibm4xx/dev/
H A Dif_emac.c670 int error, firsttx, nexttx, lasttx, ofree, seg; in emac_start() local
770 for (nexttx = sc->sc_txnext, seg = 0; in emac_start()
772 seg++, nexttx = EMAC_NEXTTX(nexttx)) { in emac_start()
774 &sc->sc_txdescs[nexttx]; in emac_start()
786 (nexttx == firsttx ? 0 : MAL_TX_READY) | in emac_start()
788 lasttx = nexttx; in emac_start()
822 sc->sc_txnext = nexttx; in emac_start()
/netbsd-src/sys/arch/sgimips/mace/
H A Dif_mec.c950 int error, firsttx, nexttx, opending; in mec_start() local
976 nexttx = MEC_NEXTTX(sc->sc_txlast); in mec_start()
977 txd = &sc->sc_txdesc[nexttx]; in mec_start()
978 txs = &sc->sc_txsoft[nexttx]; in mec_start()
992 __func__, len, nexttx, sc->sc_txpending)); in mec_start()
1311 (nexttx & (MEC_NTXDESC_INTR - 1)) == 0) in mec_start()
1380 MEC_TXDESCSYNC(sc, nexttx, in mec_start()
1384 bus_space_write_8(st, sh, MEC_TX_RING_PTR, MEC_NEXTTX(nexttx)); in mec_start()
1388 sc->sc_txlast = nexttx; in mec_start()
/netbsd-src/sys/arch/arm/sociox/
H A Dif_scx.c1369 int error, nexttx, lasttx, ofree, seg; in scx_start() local
1428 for (nexttx = sc->sc_txnext, seg = 0; in scx_start()
1430 seg++, nexttx = MD_NEXTTX(nexttx)) { in scx_start()
1431 struct tdes *tdes = &sc->sc_txdescs[nexttx]; in scx_start()
1449 lasttx = nexttx; in scx_start()
1468 sc->sc_txnext = nexttx; in scx_start()