Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
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 …]
Dxgbe-main.c166 xgbe_init_function_ptrs_phy(&pdata->phy_if); in xgbe_init_all_fptrs()
170 pdata->vdata->init_function_ptrs_phy_impl(&pdata->phy_if); in xgbe_init_all_fptrs()
335 ret = pdata->phy_if.phy_init(pdata); in xgbe_config_netdev()
433 pdata->phy_if.phy_exit(pdata); in xgbe_deconfig_netdev()
Dxgbe-ethtool.c304 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_pauseparam()
355 if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { in xgbe_set_link_ksettings()
396 ret = pdata->phy_if.phy_config_aneg(pdata); in xgbe_set_link_ksettings()
634 return pdata->phy_if.module_info(pdata, modinfo); in xgbe_get_module_info()
642 return pdata->phy_if.module_eeprom(pdata, eeprom, data); in xgbe_get_module_eeprom()
Dxgbe-drv.c582 pdata->phy_if.an_isr(pdata); in xgbe_isr_task()
680 pdata->phy_if.phy_status(pdata); in xgbe_service()
1235 return pdata->phy_if.phy_reset(pdata); in xgbe_phy_reset()
1370 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_start() local
1403 ret = phy_if->phy_start(pdata); in xgbe_start()
1435 struct xgbe_phy_if *phy_if = &pdata->phy_if; in xgbe_stop() local
1456 phy_if->phy_stop(pdata); in xgbe_stop()
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()
Dxgbe.h1100 struct xgbe_phy_if phy_if; member
Dxgbe-phy-v2.c3350 void xgbe_init_function_ptrs_phy_v2(struct xgbe_phy_if *phy_if) in xgbe_init_function_ptrs_phy_v2() argument
3352 struct xgbe_phy_impl_if *phy_impl = &phy_if->phy_impl; in xgbe_init_function_ptrs_phy_v2()
/Linux-v4.19/drivers/net/ethernet/freescale/fman/
Dfman_memac.c337 phy_interface_t phy_if; member
411 phy_interface_t phy_if, u16 speed, bool slow_10g_if, in init() argument
441 switch (phy_if) { in init()
447 if (phy_if == PHY_INTERFACE_MODE_RGMII || in init()
448 phy_if == PHY_INTERFACE_MODE_RGMII_ID || in init()
449 phy_if == PHY_INTERFACE_MODE_RGMII_RXID || in init()
450 phy_if == PHY_INTERFACE_MODE_RGMII_TXID) in init()
457 if (phy_if == PHY_INTERFACE_MODE_XGMII) { in init()
785 if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) { in memac_adjust_link()
1065 init(memac->regs, memac->memac_drv_param, memac->phy_if, in memac_init()
[all …]
Dmac.c107 params->phy_if = mac_dev->phy_if; in set_fman_mac_params()
224 params.phy_if = PHY_INTERFACE_MODE_XGMII; in memac_initialization()
615 int phy_if; in mac_probe() local
783 phy_if = of_get_phy_mode(mac_node); in mac_probe()
784 if (phy_if < 0) { in mac_probe()
788 phy_if = PHY_INTERFACE_MODE_SGMII; in mac_probe()
790 mac_dev->phy_if = phy_if; in mac_probe()
792 priv->speed = phy2speed[mac_dev->phy_if]; in mac_probe()
796 if (mac_dev->phy_if == PHY_INTERFACE_MODE_SGMII) in mac_probe()
805 if (mac_dev->phy_if == PHY_INTERFACE_MODE_XGMII) in mac_probe()
Dmac.h53 phy_interface_t phy_if; member
Dfman_mac.h187 phy_interface_t phy_if; member
Dfman_dtsec.c328 phy_interface_t phy_if; member
1415 err = init(dtsec->regs, dtsec_drv_param, dtsec->phy_if, in dtsec_init()
1424 if (dtsec->phy_if == PHY_INTERFACE_MODE_SGMII) { in dtsec_init()
1524 dtsec->phy_if = params->phy_if; in dtsec_config()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_misc.c516 phy_interface_t phy_if; in hns_mac_get_phy_if() local
535 phy_if = PHY_INTERFACE_MODE_XGMII; in hns_mac_get_phy_if()
537 phy_if = PHY_INTERFACE_MODE_SGMII; in hns_mac_get_phy_if()
539 return phy_if; in hns_mac_get_phy_if()
544 phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; in hns_mac_get_phy_if_acpi() local
560 return phy_if; in hns_mac_get_phy_if_acpi()
562 phy_if = obj->integer.value ? in hns_mac_get_phy_if_acpi()
565 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()
569 return phy_if; in hns_mac_get_phy_if_acpi()
Dhns_dsaf_mac.c63 return g_mac_mode_100[mac_cb->phy_if]; in hns_get_enet_interface()
65 return g_mac_mode_1000[mac_cb->phy_if]; in hns_get_enet_interface()
591 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII && enable) { in hns_mac_set_autoneg()
811 mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; in hns_mac_get_info()
814 if (mac_cb->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_mac_get_info()
817 } else if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_mac_get_info()
949 static int hns_mac_get_mode(phy_interface_t phy_if) in hns_mac_get_mode() argument
951 switch (phy_if) { in hns_mac_get_mode()
1002 mac_cb->phy_if = dsaf_dev->misc_op->get_phy_if(mac_cb); in hns_mac_get_cfg()
1004 ret = hns_mac_get_mode(mac_cb->phy_if); in hns_mac_get_cfg()
Dhns_ethtool.c165 if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_get_link_ksettings()
168 } else if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_nic_get_link_ksettings()
222 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { in hns_nic_set_link_ksettings()
227 } else if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { in hns_nic_set_link_ksettings()
303 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) in __lb_setup()
315 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_setup()
360 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) in __lb_up()
590 st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); in hns_nic_self_test()
595 (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); in hns_nic_self_test()
902 if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { in hns_get_strings()
[all …]
Dhns_enet.c1172 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) { in hns_nic_init_phy()
1176 h->phy_if); in hns_nic_init_phy()
1178 ret = phy_attach_direct(ndev, phy_dev, 0, h->phy_if); in hns_nic_init_phy()
1186 if (h->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_nic_init_phy()
1569 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_enable_serdes_lb()
1969 if (h->phy_if != PHY_INTERFACE_MODE_XGMII) in hns_nic_update_link_status()
Dhns_dsaf_mac.h337 phy_interface_t phy_if; member
Dhns_ae_adapt.c131 ae_handle->phy_if = vf_cb->mac_cb->phy_if; in hns_ae_get_handle()
Dhnae.h559 phy_interface_t phy_if; member
Dhns_dsaf_main.c2113 if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) in hns_dsaf_fix_mac_mode()
/Linux-v4.19/drivers/net/ethernet/ti/
Dcpsw.c387 int phy_if; member
1479 &cpsw_adjust_link, 0, slave->data->phy_if); in cpsw_slave_open()
1488 &cpsw_adjust_link, slave->data->phy_if); in cpsw_slave_open()
3182 slave_data->phy_if = of_get_phy_mode(slave_node); in cpsw_probe_dt()
3183 if (slave_data->phy_if < 0) { in cpsw_probe_dt()
3186 return slave_data->phy_if; in cpsw_probe_dt()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h170 phy_interface_t phy_if; member
/Linux-v4.19/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c2488 mac_dev->phy_if); in dpaa_phy_init()