Lines Matching refs:mt7530_priv
76 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) in core_read_mmd_indirect()
107 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, in core_write_mmd_indirect()
138 core_write(struct mt7530_priv *priv, u32 reg, u32 val) in core_write()
150 core_rmw(struct mt7530_priv *priv, u32 reg, u32 mask, u32 set) in core_rmw()
166 core_set(struct mt7530_priv *priv, u32 reg, u32 val) in core_set()
172 core_clear(struct mt7530_priv *priv, u32 reg, u32 val) in core_clear()
178 mt7530_mii_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_mii_write()
207 mt7530_mii_read(struct mt7530_priv *priv, u32 reg) in mt7530_mii_read()
231 mt7530_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_write()
264 mt7530_read(struct mt7530_priv *priv, u32 reg) in mt7530_read()
273 mt7530_rmw(struct mt7530_priv *priv, u32 reg, in mt7530_rmw()
290 mt7530_set(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_set()
296 mt7530_clear(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_clear()
302 mt7530_fdb_cmd(struct mt7530_priv *priv, enum mt7530_fdb_cmd cmd, u32 *rsp) in mt7530_fdb_cmd()
334 mt7530_fdb_read(struct mt7530_priv *priv, struct mt7530_fdb *fdb) in mt7530_fdb_read()
360 mt7530_fdb_write(struct mt7530_priv *priv, u16 vid, in mt7530_fdb_write()
391 struct mt7530_priv *priv = ds->priv; in mt7530_pad_clk_setup()
488 static bool mt7531_dual_sgmii_supported(struct mt7530_priv *priv) in mt7531_dual_sgmii_supported()
500 struct mt7530_priv *priv = ds->priv; in mt7531_pad_setup()
593 struct mt7530_priv *priv = ds->priv; in mt7530_mib_reset()
601 struct mt7530_priv *priv = ds->priv; in mt7530_phy_read()
609 struct mt7530_priv *priv = ds->priv; in mt7530_phy_write()
615 mt7531_ind_c45_phy_read(struct mt7530_priv *priv, int port, int devad, in mt7531_ind_c45_phy_read()
664 mt7531_ind_c45_phy_write(struct mt7530_priv *priv, int port, int devad, in mt7531_ind_c45_phy_write()
712 mt7531_ind_c22_phy_read(struct mt7530_priv *priv, int port, int regnum) in mt7531_ind_c22_phy_read()
750 mt7531_ind_c22_phy_write(struct mt7530_priv *priv, int port, int regnum, in mt7531_ind_c22_phy_write()
790 struct mt7530_priv *priv = ds->priv; in mt7531_ind_phy_read()
809 struct mt7530_priv *priv = ds->priv; in mt7531_ind_phy_write()
843 struct mt7530_priv *priv = ds->priv; in mt7530_get_ethtool_stats()
872 struct mt7530_priv *priv = ds->priv; in mt7530_set_ageing_time()
911 struct mt7530_priv *priv = ds->priv; in mt7530_setup_port5()
983 struct mt7530_priv *priv = ds->priv; in mt753x_cpu_port_enable()
1018 struct mt7530_priv *priv = ds->priv; in mt7530_port_enable()
1043 struct mt7530_priv *priv = ds->priv; in mt7530_port_disable()
1064 struct mt7530_priv *priv = ds->priv; in mt7530_port_change_mtu()
1111 struct mt7530_priv *priv = ds->priv; in mt7530_stp_state_set()
1153 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_flags()
1178 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_mrouter()
1190 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_join()
1227 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_vlan_unaware()
1263 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_vlan_aware()
1296 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_leave()
1334 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_add()
1350 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_del()
1366 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_dump()
1401 struct mt7530_priv *priv = ds->priv; in mt7530_port_mdb_add()
1427 struct mt7530_priv *priv = ds->priv; in mt7530_port_mdb_del()
1451 mt7530_vlan_cmd(struct mt7530_priv *priv, enum mt7530_vlan_cmd cmd, u16 vid) in mt7530_vlan_cmd()
1497 mt7530_hw_vlan_add(struct mt7530_priv *priv, in mt7530_hw_vlan_add()
1533 mt7530_hw_vlan_del(struct mt7530_priv *priv, in mt7530_hw_vlan_del()
1563 mt7530_hw_vlan_update(struct mt7530_priv *priv, u16 vid, in mt7530_hw_vlan_update()
1591 struct mt7530_priv *priv = ds->priv; in mt7530_port_vlan_add()
1614 struct mt7530_priv *priv = ds->priv; in mt7530_port_vlan_del()
1654 struct mt7530_priv *priv = ds->priv; in mt753x_port_mirror_add()
1691 struct mt7530_priv *priv = ds->priv; in mt753x_port_mirror_del()
1715 struct mt7530_priv *priv = ds->priv; in mtk_get_tag_protocol()
1743 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_get()
1752 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_set()
1764 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_get_direction()
1774 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_direction_input()
1786 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_direction_output()
1802 mt7530_setup_gpio(struct mt7530_priv *priv) in mt7530_setup_gpio()
1834 struct mt7530_priv *priv = ds->priv; in mt7530_setup()
1996 struct mt7530_priv *priv = ds->priv; in mt7531_setup()
2115 struct mt7530_priv *priv = ds->priv; in mt7530_phy_mode_supported()
2142 static bool mt7531_is_rgmii_port(struct mt7530_priv *priv, u32 port) in mt7531_is_rgmii_port()
2151 struct mt7530_priv *priv = ds->priv; in mt7531_phy_mode_supported()
2180 struct mt7530_priv *priv = ds->priv; in mt753x_phy_mode_supported()
2188 struct mt7530_priv *priv = ds->priv; in mt753x_pad_setup()
2197 struct mt7530_priv *priv = ds->priv; in mt7530_mac_config()
2208 static int mt7531_rgmii_setup(struct mt7530_priv *priv, u32 port, in mt7531_rgmii_setup()
2255 static void mt7531_sgmii_validate(struct mt7530_priv *priv, int port, in mt7531_sgmii_validate()
2278 struct mt7530_priv *priv = ds->priv; in mt7531_sgmii_link_up_force()
2317 static int mt7531_sgmii_setup_mode_force(struct mt7530_priv *priv, u32 port, in mt7531_sgmii_setup_mode_force()
2351 static int mt7531_sgmii_setup_mode_an(struct mt7530_priv *priv, int port, in mt7531_sgmii_setup_mode_an()
2381 struct mt7530_priv *priv = ds->priv; in mt7531_sgmii_restart_an()
2396 struct mt7530_priv *priv = ds->priv; in mt7531_mac_config()
2433 struct mt7530_priv *priv = ds->priv; in mt753x_mac_config()
2442 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_config()
2505 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_an_restart()
2517 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_down()
2526 struct mt7530_priv *priv = ds->priv; in mt753x_mac_pcs_link_up()
2541 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_up()
2590 struct mt7530_priv *priv = ds->priv; in mt7531_cpu_port_config()
2642 struct mt7530_priv *priv = ds->priv; in mt7531_mac_port_validate()
2653 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_validate()
2694 struct mt7530_priv *priv = ds->priv; in mt7530_phylink_mac_link_state()
2731 mt7531_sgmii_pcs_get_state_an(struct mt7530_priv *priv, int port, in mt7531_sgmii_pcs_get_state_an()
2773 struct mt7530_priv *priv = ds->priv; in mt7531_phylink_mac_link_state()
2785 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_state()
2793 struct mt7530_priv *priv = ds->priv; in mt753x_setup()
2801 struct mt7530_priv *priv = ds->priv; in mt753x_phy_read()
2809 struct mt7530_priv *priv = ds->priv; in mt753x_phy_write()
2817 struct mt7530_priv *priv = ds->priv; in mt753x_get_mac_eee()
2829 struct mt7530_priv *priv = ds->priv; in mt753x_set_mac_eee()
2933 struct mt7530_priv *priv; in mt7530_probe()
3019 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_remove()