Lines Matching refs:mt7530_priv

71 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad)  in core_read_mmd_indirect()
102 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, in core_write_mmd_indirect()
133 core_write(struct mt7530_priv *priv, u32 reg, u32 val) in core_write()
145 core_rmw(struct mt7530_priv *priv, u32 reg, u32 mask, u32 set) in core_rmw()
161 core_set(struct mt7530_priv *priv, u32 reg, u32 val) in core_set()
167 core_clear(struct mt7530_priv *priv, u32 reg, u32 val) in core_clear()
173 mt7530_mii_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_mii_write()
202 mt7530_mii_read(struct mt7530_priv *priv, u32 reg) in mt7530_mii_read()
226 mt7530_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_write()
259 mt7530_read(struct mt7530_priv *priv, u32 reg) in mt7530_read()
268 mt7530_rmw(struct mt7530_priv *priv, u32 reg, in mt7530_rmw()
285 mt7530_set(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_set()
291 mt7530_clear(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_clear()
297 mt7530_fdb_cmd(struct mt7530_priv *priv, enum mt7530_fdb_cmd cmd, u32 *rsp) in mt7530_fdb_cmd()
329 mt7530_fdb_read(struct mt7530_priv *priv, struct mt7530_fdb *fdb) in mt7530_fdb_read()
355 mt7530_fdb_write(struct mt7530_priv *priv, u16 vid, in mt7530_fdb_write()
386 struct mt7530_priv *priv = ds->priv; in mt7530_pad_clk_setup()
493 static bool mt7531_dual_sgmii_supported(struct mt7530_priv *priv) in mt7531_dual_sgmii_supported()
509 mt7531_pll_setup(struct mt7530_priv *priv) in mt7531_pll_setup()
601 struct mt7530_priv *priv = ds->priv; in mt7530_mib_reset()
609 struct mt7530_priv *priv = ds->priv; in mt7530_phy_read()
617 struct mt7530_priv *priv = ds->priv; in mt7530_phy_write()
623 mt7531_ind_c45_phy_read(struct mt7530_priv *priv, int port, int devad, in mt7531_ind_c45_phy_read()
672 mt7531_ind_c45_phy_write(struct mt7530_priv *priv, int port, int devad, in mt7531_ind_c45_phy_write()
720 mt7531_ind_c22_phy_read(struct mt7530_priv *priv, int port, int regnum) in mt7531_ind_c22_phy_read()
758 mt7531_ind_c22_phy_write(struct mt7530_priv *priv, int port, int regnum, in mt7531_ind_c22_phy_write()
798 struct mt7530_priv *priv = ds->priv; in mt7531_ind_phy_read()
817 struct mt7530_priv *priv = ds->priv; in mt7531_ind_phy_write()
851 struct mt7530_priv *priv = ds->priv; in mt7530_get_ethtool_stats()
879 struct mt7530_priv *priv = ds->priv; in mt7530_setup_port5()
951 struct mt7530_priv *priv = ds->priv; in mt753x_cpu_port_enable()
985 struct mt7530_priv *priv = ds->priv; in mt7530_port_enable()
1007 struct mt7530_priv *priv = ds->priv; in mt7530_port_disable()
1025 struct mt7530_priv *priv = ds->priv; in mt7530_stp_state_set()
1054 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_join()
1091 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_vlan_unaware()
1127 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_vlan_aware()
1152 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_leave()
1187 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_add()
1203 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_del()
1219 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_dump()
1251 mt7530_vlan_cmd(struct mt7530_priv *priv, enum mt7530_vlan_cmd cmd, u16 vid) in mt7530_vlan_cmd()
1310 mt7530_hw_vlan_add(struct mt7530_priv *priv, in mt7530_hw_vlan_add()
1346 mt7530_hw_vlan_del(struct mt7530_priv *priv, in mt7530_hw_vlan_del()
1376 mt7530_hw_vlan_update(struct mt7530_priv *priv, u16 vid, in mt7530_hw_vlan_update()
1403 struct mt7530_priv *priv = ds->priv; in mt7530_port_vlan_add()
1428 struct mt7530_priv *priv = ds->priv; in mt7530_port_vlan_del()
1470 struct mt7530_priv *priv = ds->priv; in mt753x_port_mirror_add()
1507 struct mt7530_priv *priv = ds->priv; in mt753x_port_mirror_del()
1531 struct mt7530_priv *priv = ds->priv; in mtk_get_tag_protocol()
1545 struct mt7530_priv *priv = ds->priv; in mt7530_setup()
1697 struct mt7530_priv *priv = ds->priv; in mt7531_setup()
1814 struct mt7530_priv *priv = ds->priv; in mt7530_phy_mode_supported()
1841 static bool mt7531_is_rgmii_port(struct mt7530_priv *priv, u32 port) in mt7531_is_rgmii_port()
1850 struct mt7530_priv *priv = ds->priv; in mt7531_phy_mode_supported()
1879 struct mt7530_priv *priv = ds->priv; in mt753x_phy_mode_supported()
1887 struct mt7530_priv *priv = ds->priv; in mt753x_pad_setup()
1896 struct mt7530_priv *priv = ds->priv; in mt7530_mac_config()
1907 static int mt7531_rgmii_setup(struct mt7530_priv *priv, u32 port, in mt7531_rgmii_setup()
1954 static void mt7531_sgmii_validate(struct mt7530_priv *priv, int port, in mt7531_sgmii_validate()
1971 struct mt7530_priv *priv = ds->priv; in mt7531_sgmii_link_up_force()
2010 static int mt7531_sgmii_setup_mode_force(struct mt7530_priv *priv, u32 port, in mt7531_sgmii_setup_mode_force()
2044 static int mt7531_sgmii_setup_mode_an(struct mt7530_priv *priv, int port, in mt7531_sgmii_setup_mode_an()
2074 struct mt7530_priv *priv = ds->priv; in mt7531_sgmii_restart_an()
2089 struct mt7530_priv *priv = ds->priv; in mt7531_mac_config()
2126 struct mt7530_priv *priv = ds->priv; in mt753x_mac_config()
2135 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_config()
2198 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_an_restart()
2210 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_down()
2219 struct mt7530_priv *priv = ds->priv; in mt753x_mac_pcs_link_up()
2234 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_up()
2272 struct mt7530_priv *priv = ds->priv; in mt7531_cpu_port_config()
2320 struct mt7530_priv *priv = ds->priv; in mt7531_mac_port_validate()
2331 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_validate()
2374 struct mt7530_priv *priv = ds->priv; in mt7530_phylink_mac_link_state()
2411 mt7531_sgmii_pcs_get_state_an(struct mt7530_priv *priv, int port, in mt7531_sgmii_pcs_get_state_an()
2453 struct mt7530_priv *priv = ds->priv; in mt7531_phylink_mac_link_state()
2465 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_state()
2473 struct mt7530_priv *priv = ds->priv; in mt753x_setup()
2481 struct mt7530_priv *priv = ds->priv; in mt753x_phy_read()
2489 struct mt7530_priv *priv = ds->priv; in mt753x_phy_write()
2574 struct mt7530_priv *priv; in mt7530_probe()
2660 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_remove()