Lines Matching refs:phy_id
44 static void mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) in mvs_64xx_enable_xmt() argument
51 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT); in mvs_64xx_enable_xmt()
53 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT2); in mvs_64xx_enable_xmt()
83 static void mvs_64xx_stp_reset(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_stp_reset() argument
89 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset()
98 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset()
99 tmp |= (1U << phy_id) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
101 tmp |= (1U << (phy_id - MVS_SOC_PORTS)) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
104 if (phy_id < MVS_SOC_PORTS) { in mvs_64xx_stp_reset()
120 static void mvs_64xx_phy_reset(struct mvs_info *mvi, u32 phy_id, int hard) in mvs_64xx_phy_reset() argument
123 tmp = mvs_read_port_irq_stat(mvi, phy_id); in mvs_64xx_phy_reset()
125 mvs_write_port_irq_stat(mvi, phy_id, tmp); in mvs_64xx_phy_reset()
126 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_reset()
131 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_64xx_phy_reset()
134 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_reset()
210 static void mvs_64xx_phy_disable(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_phy_disable() argument
216 if (phy_id < 4) in mvs_64xx_phy_disable()
220 phy_id -= 4; in mvs_64xx_phy_disable()
223 tmp |= 1U << (PCTL_PHY_DSBL_OFFS + phy_id); in mvs_64xx_phy_disable()
227 tmp |= 1U << (PCTL_PHY_DSBL_OFFS + phy_id); in mvs_64xx_phy_disable()
232 static void mvs_64xx_phy_enable(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_phy_enable() argument
238 if (phy_id < 4) in mvs_64xx_phy_enable()
242 phy_id -= 4; in mvs_64xx_phy_enable()
245 tmp &= ~(1U << (PCTL_PHY_DSBL_OFFS + phy_id)); in mvs_64xx_phy_enable()
249 tmp &= ~(1U << (PCTL_PHY_DSBL_OFFS + phy_id)); in mvs_64xx_phy_enable()
637 static void mvs_64xx_phy_set_link_rate(struct mvs_info *mvi, u32 phy_id, in mvs_64xx_phy_set_link_rate() argument
643 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_set_link_rate()
655 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_64xx_phy_set_link_rate()
656 mvs_64xx_phy_reset(mvi, phy_id, MVS_HARD_RESET); in mvs_64xx_phy_set_link_rate()