Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-mdio.c132 if (!pdata->phy_if.phy_impl.module_eeprom) in xgbe_phy_module_eeprom()
141 if (!pdata->phy_if.phy_impl.module_info) in xgbe_phy_module_info()
439 if (pdata->phy_if.phy_impl.an_pre) in xgbe_an_restart()
440 pdata->phy_if.phy_impl.an_pre(pdata); in xgbe_an_restart()
458 if (pdata->phy_if.phy_impl.an_post) in xgbe_an_disable()
459 pdata->phy_if.phy_impl.an_post(pdata); in xgbe_an_disable()
829 if (pdata->phy_if.phy_impl.an_post) in xgbe_an37_state_machine()
915 if (pdata->phy_if.phy_impl.an_post) in xgbe_an73_state_machine()
1460 pdata->phy_if.phy_impl.stop(pdata); in xgbe_phy_stop()
1528 pdata->phy_if.phy_impl.stop(pdata); in xgbe_phy_start()
[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.c300 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_pauseparam()
356 if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { in xgbe_set_link_ksettings()
395 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_link_ksettings()
609 return pdata->phy_if.module_info(pdata, modinfo); in xgbe_get_module_info()
617 return pdata->phy_if.module_eeprom(pdata, eeprom, data); in xgbe_get_module_eeprom()
H A Dxgbe-drv.c581 pdata->phy_if.an_isr(pdata); in xgbe_isr_bh_work()
679 pdata->phy_if.phy_status(pdata); in xgbe_service()
1178 return pdata->phy_if.phy_reset(pdata); in xgbe_phy_reset()
1313 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_start() local
1346 ret = phy_if->phy_start(pdata); in xgbe_start()
1378 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_stop() local
1400 phy_if->phy_stop(pdata); in xgbe_stop()
H A Dxgbe-phy-v1.c822 void xgbe_init_function_ptrs_phy_v1(struct xgbe_phy_if *phy_if) in xgbe_init_function_ptrs_phy_v1() argument
824 struct xgbe_phy_impl_if *phy_impl = &phy_if->phy_impl; in xgbe_init_function_ptrs_phy_v1()
/linux-6.15/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_misc.c455 phy_interface_t phy_if; in hns_mac_get_phy_if() local
474 phy_if = PHY_INTERFACE_MODE_XGMII; in hns_mac_get_phy_if()
476 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if()
478 return phy_if; in hns_mac_get_phy_if()
483 phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; in hns_mac_get_phy_if_acpi() local
499 return phy_if; in hns_mac_get_phy_if_acpi()
501 phy_if = obj->integer.value ? in hns_mac_get_phy_if_acpi()
504 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()
508 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()
913 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()
H A Dhns_enet.c1172 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_nic_init_phy()
1175 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) { in hns_nic_init_phy()
1179 h->phy_if); in hns_nic_init_phy()
1181 ret = phy_attach_direct(ndev, phy_dev, 0, h->phy_if); in hns_nic_init_phy()
1586 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_enable_serdes_lb()
1977 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_nic_update_link_status()
H A Dhns_dsaf_mac.h333 phy_interface_t phy_if; member
H A Dhns_ae_adapt.c124 ae_handle->phy_if = vf_cb->mac_cb->phy_if; in hns_ae_get_handle()
/linux-6.15/drivers/net/ethernet/freescale/fman/
H A Dmac.c126 phy_interface_t phy_if; in mac_probe() local
285 err = of_get_phy_mode(mac_node, &phy_if); in mac_probe()
290 phy_if = PHY_INTERFACE_MODE_SGMII; in mac_probe()
292 mac_dev->phy_if = phy_if; in mac_probe()
H A Dfman_memac.c1058 return mac_dev->phy_if == iface; in memac_supports()
1079 if (mac_dev->phy_if == PHY_INTERFACE_MODE_XGMII) in memac_initialization()
1080 mac_dev->phy_if = PHY_INTERFACE_MODE_10GBASER; in memac_initialization()
1147 if (err && mac_dev->phy_if == PHY_INTERFACE_MODE_10GBASER) in memac_initialization()
1185 else if (mac_dev->phy_if == PHY_INTERFACE_MODE_QSGMII) in memac_initialization()
1229 mac_dev->phy_if != PHY_INTERFACE_MODE_MII && in memac_initialization()
1230 !phy_interface_mode_is_rgmii(mac_dev->phy_if)) in memac_initialization()
H A Dmac.h31 phy_interface_t phy_if; member
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()
1457 if (mac_dev->phy_if == PHY_INTERFACE_MODE_SGMII || in dtsec_initialization()
1458 mac_dev->phy_if == PHY_INTERFACE_MODE_1000BASEX) { in dtsec_initialization()
1461 } else if (mac_dev->phy_if == PHY_INTERFACE_MODE_2500BASEX) { in dtsec_initialization()
H A Dfman_tgec.c788 if (mac_dev->phy_if == PHY_INTERFACE_MODE_XGMII) in tgec_initialization()
789 mac_dev->phy_if = PHY_INTERFACE_MODE_XAUI; in tgec_initialization()
/linux-6.15/drivers/net/ethernet/ti/icssg/
H A Dicssg_mii_cfg.c59 if (emac->speed == SPEED_10 && phy_interface_mode_is_rgmii(emac->phy_if)) in icssg_update_rgmii_cfg()
72 void icssg_miig_set_interface_mode(struct regmap *miig_rt, int mii, phy_interface_t phy_if) in icssg_miig_set_interface_mode() argument
80 if (phy_if == PHY_INTERFACE_MODE_MII) in icssg_miig_set_interface_mode()
H A Dicssg_config.c128 if (emac->phy_if == PHY_INTERFACE_MODE_MII && mii == ICSS_MII1) in icssg_config_mii_init_fw_offload()
130 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && mii == ICSS_MII0) in icssg_config_mii_init_fw_offload()
156 if (emac->phy_if == PHY_INTERFACE_MODE_MII && slice == ICSS_MII0) in icssg_config_mii_init()
158 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && slice == ICSS_MII1) in icssg_config_mii_init()
459 if (!phy_interface_mode_is_rgmii(emac->phy_if)) { in icssg_config()
465 icssg_miig_set_interface_mode(prueth->miig_rt, slice, emac->phy_if); in icssg_config()
H A Dicssg_prueth_sr1.c240 emac->phy_if); in emac_phy_connect()
261 if (emac->phy_if == PHY_INTERFACE_MODE_MII) in emac_phy_connect()
827 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init()
833 if (emac->phy_if != PHY_INTERFACE_MODE_MII && in prueth_netdev_init()
834 !phy_interface_mode_is_rgmii(emac->phy_if)) { in prueth_netdev_init()
835 dev_err(prueth->dev, "PHY mode unsupported %s\n", phy_modes(emac->phy_if)); in prueth_netdev_init()
845 switch (emac->phy_if) { in prueth_netdev_init()
847 emac->phy_if = PHY_INTERFACE_MODE_RGMII_RXID; in prueth_netdev_init()
850 emac->phy_if = PHY_INTERFACE_MODE_RGMII; in prueth_netdev_init()
H A Dicssg_prueth.c399 emac->phy_if); in emac_phy_connect()
417 if (emac->phy_if == PHY_INTERFACE_MODE_MII) in emac_phy_connect()
1243 ret = of_get_phy_mode(eth_node, &emac->phy_if); in prueth_netdev_init()
1249 if (emac->phy_if != PHY_INTERFACE_MODE_MII && in prueth_netdev_init()
1250 !phy_interface_mode_is_rgmii(emac->phy_if)) { in prueth_netdev_init()
1251 dev_err(prueth->dev, "PHY mode unsupported %s\n", phy_modes(emac->phy_if)); in prueth_netdev_init()
1261 switch (emac->phy_if) { in prueth_netdev_init()
1263 emac->phy_if = PHY_INTERFACE_MODE_RGMII_RXID; in prueth_netdev_init()
1266 emac->phy_if = PHY_INTERFACE_MODE_RGMII; in prueth_netdev_init()
H A Dicssg_mii_rt.h149 void icssg_miig_set_interface_mode(struct regmap *miig_rt, int mii, phy_interface_t phy_if);
H A Dicssg_prueth.h191 phy_interface_t phy_if; member
/linux-6.15/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.h32 phy_interface_t phy_if; member
H A Dcpsw.c619 &cpsw_adjust_link, 0, slave->data->phy_if); in cpsw_slave_open()
628 &cpsw_adjust_link, slave->data->phy_if); in cpsw_slave_open()
651 slave->data->phy_if); in cpsw_slave_open()
1362 ret = of_get_phy_mode(slave_node, &slave_data->phy_if); in cpsw_probe_dt()
H A Dam65-cpsw-nuss.c2670 ret = of_get_phy_mode(port_np, &port->slave.phy_if); in am65_cpsw_nuss_init_slave_ports()
2677 ret = phy_set_mode_ext(port->slave.ifphy, PHY_MODE_ETHERNET, port->slave.phy_if); in am65_cpsw_nuss_init_slave_ports()
2790 switch (port->slave.phy_if) { in am65_cpsw_nuss_init_port_ndev()
2806 if (common->pdata.extra_modes & BIT(port->slave.phy_if)) { in am65_cpsw_nuss_init_port_ndev()
2807 __set_bit(port->slave.phy_if, in am65_cpsw_nuss_init_port_ndev()
2822 port->slave.phy_if, in am65_cpsw_nuss_init_port_ndev()

12