Lines Matching refs:desc0

552 dmfe_update_rx_stats(dmfe_t *dmfep, uint32_t desc0)  in dmfe_update_rx_stats()  argument
562 if (((RX_LAST_DESC | RX_ERR_SUMMARY) & ~desc0) == 0) { in dmfe_update_rx_stats()
576 if (desc0 & RX_OVERFLOW) { in dmfe_update_rx_stats()
579 } else if (desc0 & RX_RUNT_FRAME) in dmfe_update_rx_stats()
582 if (desc0 & RX_CRC) in dmfe_update_rx_stats()
585 if (desc0 & RX_FRAME2LONG) in dmfe_update_rx_stats()
594 if (desc0 & RX_RCV_WD_TO) in dmfe_update_rx_stats()
597 if (desc0 & RX_DRIBBLING) in dmfe_update_rx_stats()
600 if (desc0 & RX_MII_ERR) in dmfe_update_rx_stats()
616 uint32_t desc0; in dmfe_getp() local
640 desc0 = dmfe_ring_get32(descp, index, DESC0); in dmfe_getp()
642 DTRACE_PROBE1(rx__start, uint32_t, desc0); in dmfe_getp()
643 for (head = NULL, tail = &head; (desc0 & RX_OWN) == 0; ) { in dmfe_getp()
648 dmfe_update_rx_stats(dmfep, desc0); in dmfe_getp()
657 if (((RX_FIRST_DESC | RX_LAST_DESC) & ~desc0) != 0) { in dmfe_getp()
658 DTRACE_PROBE1(rx__frag, uint32_t, desc0); in dmfe_getp()
666 if (desc0 & RX_ERR_SUMMARY) { in dmfe_getp()
667 DTRACE_PROBE1(rx__err, uint32_t, desc0); in dmfe_getp()
671 packet_length = (desc0 >> 16) & 0x3fff; in dmfe_getp()
729 if (desc0 & RX_MULTI_FRAME) { in dmfe_getp()
762 desc0 = dmfe_ring_get32(descp, index, DESC0); in dmfe_getp()
853 dmfe_update_tx_stats(dmfe_t *dmfep, int index, uint32_t desc0, uint32_t desc1) in dmfe_update_tx_stats() argument
861 collisions = ((desc0 >> 3) & 0x0f); in dmfe_update_tx_stats()
862 errsum = desc0 & TX_ERR_SUMMARY; in dmfe_update_tx_stats()
863 errbits = desc0 & (TX_UNDERFLOW | TX_LATE_COLL | TX_CARRIER_LOSS | in dmfe_update_tx_stats()
866 dmfe_log(dmfep, "dubious TX error status 0x%x", desc0); in dmfe_update_tx_stats()
867 desc0 |= TX_ERR_SUMMARY; in dmfe_update_tx_stats()
870 if (desc0 & TX_ERR_SUMMARY) { in dmfe_update_tx_stats()
879 if (desc0 & TX_JABBER_TO) { in dmfe_update_tx_stats()
884 if (desc0 & TX_UNDERFLOW) in dmfe_update_tx_stats()
886 else if (desc0 & TX_LATE_COLL) in dmfe_update_tx_stats()
889 if (desc0 & (TX_CARRIER_LOSS | TX_NO_CARRIER)) in dmfe_update_tx_stats()
892 if (desc0 & TX_EXCESS_COLL) { in dmfe_update_tx_stats()
919 if (desc0 & TX_DEFERRED) in dmfe_update_tx_stats()
933 uint32_t desc0; in dmfe_reclaim_tx_desc() local
953 desc0 = dmfe_ring_get32(descp, i, DESC0); in dmfe_reclaim_tx_desc()
954 if (desc0 & TX_OWN) in dmfe_reclaim_tx_desc()
968 dmfe_update_tx_stats(dmfep, i, desc0, desc1); in dmfe_reclaim_tx_desc()
980 desc0 = dmfe_ring_get32(descp, i, DESC0); in dmfe_reclaim_tx_desc()
981 if (desc0 & TX_OWN) in dmfe_reclaim_tx_desc()