Lines Matching full:dp83822

2 /* Driver for the Texas Instruments DP83822, DP83825 and DP83826 PHYs.
211 struct dp83822_private *dp83822 = phydev->priv; in dp83822_set_wol() local
216 memcpy(&dp83822->wol, wol, sizeof(*wol)); in dp83822_set_wol()
260 struct dp83822_private *dp83822 = phydev->priv; in dp83822_config_intr() local
274 if (!dp83822->fx_enabled) in dp83822_config_intr()
294 if (!dp83822->fx_enabled) in dp83822_config_intr()
365 struct dp83822_private *dp83822 = phydev->priv; in dp83822_read_status() local
370 if (dp83822->fx_enabled) { in dp83822_read_status()
410 struct dp83822_private *dp83822 = phydev->priv; in dp83822_config_init() local
451 if (dp83822->fx_enabled) { in dp83822_config_init()
498 if (dp83822->fx_signal_det_low) { in dp83822_config_init()
506 return dp83822_config_wol(phydev, &dp83822->wol); in dp83822_config_init()
537 struct dp83822_private *dp83822 = phydev->priv; in dp83826_config_init() local
557 if (dp83822->cfg_dac_minus != DP83826_CFG_DAC_MINUS_DEFAULT) { in dp83826_config_init()
558 val = FIELD_PREP(DP83826_VOD_CFG1_MINUS_MDI_MASK, dp83822->cfg_dac_minus) | in dp83826_config_init()
561 dp83822->cfg_dac_minus)); in dp83826_config_init()
569 dp83822->cfg_dac_minus)); in dp83826_config_init()
576 if (dp83822->cfg_dac_plus != DP83826_CFG_DAC_PLUS_DEFAULT) { in dp83826_config_init()
577 val = FIELD_PREP(DP83826_VOD_CFG2_PLUS_MDIX_MASK, dp83822->cfg_dac_plus) | in dp83826_config_init()
578 FIELD_PREP(DP83826_VOD_CFG2_PLUS_MDI_MASK, dp83822->cfg_dac_plus); in dp83826_config_init()
585 return dp83822_config_wol(phydev, &dp83822->wol); in dp83826_config_init()
590 struct dp83822_private *dp83822 = phydev->priv; in dp8382x_config_init() local
592 return dp83822_config_wol(phydev, &dp83822->wol); in dp8382x_config_init()
609 struct dp83822_private *dp83822 = phydev->priv; in dp83822_of_init() local
616 if (dp83822->fx_enabled && dp83822->fx_sd_enable) in dp83822_of_init()
617 dp83822->fx_signal_det_low = device_property_present(dev, in dp83822_of_init()
619 if (!dp83822->fx_enabled) in dp83822_of_init()
620 dp83822->fx_enabled = device_property_present(dev, in dp83822_of_init()
642 struct dp83822_private *dp83822 = phydev->priv; in dp83826_of_init() local
646 dp83822->cfg_dac_minus = DP83826_CFG_DAC_MINUS_DEFAULT; in dp83826_of_init()
648 dp83822->cfg_dac_minus += dp83826_to_dac_minus_one_regval(val); in dp83826_of_init()
650 dp83822->cfg_dac_plus = DP83826_CFG_DAC_PLUS_DEFAULT; in dp83826_of_init()
652 dp83822->cfg_dac_plus += dp83826_to_dac_plus_one_regval(val); in dp83826_of_init()
667 struct dp83822_private *dp83822 = phydev->priv; in dp83822_read_straps() local
680 dp83822->fx_enabled = 1; in dp83822_read_straps()
682 if (dp83822->fx_enabled) { in dp83822_read_straps()
686 dp83822->fx_sd_enable = 1; in dp83822_read_straps()
694 struct dp83822_private *dp83822; in dp8382x_probe() local
696 dp83822 = devm_kzalloc(&phydev->mdio.dev, sizeof(*dp83822), in dp8382x_probe()
698 if (!dp83822) in dp8382x_probe()
701 phydev->priv = dp83822; in dp8382x_probe()
708 struct dp83822_private *dp83822; in dp83822_probe() local
715 dp83822 = phydev->priv; in dp83822_probe()
723 if (dp83822->fx_enabled) in dp83822_probe()
818 DP83822_PHY_DRIVER(DP83822_PHY_ID, "TI DP83822"),
840 MODULE_DESCRIPTION("Texas Instruments DP83822 PHY driver");