Home
last modified time | relevance | path

Searched refs:phy_mode (Results 1 – 73 of 73) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/sfc/
Dtenxpress.c147 enum efx_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()
Dtxc43128_phy.c161 enum efx_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 efx_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()
Dqt202x_phy.c60 enum efx_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()
Dfalcon_boards.c316 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()
Dselftest.c677 int phy_mode = efx->phy_mode; in efx_selftest() local
731 efx->phy_mode &= ~PHY_MODE_LOW_POWER; in efx_selftest()
746 efx->phy_mode = phy_mode; in efx_selftest()
Dmdio_10g.c163 else if (efx_phy_mode_disabled(efx->phy_mode)) in efx_mdio_links_ok()
185 efx->phy_mode & PHY_MODE_TX_DISABLED); in efx_mdio_transmit_disable()
Defx.c960 enum efx_phy_mode phy_mode; in __efx_reconfigure_port() local
966 phy_mode = efx->phy_mode; in __efx_reconfigure_port()
968 efx->phy_mode |= PHY_MODE_TX_DISABLED; in __efx_reconfigure_port()
970 efx->phy_mode &= ~PHY_MODE_TX_DISABLED; in __efx_reconfigure_port()
975 efx->phy_mode = phy_mode; in __efx_reconfigure_port()
1015 efx->phy_mode = PHY_MODE_SPECIAL; in efx_probe_port()
2073 if (efx->phy_mode & PHY_MODE_SPECIAL) in efx_net_open()
Dnet_driver.h1028 enum efx_phy_mode phy_mode; member
Dmcdi_port.c275 mode = efx->phy_mode & supported; in efx_get_mcdi_phy_flags()
Dfalcon.c1184 efx_phy_mode_disabled(efx->phy_mode)) in falcon_xmac_link_ok_retry()
2066 efx->phy_mode |= PHY_MODE_LOW_POWER; in falcon_monitor()
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpsw-phy-sel.c39 phy_interface_t phy_mode, int slave);
44 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument
52 switch (phy_mode) { in cpsw_gmii_sel_am3352()
87 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() argument
95 switch (phy_mode) { in cpsw_gmii_sel_dra7xx()
143 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument
157 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel()
Dcpsw.h43 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
Dnetcp_ethss.c1943 phy_interface_t phy_mode; in gbe_slave_open() local
1960 phy_mode = PHY_INTERFACE_MODE_SGMII; in gbe_slave_open()
1964 phy_mode = PHY_INTERFACE_MODE_NA; in gbe_slave_open()
1975 phy_mode); in gbe_slave_open()
2407 phy_interface_t phy_mode; in init_secondary_ports() local
2460 phy_mode = PHY_INTERFACE_MODE_SGMII; in init_secondary_ports()
2463 phy_mode = PHY_INTERFACE_MODE_NA; in init_secondary_ports()
2475 0, phy_mode); in init_secondary_ports()
/linux-4.1.27/drivers/net/ethernet/ibm/emac/
Drgmii.c53 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()
Dcore.c200 static inline int emac_phy_supports_gige(int phy_mode) in emac_phy_supports_gige() argument
202 return phy_mode == PHY_MODE_GMII || in emac_phy_supports_gige()
203 phy_mode == PHY_MODE_RGMII || in emac_phy_supports_gige()
204 phy_mode == PHY_MODE_SGMII || in emac_phy_supports_gige()
205 phy_mode == PHY_MODE_TBI || in emac_phy_supports_gige()
206 phy_mode == PHY_MODE_RTBI; in emac_phy_supports_gige()
209 static inline int emac_phy_gpcs(int phy_mode) in emac_phy_gpcs() argument
211 return phy_mode == PHY_MODE_SGMII || in emac_phy_gpcs()
212 phy_mode == PHY_MODE_TBI || in emac_phy_gpcs()
213 phy_mode == PHY_MODE_RTBI; in emac_phy_gpcs()
[all …]
Dcore.h184 u32 phy_mode; member
/linux-4.1.27/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ethtool.c62 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII) { in xgene_get_settings()
67 } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_get_settings()
94 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII) { in xgene_set_settings()
Dxgene_enet_main.c508 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII) in xgene_enet_open()
525 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII) in xgene_enet_close()
929 pdata->phy_mode = xgene_get_phy_mode(dev); in xgene_enet_get_resources()
930 if (pdata->phy_mode < 0) { in xgene_enet_get_resources()
932 return pdata->phy_mode; in xgene_enet_get_resources()
934 if (pdata->phy_mode != PHY_INTERFACE_MODE_RGMII && in xgene_enet_get_resources()
935 pdata->phy_mode != PHY_INTERFACE_MODE_SGMII && in xgene_enet_get_resources()
936 pdata->phy_mode != PHY_INTERFACE_MODE_XGMII) { in xgene_enet_get_resources()
949 if (pdata->phy_mode != PHY_INTERFACE_MODE_RGMII) { in xgene_enet_get_resources()
969 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII || in xgene_enet_get_resources()
[all …]
Dxgene_enet_main.h134 int phy_mode; member
Dxgene_enet_hw.c681 pdata->phy_mode)) { in xgene_enet_phy_connect()
/linux-4.1.27/drivers/usb/gadget/udc/
Dfsl_mxc_udc.c65 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()
Dfsl_usb2_udc.h498 enum fsl_usb2_phy_modes phy_mode; member
Dfsl_udc_core.c243 switch (udc->phy_mode) { in dr_controller_setup()
2259 udc->phy_mode = pdata->phy_mode; in struct_udc_setup()
/linux-4.1.27/drivers/usb/host/
Dehci-fsl.c195 enum fsl_usb2_phy_modes phy_mode, in ehci_fsl_setup_phy() argument
212 switch (phy_mode) { in ehci_fsl_setup_phy()
247 (phy_mode == FSL_USB2_PHY_ULPI)) { in ehci_fsl_setup_phy()
259 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) in ehci_fsl_setup_phy()
288 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup()
303 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup()
307 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) in ehci_fsl_usb_setup()
Dfsl-mph-dr-of.c206 pdata->phy_mode = determine_usb_phy(prop); in fsl_usb2_mph_dr_of_probe()
277 if (pdata->phy_mode == FSL_USB2_PHY_UTMI_WIDE) { in fsl_usb2_mpc5121_init()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Duli526x.c1520 u16 phy_mode; in uli526x_sense_speed() local
1522 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed()
1523 phy_mode = phy->read(db, db->phy_addr, 1); in uli526x_sense_speed()
1525 if ( (phy_mode & 0x24) == 0x24 ) { in uli526x_sense_speed()
1527 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); in uli526x_sense_speed()
1528 if(phy_mode&0x8000) in uli526x_sense_speed()
1529 phy_mode = 0x8000; in uli526x_sense_speed()
1530 else if(phy_mode&0x4000) in uli526x_sense_speed()
1531 phy_mode = 0x4000; in uli526x_sense_speed()
1532 else if(phy_mode&0x2000) in uli526x_sense_speed()
[all …]
Ddmfe.c1647 u16 phy_mode; in dmfe_sense_speed() local
1652 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed()
1653 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed()
1655 if ( (phy_mode & 0x24) == 0x24 ) { in dmfe_sense_speed()
1657 phy_mode = dmfe_phy_read(db->ioaddr, in dmfe_sense_speed()
1660 phy_mode = dmfe_phy_read(db->ioaddr, in dmfe_sense_speed()
1662 switch (phy_mode) { in dmfe_sense_speed()
1673 DMFE_DBUG(0, "Link Failed :", phy_mode); in dmfe_sense_speed()
/linux-4.1.27/include/linux/
Dbfin_mac.h25 int phy_mode; member
Dfsl_devices.h76 enum fsl_usb2_phy_modes phy_mode; member
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-main.c266 const char *phy_mode; in xgbe_probe() local
345 &phy_mode); in xgbe_probe()
346 if (ret || strcmp(phy_mode, phy_modes(PHY_INTERFACE_MODE_XGMII))) { in xgbe_probe()
352 pdata->phy_mode = PHY_INTERFACE_MODE_XGMII; in xgbe_probe()
Dxgbe.h742 phy_interface_t phy_mode; member
Dxgbe-drv.c840 pdata->phy_mode); in xgbe_phy_init()
/linux-4.1.27/include/linux/usb/
Dchipidea.h19 enum usb_phy_interface phy_mode; member
/linux-4.1.27/drivers/net/ethernet/hisilicon/
Dhip04_eth.c152 int phy_mode; member
199 switch (priv->phy_mode) { in hip04_config_port()
865 priv->phy_mode = of_get_phy_mode(node); in hip04_mac_probe()
866 if (priv->phy_mode < 0) { in hip04_mac_probe()
889 0, priv->phy_mode); in hip04_mac_probe()
908 if (priv->phy_mode == PHY_INTERFACE_MODE_MII) in hip04_mac_probe()
Dhix5hd2_gmac.c223 phy_interface_t phy_mode; member
242 switch (priv->phy_mode) { in hix5hd2_config_port()
692 &hix5hd2_adjust_link, 0, priv->phy_mode); in hix5hd2_net_open()
954 priv->phy_mode = of_get_phy_mode(node); in hix5hd2_dev_probe()
955 if (priv->phy_mode < 0) { in hix5hd2_dev_probe()
/linux-4.1.27/arch/arm/mach-imx/
Dmach-cpuimx35.c140 .phy_mode = FSL_USB2_PHY_UTMI,
Dmx31moboard-smartbot.c120 .phy_mode = FSL_USB2_PHY_ULPI,
Dmx31moboard-devboard.c224 .phy_mode = FSL_USB2_PHY_ULPI,
Dmach-vpr200.c240 .phy_mode = FSL_USB2_PHY_UTMI,
Dmach-pca100.c297 .phy_mode = FSL_USB2_PHY_ULPI,
Dmx31moboard-marxbot.c337 .phy_mode = FSL_USB2_PHY_ULPI,
Dmach-pcm043.c326 .phy_mode = FSL_USB2_PHY_UTMI,
Dmach-mx27_3ds.c245 .phy_mode = FSL_USB2_PHY_ULPI,
Dmach-mx35_3ds.c509 .phy_mode = FSL_USB2_PHY_UTMI_WIDE,
Dmach-pcm037.c551 .phy_mode = FSL_USB2_PHY_ULPI,
Dmach-mx31_3ds.c665 .phy_mode = FSL_USB2_PHY_ULPI,
/linux-4.1.27/drivers/usb/chipidea/
Dcore.c289 switch (ci->platdata->phy_mode) { in hw_phymode_configure()
379 switch (ci->platdata->phy_mode) { in ci_usb_phy_init()
563 if (!platdata->phy_mode) in ci_get_platdata()
564 platdata->phy_mode = of_usb_get_phy_mode(dev->of_node); in ci_get_platdata()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dphy_shim.h169 void wlapi_high_update_phy_mode(struct phy_shim_info *physhim, u32 phy_mode);
Dd11.h233 u16 phy_mode; /* 0x438 */ member
/linux-4.1.27/arch/blackfin/mach-bf537/boards/
Ddnp5370.c65 .phy_mode = PHY_INTERFACE_MODE_RMII,
Dpnav10.c116 .phy_mode = PHY_INTERFACE_MODE_RMII,
Dminotaur.c84 .phy_mode = PHY_INTERFACE_MODE_MII,
Dcm_bf537u.c566 .phy_mode = PHY_INTERFACE_MODE_MII,
Dtcm_bf537.c568 .phy_mode = PHY_INTERFACE_MODE_MII,
Dcm_bf537e.c712 .phy_mode = PHY_INTERFACE_MODE_MII,
Dstamp.c345 .phy_mode = PHY_INTERFACE_MODE_MII,
/linux-4.1.27/drivers/net/ethernet/adi/
Dbfin_mac.c380 static int mii_probe(struct net_device *dev, int phy_mode) in mii_probe() argument
416 if (phy_mode != PHY_INTERFACE_MODE_RMII && in mii_probe()
417 phy_mode != PHY_INTERFACE_MODE_MII) { in mii_probe()
423 &bfin_mac_adjust_link, phy_mode); in mii_probe()
1684 rc = mii_probe(ndev, mii_bus_data->phy_mode); in bfin_mac_probe()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvneta.c2977 static int mvneta_port_power_up(struct mvneta_port *pp, int phy_mode) in mvneta_port_power_up() argument
2989 switch(phy_mode) { in mvneta_port_power_up()
3033 int phy_mode; in mvneta_probe() local
3074 phy_mode = of_get_phy_mode(dn); in mvneta_probe()
3075 if (phy_mode < 0) { in mvneta_probe()
3089 pp->phy_interface = phy_mode; in mvneta_probe()
3145 err = mvneta_port_power_up(pp, phy_mode); in mvneta_probe()
Dmvpp2.c6045 int phy_mode; in mvpp2_port_probe() local
6061 phy_mode = of_get_phy_mode(port_node); in mvpp2_port_probe()
6062 if (phy_mode < 0) { in mvpp2_port_probe()
6064 err = phy_mode; in mvpp2_port_probe()
6094 port->phy_interface = phy_mode; in mvpp2_port_probe()
/linux-4.1.27/arch/blackfin/mach-bf518/boards/
Dtcm-bf518.c97 .phy_mode = PHY_INTERFACE_MODE_MII,
Dezbrd.c120 .phy_mode = PHY_INTERFACE_MODE_MII,
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_sas.h235 u8 phy_mode; member
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dwmi-tlv.h1121 __le32 phy_mode; member
1289 __le32 phy_mode; member
Dwmi.h2005 u8 phy_mode; /* valid for 10.2 only */ member
2297 __le32 phy_mode; member
2841 __le32 phy_mode; member
4797 __le32 phy_mode; member
Dwmi.c1326 static inline enum ieee80211_band phy_mode_to_band(u32 phy_mode) in phy_mode_to_band() argument
1330 switch (phy_mode) { in phy_mode_to_band()
1472 arg->phy_mode = ev_hdr->phy_mode; in ath10k_wmi_op_pull_mgmt_rx_ev()
1494 u32 phy_mode; in ath10k_wmi_event_mgmt_rx() local
1511 phy_mode = __le32_to_cpu(arg.phy_mode); in ath10k_wmi_event_mgmt_rx()
1559 if (phy_mode == MODE_11B && status->band == IEEE80211_BAND_5GHZ) in ath10k_wmi_event_mgmt_rx()
Dwmi-tlv.c489 arg->phy_mode = ev->phy_mode; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
1928 cmd->phy_mode = __cpu_to_le32(arg->peer_phymode); in ath10k_wmi_tlv_op_gen_peer_assoc()
/linux-4.1.27/arch/blackfin/mach-bf527/boards/
Dezbrd.c213 .phy_mode = PHY_INTERFACE_MODE_RMII,
Dad7160eval.c224 .phy_mode = PHY_INTERFACE_MODE_RMII,
Dtll6527m.c273 .phy_mode = PHY_INTERFACE_MODE_RMII,
Dcm_bf527.c293 .phy_mode = PHY_INTERFACE_MODE_RMII,
Dezkit.c387 .phy_mode = PHY_INTERFACE_MODE_RMII,
/linux-4.1.27/drivers/usb/phy/
Dphy-fsl-usb.c924 switch (pdata->phy_mode) { in usb_otg_start()
/linux-4.1.27/drivers/phy/
Dphy-xgene.c521 enum phy_mode { enum
545 enum phy_mode mode; /* Mode of operation */