Home
last modified time | relevance | path

Searched full:phy_ctrl (Results 1 – 25 of 66) sorted by relevance

123

/linux-6.12.1/drivers/usb/phy/
Dphy-am335x-control.h6 void (*phy_power)(struct phy_control *phy_ctrl, u32 id,
8 void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on);
11 static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id, in phy_ctrl_power() argument
14 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on); in phy_ctrl_power()
17 static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on) in phy_ctrl_wkup() argument
19 phy_ctrl->phy_wkup(phy_ctrl, id, on); in phy_ctrl_wkup()
Dphy-am335x-control.c16 struct phy_control phy_ctrl; member
31 static void am335x_phy_wkup(struct phy_control *phy_ctrl, u32 id, bool on) in am335x_phy_wkup() argument
37 usb_ctrl = container_of(phy_ctrl, struct am335x_control_usb, phy_ctrl); in am335x_phy_wkup()
63 static void am335x_phy_power(struct phy_control *phy_ctrl, u32 id, in am335x_phy_power() argument
70 usb_ctrl = container_of(phy_ctrl, struct am335x_control_usb, phy_ctrl); in am335x_phy_power()
146 return &ctrl_usb->phy_ctrl; in am335x_get_phy_control()
154 const struct phy_control *phy_ctrl; in am335x_control_usb_probe() local
160 phy_ctrl = of_id->data; in am335x_control_usb_probe()
168 ctrl_usb->phy_reg = devm_platform_ioremap_resource_byname(pdev, "phy_ctrl"); in am335x_control_usb_probe()
177 ctrl_usb->phy_ctrl = *phy_ctrl; in am335x_control_usb_probe()
Dphy-am335x.c18 struct phy_control *phy_ctrl; member
27 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_init()
35 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_shutdown()
48 am_phy->phy_ctrl = am335x_get_phy_control(dev); in am335x_phy_probe()
49 if (!am_phy->phy_ctrl) in am335x_phy_probe()
80 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_probe()
106 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, true); in am335x_phy_suspend()
108 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_suspend()
117 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_phy_resume()
120 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, false); in am335x_phy_resume()
Dphy-keystone.c30 void __iomem *phy_ctrl; member
49 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_init()
50 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_init()
60 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_shutdown()
61 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_shutdown()
75 k_phy->phy_ctrl = devm_platform_ioremap_resource(pdev, 0); in keystone_usbphy_probe()
76 if (IS_ERR(k_phy->phy_ctrl)) in keystone_usbphy_probe()
77 return PTR_ERR(k_phy->phy_ctrl); in keystone_usbphy_probe()
/linux-6.12.1/drivers/net/ethernet/silan/
Dsc92031.c554 u32 phy_ctrl; in _sc92031_phy_reset() local
556 phy_ctrl = ioread32(port_base + PhyCtrl); in _sc92031_phy_reset()
557 phy_ctrl &= ~(PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10); in _sc92031_phy_reset()
558 phy_ctrl |= PhyCtrlAne | PhyCtrlReset; in _sc92031_phy_reset()
563 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100 | PhyCtrlSpd10; in _sc92031_phy_reset()
566 phy_ctrl |= PhyCtrlSpd10; in _sc92031_phy_reset()
569 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd10; in _sc92031_phy_reset()
572 phy_ctrl |= PhyCtrlSpd100; in _sc92031_phy_reset()
575 phy_ctrl |= PhyCtrlDux | PhyCtrlSpd100; in _sc92031_phy_reset()
579 iowrite32(phy_ctrl, port_base + PhyCtrl); in _sc92031_phy_reset()
[all …]
/linux-6.12.1/drivers/phy/broadcom/
Dphy-bcm-sr-usb.c21 PHY_CTRL, enumerator
29 [PHY_CTRL] = 0x14,
34 [PHY_CTRL] = 0x10,
39 [PHY_CTRL] = 0xc,
134 rd_data = readl(regs + offset[PHY_CTRL]); in bcm_usb_ss_phy_init()
137 writel(rd_data, regs + offset[PHY_CTRL]); in bcm_usb_ss_phy_init()
183 bcm_usb_reg32_clrbits(regs + offset[PHY_CTRL], in bcm_usb_phy_reset()
185 bcm_usb_reg32_setbits(regs + offset[PHY_CTRL], in bcm_usb_phy_reset()
/linux-6.12.1/drivers/phy/freescale/
Dphy-fsl-imx8qm-lvds-phy.c21 #define PHY_CTRL 0x0 macro
72 PHY_CTRL, CTRL_INIT_MASK, CTRL_INIT_VAL); in mixel_lvds_phy_init()
117 regmap_update_bits(priv->regmap, PHY_CTRL, M_MASK | NB, val); in mixel_lvds_phy_power_on()
127 regmap_write(priv->regmap, PHY_CTRL + REG_SET, val); in mixel_lvds_phy_power_on()
154 regmap_write(priv->regmap, PHY_CTRL + REG_CLR, in mixel_lvds_phy_power_off()
157 regmap_write(priv->regmap, PHY_CTRL + REG_CLR, in mixel_lvds_phy_power_off()
287 regmap_write(priv->regmap, PHY_CTRL, CTRL_RESET_VAL); in mixel_lvds_phy_reset()
405 regmap_write(priv->regmap, PHY_CTRL + REG_SET, PD); in mixel_lvds_phy_runtime_suspend()
417 regmap_update_bits(priv->regmap, PHY_CTRL, in mixel_lvds_phy_runtime_resume()
/linux-6.12.1/drivers/phy/renesas/
Dphy-rcar-gen3-pcie.c16 #define PHY_CTRL 0x4000 /* R8A77980 only */ macro
18 /* PHY control register (PHY_CTRL) */
48 rcar_gen3_phy_pcie_modify_reg(p, PHY_CTRL, PHY_CTRL_PHY_PWDN, 0); in r8a77980_phy_pcie_power_on()
56 rcar_gen3_phy_pcie_modify_reg(p, PHY_CTRL, 0, PHY_CTRL_PHY_PWDN); in r8a77980_phy_pcie_power_off()
/linux-6.12.1/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c784 u32 master_ctrl, mac_ctrl, phy_ctrl; in atl1c_power_saving() local
794 AT_READ_REG(hw, REG_GPHY_CTRL, &phy_ctrl); in atl1c_power_saving()
801 phy_ctrl &= ~(GPHY_CTRL_EXT_RESET | GPHY_CTRL_CLS); in atl1c_power_saving()
802 phy_ctrl |= GPHY_CTRL_SEL_ANA_RST | GPHY_CTRL_HIB_PULSE | in atl1c_power_saving()
806 phy_ctrl |= GPHY_CTRL_PHY_IDDQ | GPHY_CTRL_PWDOWN_HW; in atl1c_power_saving()
809 AT_WRITE_REG(hw, REG_GPHY_CTRL, phy_ctrl); in atl1c_power_saving()
814 phy_ctrl |= GPHY_CTRL_EXT_RESET; in atl1c_power_saving()
832 atl1c_driver_name, mac_ctrl, master_ctrl, phy_ctrl, wol_ctrl); in atl1c_power_saving()
835 AT_WRITE_REG(hw, REG_GPHY_CTRL, phy_ctrl); in atl1c_power_saving()
/linux-6.12.1/Documentation/devicetree/bindings/phy/
Dallwinner,suniv-f1c100s-usb-phy.yaml25 const: phy_ctrl
76 reg-names = "phy_ctrl";
Dallwinner,sun8i-v3s-usb-phy.yaml27 - const: phy_ctrl
81 reg-names = "phy_ctrl",
Dallwinner,sun5i-a13-usb-phy.yaml27 - const: phy_ctrl
86 reg-names = "phy_ctrl", "pmu1";
Dallwinner,sun8i-a23-usb-phy.yaml29 - const: phy_ctrl
91 reg-names = "phy_ctrl", "pmu1";
Dallwinner,sun50i-h6-usb-phy.yaml28 - const: phy_ctrl
93 reg-names = "phy_ctrl",
Dallwinner,sun50i-a64-usb-phy.yaml30 - const: phy_ctrl
95 reg-names = "phy_ctrl",
Dallwinner,sun4i-a10-usb-phy.yaml30 - const: phy_ctrl
95 reg-names = "phy_ctrl", "pmu1", "pmu2";
Dallwinner,sun6i-a31-usb-phy.yaml28 - const: phy_ctrl
100 reg-names = "phy_ctrl",
Dallwinner,sun8i-r40-usb-phy.yaml29 - const: phy_ctrl
103 reg-names = "phy_ctrl",
Dallwinner,sun8i-a83t-usb-phy.yaml28 - const: phy_ctrl
102 reg-names = "phy_ctrl",
Dallwinner,sun8i-h3-usb-phy.yaml32 - const: phy_ctrl
141 reg-names = "phy_ctrl",
/linux-6.12.1/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_phy.c178 u16 phy_ctrl; in pch_gbe_phy_sw_reset() local
180 pch_gbe_phy_read_reg_miic(hw, PHY_CONTROL, &phy_ctrl); in pch_gbe_phy_sw_reset()
181 phy_ctrl |= MII_CR_RESET; in pch_gbe_phy_sw_reset()
182 pch_gbe_phy_write_reg_miic(hw, PHY_CONTROL, phy_ctrl); in pch_gbe_phy_sw_reset()
/linux-6.12.1/drivers/net/ethernet/intel/igb/
De1000_phy.c12 u16 *phy_ctrl);
865 u16 phy_ctrl; in igb_copper_link_autoneg() local
889 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igb_copper_link_autoneg()
893 phy_ctrl |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); in igb_copper_link_autoneg()
894 ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); in igb_copper_link_autoneg()
1323 * @phy_ctrl: pointer to current value of PHY_CONTROL
1333 u16 *phy_ctrl) in igb_phy_force_speed_duplex_setup() argument
1350 *phy_ctrl &= ~MII_CR_AUTO_NEG_EN; in igb_phy_force_speed_duplex_setup()
1355 *phy_ctrl &= ~MII_CR_FULL_DUPLEX; in igb_phy_force_speed_duplex_setup()
1359 *phy_ctrl |= MII_CR_FULL_DUPLEX; in igb_phy_force_speed_duplex_setup()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1169 e1000_write_phy_reg(hw, PHY_CTRL, 0x8100); in e1000_nonintegrated_phy_loopback()
1181 e1000_read_phy_reg(hw, PHY_CTRL, &phy_reg); in e1000_nonintegrated_phy_loopback()
1183 e1000_write_phy_reg(hw, PHY_CTRL, phy_reg); in e1000_nonintegrated_phy_loopback()
1189 e1000_read_phy_reg(hw, PHY_CTRL, &phy_reg); in e1000_nonintegrated_phy_loopback()
1217 e1000_write_phy_reg(hw, PHY_CTRL, 0x9140); in e1000_integrated_phy_loopback()
1219 e1000_write_phy_reg(hw, PHY_CTRL, 0x8140); in e1000_integrated_phy_loopback()
1225 e1000_write_phy_reg(hw, PHY_CTRL, 0x4140); in e1000_integrated_phy_loopback()
1295 e1000_read_phy_reg(hw, PHY_CTRL, &phy_reg); in e1000_set_phy_loopback()
1297 e1000_write_phy_reg(hw, PHY_CTRL, phy_reg); in e1000_set_phy_loopback()
1347 e1000_read_phy_reg(hw, PHY_CTRL, &phy_reg); in e1000_loopback_cleanup()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/e1000e/
Dich8lan.c2452 mac_reg = er32(PHY_CTRL); in e1000_oem_bits_config_ich8lan()
3072 u32 phy_ctrl; in e1000_set_d0_lplu_state_ich8lan() local
3079 phy_ctrl = er32(PHY_CTRL); in e1000_set_d0_lplu_state_ich8lan()
3082 phy_ctrl |= E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state_ich8lan()
3083 ew32(PHY_CTRL, phy_ctrl); in e1000_set_d0_lplu_state_ich8lan()
3103 phy_ctrl &= ~E1000_PHY_CTRL_D0A_LPLU; in e1000_set_d0_lplu_state_ich8lan()
3104 ew32(PHY_CTRL, phy_ctrl); in e1000_set_d0_lplu_state_ich8lan()
3158 u32 phy_ctrl; in e1000_set_d3_lplu_state_ich8lan() local
3162 phy_ctrl = er32(PHY_CTRL); in e1000_set_d3_lplu_state_ich8lan()
3165 phy_ctrl &= ~E1000_PHY_CTRL_NOND0A_LPLU; in e1000_set_d3_lplu_state_ich8lan()
[all …]
Dphy.c1121 u16 phy_ctrl; in e1000_copper_link_autoneg() local
1145 ret_val = e1e_rphy(hw, MII_BMCR, &phy_ctrl); in e1000_copper_link_autoneg()
1149 phy_ctrl |= (BMCR_ANENABLE | BMCR_ANRESTART); in e1000_copper_link_autoneg()
1150 ret_val = e1e_wphy(hw, MII_BMCR, phy_ctrl); in e1000_copper_link_autoneg()
1458 * @phy_ctrl: pointer to current value of MII_BMCR
1467 void e1000e_phy_force_speed_duplex_setup(struct e1000_hw *hw, u16 *phy_ctrl) in e1000e_phy_force_speed_duplex_setup() argument
1484 *phy_ctrl &= ~BMCR_ANENABLE; in e1000e_phy_force_speed_duplex_setup()
1489 *phy_ctrl &= ~BMCR_FULLDPLX; in e1000e_phy_force_speed_duplex_setup()
1493 *phy_ctrl |= BMCR_FULLDPLX; in e1000e_phy_force_speed_duplex_setup()
1500 *phy_ctrl |= BMCR_SPEED100; in e1000e_phy_force_speed_duplex_setup()
[all …]

123