Lines Matching refs:mac_io
136 void __iomem *mac_io; member
156 iowrite8(0, priv->mac_io + MAC_FRAME_ERR_CNT); in ec_bhf_reset()
157 iowrite8(0, priv->mac_io + MAC_RX_ERR_CNT); in ec_bhf_reset()
158 iowrite8(0, priv->mac_io + MAC_CRC_ERR_CNT); in ec_bhf_reset()
159 iowrite8(0, priv->mac_io + MAC_LNK_LST_ERR_CNT); in ec_bhf_reset()
160 iowrite32(0, priv->mac_io + MAC_TX_FRAME_CNT); in ec_bhf_reset()
161 iowrite32(0, priv->mac_io + MAC_RX_FRAME_CNT); in ec_bhf_reset()
162 iowrite8(0, priv->mac_io + MAC_DROPPED_FRMS); in ec_bhf_reset()
167 iowrite8(0, priv->mac_io + MAC_TX_FIFO_LVL); in ec_bhf_reset()
277 priv->mac_io = priv->ec_io + ioread32(priv->ec_io + EC_MAC_OFFSET); in ec_bhf_setup_offsets()
457 stats->rx_errors = ioread8(priv->mac_io + MAC_RX_ERR_CNT) + in ec_bhf_get_stats()
458 ioread8(priv->mac_io + MAC_CRC_ERR_CNT) + in ec_bhf_get_stats()
459 ioread8(priv->mac_io + MAC_FRAME_ERR_CNT); in ec_bhf_get_stats()
460 stats->rx_packets = ioread32(priv->mac_io + MAC_RX_FRAME_CNT); in ec_bhf_get_stats()
461 stats->tx_packets = ioread32(priv->mac_io + MAC_TX_FRAME_CNT); in ec_bhf_get_stats()
462 stats->rx_dropped = ioread8(priv->mac_io + MAC_DROPPED_FRMS); in ec_bhf_get_stats()