Home
last modified time | relevance | path

Searched refs:txstat (Results 1 – 17 of 17) sorted by relevance

/freebsd-12.1/sys/dev/wb/
H A Dif_wb.c983 u_int32_t txstat; local
986 txstat = WB_TXSTATUS(cur_tx);
988 if ((txstat & WB_TXSTAT_OWN) || txstat == WB_UNSENT)
991 if (txstat & WB_TXSTAT_TXERR) {
993 if (txstat & WB_TXSTAT_ABORT)
995 if (txstat & WB_TXSTAT_LATECOLL)
999 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, (txstat & WB_TXSTAT_COLLCNT) >> 3);
/freebsd-12.1/sys/dev/vr/
H A Dif_vr.c1434 uint32_t txctl, txstat; in vr_txeof() local
1456 txstat = le32toh(cur_tx->vr_status); in vr_txeof()
1457 if ((txstat & VR_TXSTAT_OWN) == VR_TXSTAT_OWN) in vr_txeof()
1470 if ((txstat & VR_TXSTAT_ERRSUM) != 0) { in vr_txeof()
1473 if ((txstat & VR_TXSTAT_ABRT) != 0) { in vr_txeof()
1495 (txstat & VR_TXSTAT_UNDERRUN)) || in vr_txeof()
1508 if ((txstat & VR_TXSTAT_DEFER) != 0) { in vr_txeof()
1512 if ((txstat & VR_TXSTAT_LATECOLL) != 0) { in vr_txeof()
1526 (txstat & VR_TXSTAT_COLLCNT) >> 3); in vr_txeof()
1528 (txstat & VR_TXSTAT_COLLCNT) >> 3; in vr_txeof()
[all …]
/freebsd-12.1/sys/dev/my/
H A Dif_my.c1210 u_int32_t txstat; in my_txeof() local
1213 txstat = MY_TXSTATUS(cur_tx); in my_txeof()
1214 if ((txstat & MY_OWNByNIC) || txstat == MY_UNSENT) in my_txeof()
1217 if (txstat & MY_TXERR) { in my_txeof()
1219 if (txstat & MY_EC) /* excessive collision */ in my_txeof()
1221 if (txstat & MY_LC) /* late collision */ in my_txeof()
1225 (txstat & MY_NCRMASK) >> MY_NCRShift); in my_txeof()
/freebsd-12.1/sys/mips/atheros/ar531x/
H A Dif_are.c693 int txstat; in are_encap() local
835 txstat = (CSR_READ_4(sc, CSR_STATUS) >> 20) & 7; in are_encap()
836 if (startcount == 0 && (txstat == 0 || txstat == 6)) { in are_encap()
857 int txstat; in are_start_locked() local
894 txstat = (CSR_READ_4(sc, CSR_STATUS) >> 20) & 7; in are_start_locked()
895 if (txstat == 0 || txstat == 6) { in are_start_locked()
/freebsd-12.1/sys/dev/ste/
H A Dif_ste.c671 uint16_t txstat; in ste_txeoc() local
689 txstat = CSR_READ_2(sc, STE_TX_STATUS); in ste_txeoc()
690 if ((txstat & STE_TXSTATUS_TXDONE) == 0) in ste_txeoc()
692 if ((txstat & (STE_TXSTATUS_UNDERRUN | in ste_txeoc()
698 txstat & 0xFF, STE_ERR_BITS); in ste_txeoc()
700 if ((txstat & STE_TXSTATUS_UNDERRUN) != 0 && in ste_txeoc()
729 CSR_WRITE_2(sc, STE_TX_STATUS, txstat); in ste_txeoc()
769 uint32_t txstat; in ste_txeof() local
785 txstat = le32toh(cur_tx->ste_ptr->ste_ctl); in ste_txeof()
786 if ((txstat & STE_TXCTL_DMADONE) == 0) in ste_txeof()
/freebsd-12.1/sys/arm/ralink/
H A Dif_fv.c751 int txstat; in fv_encap() local
882 txstat = (CSR_READ_4(sc, CSR_STATUS) >> 20) & 7; in fv_encap()
883 if (txstat == 0 || txstat == 6) { in fv_encap()
907 int txstat; in fv_start_locked() local
944 txstat = (CSR_READ_4(sc, CSR_STATUS) >> 20) & 7; in fv_start_locked()
945 if (txstat == 0 || txstat == 6) in fv_start_locked()
/freebsd-12.1/sys/dev/rl/
H A Dif_rl.c1243 uint32_t txstat; in rl_txeof() local
1254 txstat = CSR_READ_4(sc, RL_LAST_TXSTAT(sc)); in rl_txeof()
1255 if (!(txstat & (RL_TXSTAT_TX_OK| in rl_txeof()
1259 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, (txstat & RL_TXSTAT_COLLCNT) >> 24); in rl_txeof()
1271 if ((txstat & RL_TXSTAT_TX_UNDERRUN) && in rl_txeof()
1274 if (txstat & RL_TXSTAT_TX_OK) in rl_txeof()
1279 if ((txstat & RL_TXSTAT_TXABRT) || in rl_txeof()
1280 (txstat & RL_TXSTAT_OUTOFWIN)) in rl_txeof()
/freebsd-12.1/sys/dev/dc/
H A Dif_dc.c2985 uint32_t ctl, txstat; in dc_txeof() local
3002 txstat = le32toh(cur_tx->dc_status); in dc_txeof()
3005 if (txstat & DC_TXSTAT_OWN) in dc_txeof()
3026 if (txstat & DC_TXSTAT_ERRSUM) in dc_txeof()
3044 ((txstat & 0xFFFF) & ~(DC_TXSTAT_ERRSUM | in dc_txeof()
3046 txstat &= ~DC_TXSTAT_ERRSUM; in dc_txeof()
3052 txstat &= ~DC_TXSTAT_ERRSUM; in dc_txeof()
3055 if (txstat & DC_TXSTAT_ERRSUM) { in dc_txeof()
3057 if (txstat & DC_TXSTAT_EXCESSCOLL) in dc_txeof()
3059 if (txstat & DC_TXSTAT_LATECOLL) in dc_txeof()
[all …]
/freebsd-12.1/sys/dev/sis/
H A Dif_sis.c1571 uint32_t cons, txstat; in sis_txeof() local
1589 txstat = le32toh(cur_tx->sis_cmdsts); in sis_txeof()
1590 if ((txstat & SIS_CMDSTS_OWN) != 0) in sis_txeof()
1599 if ((txstat & SIS_CMDSTS_PKT_OK) != 0) { in sis_txeof()
1602 (txstat & SIS_TXSTAT_COLLCNT) >> 16); in sis_txeof()
1605 if (txstat & SIS_TXSTAT_EXCESSCOLLS) in sis_txeof()
1607 if (txstat & SIS_TXSTAT_OUTOFWINCOLL) in sis_txeof()
/freebsd-12.1/sys/dev/sge/
H A Dif_sge.c1238 uint32_t txstat; in sge_txeof() local
1254 txstat = le32toh(ld->sge_tx_ring[cons].sge_cmdsts); in sge_txeof()
1255 if ((txstat & TDC_OWN) != 0) in sge_txeof()
1264 if (SGE_TX_ERROR(txstat) != 0) { in sge_txeof()
1267 txstat, TX_ERR_BITS); in sge_txeof()
1272 if_inc_counter(ifp, IFCOUNTER_COLLISIONS, (txstat & 0xFFFF) - 1); in sge_txeof()
/freebsd-12.1/sys/dev/xl/
H A Dif_xl.c2091 u_int8_t txstat; in xl_txeoc() local
2095 while ((txstat = CSR_READ_1(sc, XL_TX_STATUS))) { in xl_txeoc()
2096 if (txstat & XL_TXSTATUS_UNDERRUN || in xl_txeoc()
2097 txstat & XL_TXSTATUS_JABBER || in xl_txeoc()
2098 txstat & XL_TXSTATUS_RECLAIM) { in xl_txeoc()
2100 "transmission error: 0x%02x\n", txstat); in xl_txeoc()
2127 if (txstat & XL_TXSTATUS_UNDERRUN && in xl_txeoc()
/freebsd-12.1/sys/dev/usb/controller/
H A Dmusb_otg.h440 uint16_t rxstat, uint16_t txstat, uint8_t stat);
H A Dmusb_otg.c2252 uint16_t rxstat, uint16_t txstat, uint8_t stat) in musbotg_interrupt() argument
2271 tx_status |= txstat; in musbotg_interrupt()
2276 txstat = 0; in musbotg_interrupt()
/freebsd-12.1/sys/dev/stge/
H A Dif_stge.c1414 uint32_t txstat; in stge_tx_error() local
1418 txstat = CSR_READ_4(sc, STGE_TxStatus); in stge_tx_error()
1419 if ((txstat & TS_TxComplete) == 0) in stge_tx_error()
1422 if ((txstat & TS_TxUnderrun) != 0) { in stge_tx_error()
1438 if ((txstat & (TS_MaxCollisions|TS_LateCollision)) != 0) in stge_tx_error()
/freebsd-12.1/sys/dev/re/
H A Dif_re.c2411 u_int32_t txstat; in re_txeof() local
2430 txstat = le32toh(sc->rl_ldata.rl_tx_list[cons].rl_cmdstat); in re_txeof()
2431 if (txstat & RL_TDESC_STAT_OWN) in re_txeof()
2439 if (txstat & RL_TDESC_CMD_EOF) { in re_txeof()
2449 if (txstat & (RL_TDESC_STAT_EXCESSCOL| in re_txeof()
2452 if (txstat & RL_TDESC_STAT_TXERRSUM) in re_txeof()
/freebsd-12.1/sys/dev/vge/
H A Dif_vge.c1609 uint32_t txstat; in vge_txeof() local
1631 txstat = le32toh(cur_tx->vge_sts); in vge_txeof()
1632 if ((txstat & VGE_TDSTS_OWN) != 0) in vge_txeof()
/freebsd-12.1/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_stub_funcs.c1055 struct ath_desc *ds, struct ath_tx_status *txstat) in ar9300_Stub_ProcTxDesc() argument