Lines Matching refs:mac_dev
104 return csrrd32(priv->mac_dev, in sgmii_pcs_read()
111 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy0) + regnum * 4); in sgmii_pcs_write()
129 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_read()
133 return csrrd32(priv->mac_dev, in altera_tse_mdio_read()
144 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_write()
148 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write()
645 u32 cfg_reg = ioread32(&priv->mac_dev->command_config); in altera_tse_adjust_link()
685 iowrite32(cfg_reg, &priv->mac_dev->command_config); in altera_tse_adjust_link()
873 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
874 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr()
888 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
891 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
895 if (tse_bit_is_clear(priv->mac_dev, tse_csroffs(command_config), in reset_mac()
902 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
904 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
919 priv->mac_dev, tse_csroffs(rx_section_empty)); in init_mac()
921 csrwr32(ALTERA_TSE_RX_SECTION_FULL, priv->mac_dev, in init_mac()
924 csrwr32(ALTERA_TSE_RX_ALMOST_EMPTY, priv->mac_dev, in init_mac()
927 csrwr32(ALTERA_TSE_RX_ALMOST_FULL, priv->mac_dev, in init_mac()
932 priv->mac_dev, tse_csroffs(tx_section_empty)); in init_mac()
934 csrwr32(ALTERA_TSE_TX_SECTION_FULL, priv->mac_dev, in init_mac()
937 csrwr32(ALTERA_TSE_TX_ALMOST_EMPTY, priv->mac_dev, in init_mac()
940 csrwr32(ALTERA_TSE_TX_ALMOST_FULL, priv->mac_dev, in init_mac()
948 csrwr32(frm_length, priv->mac_dev, tse_csroffs(frm_length)); in init_mac()
950 csrwr32(ALTERA_TSE_TX_IPG_LENGTH, priv->mac_dev, in init_mac()
956 tse_set_bit(priv->mac_dev, tse_csroffs(rx_cmd_stat), in init_mac()
959 tse_clear_bit(priv->mac_dev, tse_csroffs(tx_cmd_stat), in init_mac()
964 cmd = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in init_mac()
979 csrwr32(cmd, priv->mac_dev, tse_csroffs(command_config)); in init_mac()
981 csrwr32(ALTERA_TSE_PAUSE_QUANTA, priv->mac_dev, in init_mac()
995 u32 value = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in tse_set_mac()
1002 csrwr32(value, priv->mac_dev, tse_csroffs(command_config)); in tse_set_mac()
1028 csrwr32(0, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilter()
1044 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + hash * 4); in altera_tse_set_mcfilter()
1056 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilterall()
1068 tse_set_bit(priv->mac_dev, tse_csroffs(command_config), in tse_set_rx_mode_hashfilter()
1089 tse_set_bit(priv->mac_dev, tse_csroffs(command_config), in tse_set_rx_mode()
1092 tse_clear_bit(priv->mac_dev, tse_csroffs(command_config), in tse_set_rx_mode()
1459 (void __iomem **)&priv->mac_dev); in altera_tse_probe()
1592 priv->revision = ioread32(&priv->mac_dev->megacore_revision); in altera_tse_probe()