Lines Matching refs:phy_id
28 static void mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) in mvs_64xx_enable_xmt() argument
35 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT); in mvs_64xx_enable_xmt()
37 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT2); in mvs_64xx_enable_xmt()
67 static void mvs_64xx_stp_reset(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_stp_reset() argument
73 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset()
82 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset()
83 tmp |= (1U << phy_id) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
85 tmp |= (1U << (phy_id - MVS_SOC_PORTS)) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
88 if (phy_id < MVS_SOC_PORTS) { in mvs_64xx_stp_reset()
104 static void mvs_64xx_phy_reset(struct mvs_info *mvi, u32 phy_id, int hard) in mvs_64xx_phy_reset() argument
107 tmp = mvs_read_port_irq_stat(mvi, phy_id); in mvs_64xx_phy_reset()
109 mvs_write_port_irq_stat(mvi, phy_id, tmp); in mvs_64xx_phy_reset()
110 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_reset()
115 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_64xx_phy_reset()
118 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_reset()
194 static void mvs_64xx_phy_disable(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_phy_disable() argument
200 if (phy_id < 4) in mvs_64xx_phy_disable()
204 phy_id -= 4; in mvs_64xx_phy_disable()
207 tmp |= 1U << (PCTL_PHY_DSBL_OFFS + phy_id); in mvs_64xx_phy_disable()
211 tmp |= 1U << (PCTL_PHY_DSBL_OFFS + phy_id); in mvs_64xx_phy_disable()
216 static void mvs_64xx_phy_enable(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_phy_enable() argument
222 if (phy_id < 4) in mvs_64xx_phy_enable()
226 phy_id -= 4; in mvs_64xx_phy_enable()
229 tmp &= ~(1U << (PCTL_PHY_DSBL_OFFS + phy_id)); in mvs_64xx_phy_enable()
233 tmp &= ~(1U << (PCTL_PHY_DSBL_OFFS + phy_id)); in mvs_64xx_phy_enable()
621 static void mvs_64xx_phy_set_link_rate(struct mvs_info *mvi, u32 phy_id, in mvs_64xx_phy_set_link_rate() argument
627 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_set_link_rate()
639 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_64xx_phy_set_link_rate()
640 mvs_64xx_phy_reset(mvi, phy_id, MVS_HARD_RESET); in mvs_64xx_phy_set_link_rate()