/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
H A D | cpsw-phy-sel.c | 36 phy_interface_t phy_mode, int slave); 41 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() 50 switch (phy_mode) { in cpsw_gmii_sel_am3352() 69 phy_modes(phy_mode)); in cpsw_gmii_sel_am3352() 101 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() 109 switch (phy_mode) { in cpsw_gmii_sel_dra7xx() 124 phy_modes(phy_mode)); in cpsw_gmii_sel_dra7xx() 161 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument 183 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel() 40 cpsw_gmii_sel_am3352(struct cpsw_phy_sel_priv *priv, phy_interface_t phy_mode, int slave) cpsw_gmii_sel_am3352() argument 100 cpsw_gmii_sel_dra7xx(struct cpsw_phy_sel_priv *priv, phy_interface_t phy_mode, int slave) cpsw_gmii_sel_dra7xx() argument
|
H A D | cpsw.h | 18 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave); 21 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
H A D | cpsw-phy-sel.c | 35 phy_interface_t phy_mode, int slave); 40 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() 49 switch (phy_mode) { in cpsw_gmii_sel_am3352() 68 phy_modes(phy_mode)); in cpsw_gmii_sel_am3352() 100 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() 108 switch (phy_mode) { in cpsw_gmii_sel_dra7xx() 123 phy_modes(phy_mode)); in cpsw_gmii_sel_dra7xx() 160 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument 182 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel() 39 cpsw_gmii_sel_am3352(struct cpsw_phy_sel_priv *priv, phy_interface_t phy_mode, int slave) cpsw_gmii_sel_am3352() argument 99 cpsw_gmii_sel_dra7xx(struct cpsw_phy_sel_priv *priv, phy_interface_t phy_mode, int slave) cpsw_gmii_sel_dra7xx() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
H A D | tenxpress.c | 144 enum ef4_phy_mode phy_mode; member 172 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe() 191 if (!(efx->phy_mode & PHY_MODE_SPECIAL)) { in tenxpress_phy_init() 315 efx, !!(efx->phy_mode & PHY_MODE_LOW_POWER), in tenxpress_low_power() 324 if (efx->phy_mode & (PHY_MODE_OFF | PHY_MODE_SPECIAL)) { in tenxpress_phy_reconfigure() 325 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure() 329 phy_mode_change = (efx->phy_mode == PHY_MODE_NORMAL && in tenxpress_phy_reconfigure() 330 phy_data->phy_mode ! in tenxpress_phy_reconfigure() [all...] |
H A D | txc43128_phy.c | 158 enum ef4_phy_mode phy_mode; member 330 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_probe() 364 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) in txc_glrgs_lane_power() 382 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) { in txc_analog_lane_power() 398 !!(efx->phy_mode & PHY_MODE_LOW_POWER), in txc_set_power() 447 enum ef4_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode; in txc43128_phy_reconfigure() 450 if (efx->phy_mode & mode_change & PHY_MODE_TX_DISABLED) { in txc43128_phy_reconfigure() 469 phy_data->phy_mode in txc43128_phy_reconfigure() [all...] |
H A D | qt202x_phy.c | 57 enum ef4_phy_mode phy_mode; member 347 phy_data->phy_mode = efx->phy_mode; in qt202x_phy_probe() 417 efx->phy_mode & PHY_MODE_TX_DISABLED || in qt202x_phy_reconfigure() 418 efx->phy_mode & PHY_MODE_LOW_POWER || in qt202x_phy_reconfigure() 423 if (!(efx->phy_mode & PHY_MODE_TX_DISABLED) && in qt202x_phy_reconfigure() 424 (phy_data->phy_mode & PHY_MODE_TX_DISABLED)) in qt202x_phy_reconfigure() 432 phy_data->phy_mode = efx->phy_mode; in qt202x_phy_reconfigure()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
H A D | tenxpress.c | 144 enum ef4_phy_mode phy_mode; member 172 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe() 191 if (!(efx->phy_mode & PHY_MODE_SPECIAL)) { in tenxpress_phy_init() 315 efx, !!(efx->phy_mode & PHY_MODE_LOW_POWER), in tenxpress_low_power() 324 if (efx->phy_mode & (PHY_MODE_OFF | PHY_MODE_SPECIAL)) { in tenxpress_phy_reconfigure() 325 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure() 329 phy_mode_change = (efx->phy_mode == PHY_MODE_NORMAL && in tenxpress_phy_reconfigure() 330 phy_data->phy_mode ! in tenxpress_phy_reconfigure() [all...] |
H A D | txc43128_phy.c | 158 enum ef4_phy_mode phy_mode; member 330 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_probe() 364 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) in txc_glrgs_lane_power() 382 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) { in txc_analog_lane_power() 398 !!(efx->phy_mode & PHY_MODE_LOW_POWER), in txc_set_power() 447 enum ef4_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode; in txc43128_phy_reconfigure() 450 if (efx->phy_mode & mode_change & PHY_MODE_TX_DISABLED) { in txc43128_phy_reconfigure() 469 phy_data->phy_mode in txc43128_phy_reconfigure() [all...] |
H A D | qt202x_phy.c | 57 enum ef4_phy_mode phy_mode; member 347 phy_data->phy_mode = efx->phy_mode; in qt202x_phy_probe() 417 efx->phy_mode & PHY_MODE_TX_DISABLED || in qt202x_phy_reconfigure() 418 efx->phy_mode & PHY_MODE_LOW_POWER || in qt202x_phy_reconfigure() 423 if (!(efx->phy_mode & PHY_MODE_TX_DISABLED) && in qt202x_phy_reconfigure() 424 (phy_data->phy_mode & PHY_MODE_TX_DISABLED)) in qt202x_phy_reconfigure() 432 phy_data->phy_mode = efx->phy_mode; in qt202x_phy_reconfigure()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-ipq806x.c | 90 phy_interface_t phy_mode; member 150 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed() 165 phy_modes(gmac->phy_mode)); in ipq806x_gmac_set_speed() 194 ret = of_get_phy_mode(dev->of_node, &gmac->phy_mode); in ipq806x_gmac_of_parse() 284 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 299 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 316 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 330 if (gmac->phy_mode == PHY_INTERFACE_MODE_SGMII) { in ipq806x_gmac_probe() 359 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe()
|
H A D | dwmac-anarion.c | 65 phy_interface_t phy_mode; in anarion_config_dt() local 82 err = of_get_phy_mode(pdev->dev.of_node, &phy_mode); in anarion_config_dt() 86 switch (phy_mode) { in anarion_config_dt() 96 phy_mode); in anarion_config_dt()
|
H A D | dwmac-meson8b.c | 82 phy_interface_t phy_mode; member 204 switch (dwmac->phy_mode) { in meson8b_set_phy_mode() 221 phy_modes(dwmac->phy_mode)); in meson8b_set_phy_mode() 230 switch (dwmac->phy_mode) { in meson_axg_set_phy_mode() 248 phy_modes(dwmac->phy_mode)); in meson_axg_set_phy_mode() 282 switch (dwmac->phy_mode) { in meson8b_init_prg_eth() 298 phy_modes(dwmac->phy_mode)); in meson8b_init_prg_eth() 324 if (phy_interface_mode_is_rgmii(dwmac->phy_mode)) { in meson8b_init_prg_eth() 396 ret = of_get_phy_mode(pdev->dev.of_node, &dwmac->phy_mode); in meson8b_dwmac_probe()
|
H A D | dwmac-loongson.c | 114 int ret, i, bus_id, phy_mode; in loongson_dwmac_probe() local 174 phy_mode = device_get_phy_mode(&pdev->dev); in loongson_dwmac_probe() 175 if (phy_mode < 0) { in loongson_dwmac_probe() 176 dev_err(&pdev->dev, "phy_mode not found\n"); in loongson_dwmac_probe() 177 return phy_mode; in loongson_dwmac_probe() 179 plat->phy_interface = phy_mode; in loongson_dwmac_probe()
|
/kernel/linux/linux-6.6/drivers/usb/musb/ |
H A D | mediatek.c | 49 enum phy_mode phy_mode; member 78 glue->phy_mode = PHY_MODE_USB_HOST; in mtk_otg_switch_set() 89 glue->phy_mode = PHY_MODE_USB_DEVICE; in mtk_otg_switch_set() 99 glue->phy_mode = PHY_MODE_USB_OTG; in mtk_otg_switch_set() 113 phy_set_mode(glue->phy, glue->phy_mode); in mtk_otg_switch_set() 222 enum phy_mode new_mode; in mtk_musb_set_mode() 243 if (glue->phy_mode == new_mode) in mtk_musb_set_mode() 285 phy_set_mode(glue->phy, glue->phy_mode); in mtk_musb_init() 439 glue->phy_mode in mtk_musb_probe() [all...] |
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
H A D | dwc3-meson-g12a.c | 151 enum phy_mode mode); 153 enum phy_mode mode); 164 enum phy_mode mode); 166 enum phy_mode mode); 169 int i, enum phy_mode mode); 171 int i, enum phy_mode mode); 263 enum phy_mode otg_phy_mode; 273 int i, enum phy_mode mode) in dwc3_meson_gxl_set_phy_mode() 279 enum phy_mode mode) in dwc3_meson_gxl_usb2_init_phy() 288 int i, enum phy_mode mod in dwc3_meson_g12a_set_phy_mode() [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc3/ |
H A D | dwc3-meson-g12a.c | 150 enum phy_mode mode); 152 enum phy_mode mode); 163 enum phy_mode mode); 165 enum phy_mode mode); 168 int i, enum phy_mode mode); 170 int i, enum phy_mode mode); 257 enum phy_mode otg_phy_mode; 267 int i, enum phy_mode mode) in dwc3_meson_gxl_set_phy_mode() 273 enum phy_mode mode) in dwc3_meson_gxl_usb2_init_phy() 282 int i, enum phy_mode mod in dwc3_meson_g12a_set_phy_mode() [all...] |
/kernel/linux/linux-5.10/drivers/phy/intel/ |
H A D | phy-intel-lgm-combo.c | 99 enum intel_phy_mode phy_mode; member 108 u32 mask = BIT(cbphy->phy_mode * 2 + iphy->id); in intel_cbphy_iphy_enable() 208 mode = cbphy->phy_mode; in intel_cbphy_set_mode() 340 if (cbphy->phy_mode == PHY_PCIE_MODE) { in intel_cbphy_init() 362 if (cbphy->phy_mode == PHY_PCIE_MODE) { in intel_cbphy_exit() 383 if (cbphy->phy_mode != PHY_XPCS_MODE) in intel_cbphy_calibrate() 492 cbphy->phy_mode = PHY_PCIE_MODE; in intel_cbphy_fwnode_parse() 496 cbphy->phy_mode = PHY_SATA_MODE; in intel_cbphy_fwnode_parse() 500 cbphy->phy_mode = PHY_XPCS_MODE; in intel_cbphy_fwnode_parse() 508 cbphy->clk_rate = intel_iphy_clk_rates[cbphy->phy_mode]; in intel_cbphy_fwnode_parse() [all...] |
/kernel/linux/linux-5.10/include/linux/phy/ |
H A D | phy.h | 24 enum phy_mode { enum 77 int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode); 107 int (*validate)(struct phy *phy, enum phy_mode mode, int submode, 124 enum phy_mode mode; 215 int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode); 219 int phy_validate(struct phy *phy, enum phy_mode mode, int submode, 222 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 336 static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, in phy_set_mode_ext() 347 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 375 static inline int phy_validate(struct phy *phy, enum phy_mode mod [all...] |
/kernel/linux/linux-6.6/include/linux/phy/ |
H A D | phy.h | 25 enum phy_mode { enum 89 int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode); 121 int (*validate)(struct phy *phy, enum phy_mode mode, int submode, 138 enum phy_mode mode; 231 int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode); 237 int phy_validate(struct phy *phy, enum phy_mode mode, int submode, 240 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 355 static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, in phy_set_mode_ext() 380 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 408 static inline int phy_validate(struct phy *phy, enum phy_mode mod [all...] |
/kernel/linux/linux-6.6/drivers/phy/intel/ |
H A D | phy-intel-lgm-combo.c | 99 enum intel_phy_mode phy_mode; member 108 u32 mask = BIT(cbphy->phy_mode * 2 + iphy->id); in intel_cbphy_iphy_enable() 208 mode = cbphy->phy_mode; in intel_cbphy_set_mode() 340 if (cbphy->phy_mode == PHY_PCIE_MODE) { in intel_cbphy_init() 362 if (cbphy->phy_mode == PHY_PCIE_MODE) { in intel_cbphy_exit() 383 if (cbphy->phy_mode != PHY_XPCS_MODE) in intel_cbphy_calibrate() 477 cbphy->phy_mode = PHY_PCIE_MODE; in intel_cbphy_fwnode_parse() 481 cbphy->phy_mode = PHY_SATA_MODE; in intel_cbphy_fwnode_parse() 485 cbphy->phy_mode = PHY_XPCS_MODE; in intel_cbphy_fwnode_parse() 493 cbphy->clk_rate = intel_iphy_clk_rates[cbphy->phy_mode]; in intel_cbphy_fwnode_parse() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-anarion.c | 65 phy_interface_t phy_mode; in anarion_config_dt() local 82 err = of_get_phy_mode(pdev->dev.of_node, &phy_mode); in anarion_config_dt() 86 switch (phy_mode) { in anarion_config_dt() 96 phy_mode); in anarion_config_dt()
|
H A D | dwmac-ipq806x.c | 112 phy_interface_t phy_mode; member 172 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed() 187 phy_modes(gmac->phy_mode)); in ipq806x_gmac_set_speed() 216 ret = of_get_phy_mode(dev->of_node, &gmac->phy_mode); in ipq806x_gmac_of_parse() 413 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 428 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 445 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 459 if (gmac->phy_mode == PHY_INTERFACE_MODE_SGMII) { in ipq806x_gmac_probe() 484 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe()
|
H A D | dwmac-meson8b.c | 93 phy_interface_t phy_mode; member 215 switch (dwmac->phy_mode) { in meson8b_set_phy_mode() 232 phy_modes(dwmac->phy_mode)); in meson8b_set_phy_mode() 241 switch (dwmac->phy_mode) { in meson_axg_set_phy_mode() 259 phy_modes(dwmac->phy_mode)); in meson_axg_set_phy_mode() 300 switch (dwmac->phy_mode) { in meson8b_init_rgmii_delays() 318 phy_modes(dwmac->phy_mode)); in meson8b_init_rgmii_delays() 354 if (phy_interface_mode_is_rgmii(dwmac->phy_mode)) { in meson8b_init_prg_eth() 426 ret = of_get_phy_mode(pdev->dev.of_node, &dwmac->phy_mode); in meson8b_dwmac_probe()
|
H A D | dwmac-loongson.c | 53 int ret, i, phy_mode; in loongson_dwmac_probe() local 105 phy_mode = device_get_phy_mode(&pdev->dev); in loongson_dwmac_probe() 106 if (phy_mode < 0) { in loongson_dwmac_probe() 107 dev_err(&pdev->dev, "phy_mode not found\n"); in loongson_dwmac_probe() 108 ret = phy_mode; in loongson_dwmac_probe() 112 plat->phy_interface = phy_mode; in loongson_dwmac_probe()
|
/kernel/linux/linux-5.10/drivers/usb/musb/ |
H A D | mediatek.c | 46 enum phy_mode phy_mode; member 130 glue->phy_mode = PHY_MODE_USB_HOST; in mtk_otg_switch_set() 141 glue->phy_mode = PHY_MODE_USB_DEVICE; in mtk_otg_switch_set() 151 glue->phy_mode = PHY_MODE_USB_OTG; in mtk_otg_switch_set() 165 phy_set_mode(glue->phy, glue->phy_mode); in mtk_otg_switch_set() 273 enum phy_mode new_mode; in mtk_musb_set_mode() 294 if (glue->phy_mode == new_mode) in mtk_musb_set_mode() 336 phy_set_mode(glue->phy, glue->phy_mode); in mtk_musb_init() 489 glue->phy_mode in mtk_musb_probe() [all...] |