Lines Matching refs:emac_read
545 #define emac_read(reg) ioread32(priv->emac_base + (reg))
573 emac_read(EMAC_TXIDVER),
574 ((emac_read(EMAC_TXCONTROL)) ? "enabled" : "disabled"),
575 emac_read(EMAC_RXIDVER),
576 ((emac_read(EMAC_RXCONTROL)) ? "enabled" : "disabled"));
578 "TxIntMasSet: %08X\n", emac_read(EMAC_TXINTSTATRAW),
579 emac_read(EMAC_TXINTSTATMASKED), emac_read(EMAC_TXINTMASKSET));
581 "RxIntMasSet: %08X\n", emac_read(EMAC_RXINTSTATRAW),
582 emac_read(EMAC_RXINTSTATMASKED), emac_read(EMAC_RXINTMASKSET));
584 "MacInVector=%08X\n", emac_read(EMAC_MACINTSTATRAW),
585 emac_read(EMAC_MACINTSTATMASKED), emac_read(EMAC_MACINVECTOR));
587 emac_read(EMAC_EMCONTROL), emac_read(EMAC_FIFOCONTROL));
589 "RXMaxLen=%08X\n", emac_read(EMAC_RXMBPENABLE),
590 emac_read(EMAC_RXUNICASTSET), emac_read(EMAC_RXMAXLEN));
592 "MacConfig=%08X\n", emac_read(EMAC_MACCONTROL),
593 emac_read(EMAC_MACSTATUS), emac_read(EMAC_MACCONFIG));
595 emac_read(EMAC_TXHDP(0)), emac_read(EMAC_RXHDP(0)));
598 emac_read(EMAC_RXGOODFRAMES));
600 emac_read(EMAC_RXBCASTFRAMES));
602 emac_read(EMAC_RXMCASTFRAMES));
604 emac_read(EMAC_RXPAUSEFRAMES));
606 emac_read(EMAC_RXCRCERRORS));
608 emac_read(EMAC_RXALIGNCODEERRORS));
610 emac_read(EMAC_RXOVERSIZED));
612 emac_read(EMAC_RXJABBER));
614 emac_read(EMAC_RXUNDERSIZED));
616 emac_read(EMAC_RXFRAGMENTS));
618 emac_read(EMAC_RXFILTERED));
620 emac_read(EMAC_RXQOSFILTERED));
622 emac_read(EMAC_RXOCTETS));
624 emac_read(EMAC_TXGOODFRAMES));
626 emac_read(EMAC_TXBCASTFRAMES));
628 emac_read(EMAC_TXMCASTFRAMES));
630 emac_read(EMAC_TXPAUSEFRAMES));
632 emac_read(EMAC_TXDEFERRED));
634 emac_read(EMAC_TXCOLLISION));
636 emac_read(EMAC_TXSINGLECOLL));
638 emac_read(EMAC_TXMULTICOLL));
640 emac_read(EMAC_TXEXCESSIVECOLL));
642 emac_read(EMAC_TXLATECOLL));
644 emac_read(EMAC_TXUNDERRUN));
646 emac_read(EMAC_TXCARRIERSENSE));
648 emac_read(EMAC_TXOCTETS));
650 emac_read(EMAC_NETOCTETS));
652 emac_read(EMAC_RXSOFOVERRUNS));
654 emac_read(EMAC_RXMOFOVERRUNS));
656 emac_read(EMAC_RXDMAOVERRUNS));
841 mac_control = emac_read(EMAC_MACCONTROL);
859 mac_control = emac_read(EMAC_MACCONTROL);
1062 mbp_enable = emac_read(EMAC_RXMBPENABLE);
1333 while ((emac_read(EMAC_TXCP(ch)) & EMAC_TEARDOWN_VALUE) !=
1764 while ((emac_read(EMAC_RXCP(ch)) & EMAC_TEARDOWN_VALUE) !=
1854 val = emac_read(EMAC_RXUNICASTSET);
1857 val = emac_read(EMAC_RXUNICASTCLEAR);
2179 while (emac_read(EMAC_SOFTRESET))
2216 priv->rx_addr_type = (emac_read(EMAC_MACCONFIG) >> 8) & 0xFF;
2218 val = emac_read(EMAC_TXCONTROL);
2221 val = emac_read(EMAC_RXCONTROL);
2240 val = emac_read(EMAC_MACCONTROL);
2274 status = emac_read(EMAC_MACINVECTOR);
2305 status = emac_read(EMAC_MACSTATUS);
2689 mac_control = emac_read(EMAC_MACCONTROL);
2696 ndev->stats.multicast += emac_read(EMAC_RXMCASTFRAMES);
2699 ndev->stats.collisions += (emac_read(EMAC_TXCOLLISION) +
2700 emac_read(EMAC_TXSINGLECOLL) +
2701 emac_read(EMAC_TXMULTICOLL));
2706 ndev->stats.rx_length_errors += (emac_read(EMAC_RXOVERSIZED) +
2707 emac_read(EMAC_RXJABBER) +
2708 emac_read(EMAC_RXUNDERSIZED));
2713 ndev->stats.rx_over_errors += (emac_read(EMAC_RXSOFOVERRUNS) +
2714 emac_read(EMAC_RXMOFOVERRUNS));
2718 ndev->stats.rx_fifo_errors += emac_read(EMAC_RXDMAOVERRUNS);
2722 emac_read(EMAC_TXCARRIERSENSE);
2725 ndev->stats.tx_fifo_errors = emac_read(EMAC_TXUNDERRUN);