/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 187 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel()
|
/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()
|
D | selftest.c | 696 int phy_mode = efx->phy_mode; in ef4_selftest() local 750 efx->phy_mode &= ~PHY_MODE_LOW_POWER; in ef4_selftest() 765 efx->phy_mode = phy_mode; in ef4_selftest()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-ipq806x.c | 102 phy_interface_t phy_mode; member 162 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed() 177 phy_modes(gmac->phy_mode)); in ipq806x_gmac_set_speed() 205 gmac->phy_mode = of_get_phy_mode(dev->of_node); in ipq806x_gmac_of_parse() 206 if ((int)gmac->phy_mode < 0) { in ipq806x_gmac_of_parse() 295 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 304 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe() 313 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 324 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe() 335 if (gmac->phy_mode == PHY_INTERFACE_MODE_SGMII) { in ipq806x_gmac_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()
|
D | dwmac-meson8b.c | 57 phy_interface_t phy_mode; member 184 switch (dwmac->phy_mode) { in meson8b_init_prg_eth() 232 phy_modes(dwmac->phy_mode)); in meson8b_init_prg_eth() 287 dwmac->phy_mode = of_get_phy_mode(pdev->dev.of_node); in meson8b_dwmac_probe() 288 if ((int)dwmac->phy_mode < 0) { in meson8b_dwmac_probe()
|
/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_mode == PHY_MODE_GMII || in rgmii_valid_mode() 56 phy_mode == PHY_MODE_MII || in rgmii_valid_mode() 57 phy_mode == PHY_MODE_RGMII || in rgmii_valid_mode() 58 phy_mode == PHY_MODE_TBI || in rgmii_valid_mode() 59 phy_mode == PHY_MODE_RTBI; in rgmii_valid_mode()
|
/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 | 1285 switch (p->phy_mode) { in xgene_derive_ring_owner() 1634 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) in xgene_enet_get_irqs() 1636 else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) in xgene_enet_get_irqs() 1644 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_enet_get_irqs() 1665 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) in xgene_enet_check_phy_handle() 1681 if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII || in xgene_enet_gpiod_get() 1753 pdata->phy_mode = device_get_phy_mode(dev); in xgene_enet_get_resources() 1754 if (pdata->phy_mode < 0) { in xgene_enet_get_resources() 1756 return pdata->phy_mode; in xgene_enet_get_resources() 1758 if (!phy_interface_mode_is_rgmii(pdata->phy_mode) && in xgene_enet_get_resources() [all …]
|
/drivers/usb/musb/ |
D | sunxi.c | 91 enum phy_mode phy_mode; member 147 phy_set_mode(glue->phy, glue->phy_mode); in sunxi_musb_work() 338 enum phy_mode new_mode; in sunxi_musb_set_mode() 356 if (glue->phy_mode == new_mode) in sunxi_musb_set_mode() 372 glue->phy_mode = new_mode; in sunxi_musb_set_mode() 703 glue->phy_mode = PHY_MODE_USB_HOST; in sunxi_musb_probe() 709 glue->phy_mode = PHY_MODE_USB_DEVICE; in sunxi_musb_probe() 715 glue->phy_mode = PHY_MODE_USB_OTG; in sunxi_musb_probe()
|
D | da8xx.c | 352 enum phy_mode phy_mode; in da8xx_musb_set_mode() local 363 phy_mode = PHY_MODE_USB_HOST; in da8xx_musb_set_mode() 366 phy_mode = PHY_MODE_USB_DEVICE; in da8xx_musb_set_mode() 369 phy_mode = PHY_MODE_USB_OTG; in da8xx_musb_set_mode() 375 return phy_set_mode(glue->phy, phy_mode); in da8xx_musb_set_mode()
|
/drivers/net/ethernet/broadcom/genet/ |
D | bcmmii.c | 470 int phy_mode; in bcmgenet_mii_of_init() local 488 phy_mode = of_get_phy_mode(dn); in bcmgenet_mii_of_init() 489 if (phy_mode < 0) { in bcmgenet_mii_of_init() 491 return phy_mode; in bcmgenet_mii_of_init() 494 priv->phy_interface = phy_mode; in bcmgenet_mii_of_init() 504 if (phy_mode == PHY_INTERFACE_MODE_MOCA) { in bcmgenet_mii_of_init()
|
/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)
|
D | phy.c | 790 mt7601u_phy_rf_pa_mode_val(struct mt7601u_dev *dev, int phy_mode, int tx_rate) in mt7601u_phy_rf_pa_mode_val() argument 795 switch (phy_mode) { in mt7601u_phy_rf_pa_mode_val() 1017 __mt7601u_phy_freq_cal(struct mt7601u_dev *dev, s8 last_offset, u8 phy_mode) in __mt7601u_phy_freq_cal() argument 1021 trace_freq_cal_offset(dev, phy_mode, last_offset); in __mt7601u_phy_freq_cal() 1027 switch (phy_mode) { in __mt7601u_phy_freq_cal() 1079 u8 phy_mode; in mt7601u_phy_freq_cal() local 1084 phy_mode = dev->bcn_phy_mode; in mt7601u_phy_freq_cal() 1087 delay = __mt7601u_phy_freq_cal(dev, last_offset, phy_mode); in mt7601u_phy_freq_cal()
|
/drivers/net/ethernet/dec/tulip/ |
D | uli526x.c | 1526 u16 phy_mode; in uli526x_sense_speed() local 1528 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed() 1529 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed() 1531 if ( (phy_mode & 0x24) == 0x24 ) { in uli526x_sense_speed() 1533 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); in uli526x_sense_speed() 1534 if(phy_mode&0x8000) in uli526x_sense_speed() 1535 phy_mode = 0x8000; in uli526x_sense_speed() 1536 else if(phy_mode&0x4000) in uli526x_sense_speed() 1537 phy_mode = 0x4000; in uli526x_sense_speed() 1538 else if(phy_mode&0x2000) in uli526x_sense_speed() [all …]
|
/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()
|
/drivers/usb/gadget/udc/ |
D | fsl_mxc_udc.c | 65 if (pdata->phy_mode != FSL_USB2_PHY_ULPI && in fsl_udc_clk_init() 111 if (pdata->phy_mode == FSL_USB2_PHY_ULPI) { in fsl_udc_clk_finalize()
|
/drivers/usb/host/ |
D | ehci-fsl.c | 185 enum fsl_usb2_phy_modes phy_mode, in ehci_fsl_setup_phy() argument 202 switch (phy_mode) { in ehci_fsl_setup_phy() 255 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) in ehci_fsl_setup_phy() 294 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 309 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 313 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) in ehci_fsl_usb_setup()
|
/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()
|
/drivers/net/ethernet/xilinx/ |
D | xilinx_axienet_main.c | 534 if (lp->phy_mode == PHY_INTERFACE_MODE_1000BASEX) in axienet_adjust_link() 538 (lp->phy_mode == PHY_INTERFACE_MODE_MII)) in axienet_adjust_link() 954 axienet_adjust_link, 0, lp->phy_mode); in axienet_open() 1557 lp->phy_mode = PHY_INTERFACE_MODE_MII; in axienet_probe() 1560 lp->phy_mode = PHY_INTERFACE_MODE_GMII; in axienet_probe() 1563 lp->phy_mode = PHY_INTERFACE_MODE_RGMII_ID; in axienet_probe() 1566 lp->phy_mode = PHY_INTERFACE_MODE_SGMII; in axienet_probe() 1569 lp->phy_mode = PHY_INTERFACE_MODE_1000BASEX; in axienet_probe() 1576 lp->phy_mode = of_get_phy_mode(pdev->dev.of_node); in axienet_probe() 1577 if ((int)lp->phy_mode < 0) { in axienet_probe()
|
/drivers/phy/marvell/ |
D | phy-mvebu-cp110-comphy.c | 121 enum phy_mode mode; 163 enum phy_mode mode; 167 static int mvebu_comphy_get_mux(int lane, int port, enum phy_mode mode) in mvebu_comphy_get_mux() 189 enum phy_mode mode) in mvebu_comphy_ethernet_init_reset() 259 enum phy_mode mode) in mvebu_comphy_init_plls() 508 static int mvebu_comphy_set_mode(struct phy *phy, enum phy_mode mode) in mvebu_comphy_set_mode()
|
/drivers/net/ethernet/sfc/ |
D | selftest.c | 696 int phy_mode = efx->phy_mode; in efx_selftest() local 750 efx->phy_mode &= ~PHY_MODE_LOW_POWER; in efx_selftest() 765 efx->phy_mode = phy_mode; in efx_selftest()
|