/openbmc/linux/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() argument 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() argument 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()
|
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
|
/openbmc/linux/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 != PHY_MODE_NORMAL); in tenxpress_phy_reconfigure() 346 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure()
|
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 = efx->phy_mode; in txc43128_phy_reconfigure()
|
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()
|
H A D | falcon_boards.c | 313 if (efx->phy_mode & PHY_MODE_SPECIAL) in sfe4001_poweron() 333 if (efx->phy_mode & PHY_MODE_SPECIAL) { in sfe4001_poweron() 361 return sprintf(buf, "%d\n", !!(efx->phy_mode & PHY_MODE_SPECIAL)); in phy_flash_cfg_show() 373 old_mode = efx->phy_mode; in phy_flash_cfg_store() 385 efx->phy_mode = new_mode; in phy_flash_cfg_store() 437 efx->phy_mode = PHY_MODE_OFF; in sfe4001_check_hw() 477 if (efx->phy_mode & PHY_MODE_SPECIAL) { in sfe4001_init()
|
/openbmc/u-boot/board/freescale/ls1012aqds/ |
H A D | ls1012aqds.c | 185 prop_val.phy_mode, strlen(prop_val.phy_mode) + 1, 1); in pfe_set_properties() 214 prop_val.phy_mode = "sgmii"; in fdt_fsl_fixup_of_pfe() 226 prop_val.phy_mode = "rgmii"; in fdt_fsl_fixup_of_pfe() 241 prop_val.phy_mode = "sgmii-2500"; in fdt_fsl_fixup_of_pfe() 253 prop_val.phy_mode = "sgmii-2500"; in fdt_fsl_fixup_of_pfe()
|
/openbmc/u-boot/drivers/net/pfe_eth/ |
H A D | pfe_mdio.c | 162 if (gem->phy_mode == PHY_INTERFACE_MODE_SGMII_2500) in pfe_configure_serdes() 220 if (gem->phy_mode == PHY_INTERFACE_MODE_SGMII || in pfe_phy_configure() 221 gem->phy_mode == PHY_INTERFACE_MODE_SGMII_2500) { in pfe_phy_configure() 233 phydev = phy_connect(gem->bus, phy_id, dev, gem->phy_mode); in pfe_phy_configure() 285 void pfe_set_phy_address_mode(int dev_id, int phy_id, int phy_mode) in pfe_set_phy_address_mode() argument 288 gem_info[dev_id].phy_mode = phy_mode; in pfe_set_phy_address_mode()
|
/openbmc/linux/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 mode) in dwc3_meson_g12a_set_phy_mode() [all …]
|
/openbmc/linux/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 mode, int submode, in phy_validate()
|
/openbmc/linux/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 = PHY_MODE_USB_HOST; in mtk_musb_probe() 443 glue->phy_mode = PHY_MODE_USB_DEVICE; in mtk_musb_probe() [all …]
|
H A D | sunxi.c | 89 enum phy_mode phy_mode; member 143 phy_set_mode(glue->phy, glue->phy_mode); in sunxi_musb_work() 332 enum phy_mode new_mode; in sunxi_musb_set_mode() 350 if (glue->phy_mode == new_mode) in sunxi_musb_set_mode() 366 glue->phy_mode = new_mode; in sunxi_musb_set_mode() 700 glue->phy_mode = PHY_MODE_USB_HOST; in sunxi_musb_probe() 706 glue->phy_mode = PHY_MODE_USB_DEVICE; in sunxi_musb_probe() 712 glue->phy_mode = PHY_MODE_USB_OTG; in sunxi_musb_probe()
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
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-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-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-loongson.c | 56 int ret, i, phy_mode; in loongson_dwmac_probe() local 108 phy_mode = device_get_phy_mode(&pdev->dev); in loongson_dwmac_probe() 109 if (phy_mode < 0) { in loongson_dwmac_probe() 111 ret = phy_mode; in loongson_dwmac_probe() 115 plat->phy_interface = phy_mode; in loongson_dwmac_probe()
|
H A D | dwmac-mediatek.c | 84 phy_interface_t phy_mode; member 119 switch (plat->phy_mode) { in mt2712_set_interface() 146 switch (plat->phy_mode) { in mt2712_delay_ps2stage() 171 switch (plat->phy_mode) { in mt2712_delay_stage2ps() 199 switch (plat->phy_mode) { in mt2712_set_delay() 298 switch (plat->phy_mode) { in mt8195_set_interface() 350 switch (plat->phy_mode) { in mt8195_set_delay() 467 err = of_get_phy_mode(plat->np, &plat->phy_mode); in mediatek_dwmac_config_dt() 590 plat->mac_interface = priv_plat->phy_mode; in mediatek_dwmac_common_data()
|
/openbmc/u-boot/drivers/net/ |
H A D | ftgmac100.c | 86 u32 phy_mode; member 227 phydev = phy_connect(priv->bus, priv->phy_addr, dev, priv->phy_mode); in ftgmac100_phy_init() 539 const char *phy_mode; in ftgmac100_ofdata_to_platdata() local 544 phy_mode = dev_read_string(dev, "phy-mode"); in ftgmac100_ofdata_to_platdata() 546 if (phy_mode) in ftgmac100_ofdata_to_platdata() 547 pdata->phy_interface = phy_get_interface_by_name(phy_mode); in ftgmac100_ofdata_to_platdata() 549 dev_err(dev, "Invalid PHY interface '%s'\n", phy_mode); in ftgmac100_ofdata_to_platdata() 584 const char *phy_mode; in ftgmac100_probe() local 587 phy_mode = dev_read_string(dev, "phy-mode"); in ftgmac100_probe() 589 (phy_mode && strcmp(phy_mode, "NC-SI") == 0); in ftgmac100_probe() [all …]
|
H A D | sni_ave.c | 145 int phy_mode; member 387 phydev = phy_find_by_mask(priv->bus, mask, priv->phy_mode); in ave_phy_init() 477 if (priv->phy_mode != PHY_INTERFACE_MODE_RGMII) in ave_start() 627 switch (priv->phy_mode) { in ave_pro4_get_pinmode() 655 switch (priv->phy_mode) { in ave_ld11_get_pinmode() 682 switch (priv->phy_mode) { in ave_ld20_get_pinmode() 709 switch (priv->phy_mode) { in ave_pxs3_get_pinmode() 732 const char *phy_mode; in ave_ofdata_to_platdata() local 743 phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", in ave_ofdata_to_platdata() 745 if (phy_mode) in ave_ofdata_to_platdata() [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/net/ethernet/ibm/emac/ |
H A D | rgmii.c | 50 static inline int rgmii_valid_mode(int phy_mode) in rgmii_valid_mode() argument 52 return phy_interface_mode_is_rgmii(phy_mode) || in rgmii_valid_mode() 53 phy_mode == PHY_INTERFACE_MODE_GMII || in rgmii_valid_mode() 54 phy_mode == PHY_INTERFACE_MODE_MII || in rgmii_valid_mode() 55 phy_mode == PHY_INTERFACE_MODE_TBI || in rgmii_valid_mode() 56 phy_mode == PHY_INTERFACE_MODE_RTBI; in rgmii_valid_mode()
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | misc_s10.c | 80 const char *phy_mode; in socfpga_set_phymode() local 104 phy_mode = fdt_getprop(fdt, node, "phy-mode", NULL); in socfpga_set_phymode() 105 ret = socfpga_phymode_setup(gmac_index, phy_mode); in socfpga_set_phymode()
|
/openbmc/linux/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_ethtool.c | 116 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { in xgene_get_link_ksettings() 123 } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_get_link_ksettings() 170 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { in xgene_set_link_ksettings() 177 if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_set_link_ksettings() 230 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_get_extd_stats() 296 if (phy_interface_mode_is_rgmii(pdata->phy_mode) || in xgene_set_pauseparam() 297 pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_set_pauseparam()
|
H A D | xgene_enet_main.c | 1278 switch (p->phy_mode) { in xgene_derive_ring_owner() 1626 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) in xgene_enet_get_irqs() 1628 else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) in xgene_enet_get_irqs() 1636 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_enet_get_irqs() 1655 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) in xgene_enet_check_phy_handle() 1671 if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII || in xgene_enet_gpiod_get() 1743 pdata->phy_mode = device_get_phy_mode(dev); in xgene_enet_get_resources() 1744 if (pdata->phy_mode < 0) { in xgene_enet_get_resources() 1746 return pdata->phy_mode; in xgene_enet_get_resources() 1748 if (!phy_interface_mode_is_rgmii(pdata->phy_mode) && in xgene_enet_get_resources() [all …]
|
/openbmc/u-boot/include/net/pfe_eth/ |
H A D | pfe_eth.h | 75 int phy_mode; member 98 void pfe_set_phy_address_mode(int dev_id, int phy_id, int phy_mode);
|