Searched refs:phy_mode (Results 1 - 25 of 41) sorted by relevance

12

/drivers/net/ethernet/ti/
H A Dcpsw-phy-sel.c39 phy_interface_t phy_mode, int slave);
44 phy_interface_t phy_mode, int slave)
52 switch (phy_mode) {
87 phy_interface_t phy_mode, int slave)
95 switch (phy_mode) {
143 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) argument
157 priv->cpsw_phy_sel(priv, phy_mode, slave);
43 cpsw_gmii_sel_am3352(struct cpsw_phy_sel_priv *priv, phy_interface_t phy_mode, int slave) argument
86 cpsw_gmii_sel_dra7xx(struct cpsw_phy_sel_priv *priv, phy_interface_t phy_mode, int slave) argument
H A Dcpsw.h43 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave);
/drivers/net/ethernet/sfc/
H A Dtenxpress.c147 enum efx_phy_mode phy_mode; member in struct:tenxpress_phy_data
175 phy_data->phy_mode = efx->phy_mode;
194 if (!(efx->phy_mode & PHY_MODE_SPECIAL)) {
318 efx, !!(efx->phy_mode & PHY_MODE_LOW_POWER),
327 if (efx->phy_mode & (PHY_MODE_OFF | PHY_MODE_SPECIAL)) {
328 phy_data->phy_mode = efx->phy_mode;
332 phy_mode_change = (efx->phy_mode == PHY_MODE_NORMAL &&
333 phy_data->phy_mode !
[all...]
H A Dtxc43128_phy.c161 enum efx_phy_mode phy_mode; member in struct:txc43128_data
333 phy_data->phy_mode = efx->phy_mode;
367 if (!(efx->phy_mode & PHY_MODE_LOW_POWER))
385 if (!(efx->phy_mode & PHY_MODE_LOW_POWER)) {
401 !!(efx->phy_mode & PHY_MODE_LOW_POWER),
450 enum efx_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode;
453 if (efx->phy_mode & mode_change & PHY_MODE_TX_DISABLED) {
472 phy_data->phy_mode
[all...]
H A Dqt202x_phy.c60 enum efx_phy_mode phy_mode; member in struct:qt202x_phy_data
350 phy_data->phy_mode = efx->phy_mode;
420 efx->phy_mode & PHY_MODE_TX_DISABLED ||
421 efx->phy_mode & PHY_MODE_LOW_POWER ||
426 if (!(efx->phy_mode & PHY_MODE_TX_DISABLED) &&
427 (phy_data->phy_mode & PHY_MODE_TX_DISABLED))
435 phy_data->phy_mode = efx->phy_mode;
H A Dfalcon_boards.c316 if (efx->phy_mode & PHY_MODE_SPECIAL)
336 if (efx->phy_mode & PHY_MODE_SPECIAL) {
364 return sprintf(buf, "%d\n", !!(efx->phy_mode & PHY_MODE_SPECIAL));
376 old_mode = efx->phy_mode;
388 efx->phy_mode = new_mode;
440 efx->phy_mode = PHY_MODE_OFF;
480 if (efx->phy_mode & PHY_MODE_SPECIAL) {
H A Dmdio_10g.c163 else if (efx_phy_mode_disabled(efx->phy_mode))
185 efx->phy_mode & PHY_MODE_TX_DISABLED);
H A Dselftest.c677 int phy_mode = efx->phy_mode; local
731 efx->phy_mode &= ~PHY_MODE_LOW_POWER;
746 efx->phy_mode = phy_mode;
H A Defx.c960 enum efx_phy_mode phy_mode; local
966 phy_mode = efx->phy_mode;
968 efx->phy_mode |= PHY_MODE_TX_DISABLED;
970 efx->phy_mode &= ~PHY_MODE_TX_DISABLED;
975 efx->phy_mode = phy_mode;
1015 efx->phy_mode = PHY_MODE_SPECIAL;
2071 if (efx->phy_mode & PHY_MODE_SPECIAL)
/drivers/usb/gadget/udc/
H A Dfsl_mxc_udc.c65 if (pdata->phy_mode != FSL_USB2_PHY_ULPI &&
111 if (pdata->phy_mode == FSL_USB2_PHY_ULPI) {
/drivers/net/ethernet/ibm/emac/
H A Drgmii.c53 static inline int rgmii_valid_mode(int phy_mode) argument
55 return phy_mode == PHY_MODE_GMII ||
56 phy_mode == PHY_MODE_MII ||
57 phy_mode == PHY_MODE_RGMII ||
58 phy_mode == PHY_MODE_TBI ||
59 phy_mode == PHY_MODE_RTBI;
H A Dcore.c207 static inline int emac_phy_supports_gige(int phy_mode) argument
209 return phy_mode == PHY_MODE_GMII ||
210 phy_mode == PHY_MODE_RGMII ||
211 phy_mode == PHY_MODE_SGMII ||
212 phy_mode == PHY_MODE_TBI ||
213 phy_mode == PHY_MODE_RTBI;
216 static inline int emac_phy_gpcs(int phy_mode) argument
218 return phy_mode == PHY_MODE_SGMII ||
219 phy_mode == PHY_MODE_TBI ||
220 phy_mode
[all...]
H A Dcore.h184 u32 phy_mode; member in struct:emac_instance
/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_ethtool.c62 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII) {
67 } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) {
94 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII) {
H A Dxgene_enet_main.c461 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII)
478 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII)
811 pdata->phy_mode = of_get_phy_mode(pdev->dev.of_node);
812 if (pdata->phy_mode < 0) {
814 return pdata->phy_mode;
816 if (pdata->phy_mode != PHY_INTERFACE_MODE_RGMII &&
817 pdata->phy_mode != PHY_INTERFACE_MODE_SGMII &&
818 pdata->phy_mode != PHY_INTERFACE_MODE_XGMII) {
835 if (pdata->phy_mode == PHY_INTERFACE_MODE_RGMII ||
836 pdata->phy_mode
[all...]
H A Dxgene_enet_main.h119 int phy_mode; member in struct:xgene_enet_pdata
/drivers/usb/host/
H A Dehci-fsl.c201 enum fsl_usb2_phy_modes phy_mode,
218 switch (phy_mode) {
253 (phy_mode == FSL_USB2_PHY_ULPI)) {
265 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs)
294 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0))
309 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0))
313 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1))
200 ehci_fsl_setup_phy(struct usb_hcd *hcd, enum fsl_usb2_phy_modes phy_mode, unsigned int port_offset) argument
H A Dfsl-mph-dr-of.c206 pdata->phy_mode = determine_usb_phy(prop);
277 if (pdata->phy_mode == FSL_USB2_PHY_UTMI_WIDE) {
/drivers/net/wireless/brcm80211/brcmsmac/
H A Dphy_shim.h169 void wlapi_high_update_phy_mode(struct phy_shim_info *physhim, u32 phy_mode);
/drivers/net/ethernet/dec/tulip/
H A Duli526x.c1520 u16 phy_mode; local
1522 phy_mode = phy->read(db, db->phy_addr, 1);
1523 phy_mode = phy->read(db, db->phy_addr, 1);
1525 if ( (phy_mode & 0x24) == 0x24 ) {
1527 phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7);
1528 if(phy_mode&0x8000)
1529 phy_mode = 0x8000;
1530 else if(phy_mode&0x4000)
1531 phy_mode = 0x4000;
1532 else if(phy_mode
[all...]
H A Ddmfe.c1647 u16 phy_mode; local
1652 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id);
1653 phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id);
1655 if ( (phy_mode & 0x24) == 0x24 ) {
1657 phy_mode = dmfe_phy_read(db->ioaddr,
1660 phy_mode = dmfe_phy_read(db->ioaddr,
1662 switch (phy_mode) {
1673 DMFE_DBUG(0, "Link Failed :", phy_mode);
/drivers/usb/chipidea/
H A Dcore.c264 switch (ci->platdata->phy_mode) {
311 switch (ci->platdata->phy_mode) {
460 if (!platdata->phy_mode)
461 platdata->phy_mode = of_usb_get_phy_mode(dev->of_node);
/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-main.c350 pdata->phy_mode = of_get_phy_mode(dev->of_node);
351 if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII) {
/drivers/net/ethernet/hisilicon/
H A Dhix5hd2_gmac.c223 phy_interface_t phy_mode; member in struct:hix5hd2_priv
242 switch (priv->phy_mode) {
692 &hix5hd2_adjust_link, 0, priv->phy_mode);
954 priv->phy_mode = of_get_phy_mode(node);
955 if (priv->phy_mode < 0) {
/drivers/net/ethernet/adi/
H A Dbfin_mac.c380 static int mii_probe(struct net_device *dev, int phy_mode) argument
416 if (phy_mode != PHY_INTERFACE_MODE_RMII &&
417 phy_mode != PHY_INTERFACE_MODE_MII) {
423 &bfin_mac_adjust_link, phy_mode);
1686 rc = mii_probe(ndev, mii_bus_data->phy_mode);

Completed in 389 milliseconds

12