Home
last modified time | relevance | path

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

12345

/Linux-v5.4/drivers/net/ethernet/ti/
Dcpsw-phy-sel.c36 phy_interface_t phy_mode, int slave);
41 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_am3352() argument
50 switch (phy_mode) { in cpsw_gmii_sel_am3352()
69 phy_modes(phy_mode)); in cpsw_gmii_sel_am3352()
101 phy_interface_t phy_mode, int slave) in cpsw_gmii_sel_dra7xx() argument
109 switch (phy_mode) { in cpsw_gmii_sel_dra7xx()
124 phy_modes(phy_mode)); in cpsw_gmii_sel_dra7xx()
161 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) in cpsw_phy_sel() argument
183 priv->cpsw_phy_sel(priv, phy_mode, slave); in cpsw_phy_sel()
Dcpsw.h18 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-v5.4/drivers/net/ethernet/sfc/falcon/
Dtenxpress.c144 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()
Dtxc43128_phy.c158 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()
Dqt202x_phy.c57 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()
Dfalcon_boards.c313 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 show_phy_flash_cfg()
373 old_mode = efx->phy_mode; in set_phy_flash_cfg()
385 efx->phy_mode = new_mode; in set_phy_flash_cfg()
437 efx->phy_mode = PHY_MODE_OFF; in sfe4001_check_hw()
477 if (efx->phy_mode & PHY_MODE_SPECIAL) { in sfe4001_init()
/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-ipq806x.c90 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 ((int)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()
Ddwmac-meson8b.c60 phy_interface_t phy_mode; member
183 switch (dwmac->phy_mode) { in meson8b_set_phy_mode()
200 phy_modes(dwmac->phy_mode)); in meson8b_set_phy_mode()
209 switch (dwmac->phy_mode) { in meson_axg_set_phy_mode()
227 phy_modes(dwmac->phy_mode)); in meson_axg_set_phy_mode()
239 switch (dwmac->phy_mode) { in meson8b_init_prg_eth()
296 phy_modes(dwmac->phy_mode)); in meson8b_init_prg_eth()
341 dwmac->phy_mode = of_get_phy_mode(pdev->dev.of_node); in meson8b_dwmac_probe()
342 if ((int)dwmac->phy_mode < 0) { in meson8b_dwmac_probe()
Ddwmac-anarion.c64 int phy_mode; in anarion_config_dt() local
81 phy_mode = of_get_phy_mode(pdev->dev.of_node); in anarion_config_dt()
82 switch (phy_mode) { in anarion_config_dt()
91 phy_mode); in anarion_config_dt()
Ddwmac-mediatek.c57 int phy_mode; member
85 switch (plat->phy_mode) { in mt2712_set_interface()
112 switch (plat->phy_mode) { in mt2712_delay_ps2stage()
140 switch (plat->phy_mode) { in mt2712_set_delay()
226 plat->phy_mode = of_get_phy_mode(plat->np); in mediatek_dwmac_config_dt()
227 if (plat->phy_mode < 0) { in mediatek_dwmac_config_dt()
355 plat_dat->interface = priv_plat->phy_mode; in mediatek_dwmac_probe()
/Linux-v5.4/include/linux/phy/
Dphy.h23 enum phy_mode { enum
71 int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode);
101 int (*validate)(struct phy *phy, enum phy_mode mode, int submode,
116 enum phy_mode mode;
207 int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode);
211 int phy_validate(struct phy *phy, enum phy_mode mode, int submode,
214 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode()
327 static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, in phy_set_mode_ext()
338 static inline enum phy_mode phy_get_mode(struct phy *phy) in phy_get_mode()
366 static inline int phy_validate(struct phy *phy, enum phy_mode mode, int submode, in phy_validate()
/Linux-v5.4/drivers/net/ethernet/ibm/emac/
Drgmii.c48 static inline int rgmii_valid_mode(int phy_mode) in rgmii_valid_mode() argument
50 return phy_interface_mode_is_rgmii(phy_mode) || in rgmii_valid_mode()
51 phy_mode == PHY_INTERFACE_MODE_GMII || in rgmii_valid_mode()
52 phy_mode == PHY_INTERFACE_MODE_MII || in rgmii_valid_mode()
53 phy_mode == PHY_INTERFACE_MODE_TBI || in rgmii_valid_mode()
54 phy_mode == PHY_INTERFACE_MODE_RTBI; in rgmii_valid_mode()
/Linux-v5.4/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ethtool.c118 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { in xgene_get_link_ksettings()
125 } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_get_link_ksettings()
172 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { in xgene_set_link_ksettings()
179 if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_set_link_ksettings()
232 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_get_extd_stats()
298 if (phy_interface_mode_is_rgmii(pdata->phy_mode) || in xgene_set_pauseparam()
299 pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { in xgene_set_pauseparam()
Dxgene_enet_main.c1274 switch (p->phy_mode) { in xgene_derive_ring_owner()
1622 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) in xgene_enet_get_irqs()
1624 else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) in xgene_enet_get_irqs()
1632 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_enet_get_irqs()
1651 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) in xgene_enet_check_phy_handle()
1667 if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII || in xgene_enet_gpiod_get()
1739 pdata->phy_mode = device_get_phy_mode(dev); in xgene_enet_get_resources()
1740 if (pdata->phy_mode < 0) { in xgene_enet_get_resources()
1742 return pdata->phy_mode; in xgene_enet_get_resources()
1744 if (!phy_interface_mode_is_rgmii(pdata->phy_mode) && in xgene_enet_get_resources()
[all …]
/Linux-v5.4/drivers/net/ethernet/mscc/
Docelot_board.c372 int phy_mode; in mscc_ocelot_probe() local
401 phy_mode = of_get_phy_mode(portnp); in mscc_ocelot_probe()
402 if (phy_mode < 0) in mscc_ocelot_probe()
403 ocelot->ports[port]->phy_mode = PHY_INTERFACE_MODE_NA; in mscc_ocelot_probe()
405 ocelot->ports[port]->phy_mode = phy_mode; in mscc_ocelot_probe()
407 switch (ocelot->ports[port]->phy_mode) { in mscc_ocelot_probe()
/Linux-v5.4/drivers/usb/dwc3/
Ddwc3-meson-g12a.c117 enum phy_mode otg_phy_mode;
126 int i, enum phy_mode mode) in dwc3_meson_g12a_usb2_set_mode()
281 static enum phy_mode dwc3_meson_g12a_get_id(struct dwc3_meson_g12a *priv) in dwc3_meson_g12a_get_id()
294 enum phy_mode mode) in dwc3_meson_g12a_otg_mode_set()
327 enum phy_mode mode; in dwc3_meson_g12a_role_set()
352 enum phy_mode otg_id; in dwc3_meson_g12a_irq_thread()
389 enum phy_mode otg_id; in dwc3_meson_g12a_probe()
/Linux-v5.4/drivers/net/dsa/sja1105/
Dsja1105_main.c57 phy_interface_t phy_mode; member
165 switch (ports[i].phy_mode) { in sja1105_init_mii_settings()
180 phy_modes(ports[i].phy_mode)); in sja1105_init_mii_settings()
600 if (ports->phy_mode == PHY_INTERFACE_MODE_RGMII_RXID || in sja1105_parse_rgmii_delays()
601 ports->phy_mode == PHY_INTERFACE_MODE_RGMII_ID) in sja1105_parse_rgmii_delays()
604 if (ports->phy_mode == PHY_INTERFACE_MODE_RGMII_TXID || in sja1105_parse_rgmii_delays()
605 ports->phy_mode == PHY_INTERFACE_MODE_RGMII_ID) in sja1105_parse_rgmii_delays()
624 int phy_mode; in sja1105_parse_ports_node() local
636 phy_mode = of_get_phy_mode(child); in sja1105_parse_ports_node()
637 if (phy_mode < 0) { in sja1105_parse_ports_node()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c482 int phy_mode; in bcmgenet_mii_of_init() local
500 phy_mode = of_get_phy_mode(dn); in bcmgenet_mii_of_init()
501 if (phy_mode < 0) { in bcmgenet_mii_of_init()
503 return phy_mode; in bcmgenet_mii_of_init()
506 priv->phy_interface = phy_mode; in bcmgenet_mii_of_init()
516 if (phy_mode == PHY_INTERFACE_MODE_MOCA) { in bcmgenet_mii_of_init()
/Linux-v5.4/drivers/usb/musb/
Dsunxi.c82 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()
/Linux-v5.4/drivers/phy/marvell/
Dphy-mvebu-a3700-comphy.c60 enum phy_mode mode;
106 enum phy_mode mode;
122 enum phy_mode mode, in mvebu_a3700_comphy_get_fw_mode()
145 static int mvebu_a3700_comphy_set_mode(struct phy *phy, enum phy_mode mode, in mvebu_a3700_comphy_set_mode()
/Linux-v5.4/drivers/net/wireless/mediatek/mt7601u/
Dtrace.h231 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)
/Linux-v5.4/drivers/usb/gadget/udc/
Dfsl_mxc_udc.c62 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-v5.4/drivers/usb/host/
Dehci-fsl.c128 pdata->phy_mode == FSL_USB2_PHY_ULPI) in fsl_ehci_drv_probe()
198 enum fsl_usb2_phy_modes phy_mode, in ehci_fsl_setup_phy() argument
215 switch (phy_mode) { in ehci_fsl_setup_phy()
291 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) { in ehci_fsl_setup_phy()
333 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup()
343 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup()
347 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) in ehci_fsl_usb_setup()
/Linux-v5.4/drivers/usb/chipidea/
Dulpi.c68 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-v5.4/drivers/net/ethernet/socionext/
Dsni_ave.c259 phy_interface_t phy_mode; member
293 phy_interface_t phy_mode, u32 arg);
855 if (!phy_interface_mode_is_rgmii(priv->phy_mode)) in ave_global_reset()
1552 phy_interface_t phy_mode; in ave_probe() local
1568 phy_mode = of_get_phy_mode(np); in ave_probe()
1569 if ((int)phy_mode < 0) { in ave_probe()
1613 priv->phy_mode = phy_mode; in ave_probe()
1675 ret = priv->data->get_pinmode(priv, phy_mode, args.args[0]); in ave_probe()
1715 buf, priv->irq, phy_modes(phy_mode)); in ave_probe()
1794 phy_interface_t phy_mode, u32 arg) in ave_pro4_get_pinmode() argument
[all …]

12345