Lines Matching refs:emac_write
359 #define emac_write(reg, val) iowrite32(val, priv->emac_base + (reg)) macro
559 emac_write(EMAC_MACCONTROL, mac_control); in emac_update_phystatus()
730 emac_write(EMAC_MACHASH1, priv->mac_hash1); in emac_add_mcast()
731 emac_write(EMAC_MACHASH2, priv->mac_hash2); in emac_add_mcast()
773 emac_write(EMAC_RXMBPENABLE, mbp_enable); in emac_dev_mcast_set()
805 emac_write(EMAC_DM646X_MACEOIVECTOR, in emac_int_disable()
809 emac_write(EMAC_DM646X_MACEOIVECTOR, in emac_int_disable()
1034 emac_write(EMAC_MACSRCADDRLO, val); in emac_set_type0addr()
1038 emac_write(EMAC_MACSRCADDRHI, val); in emac_set_type0addr()
1041 emac_write(EMAC_RXUNICASTSET, val); in emac_set_type0addr()
1044 emac_write(EMAC_RXUNICASTCLEAR, val); in emac_set_type0addr()
1060 emac_write(EMAC_MACINDEX, ch); in emac_set_type1addr()
1062 emac_write(EMAC_MACADDRLO, val); in emac_set_type1addr()
1065 emac_write(EMAC_MACADDRHI, val); in emac_set_type1addr()
1085 emac_write(EMAC_MACINDEX, index); in emac_set_type2addr()
1088 emac_write(EMAC_MACADDRHI, val); in emac_set_type2addr()
1091 emac_write(EMAC_MACADDRLO, val); in emac_set_type2addr()
1172 emac_write(EMAC_SOFTRESET, 1); in emac_hw_enable()
1185 emac_write(EMAC_MACCONTROL, mac_control); in emac_hw_enable()
1203 emac_write(EMAC_RXMBPENABLE, mbp_enable); in emac_hw_enable()
1204 emac_write(EMAC_RXMAXLEN, (EMAC_DEF_MAX_FRAME_SIZE & in emac_hw_enable()
1206 emac_write(EMAC_RXBUFFEROFFSET, (EMAC_DEF_BUFFER_OFFSET & in emac_hw_enable()
1208 emac_write(EMAC_RXFILTERLOWTHRESH, 0); in emac_hw_enable()
1209 emac_write(EMAC_RXUNICASTCLEAR, EMAC_RX_UNICAST_CLEAR_ALL); in emac_hw_enable()
1212 emac_write(EMAC_MACINTMASKSET, EMAC_MAC_HOST_ERR_INTMASK_VAL); in emac_hw_enable()
1219 emac_write(EMAC_MACCONTROL, val); in emac_hw_enable()
1437 emac_write(EMAC_MACHASH1, 0); in emac_dev_open()
1438 emac_write(EMAC_MACHASH2, 0); in emac_dev_open()
1612 emac_write(EMAC_SOFTRESET, 1); in emac_dev_stop()
1677 emac_write(EMAC_RXMCASTFRAMES, stats_clear_mask); in emac_dev_getnetstats()
1682 emac_write(EMAC_TXCOLLISION, stats_clear_mask); in emac_dev_getnetstats()
1683 emac_write(EMAC_TXSINGLECOLL, stats_clear_mask); in emac_dev_getnetstats()
1684 emac_write(EMAC_TXMULTICOLL, stats_clear_mask); in emac_dev_getnetstats()
1689 emac_write(EMAC_RXOVERSIZED, stats_clear_mask); in emac_dev_getnetstats()
1690 emac_write(EMAC_RXJABBER, stats_clear_mask); in emac_dev_getnetstats()
1691 emac_write(EMAC_RXUNDERSIZED, stats_clear_mask); in emac_dev_getnetstats()
1695 emac_write(EMAC_RXSOFOVERRUNS, stats_clear_mask); in emac_dev_getnetstats()
1696 emac_write(EMAC_RXMOFOVERRUNS, stats_clear_mask); in emac_dev_getnetstats()
1699 emac_write(EMAC_RXDMAOVERRUNS, stats_clear_mask); in emac_dev_getnetstats()
1703 emac_write(EMAC_TXCARRIERSENSE, stats_clear_mask); in emac_dev_getnetstats()
1706 emac_write(EMAC_TXUNDERRUN, stats_clear_mask); in emac_dev_getnetstats()