/Linux-v4.19/drivers/net/ethernet/ti/ |
D | cpsw-phy-sel.c | 43 phy_interface_t phy_mode, int slave); 48 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument 57 switch (phy_mode) { in cpsw_gmii_sel_am3352() 76 phy_modes(phy_mode)); in cpsw_gmii_sel_am3352() 108 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() argument 116 switch (phy_mode) { in cpsw_gmii_sel_dra7xx() 131 phy_modes(phy_mode)); in cpsw_gmii_sel_dra7xx() 168 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument 190 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel()
|
D | cpsw.h | 24 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | tenxpress.c | 147 enum ef4_phy_mode phy_mode; member 175 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe() 194 if (!(efx->phy_mode & PHY_MODE_SPECIAL)) { in tenxpress_phy_init() 318 efx, !!(efx->phy_mode & PHY_MODE_LOW_POWER), in tenxpress_low_power() 327 if (efx->phy_mode & (PHY_MODE_OFF | PHY_MODE_SPECIAL)) { in tenxpress_phy_reconfigure() 328 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure() 332 phy_mode_change = (efx->phy_mode == PHY_MODE_NORMAL && in tenxpress_phy_reconfigure() 333 phy_data->phy_mode != PHY_MODE_NORMAL); in tenxpress_phy_reconfigure() 349 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_reconfigure()
|
D | txc43128_phy.c | 161 enum ef4_phy_mode phy_mode; member 333 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_probe() 367 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) in txc_glrgs_lane_power() 385 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) { in txc_analog_lane_power() 401 !!(efx->phy_mode & PHY_MODE_LOW_POWER), in txc_set_power() 450 enum ef4_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode; in txc43128_phy_reconfigure() 453 if (efx->phy_mode & mode_change & PHY_MODE_TX_DISABLED) { in txc43128_phy_reconfigure() 472 phy_data->phy_mode = efx->phy_mode; in txc43128_phy_reconfigure()
|
D | qt202x_phy.c | 60 enum ef4_phy_mode phy_mode; member 350 phy_data->phy_mode = efx->phy_mode; in qt202x_phy_probe() 420 efx->phy_mode & PHY_MODE_TX_DISABLED || in qt202x_phy_reconfigure() 421 efx->phy_mode & PHY_MODE_LOW_POWER || in qt202x_phy_reconfigure() 426 if (!(efx->phy_mode & PHY_MODE_TX_DISABLED) && in qt202x_phy_reconfigure() 427 (phy_data->phy_mode & PHY_MODE_TX_DISABLED)) in qt202x_phy_reconfigure() 435 phy_data->phy_mode = efx->phy_mode; in qt202x_phy_reconfigure()
|
D | falcon_boards.c | 316 if (efx->phy_mode & PHY_MODE_SPECIAL) in sfe4001_poweron() 336 if (efx->phy_mode & PHY_MODE_SPECIAL) { in sfe4001_poweron() 364 return sprintf(buf, "%d\n", !!(efx->phy_mode & PHY_MODE_SPECIAL)); in show_phy_flash_cfg() 376 old_mode = efx->phy_mode; in set_phy_flash_cfg() 388 efx->phy_mode = new_mode; in set_phy_flash_cfg() 440 efx->phy_mode = PHY_MODE_OFF; in sfe4001_check_hw() 480 if (efx->phy_mode & PHY_MODE_SPECIAL) { in sfe4001_init()
|
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
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() 193 gmac->phy_mode = of_get_phy_mode(dev->of_node); in ipq806x_gmac_of_parse() 194 if (gmac->phy_mode < 0) { in ipq806x_gmac_of_parse() 283 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 292 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe() 301 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 312 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe() 323 if (gmac->phy_mode == PHY_INTERFACE_MODE_SGMII) { in ipq806x_gmac_probe()
|
D | dwmac-meson8b.c | 66 phy_interface_t phy_mode; member 189 switch (dwmac->phy_mode) { in meson8b_set_phy_mode() 206 phy_modes(dwmac->phy_mode)); in meson8b_set_phy_mode() 215 switch (dwmac->phy_mode) { in meson_axg_set_phy_mode() 233 phy_modes(dwmac->phy_mode)); in meson_axg_set_phy_mode() 245 switch (dwmac->phy_mode) { in meson8b_init_prg_eth() 302 phy_modes(dwmac->phy_mode)); in meson8b_init_prg_eth() 349 dwmac->phy_mode = of_get_phy_mode(pdev->dev.of_node); in meson8b_dwmac_probe() 350 if (dwmac->phy_mode < 0) { in meson8b_dwmac_probe()
|
D | dwmac-anarion.c | 64 int phy_mode; in anarion_config_dt() local 83 phy_mode = of_get_phy_mode(pdev->dev.of_node); in anarion_config_dt() 84 switch (phy_mode) { in anarion_config_dt() 93 phy_mode); in anarion_config_dt()
|
/Linux-v4.19/include/linux/phy/ |
D | phy.h | 25 enum phy_mode { enum 61 int (*set_mode)(struct phy *phy, enum phy_mode mode); 73 enum phy_mode mode; 165 int phy_set_mode(struct phy *phy, enum phy_mode mode); 166 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 279 static inline int phy_set_mode(struct phy *phy, enum phy_mode mode) in phy_set_mode() 286 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode()
|
/Linux-v4.19/drivers/net/ethernet/ibm/emac/ |
D | rgmii.c | 53 static inline int rgmii_valid_mode(int phy_mode) in rgmii_valid_mode() argument 55 return phy_interface_mode_is_rgmii(phy_mode) || in rgmii_valid_mode() 56 phy_mode == PHY_INTERFACE_MODE_GMII || in rgmii_valid_mode() 57 phy_mode == PHY_INTERFACE_MODE_MII || in rgmii_valid_mode() 58 phy_mode == PHY_INTERFACE_MODE_TBI || in rgmii_valid_mode() 59 phy_mode == PHY_INTERFACE_MODE_RTBI; in rgmii_valid_mode()
|
/Linux-v4.19/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_ethtool.c | 130 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { in xgene_get_link_ksettings() 137 } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_get_link_ksettings() 184 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { in xgene_set_link_ksettings() 191 if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_set_link_ksettings() 244 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_get_extd_stats() 311 if (phy_interface_mode_is_rgmii(pdata->phy_mode) || in xgene_set_pauseparam() 312 pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_set_pauseparam()
|
D | xgene_enet_main.c | 1288 switch (p->phy_mode) { in xgene_derive_ring_owner() 1637 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) in xgene_enet_get_irqs() 1639 else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) in xgene_enet_get_irqs() 1647 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_enet_get_irqs() 1668 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) in xgene_enet_check_phy_handle() 1684 if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII || in xgene_enet_gpiod_get() 1756 pdata->phy_mode = device_get_phy_mode(dev); in xgene_enet_get_resources() 1757 if (pdata->phy_mode < 0) { in xgene_enet_get_resources() 1759 return pdata->phy_mode; in xgene_enet_get_resources() 1761 if (!phy_interface_mode_is_rgmii(pdata->phy_mode) && in xgene_enet_get_resources() [all …]
|
/Linux-v4.19/drivers/staging/mt7621-eth/ |
D | mdio.c | 68 int phy_mode, port; in mtk_connect_phy_node() local 77 phy_mode = of_get_phy_mode(phy_node); in mtk_connect_phy_node() 78 if (phy_mode < 0) { in mtk_connect_phy_node() 79 dev_err(eth->dev, "incorrect phy-mode %d\n", phy_mode); in mtk_connect_phy_node() 85 mtk_phy_link_adjust, 0, phy_mode); in mtk_connect_phy_node()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/genet/ |
D | bcmmii.c | 447 int phy_mode; in bcmgenet_mii_of_init() local 465 phy_mode = of_get_phy_mode(dn); in bcmgenet_mii_of_init() 466 if (phy_mode < 0) { in bcmgenet_mii_of_init() 468 return phy_mode; in bcmgenet_mii_of_init() 471 priv->phy_interface = phy_mode; in bcmgenet_mii_of_init() 481 if (phy_mode == PHY_INTERFACE_MODE_MOCA) { in bcmgenet_mii_of_init()
|
/Linux-v4.19/drivers/usb/musb/ |
D | sunxi.c | 82 enum phy_mode phy_mode; member 136 phy_set_mode(glue->phy, glue->phy_mode); in sunxi_musb_work() 327 enum phy_mode new_mode; in sunxi_musb_set_mode() 345 if (glue->phy_mode == new_mode) in sunxi_musb_set_mode() 361 glue->phy_mode = new_mode; in sunxi_musb_set_mode() 688 glue->phy_mode = PHY_MODE_USB_HOST; in sunxi_musb_probe() 694 glue->phy_mode = PHY_MODE_USB_DEVICE; in sunxi_musb_probe() 700 glue->phy_mode = PHY_MODE_USB_OTG; in sunxi_musb_probe()
|
D | da8xx.c | 328 enum phy_mode phy_mode; in da8xx_musb_set_mode() local 339 phy_mode = PHY_MODE_USB_HOST; in da8xx_musb_set_mode() 342 phy_mode = PHY_MODE_USB_DEVICE; in da8xx_musb_set_mode() 345 phy_mode = PHY_MODE_USB_OTG; in da8xx_musb_set_mode() 351 return phy_set_mode(glue->phy, phy_mode); in da8xx_musb_set_mode()
|
/Linux-v4.19/drivers/usb/gadget/udc/ |
D | fsl_mxc_udc.c | 62 if (pdata->phy_mode != FSL_USB2_PHY_ULPI && in fsl_udc_clk_init() 108 if (pdata->phy_mode == FSL_USB2_PHY_ULPI) { in fsl_udc_clk_finalize()
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/ |
D | trace.h | 239 TP_PROTO(struct mt7601u_dev *dev, u8 phy_mode, s8 freq_off), 240 TP_ARGS(dev, phy_mode, freq_off), 243 __field(u8, phy_mode) 248 __entry->phy_mode = phy_mode; 252 DEV_PR_ARG, __entry->phy_mode, __entry->freq_off)
|
/Linux-v4.19/drivers/usb/chipidea/ |
D | ulpi.c | 68 if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI) in ci_ulpi_init() 98 if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI) in ci_ulpi_resume()
|
/Linux-v4.19/drivers/net/ethernet/socionext/ |
D | sni_ave.c | 258 phy_interface_t phy_mode; member 291 phy_interface_t phy_mode, u32 arg); 861 if (!phy_interface_mode_is_rgmii(priv->phy_mode)) in ave_global_reset() 1558 phy_interface_t phy_mode; in ave_probe() local 1575 phy_mode = of_get_phy_mode(np); in ave_probe() 1576 if (phy_mode < 0) { in ave_probe() 1623 priv->phy_mode = phy_mode; in ave_probe() 1685 ret = priv->data->get_pinmode(priv, phy_mode, args.args[0]); in ave_probe() 1724 buf, priv->irq, phy_modes(phy_mode)); in ave_probe() 1751 phy_interface_t phy_mode, u32 arg) in ave_pro4_get_pinmode() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/apm/xgene-v2/ |
D | main.c | 30 int phy_mode, ret = 0; in xge_get_resources() local 56 phy_mode = device_get_phy_mode(dev); in xge_get_resources() 57 if (phy_mode < 0) { in xge_get_resources() 59 return phy_mode; in xge_get_resources() 61 pdata->resources.phy_mode = phy_mode; in xge_get_resources() 63 if (pdata->resources.phy_mode != PHY_INTERFACE_MODE_RGMII) { in xge_get_resources()
|
/Linux-v4.19/drivers/net/ethernet/dec/tulip/ |
D | uli526x.c | 1524 u16 phy_mode; in uli526x_sense_speed() local 1526 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed() 1527 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed() 1529 if ( (phy_mode & 0x24) == 0x24 ) { in uli526x_sense_speed() 1531 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); in uli526x_sense_speed() 1532 if(phy_mode&0x8000) in uli526x_sense_speed() 1533 phy_mode = 0x8000; in uli526x_sense_speed() 1534 else if(phy_mode&0x4000) in uli526x_sense_speed() 1535 phy_mode = 0x4000; in uli526x_sense_speed() 1536 else if(phy_mode&0x2000) in uli526x_sense_speed() [all …]
|
/Linux-v4.19/drivers/usb/host/ |
D | ehci-fsl.c | 174 enum fsl_usb2_phy_modes phy_mode, in ehci_fsl_setup_phy() argument 191 switch (phy_mode) { in ehci_fsl_setup_phy() 244 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) in ehci_fsl_setup_phy() 283 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 298 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 302 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) in ehci_fsl_usb_setup()
|
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-platform.c | 305 const char *phy_mode; in xgbe_platform_probe() local 419 &phy_mode); in xgbe_platform_probe() 420 if (ret || strcmp(phy_mode, phy_modes(PHY_INTERFACE_MODE_XGMII))) { in xgbe_platform_probe() 426 pdata->phy_mode = PHY_INTERFACE_MODE_XGMII; in xgbe_platform_probe()
|