Lines Matching refs:tse_csroffs
99 tse_csroffs(mdio_phy1_addr)); in altera_tse_mdio_read()
103 tse_csroffs(mdio_phy1) + regnum * 4) & 0xffff; in altera_tse_mdio_read()
114 tse_csroffs(mdio_phy1_addr)); in altera_tse_mdio_write()
117 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write()
650 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
651 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr()
665 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
668 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
672 if (tse_bit_is_clear(priv->mac_dev, tse_csroffs(command_config), in reset_mac()
679 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
681 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
696 priv->mac_dev, tse_csroffs(rx_section_empty)); in init_mac()
699 tse_csroffs(rx_section_full)); in init_mac()
702 tse_csroffs(rx_almost_empty)); in init_mac()
705 tse_csroffs(rx_almost_full)); in init_mac()
709 priv->mac_dev, tse_csroffs(tx_section_empty)); in init_mac()
712 tse_csroffs(tx_section_full)); in init_mac()
715 tse_csroffs(tx_almost_empty)); in init_mac()
718 tse_csroffs(tx_almost_full)); in init_mac()
725 csrwr32(frm_length, priv->mac_dev, tse_csroffs(frm_length)); in init_mac()
728 tse_csroffs(tx_ipg_length)); in init_mac()
733 tse_set_bit(priv->mac_dev, tse_csroffs(rx_cmd_stat), in init_mac()
736 tse_clear_bit(priv->mac_dev, tse_csroffs(tx_cmd_stat), in init_mac()
741 cmd = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in init_mac()
756 csrwr32(cmd, priv->mac_dev, tse_csroffs(command_config)); in init_mac()
759 tse_csroffs(pause_quanta)); in init_mac()
772 u32 value = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in tse_set_mac()
779 csrwr32(value, priv->mac_dev, tse_csroffs(command_config)); in tse_set_mac()
805 csrwr32(0, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilter()
821 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + hash * 4); in altera_tse_set_mcfilter()
833 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilterall()
845 tse_set_bit(priv->mac_dev, tse_csroffs(command_config), in tse_set_rx_mode_hashfilter()
866 tse_set_bit(priv->mac_dev, tse_csroffs(command_config), in tse_set_rx_mode()
869 tse_clear_bit(priv->mac_dev, tse_csroffs(command_config), in tse_set_rx_mode()
1069 ctrl = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in alt_tse_mac_link_up()
1081 csrwr32(ctrl, priv->mac_dev, tse_csroffs(command_config)); in alt_tse_mac_link_up()
1266 priv->pcs_base = priv->mac_dev + tse_csroffs(mdio_phy0); in altera_tse_probe()