Lines Matching refs:vsc8531
1481 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8584_get_base_addr() local
1499 vsc8531->ts_base_addr = phydev->mdio.addr; in vsc8584_get_base_addr()
1500 vsc8531->ts_base_phy = addr; in vsc8584_get_base_addr()
1503 vsc8531->base_addr = phydev->mdio.addr + addr; in vsc8584_get_base_addr()
1505 vsc8531->ts_base_addr += 2; in vsc8584_get_base_addr()
1506 vsc8531->ts_base_phy += 2; in vsc8584_get_base_addr()
1509 vsc8531->base_addr = phydev->mdio.addr - addr; in vsc8584_get_base_addr()
1511 vsc8531->ts_base_addr -= 2; in vsc8584_get_base_addr()
1512 vsc8531->ts_base_phy -= 2; in vsc8584_get_base_addr()
1516 vsc8531->addr = addr; in vsc8584_get_base_addr()
1521 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8584_config_init() local
1615 PROC_CMD_FIBER_PORT(vsc8531->addr) | in vsc8584_config_init()
1624 PROC_CMD_FIBER_PORT(vsc8531->addr) | in vsc8584_config_init()
1661 for (i = 0; i < vsc8531->nleds; i++) { in vsc8584_config_init()
1662 ret = vsc85xx_led_cntl_set(phydev, i, vsc8531->leds_mode[i]); in vsc8584_config_init()
1702 struct vsc8531_private *vsc8531 = phydev->priv; in vsc85xx_config_init() local
1712 rc = vsc85xx_edge_rate_cntl_set(phydev, vsc8531->rate_magic); in vsc85xx_config_init()
1728 for (i = 0; i < vsc8531->nleds; i++) { in vsc85xx_config_init()
1729 rc = vsc85xx_led_cntl_set(phydev, i, vsc8531->leds_mode[i]); in vsc85xx_config_init()
1861 struct vsc8531_private *vsc8531 = phydev->priv; in vsc8514_config_init() local
2014 for (i = 0; i < vsc8531->nleds; i++) { in vsc8514_config_init()
2015 ret = vsc85xx_led_cntl_set(phydev, i, vsc8531->leds_mode[i]); in vsc8514_config_init()
2081 struct vsc8531_private *vsc8531; in vsc8514_probe() local
2086 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc8514_probe()
2087 if (!vsc8531) in vsc8514_probe()
2090 phydev->priv = vsc8531; in vsc8514_probe()
2094 vsc8531->base_addr, 0); in vsc8514_probe()
2096 vsc8531->nleds = 4; in vsc8514_probe()
2097 vsc8531->supp_led_modes = VSC85XX_SUPP_LED_MODES; in vsc8514_probe()
2098 vsc8531->hw_stats = vsc85xx_hw_stats; in vsc8514_probe()
2099 vsc8531->nstats = ARRAY_SIZE(vsc85xx_hw_stats); in vsc8514_probe()
2100 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8514_probe()
2102 if (!vsc8531->stats) in vsc8514_probe()
2110 struct vsc8531_private *vsc8531; in vsc8574_probe() local
2115 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc8574_probe()
2116 if (!vsc8531) in vsc8574_probe()
2119 phydev->priv = vsc8531; in vsc8574_probe()
2123 vsc8531->base_addr, 0); in vsc8574_probe()
2125 vsc8531->nleds = 4; in vsc8574_probe()
2126 vsc8531->supp_led_modes = VSC8584_SUPP_LED_MODES; in vsc8574_probe()
2127 vsc8531->hw_stats = vsc8584_hw_stats; in vsc8574_probe()
2128 vsc8531->nstats = ARRAY_SIZE(vsc8584_hw_stats); in vsc8574_probe()
2129 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8574_probe()
2131 if (!vsc8531->stats) in vsc8574_probe()
2139 struct vsc8531_private *vsc8531; in vsc8584_probe() local
2150 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc8584_probe()
2151 if (!vsc8531) in vsc8584_probe()
2154 phydev->priv = vsc8531; in vsc8584_probe()
2157 devm_phy_package_join(&phydev->mdio.dev, phydev, vsc8531->base_addr, in vsc8584_probe()
2160 vsc8531->nleds = 4; in vsc8584_probe()
2161 vsc8531->supp_led_modes = VSC8584_SUPP_LED_MODES; in vsc8584_probe()
2162 vsc8531->hw_stats = vsc8584_hw_stats; in vsc8584_probe()
2163 vsc8531->nstats = ARRAY_SIZE(vsc8584_hw_stats); in vsc8584_probe()
2164 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc8584_probe()
2166 if (!vsc8531->stats) in vsc8584_probe()
2184 struct vsc8531_private *vsc8531; in vsc85xx_probe() local
2193 vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL); in vsc85xx_probe()
2194 if (!vsc8531) in vsc85xx_probe()
2197 phydev->priv = vsc8531; in vsc85xx_probe()
2199 vsc8531->rate_magic = rate_magic; in vsc85xx_probe()
2200 vsc8531->nleds = 2; in vsc85xx_probe()
2201 vsc8531->supp_led_modes = VSC85XX_SUPP_LED_MODES; in vsc85xx_probe()
2202 vsc8531->hw_stats = vsc85xx_hw_stats; in vsc85xx_probe()
2203 vsc8531->nstats = ARRAY_SIZE(vsc85xx_hw_stats); in vsc85xx_probe()
2204 vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats, in vsc85xx_probe()
2206 if (!vsc8531->stats) in vsc85xx_probe()