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