Lines Matching refs:emac_read

358 #define emac_read(reg)		  ioread32(priv->emac_base + (reg))  macro
526 mac_control = emac_read(EMAC_MACCONTROL); in emac_update_phystatus()
544 mac_control = emac_read(EMAC_MACCONTROL); in emac_update_phystatus()
747 mbp_enable = emac_read(EMAC_RXMBPENABLE); in emac_dev_mcast_set()
1039 val = emac_read(EMAC_RXUNICASTSET); in emac_set_type0addr()
1042 val = emac_read(EMAC_RXUNICASTCLEAR); in emac_set_type0addr()
1173 while (emac_read(EMAC_SOFTRESET)) in emac_hw_enable()
1210 priv->rx_addr_type = (emac_read(EMAC_MACCONFIG) >> 8) & 0xFF; in emac_hw_enable()
1217 val = emac_read(EMAC_MACCONTROL); in emac_hw_enable()
1251 status = emac_read(EMAC_MACINVECTOR); in emac_poll()
1281 status = emac_read(EMAC_MACSTATUS); in emac_poll()
1669 mac_control = emac_read(EMAC_MACCONTROL); in emac_dev_getnetstats()
1676 ndev->stats.multicast += emac_read(EMAC_RXMCASTFRAMES); in emac_dev_getnetstats()
1679 ndev->stats.collisions += (emac_read(EMAC_TXCOLLISION) + in emac_dev_getnetstats()
1680 emac_read(EMAC_TXSINGLECOLL) + in emac_dev_getnetstats()
1681 emac_read(EMAC_TXMULTICOLL)); in emac_dev_getnetstats()
1686 ndev->stats.rx_length_errors += (emac_read(EMAC_RXOVERSIZED) + in emac_dev_getnetstats()
1687 emac_read(EMAC_RXJABBER) + in emac_dev_getnetstats()
1688 emac_read(EMAC_RXUNDERSIZED)); in emac_dev_getnetstats()
1693 ndev->stats.rx_over_errors += (emac_read(EMAC_RXSOFOVERRUNS) + in emac_dev_getnetstats()
1694 emac_read(EMAC_RXMOFOVERRUNS)); in emac_dev_getnetstats()
1698 ndev->stats.rx_fifo_errors += emac_read(EMAC_RXDMAOVERRUNS); in emac_dev_getnetstats()
1702 emac_read(EMAC_TXCARRIERSENSE); in emac_dev_getnetstats()
1705 ndev->stats.tx_fifo_errors += emac_read(EMAC_TXUNDERRUN); in emac_dev_getnetstats()