| /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
|
| /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()
|
| H A D | selftest.c | 705 int phy_mode = efx->phy_mode; in ef4_selftest() local 759 efx->phy_mode &= ~PHY_MODE_LOW_POWER; in ef4_selftest() 774 efx->phy_mode = phy_mode; in ef4_selftest()
|
| /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 …]
|
| /linux/include/linux/phy/ |
| H A D | phy.h | 26 enum phy_mode { enum 104 int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode); 136 int (*validate)(struct phy *phy, enum phy_mode mode, int submode, 159 enum phy_mode mode; 252 int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode); 258 int phy_validate(struct phy *phy, enum phy_mode mode, int submode, 261 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 369 static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, in phy_set_mode_ext() 394 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode() 443 static inline int phy_validate(struct phy *phy, enum phy_mode mode, int submode, in phy_validate()
|
| /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()
|
| /linux/drivers/phy/freescale/ |
| H A D | phy-fsl-imx8qm-hsio.c | 82 enum phy_mode phy_mode; member 126 lane->phy_mode = PHY_MODE_PCIE; in imx_hsio_init() 165 lane->phy_mode = PHY_MODE_SATA; in imx_hsio_init() 358 if (lane->phy_mode == PHY_MODE_PCIE) in imx_hsio_power_on() 401 if (lane->phy_mode == PHY_MODE_PCIE) { in imx_hsio_power_off() 449 static int imx_hsio_set_mode(struct phy *phy, enum phy_mode mode, in imx_hsio_set_mode() 456 if (lane->phy_mode != mode) in imx_hsio_set_mode()
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | trace.h | 231 TP_PROTO(struct mt7601u_dev *dev, u8 phy_mode, s8 freq_off), 232 TP_ARGS(dev, phy_mode, freq_off), 235 __field(u8, phy_mode) 240 __entry->phy_mode = phy_mode; 244 DEV_PR_ARG, __entry->phy_mode, __entry->freq_off)
|
| H A D | phy.c | 785 mt7601u_phy_rf_pa_mode_val(struct mt7601u_dev *dev, int phy_mode, int tx_rate) in mt7601u_phy_rf_pa_mode_val() argument 790 switch (phy_mode) { in mt7601u_phy_rf_pa_mode_val() 1019 __mt7601u_phy_freq_cal(struct mt7601u_dev *dev, s8 last_offset, u8 phy_mode) in __mt7601u_phy_freq_cal() argument 1023 trace_freq_cal_offset(dev, phy_mode, last_offset); in __mt7601u_phy_freq_cal() 1029 switch (phy_mode) { in __mt7601u_phy_freq_cal() 1081 u8 phy_mode; in mt7601u_phy_freq_cal() local 1086 phy_mode = dev->bcn_phy_mode; in mt7601u_phy_freq_cal() 1089 delay = __mt7601u_phy_freq_cal(dev, last_offset, phy_mode); in mt7601u_phy_freq_cal()
|
| /linux/drivers/usb/host/ |
| H A D | ehci-fsl.c | 122 pdata->phy_mode == FSL_USB2_PHY_ULPI) in fsl_ehci_drv_probe() 192 enum fsl_usb2_phy_modes phy_mode, in ehci_fsl_setup_phy() argument 209 switch (phy_mode) { in ehci_fsl_setup_phy() 285 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) { in ehci_fsl_setup_phy() 327 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 337 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 341 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) in ehci_fsl_usb_setup()
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_main.c | 280 switch (priv->phy_mode[i]) { in sja1105_init_mii_settings() 334 phy_modes(priv->phy_mode[i]), i); in sja1105_init_mii_settings() 768 port_1_is_base_tx = priv->phy_mode[1] == PHY_INTERFACE_MODE_INTERNAL; in sja1110_select_tdmaconfigidx() 769 port_3_is_2500 = priv->phy_mode[3] == PHY_INTERFACE_MODE_2500BASEX; in sja1110_select_tdmaconfigidx() 770 port_4_is_2500 = priv->phy_mode[4] == PHY_INTERFACE_MODE_2500BASEX; in sja1110_select_tdmaconfigidx() 1134 phy_interface_t phy_mode = priv->phy_mode[port]; in sja1105_parse_rgmii_delays() local 1138 if (!phy_interface_mode_is_rgmii(phy_mode)) in sja1105_parse_rgmii_delays() 1151 if (phy_mode == PHY_INTERFACE_MODE_RGMII_RXID || in sja1105_parse_rgmii_delays() 1152 phy_mode == PHY_INTERFACE_MODE_RGMII_ID) in sja1105_parse_rgmii_delays() 1155 if (phy_mode == PHY_INTERFACE_MODE_RGMII_TXID || in sja1105_parse_rgmii_delays() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | da8xx.c | 338 enum phy_mode phy_mode; in da8xx_musb_set_mode() local 342 phy_mode = PHY_MODE_USB_HOST; in da8xx_musb_set_mode() 345 phy_mode = PHY_MODE_USB_DEVICE; in da8xx_musb_set_mode() 348 phy_mode = PHY_MODE_USB_OTG; in da8xx_musb_set_mode() 354 return phy_set_mode(glue->phy, phy_mode); in da8xx_musb_set_mode()
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | uli526x.c | 1479 u16 phy_mode; in uli526x_sense_speed() local 1481 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed() 1482 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed() 1484 if ( (phy_mode & 0x24) == 0x24 ) { in uli526x_sense_speed() 1486 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); in uli526x_sense_speed() 1487 if(phy_mode&0x8000) in uli526x_sense_speed() 1488 phy_mode = 0x8000; in uli526x_sense_speed() 1489 else if(phy_mode&0x4000) in uli526x_sense_speed() 1490 phy_mode = 0x4000; in uli526x_sense_speed() 1491 else if(phy_mode&0x2000) in uli526x_sense_speed() [all …]
|
| /linux/drivers/net/ethernet/apm/xgene-v2/ |
| H A D | main.c | 16 int phy_mode, ret = 0; in xge_get_resources() local 42 phy_mode = device_get_phy_mode(dev); in xge_get_resources() 43 if (phy_mode < 0) { in xge_get_resources() 45 return phy_mode; in xge_get_resources() 47 pdata->resources.phy_mode = phy_mode; in xge_get_resources() 49 if (pdata->resources.phy_mode != PHY_INTERFACE_MODE_RGMII) { in xge_get_resources()
|
| /linux/drivers/phy/starfive/ |
| H A D | phy-jh7110-usb.c | 35 enum phy_mode mode; 53 enum phy_mode mode, int submode) in usb2_phy_set_mode()
|
| H A D | phy-jh7110-pcie.c | 44 enum phy_mode mode; 103 enum phy_mode mode, int submode) in jh7110_pcie_phy_set_mode()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | selftest.c | 698 int phy_mode = efx->phy_mode; in efx_selftest() local 752 efx->phy_mode &= ~PHY_MODE_LOW_POWER; in efx_selftest() 767 efx->phy_mode = phy_mode; in efx_selftest()
|
| H A D | efx_common.c | 617 enum efx_phy_mode phy_mode; in __efx_reconfigure_port() local 623 phy_mode = efx->phy_mode; in __efx_reconfigure_port() 625 efx->phy_mode |= PHY_MODE_TX_DISABLED; in __efx_reconfigure_port() 627 efx->phy_mode &= ~PHY_MODE_TX_DISABLED; in __efx_reconfigure_port() 633 efx->phy_mode = phy_mode; in __efx_reconfigure_port()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | selftest.c | 703 int phy_mode = efx->phy_mode; in efx_siena_selftest() local 757 efx->phy_mode &= ~PHY_MODE_LOW_POWER; in efx_siena_selftest() 772 efx->phy_mode = phy_mode; in efx_siena_selftest()
|
| H A D | efx_common.c | 628 enum efx_phy_mode phy_mode; in __efx_siena_reconfigure_port() local 634 phy_mode = efx->phy_mode; in __efx_siena_reconfigure_port() 636 efx->phy_mode |= PHY_MODE_TX_DISABLED; in __efx_siena_reconfigure_port() 638 efx->phy_mode &= ~PHY_MODE_TX_DISABLED; in __efx_siena_reconfigure_port() 644 efx->phy_mode = phy_mode; in __efx_siena_reconfigure_port()
|
| /linux/drivers/net/ethernet/ibm/emac/ |
| H A D | core.c | 188 static inline int emac_phy_supports_gige(int phy_mode) in emac_phy_supports_gige() argument 190 return phy_interface_mode_is_rgmii(phy_mode) || in emac_phy_supports_gige() 191 phy_mode == PHY_INTERFACE_MODE_GMII || in emac_phy_supports_gige() 192 phy_mode == PHY_INTERFACE_MODE_SGMII || in emac_phy_supports_gige() 193 phy_mode == PHY_INTERFACE_MODE_TBI || in emac_phy_supports_gige() 194 phy_mode == PHY_INTERFACE_MODE_RTBI; in emac_phy_supports_gige() 197 static inline int emac_phy_gpcs(int phy_mode) in emac_phy_gpcs() argument 199 return phy_mode == PHY_INTERFACE_MODE_SGMII || in emac_phy_gpcs() 200 phy_mode == PHY_INTERFACE_MODE_TBI || in emac_phy_gpcs() 201 phy_mode == PHY_INTERFACE_MODE_RTBI; in emac_phy_gpcs() [all …]
|