Lines Matching refs:mt7530_priv

83 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad)  in core_read_mmd_indirect()
114 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, in core_write_mmd_indirect()
145 core_write(struct mt7530_priv *priv, u32 reg, u32 val) in core_write()
157 core_rmw(struct mt7530_priv *priv, u32 reg, u32 mask, u32 set) in core_rmw()
173 core_set(struct mt7530_priv *priv, u32 reg, u32 val) in core_set()
179 core_clear(struct mt7530_priv *priv, u32 reg, u32 val) in core_clear()
185 mt7530_mii_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_mii_write()
214 mt7530_mii_read(struct mt7530_priv *priv, u32 reg) in mt7530_mii_read()
238 mt7530_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_write()
271 mt7530_read(struct mt7530_priv *priv, u32 reg) in mt7530_read()
280 mt7530_rmw(struct mt7530_priv *priv, u32 reg, in mt7530_rmw()
297 mt7530_set(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_set()
303 mt7530_clear(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_clear()
309 mt7530_fdb_cmd(struct mt7530_priv *priv, enum mt7530_fdb_cmd cmd, u32 *rsp) in mt7530_fdb_cmd()
341 mt7530_fdb_read(struct mt7530_priv *priv, struct mt7530_fdb *fdb) in mt7530_fdb_read()
367 mt7530_fdb_write(struct mt7530_priv *priv, u16 vid, in mt7530_fdb_write()
400 struct mt7530_priv *priv = ds->priv; in mt7530_pad_clk_setup()
497 static bool mt7531_dual_sgmii_supported(struct mt7530_priv *priv) in mt7531_dual_sgmii_supported()
513 mt7531_pll_setup(struct mt7530_priv *priv) in mt7531_pll_setup()
605 struct mt7530_priv *priv = ds->priv; in mt7530_mib_reset()
611 static int mt7530_phy_read(struct mt7530_priv *priv, int port, int regnum) in mt7530_phy_read()
616 static int mt7530_phy_write(struct mt7530_priv *priv, int port, int regnum, 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()
796 mt7531_ind_phy_read(struct mt7530_priv *priv, int port, int regnum) in mt7531_ind_phy_read()
813 mt7531_ind_phy_write(struct mt7530_priv *priv, int port, int regnum, in mt7531_ind_phy_write()
834 struct mt7530_priv *priv = bus->priv; in mt753x_phy_read()
842 struct mt7530_priv *priv = bus->priv; in mt753x_phy_write()
865 struct mt7530_priv *priv = ds->priv; in mt7530_get_ethtool_stats()
894 struct mt7530_priv *priv = ds->priv; in mt7530_set_ageing_time()
933 struct mt7530_priv *priv = ds->priv; in mt7530_setup_port5()
1005 struct mt7530_priv *priv = ds->priv; in mt753x_cpu_port_enable()
1045 struct mt7530_priv *priv = ds->priv; in mt7530_port_enable()
1071 struct mt7530_priv *priv = ds->priv; in mt7530_port_disable()
1089 struct mt7530_priv *priv = ds->priv; in mt7530_port_change_mtu()
1136 struct mt7530_priv *priv = ds->priv; in mt7530_stp_state_set()
1179 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_flags()
1208 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_join()
1251 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_vlan_unaware()
1297 struct mt7530_priv *priv = ds->priv; in mt7530_port_set_vlan_aware()
1328 struct mt7530_priv *priv = ds->priv; in mt7530_port_bridge_leave()
1374 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_add()
1391 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_del()
1407 struct mt7530_priv *priv = ds->priv; in mt7530_port_fdb_dump()
1443 struct mt7530_priv *priv = ds->priv; in mt7530_port_mdb_add()
1470 struct mt7530_priv *priv = ds->priv; in mt7530_port_mdb_del()
1494 mt7530_vlan_cmd(struct mt7530_priv *priv, enum mt7530_vlan_cmd cmd, u16 vid) in mt7530_vlan_cmd()
1543 mt7530_hw_vlan_add(struct mt7530_priv *priv, in mt7530_hw_vlan_add()
1578 mt7530_hw_vlan_del(struct mt7530_priv *priv, in mt7530_hw_vlan_del()
1604 mt7530_hw_vlan_update(struct mt7530_priv *priv, u16 vid, in mt7530_hw_vlan_update()
1625 mt7530_setup_vlan0(struct mt7530_priv *priv) in mt7530_setup_vlan0()
1647 struct mt7530_priv *priv = ds->priv; in mt7530_port_vlan_add()
1689 struct mt7530_priv *priv = ds->priv; in mt7530_port_vlan_del()
1734 struct mt7530_priv *priv = ds->priv; in mt753x_port_mirror_add()
1771 struct mt7530_priv *priv = ds->priv; in mt753x_port_mirror_del()
1815 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_get()
1824 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_set()
1836 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_get_direction()
1846 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_direction_input()
1858 struct mt7530_priv *priv = gpiochip_get_data(gc); in mt7530_gpio_direction_output()
1874 mt7530_setup_gpio(struct mt7530_priv *priv) in mt7530_setup_gpio()
1906 struct mt7530_priv *priv = dev_id; in mt7530_irq_thread_fn()
1932 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); in mt7530_irq_mask()
1940 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); in mt7530_irq_unmask()
1948 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); in mt7530_irq_bus_lock()
1956 struct mt7530_priv *priv = irq_data_get_irq_chip_data(d); in mt7530_irq_bus_sync_unlock()
1988 mt7530_setup_mdio_irq(struct mt7530_priv *priv) in mt7530_setup_mdio_irq()
2004 mt7530_setup_irq(struct mt7530_priv *priv) in mt7530_setup_irq()
2044 mt7530_free_mdio_irq(struct mt7530_priv *priv) in mt7530_free_mdio_irq()
2059 mt7530_free_irq_common(struct mt7530_priv *priv) in mt7530_free_irq_common()
2066 mt7530_free_irq(struct mt7530_priv *priv) in mt7530_free_irq()
2073 mt7530_setup_mdio(struct mt7530_priv *priv) in mt7530_setup_mdio()
2110 struct mt7530_priv *priv = ds->priv; in mt7530_setup()
2296 struct mt7530_priv *priv = ds->priv; in mt7531_setup()
2457 static bool mt7531_is_rgmii_port(struct mt7530_priv *priv, u32 port) in mt7531_is_rgmii_port()
2465 struct mt7530_priv *priv = ds->priv; in mt7531_mac_port_get_caps()
2496 struct mt7530_priv *priv = ds->priv; in mt753x_pad_setup()
2505 struct mt7530_priv *priv = ds->priv; in mt7530_mac_config()
2516 static int mt7531_rgmii_setup(struct mt7530_priv *priv, u32 port, in mt7531_rgmii_setup()
2566 struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv; in mt7531_pcs_link_up()
2609 static int mt7531_sgmii_setup_mode_force(struct mt7530_priv *priv, u32 port, in mt7531_sgmii_setup_mode_force()
2643 static int mt7531_sgmii_setup_mode_an(struct mt7530_priv *priv, int port, in mt7531_sgmii_setup_mode_an()
2673 struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv; in mt7531_pcs_an_restart()
2689 struct mt7530_priv *priv = ds->priv; in mt7531_mac_config()
2723 struct mt7530_priv *priv = ds->priv; in mt753x_mac_config()
2732 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_select_pcs()
2750 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_config()
2804 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_down()
2825 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_mac_link_up()
2872 struct mt7530_priv *priv = ds->priv; in mt7531_cpu_port_config()
2916 struct mt7530_priv *priv = ds->priv; in mt753x_phylink_get_caps()
2949 struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv; in mt7530_pcs_get_state()
2982 mt7531_sgmii_pcs_get_state_an(struct mt7530_priv *priv, int port, in mt7531_sgmii_pcs_get_state_an()
3022 mt7531_sgmii_pcs_get_state_inband(struct mt7530_priv *priv, int port, in mt7531_sgmii_pcs_get_state_inband()
3046 struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv; in mt7531_pcs_get_state()
3091 struct mt7530_priv *priv = ds->priv; in mt753x_setup()
3121 struct mt7530_priv *priv = ds->priv; in mt753x_get_mac_eee()
3133 struct mt7530_priv *priv = ds->priv; in mt753x_set_mac_eee()
3228 struct mt7530_priv *priv; in mt7530_probe()
3313 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_remove()
3338 struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev); in mt7530_shutdown()