Lines Matching refs:vsc8531

1520 	struct vsc8531_private *vsc8531 = phydev->priv;  in vsc8584_get_base_addr()  local
1538 vsc8531->ts_base_addr = phydev->mdio.addr; in vsc8584_get_base_addr()
1539 vsc8531->ts_base_phy = addr; in vsc8584_get_base_addr()
1542 vsc8531->base_addr = phydev->mdio.addr + addr; in vsc8584_get_base_addr()
1544 vsc8531->ts_base_addr += 2; in vsc8584_get_base_addr()
1545 vsc8531->ts_base_phy += 2; in vsc8584_get_base_addr()
1548 vsc8531->base_addr = phydev->mdio.addr - addr; in vsc8584_get_base_addr()
1550 vsc8531->ts_base_addr -= 2; in vsc8584_get_base_addr()
1551 vsc8531->ts_base_phy -= 2; in vsc8584_get_base_addr()
1555 vsc8531->addr = addr; in vsc8584_get_base_addr()
1575 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8584_config_host_serdes() local
1619 PROC_CMD_FIBER_PORT(vsc8531->addr) | in vsc8584_config_host_serdes()
1628 PROC_CMD_FIBER_PORT(vsc8531->addr) | in vsc8584_config_host_serdes()
1640 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8574_config_host_serdes() local
1688 PROC_CMD_FIBER_PORT(vsc8531->addr) | in vsc8574_config_host_serdes()
1697 PROC_CMD_FIBER_PORT(vsc8531->addr) | in vsc8574_config_host_serdes()
1705 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8584_config_init() local
1794 for (i = 0; i < vsc8531->nleds; i++) { in vsc8584_config_init()
1795 ret = vsc85xx_led_cntl_set(phydev, i, vsc8531->leds_mode[i]); in vsc8584_config_init()
1835 struct vsc8531_private *vsc8531 = phydev->priv; in vsc85xx_config_init() local
1845 rc = vsc85xx_edge_rate_cntl_set(phydev, vsc8531->rate_magic); in vsc85xx_config_init()
1861 for (i = 0; i < vsc8531->nleds; i++) { in vsc85xx_config_init()
1862 rc = vsc85xx_led_cntl_set(phydev, i, vsc8531->leds_mode[i]); in vsc85xx_config_init()
2073 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8514_config_init() local
2114 for (i = 0; i < vsc8531->nleds; i++) { in vsc8514_config_init()
2115 ret = vsc85xx_led_cntl_set(phydev, i, vsc8531->leds_mode[i]); in vsc8514_config_init()
2207 struct vsc8531_private *vsc8531; in vsc8514_probe() local
2212 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc8514_probe()
2213 if (!vsc8531) in vsc8514_probe()
2216 phydev->priv = vsc8531; in vsc8514_probe()
2220 vsc8531->base_addr, 0); in vsc8514_probe()
2222 vsc8531->nleds = 4; in vsc8514_probe()
2223 vsc8531->supp_led_modes = VSC85XX_SUPP_LED_MODES; in vsc8514_probe()
2224 vsc8531->hw_stats = vsc85xx_hw_stats; in vsc8514_probe()
2225 vsc8531->nstats = ARRAY_SIZE(vsc85xx_hw_stats); in vsc8514_probe()
2226 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8514_probe()
2228 if (!vsc8531->stats) in vsc8514_probe()
2236 struct vsc8531_private *vsc8531; in vsc8574_probe() local
2241 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc8574_probe()
2242 if (!vsc8531) in vsc8574_probe()
2245 phydev->priv = vsc8531; in vsc8574_probe()
2249 vsc8531->base_addr, 0); in vsc8574_probe()
2251 vsc8531->nleds = 4; in vsc8574_probe()
2252 vsc8531->supp_led_modes = VSC8584_SUPP_LED_MODES; in vsc8574_probe()
2253 vsc8531->hw_stats = vsc8584_hw_stats; in vsc8574_probe()
2254 vsc8531->nstats = ARRAY_SIZE(vsc8584_hw_stats); in vsc8574_probe()
2255 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8574_probe()
2257 if (!vsc8531->stats) in vsc8574_probe()
2265 struct vsc8531_private *vsc8531; in vsc8584_probe() local
2276 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc8584_probe()
2277 if (!vsc8531) in vsc8584_probe()
2280 phydev->priv = vsc8531; in vsc8584_probe()
2283 devm_phy_package_join(&phydev->mdio.dev, phydev, vsc8531->base_addr, in vsc8584_probe()
2286 vsc8531->nleds = 4; in vsc8584_probe()
2287 vsc8531->supp_led_modes = VSC8584_SUPP_LED_MODES; in vsc8584_probe()
2288 vsc8531->hw_stats = vsc8584_hw_stats; in vsc8584_probe()
2289 vsc8531->nstats = ARRAY_SIZE(vsc8584_hw_stats); in vsc8584_probe()
2290 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8584_probe()
2292 if (!vsc8531->stats) in vsc8584_probe()
2310 struct vsc8531_private *vsc8531; in vsc85xx_probe() local
2319 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc85xx_probe()
2320 if (!vsc8531) in vsc85xx_probe()
2323 phydev->priv = vsc8531; in vsc85xx_probe()
2325 vsc8531->rate_magic = rate_magic; in vsc85xx_probe()
2326 vsc8531->nleds = 2; in vsc85xx_probe()
2327 vsc8531->supp_led_modes = VSC85XX_SUPP_LED_MODES; in vsc85xx_probe()
2328 vsc8531->hw_stats = vsc85xx_hw_stats; in vsc85xx_probe()
2329 vsc8531->nstats = ARRAY_SIZE(vsc85xx_hw_stats); in vsc85xx_probe()
2330 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc85xx_probe()
2332 if (!vsc8531->stats) in vsc85xx_probe()