/drivers/net/ethernet/ti/ |
D | cpsw-phy-sel.c | 36 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()
|
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
|
/drivers/net/ethernet/sfc/falcon/ |
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()
|
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()
|
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()
|
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()
|
/drivers/usb/dwc3/ |
D | dwc3-meson-g12a.c | 151 enum phy_mode mode); 153 enum phy_mode mode); 164 enum phy_mode mode); 166 enum phy_mode mode); 169 int i, enum phy_mode mode); 171 int i, enum phy_mode mode); 263 enum phy_mode otg_phy_mode; 273 int i, enum phy_mode mode) in dwc3_meson_gxl_set_phy_mode() 279 enum phy_mode mode) in dwc3_meson_gxl_usb2_init_phy() 288 int i, enum phy_mode mode) in dwc3_meson_g12a_set_phy_mode() [all …]
|
/drivers/usb/musb/ |
D | mediatek.c | 48 enum phy_mode phy_mode; member 77 glue->phy_mode = PHY_MODE_USB_HOST; in mtk_otg_switch_set() 88 glue->phy_mode = PHY_MODE_USB_DEVICE; in mtk_otg_switch_set() 98 glue->phy_mode = PHY_MODE_USB_OTG; in mtk_otg_switch_set() 112 phy_set_mode(glue->phy, glue->phy_mode); in mtk_otg_switch_set() 221 enum phy_mode new_mode; in mtk_musb_set_mode() 242 if (glue->phy_mode == new_mode) in mtk_musb_set_mode() 284 phy_set_mode(glue->phy, glue->phy_mode); in mtk_musb_init() 438 glue->phy_mode = PHY_MODE_USB_HOST; in mtk_musb_probe() 442 glue->phy_mode = PHY_MODE_USB_DEVICE; in mtk_musb_probe() [all …]
|
D | sunxi.c | 82 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() 696 glue->phy_mode = PHY_MODE_USB_HOST; in sunxi_musb_probe() 702 glue->phy_mode = PHY_MODE_USB_DEVICE; in sunxi_musb_probe() 708 glue->phy_mode = PHY_MODE_USB_OTG; in sunxi_musb_probe()
|
D | da8xx.c | 328 enum phy_mode phy_mode; in da8xx_musb_set_mode() local 339 phy_mode = PHY_MODE_USB_HOST; in da8xx_musb_set_mode() 342 phy_mode = PHY_MODE_USB_DEVICE; in da8xx_musb_set_mode() 345 phy_mode = PHY_MODE_USB_OTG; in da8xx_musb_set_mode() 351 return phy_set_mode(glue->phy, phy_mode); in da8xx_musb_set_mode()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-ipq806x.c | 112 phy_interface_t phy_mode; member 172 switch (gmac->phy_mode) { in ipq806x_gmac_set_speed() 187 phy_modes(gmac->phy_mode)); in ipq806x_gmac_set_speed() 216 ret = of_get_phy_mode(dev->of_node, &gmac->phy_mode); in ipq806x_gmac_of_parse() 413 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 428 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 445 switch (gmac->phy_mode) { in ipq806x_gmac_probe() 459 if (gmac->phy_mode == PHY_INTERFACE_MODE_SGMII) { in ipq806x_gmac_probe() 484 phy_modes(gmac->phy_mode)); in ipq806x_gmac_probe()
|
D | dwmac-meson8b.c | 93 phy_interface_t phy_mode; member 215 switch (dwmac->phy_mode) { in meson8b_set_phy_mode() 232 phy_modes(dwmac->phy_mode)); in meson8b_set_phy_mode() 241 switch (dwmac->phy_mode) { in meson_axg_set_phy_mode() 259 phy_modes(dwmac->phy_mode)); in meson_axg_set_phy_mode() 296 switch (dwmac->phy_mode) { in meson8b_init_rgmii_delays() 314 phy_modes(dwmac->phy_mode)); in meson8b_init_rgmii_delays() 350 if (phy_interface_mode_is_rgmii(dwmac->phy_mode)) { in meson8b_init_prg_eth() 422 ret = of_get_phy_mode(pdev->dev.of_node, &dwmac->phy_mode); in meson8b_dwmac_probe()
|
D | dwmac-loongson.c | 53 int ret, i, phy_mode; in loongson_dwmac_probe() local 105 phy_mode = device_get_phy_mode(&pdev->dev); in loongson_dwmac_probe() 106 if (phy_mode < 0) { in loongson_dwmac_probe() 108 ret = phy_mode; in loongson_dwmac_probe() 112 plat->phy_interface = phy_mode; in loongson_dwmac_probe()
|
D | dwmac-anarion.c | 65 phy_interface_t phy_mode; in anarion_config_dt() local 82 err = of_get_phy_mode(pdev->dev.of_node, &phy_mode); in anarion_config_dt() 86 switch (phy_mode) { in anarion_config_dt() 96 phy_mode); in anarion_config_dt()
|
D | dwmac-mediatek.c | 84 phy_interface_t phy_mode; member 119 switch (plat->phy_mode) { in mt2712_set_interface() 146 switch (plat->phy_mode) { in mt2712_delay_ps2stage() 171 switch (plat->phy_mode) { in mt2712_delay_stage2ps() 199 switch (plat->phy_mode) { in mt2712_set_delay() 298 switch (plat->phy_mode) { in mt8195_set_interface() 350 switch (plat->phy_mode) { in mt8195_set_delay() 467 err = of_get_phy_mode(plat->np, &plat->phy_mode); in mediatek_dwmac_config_dt() 590 plat->interface = priv_plat->phy_mode; in mediatek_dwmac_common_data()
|
/drivers/phy/intel/ |
D | phy-intel-lgm-combo.c | 99 enum intel_phy_mode phy_mode; member 108 u32 mask = BIT(cbphy->phy_mode * 2 + iphy->id); in intel_cbphy_iphy_enable() 208 mode = cbphy->phy_mode; in intel_cbphy_set_mode() 340 if (cbphy->phy_mode == PHY_PCIE_MODE) { in intel_cbphy_init() 362 if (cbphy->phy_mode == PHY_PCIE_MODE) { in intel_cbphy_exit() 383 if (cbphy->phy_mode != PHY_XPCS_MODE) in intel_cbphy_calibrate() 477 cbphy->phy_mode = PHY_PCIE_MODE; in intel_cbphy_fwnode_parse() 481 cbphy->phy_mode = PHY_SATA_MODE; in intel_cbphy_fwnode_parse() 485 cbphy->phy_mode = PHY_XPCS_MODE; in intel_cbphy_fwnode_parse() 493 cbphy->clk_rate = intel_iphy_clk_rates[cbphy->phy_mode]; in intel_cbphy_fwnode_parse()
|
/drivers/net/ethernet/ibm/emac/ |
D | rgmii.c | 48 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()
|
/drivers/net/ethernet/apm/xgene/ |
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()
|
D | xgene_enet_main.c | 1278 switch (p->phy_mode) { in xgene_derive_ring_owner() 1626 if (phy_interface_mode_is_rgmii(pdata->phy_mode)) in xgene_enet_get_irqs() 1628 else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) in xgene_enet_get_irqs() 1636 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { in xgene_enet_get_irqs() 1655 if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) in xgene_enet_check_phy_handle() 1671 if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII || in xgene_enet_gpiod_get() 1743 pdata->phy_mode = device_get_phy_mode(dev); in xgene_enet_get_resources() 1744 if (pdata->phy_mode < 0) { in xgene_enet_get_resources() 1746 return pdata->phy_mode; in xgene_enet_get_resources() 1748 if (!phy_interface_mode_is_rgmii(pdata->phy_mode) && in xgene_enet_get_resources() [all …]
|
/drivers/usb/host/ |
D | ehci-fsl.c | 123 pdata->phy_mode == FSL_USB2_PHY_ULPI) in fsl_ehci_drv_probe() 193 enum fsl_usb2_phy_modes phy_mode, in ehci_fsl_setup_phy() argument 210 switch (phy_mode) { in ehci_fsl_setup_phy() 286 if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) { in ehci_fsl_setup_phy() 328 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 338 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) in ehci_fsl_usb_setup() 342 if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) in ehci_fsl_usb_setup()
|
/drivers/net/wireless/mediatek/mt7601u/ |
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)
|
/drivers/net/dsa/sja1105/ |
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 …]
|
/drivers/net/ethernet/socionext/ |
D | sni_ave.c | 259 phy_interface_t phy_mode; member 293 phy_interface_t phy_mode, u32 arg); 861 if (!phy_interface_mode_is_rgmii(priv->phy_mode)) in ave_global_reset() 1560 phy_interface_t phy_mode; in ave_probe() local 1575 ret = of_get_phy_mode(np, &phy_mode); in ave_probe() 1617 priv->phy_mode = phy_mode; in ave_probe() 1674 ret = priv->data->get_pinmode(priv, phy_mode, args.args[0]); in ave_probe() 1710 buf, priv->irq, phy_modes(phy_mode)); in ave_probe() 1790 phy_interface_t phy_mode, u32 arg) in ave_pro4_get_pinmode() argument 1797 switch (phy_mode) { in ave_pro4_get_pinmode() [all …]
|
/drivers/net/ethernet/dec/tulip/ |
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 …]
|
/drivers/net/ethernet/apm/xgene-v2/ |
D | main.c | 18 int phy_mode, ret = 0; in xge_get_resources() local 44 phy_mode = device_get_phy_mode(dev); in xge_get_resources() 45 if (phy_mode < 0) { in xge_get_resources() 47 return phy_mode; in xge_get_resources() 49 pdata->resources.phy_mode = phy_mode; in xge_get_resources() 51 if (pdata->resources.phy_mode != PHY_INTERFACE_MODE_RGMII) { in xge_get_resources()
|