Home
last modified time | relevance | path

Searched refs:phy_if (Results 1 – 25 of 51) sorted by relevance

123

/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-mdio.c132 if (!pdata->phy_if.phy_impl.module_eeprom) in xgbe_phy_module_eeprom()
135 return pdata->phy_if.phy_impl.module_eeprom(pdata, eeprom, data); in xgbe_phy_module_eeprom()
141 if (!pdata->phy_if.phy_impl.module_info) in xgbe_phy_module_info()
144 return pdata->phy_if.phy_impl.module_info(pdata, modinfo); in xgbe_phy_module_info()
225 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KR); in xgbe_kr_mode()
234 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_2500); in xgbe_kx_2500_mode()
243 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_1000); in xgbe_kx_1000_mode()
256 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SFI); in xgbe_sfi_mode()
265 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_X); in xgbe_x_mode()
274 pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SGMII_1000); in xgbe_sgmii_1000_mode()
[all …]
H A Dxgbe-main.c165 xgbe_init_function_ptrs_phy(&pdata->phy_if); in xgbe_init_all_fptrs()
169 pdata->vdata->init_function_ptrs_phy_impl(&pdata->phy_if); in xgbe_init_all_fptrs()
333 ret = pdata->phy_if.phy_init(pdata); in xgbe_config_netdev()
426 pdata->phy_if.phy_exit(pdata); in xgbe_deconfig_netdev()
H A Dxgbe-ethtool.c304 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_pauseparam()
360 if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { in xgbe_set_link_ksettings()
399 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_link_ksettings()
616 return pdata->phy_if.module_info(pdata, modinfo); in xgbe_get_module_info()
624 return pdata->phy_if.module_eeprom(pdata, eeprom, data); in xgbe_get_module_eeprom()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_misc.c518 phy_interface_t phy_if; in hns_mac_get_phy_if() local
537 phy_if = PHY_INTERFACE_MODE_XGMII; in hns_mac_get_phy_if()
539 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if()
541 return phy_if; in hns_mac_get_phy_if()
546 phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; in hns_mac_get_phy_if_acpi() local
562 return phy_if; in hns_mac_get_phy_if_acpi()
564 phy_if = obj->integer.value ? in hns_mac_get_phy_if_acpi()
567 dev_dbg(mac_cb->dev, "mac_id=%d, phy_if=%d\n", mac_cb->mac_id, phy_if); in hns_mac_get_phy_if_acpi()
571 return phy_if; in hns_mac_get_phy_if_acpi()
H A Dhns_ethtool.c160 if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_get_link_ksettings()
163 } else if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_nic_get_link_ksettings()
217 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_nic_set_link_ksettings()
222 } else if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_set_link_ksettings()
298 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
310 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
356 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_up()
593 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
598 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); in hns_nic_self_test()
914 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_get_strings()
[all …]
H A Dhns_dsaf_mac.c59 return g_mac_mode_100[mac_cb->phy_if]; in hns_get_enet_interface()
61 return g_mac_mode_1000[mac_cb->phy_if]; in hns_get_enet_interface()
617 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII && enable) { in hns_mac_set_autoneg()
847 mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; in hns_mac_get_info()
850 if (mac_cb->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_mac_get_info()
853 } else if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_mac_get_info()
985 static int hns_mac_get_mode(phy_interface_t phy_if) in hns_mac_get_mode() argument
987 switch (phy_if) { in hns_mac_get_mode()
1038 mac_cb->phy_if = dsaf_dev->misc_op->get_phy_if(mac_cb); in hns_mac_get_cfg()
1040 ret = hns_mac_get_mode(mac_cb->phy_if); in hns_mac_get_cfg()
/openbmc/u-boot/board/birdland/bav335x/
H A Dboard.c408 cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_MII; in board_eth_init()
409 cpsw_slaves[1].phy_if = PHY_INTERFACE_MODE_MII; in board_eth_init()
414 cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if in board_eth_init()
/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_mii_cfg.c58 if (emac->speed == SPEED_10 && phy_interface_mode_is_rgmii(emac->phy_if)) in icssg_update_rgmii_cfg()
70 void icssg_miig_set_interface_mode(struct regmap *miig_rt, int mii, phy_interface_t phy_if) in icssg_miig_set_interface_mode() argument
78 if (phy_if == PHY_INTERFACE_MODE_MII) in icssg_miig_set_interface_mode()
H A Dicssg_config.c133 if (emac->phy_if == PHY_INTERFACE_MODE_MII && slice == ICSS_MII0) in icssg_config_mii_init()
135 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && slice == ICSS_MII1) in icssg_config_mii_init()
341 if (!phy_interface_mode_is_rgmii(emac->phy_if)) { in icssg_config()
347 icssg_miig_set_interface_mode(prueth->miig_rt, slice, emac->phy_if); in icssg_config()
/openbmc/linux/drivers/net/ethernet/freescale/fman/
H A Dmac.c166 phy_interface_t phy_if; in mac_probe() local
327 err = of_get_phy_mode(mac_node, &phy_if); in mac_probe()
332 phy_if = PHY_INTERFACE_MODE_SGMII; in mac_probe()
334 mac_dev->phy_if = phy_if; in mac_probe()
H A Dfman_memac.c1060 return mac_dev->phy_if == iface; in memac_supports()
1082 if (mac_dev->phy_if == PHY_INTERFACE_MODE_XGMII) in memac_initialization()
1083 mac_dev->phy_if = PHY_INTERFACE_MODE_10GBASER; in memac_initialization()
1151 if (err && mac_dev->phy_if == PHY_INTERFACE_MODE_10GBASER) in memac_initialization()
1189 else if (mac_dev->phy_if == PHY_INTERFACE_MODE_QSGMII) in memac_initialization()
1235 mac_dev->phy_if != PHY_INTERFACE_MODE_MII && in memac_initialization()
1236 !phy_interface_mode_is_rgmii(mac_dev->phy_if)) in memac_initialization()
H A Dfman_dtsec.c301 phy_interface_t phy_if; member
1278 err = init(dtsec->regs, dtsec_drv_param, dtsec->phy_if, in dtsec_init()
1367 dtsec->phy_if = mac_dev->phy_if; in dtsec_config()
1459 if (mac_dev->phy_if == PHY_INTERFACE_MODE_SGMII || in dtsec_initialization()
1460 mac_dev->phy_if == PHY_INTERFACE_MODE_1000BASEX) { in dtsec_initialization()
1463 } else if (mac_dev->phy_if == PHY_INTERFACE_MODE_2500BASEX) { in dtsec_initialization()
H A Dmac.h31 phy_interface_t phy_if; member
/openbmc/u-boot/board/compulab/cm_t43/
H A Dcm_t43.c78 .phy_if = PHY_INTERFACE_MODE_RGMII,
84 .phy_if = PHY_INTERFACE_MODE_RGMII,
/openbmc/u-boot/drivers/net/ti/
H A Dkeystone_net.c90 phy_interface_t phy_if; member
590 dev, priv->phy_if); in ks2_eth_probe()
715 priv->phy_if = PHY_INTERFACE_MODE_SGMII; in ks2_eth_parse_slave_interface()
716 pdata->phy_interface = priv->phy_if; in ks2_eth_parse_slave_interface()
720 priv->phy_if = PHY_INTERFACE_MODE_RGMII; in ks2_eth_parse_slave_interface()
721 pdata->phy_interface = priv->phy_if; in ks2_eth_parse_slave_interface()
/openbmc/u-boot/board/ti/am335x/
H A Dboard.c969 cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if = in board_eth_init()
973 cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII; in board_eth_init()
974 cpsw_slaves[1].phy_if = PHY_INTERFACE_MODE_RMII; in board_eth_init()
979 cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if = in board_eth_init()
/openbmc/u-boot/board/compulab/cl-som-am57x/
H A Deth.c28 .phy_if = PHY_INTERFACE_MODE_RMII,
34 .phy_if = PHY_INTERFACE_MODE_RMII,
/openbmc/u-boot/board/phytec/pcm051/
H A Dboard.c180 .phy_if = PHY_INTERFACE_MODE_RGMII,
186 .phy_if = PHY_INTERFACE_MODE_RGMII,
/openbmc/u-boot/board/ti/am43xx/
H A Dboard.c928 cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RMII; in board_eth_init()
932 cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII; in board_eth_init()
937 cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII; in board_eth_init()
941 cpsw_slaves[0].phy_if = PHY_INTERFACE_MODE_RGMII; in board_eth_init()
/openbmc/u-boot/board/tcl/sl50/
H A Dboard.c349 cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if = in board_eth_init()
/openbmc/u-boot/include/
H A Dcpsw.h23 int phy_if; member
/openbmc/u-boot/board/siemens/rut/
H A Dboard.c144 .phy_if = PHY_INTERFACE_MODE_RMII,
150 .phy_if = PHY_INTERFACE_MODE_RMII,
/openbmc/u-boot/board/siemens/pxm2/
H A Dboard.c183 .phy_if = PHY_INTERFACE_MODE_RMII,
189 .phy_if = PHY_INTERFACE_MODE_RMII,
/openbmc/u-boot/board/compulab/cm_t335/
H A Dcm_t335.c51 .phy_if = PHY_INTERFACE_MODE_RGMII,
/openbmc/u-boot/board/silica/pengwyn/
H A Dboard.c145 .phy_if = PHY_INTERFACE_MODE_MII,

123