phy_if 581 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->phy_if.an_isr(pdata); phy_if 679 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->phy_if.phy_status(pdata); phy_if 1234 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return pdata->phy_if.phy_reset(pdata); phy_if 1369 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_phy_if *phy_if = &pdata->phy_if; phy_if 1402 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = phy_if->phy_start(pdata); phy_if 1434 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_phy_if *phy_if = &pdata->phy_if; phy_if 1455 drivers/net/ethernet/amd/xgbe/xgbe-drv.c phy_if->phy_stop(pdata); phy_if 304 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = pdata->phy_if.phy_config_aneg(pdata); phy_if 355 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { phy_if 396 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = pdata->phy_if.phy_config_aneg(pdata); phy_if 634 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return pdata->phy_if.module_info(pdata, modinfo); phy_if 642 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return pdata->phy_if.module_eeprom(pdata, eeprom, data); phy_if 166 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_function_ptrs_phy(&pdata->phy_if); phy_if 170 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->vdata->init_function_ptrs_phy_impl(&pdata->phy_if); phy_if 335 drivers/net/ethernet/amd/xgbe/xgbe-main.c ret = pdata->phy_if.phy_init(pdata); phy_if 433 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->phy_if.phy_exit(pdata); phy_if 132 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->phy_if.phy_impl.module_eeprom) phy_if 135 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.module_eeprom(pdata, eeprom, data); phy_if 141 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->phy_if.phy_impl.module_info) phy_if 144 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.module_info(pdata, modinfo); phy_if 225 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KR); phy_if 234 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_2500); phy_if 243 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_1000); phy_if 256 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SFI); phy_if 265 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_X); phy_if 274 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SGMII_1000); phy_if 283 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SGMII_100); phy_if 288 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.cur_mode(pdata); phy_if 331 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_change_mode(pdata, pdata->phy_if.phy_impl.switch_mode(pdata)); phy_if 348 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.use_mode(pdata, mode); phy_if 427 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_pre) phy_if 428 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_pre(pdata); phy_if 446 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_post) phy_if 447 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_post(pdata); phy_if 492 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.kr_training_pre) phy_if 493 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.kr_training_pre(pdata); phy_if 503 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.kr_training_post) phy_if 504 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.kr_training_post(pdata); phy_if 814 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_post) phy_if 815 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_post(pdata); phy_if 900 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_post) phy_if 901 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_post(pdata); phy_if 949 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_advertising(pdata, &lks); phy_if 998 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_advertising(pdata, &lks); phy_if 1047 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_mode = pdata->phy_if.phy_impl.an_mode(pdata); phy_if 1146 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.valid_speed(pdata, speed); phy_if 1159 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = pdata->phy_if.phy_impl.get_mode(pdata, pdata->phy.speed); phy_if 1192 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.an_config(pdata); phy_if 1288 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.an_outcome(pdata); phy_if 1344 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.link = pdata->phy_if.phy_impl.link_status(pdata, phy_if 1396 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.stop(pdata); phy_if 1411 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.start(pdata); phy_if 1464 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.stop(pdata); phy_if 1473 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.reset(pdata); phy_if 1549 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.exit(pdata); phy_if 1569 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.init(pdata); phy_if 1617 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c void xgbe_init_function_ptrs_phy(struct xgbe_phy_if *phy_if) phy_if 1619 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_init = xgbe_phy_init; phy_if 1620 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_exit = xgbe_phy_exit; phy_if 1622 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_reset = xgbe_phy_reset; phy_if 1623 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_start = xgbe_phy_start; phy_if 1624 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_stop = xgbe_phy_stop; phy_if 1626 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_status = xgbe_phy_status; phy_if 1627 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_config_aneg = xgbe_phy_config_aneg; phy_if 1629 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->phy_valid_speed = xgbe_phy_valid_speed; phy_if 1631 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->an_isr = xgbe_an_combined_isr; phy_if 1633 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->module_info = xgbe_phy_module_info; phy_if 1634 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c phy_if->module_eeprom = xgbe_phy_module_eeprom; phy_if 822 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c void xgbe_init_function_ptrs_phy_v1(struct xgbe_phy_if *phy_if) phy_if 824 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_impl_if *phy_impl = &phy_if->phy_impl; phy_if 3356 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c void xgbe_init_function_ptrs_phy_v2(struct xgbe_phy_if *phy_if) phy_if 3358 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_impl_if *phy_impl = &phy_if->phy_impl; phy_if 1100 drivers/net/ethernet/amd/xgbe/xgbe.h struct xgbe_phy_if phy_if; phy_if 2501 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c mac_dev->phy_if); phy_if 2508 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (mac_dev->phy_if != PHY_INTERFACE_MODE_XGMII || phy_if 328 drivers/net/ethernet/freescale/fman/fman_dtsec.c phy_interface_t phy_if; phy_if 1415 drivers/net/ethernet/freescale/fman/fman_dtsec.c err = init(dtsec->regs, dtsec_drv_param, dtsec->phy_if, phy_if 1424 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (dtsec->phy_if == PHY_INTERFACE_MODE_SGMII) { phy_if 1524 drivers/net/ethernet/freescale/fman/fman_dtsec.c dtsec->phy_if = params->phy_if; phy_if 187 drivers/net/ethernet/freescale/fman/fman_mac.h phy_interface_t phy_if; phy_if 337 drivers/net/ethernet/freescale/fman/fman_memac.c phy_interface_t phy_if; phy_if 411 drivers/net/ethernet/freescale/fman/fman_memac.c phy_interface_t phy_if, u16 speed, bool slow_10g_if, phy_if 441 drivers/net/ethernet/freescale/fman/fman_memac.c switch (phy_if) { phy_if 447 drivers/net/ethernet/freescale/fman/fman_memac.c if (phy_if == PHY_INTERFACE_MODE_RGMII || phy_if 448 drivers/net/ethernet/freescale/fman/fman_memac.c phy_if == PHY_INTERFACE_MODE_RGMII_ID || phy_if 449 drivers/net/ethernet/freescale/fman/fman_memac.c phy_if == PHY_INTERFACE_MODE_RGMII_RXID || phy_if 450 drivers/net/ethernet/freescale/fman/fman_memac.c phy_if == PHY_INTERFACE_MODE_RGMII_TXID) phy_if 457 drivers/net/ethernet/freescale/fman/fman_memac.c if (phy_if == PHY_INTERFACE_MODE_XGMII) { phy_if 785 drivers/net/ethernet/freescale/fman/fman_memac.c if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) { phy_if 1065 drivers/net/ethernet/freescale/fman/fman_memac.c init(memac->regs, memac->memac_drv_param, memac->phy_if, phy_if 1082 drivers/net/ethernet/freescale/fman/fman_memac.c if (memac->phy_if == PHY_INTERFACE_MODE_SGMII) { phy_if 1088 drivers/net/ethernet/freescale/fman/fman_memac.c } else if (memac->phy_if == PHY_INTERFACE_MODE_QSGMII) { phy_if 1184 drivers/net/ethernet/freescale/fman/fman_memac.c memac->phy_if = params->phy_if; phy_if 1197 drivers/net/ethernet/freescale/fman/fman_memac.c if (memac->phy_if == PHY_INTERFACE_MODE_SGMII || phy_if 1198 drivers/net/ethernet/freescale/fman/fman_memac.c memac->phy_if == PHY_INTERFACE_MODE_QSGMII) { phy_if 107 drivers/net/ethernet/freescale/fman/mac.c params->phy_if = mac_dev->phy_if; phy_if 224 drivers/net/ethernet/freescale/fman/mac.c params.phy_if = PHY_INTERFACE_MODE_XGMII; phy_if 611 drivers/net/ethernet/freescale/fman/mac.c int phy_if; phy_if 779 drivers/net/ethernet/freescale/fman/mac.c phy_if = of_get_phy_mode(mac_node); phy_if 780 drivers/net/ethernet/freescale/fman/mac.c if (phy_if < 0) { phy_if 784 drivers/net/ethernet/freescale/fman/mac.c phy_if = PHY_INTERFACE_MODE_SGMII; phy_if 786 drivers/net/ethernet/freescale/fman/mac.c mac_dev->phy_if = phy_if; phy_if 788 drivers/net/ethernet/freescale/fman/mac.c priv->speed = phy2speed[mac_dev->phy_if]; phy_if 792 drivers/net/ethernet/freescale/fman/mac.c if (mac_dev->phy_if == PHY_INTERFACE_MODE_SGMII) phy_if 801 drivers/net/ethernet/freescale/fman/mac.c if (mac_dev->phy_if == PHY_INTERFACE_MODE_XGMII) phy_if 53 drivers/net/ethernet/freescale/fman/mac.h phy_interface_t phy_if; phy_if 552 drivers/net/ethernet/hisilicon/hns/hnae.h phy_interface_t phy_if; phy_if 127 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c ae_handle->phy_if = vf_cb->mac_cb->phy_if; phy_if 59 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c return g_mac_mode_100[mac_cb->phy_if]; phy_if 61 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c return g_mac_mode_1000[mac_cb->phy_if]; phy_if 587 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII && enable) { phy_if 818 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_cb->speed = mac_phy_to_speed[mac_cb->phy_if]; phy_if 821 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (mac_cb->phy_if == PHY_INTERFACE_MODE_SGMII) { phy_if 824 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c } else if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) { phy_if 956 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static int hns_mac_get_mode(phy_interface_t phy_if) phy_if 958 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c switch (phy_if) { phy_if 1009 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_cb->phy_if = dsaf_dev->misc_op->get_phy_if(mac_cb); phy_if 1011 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c ret = hns_mac_get_mode(mac_cb->phy_if); phy_if 333 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h phy_interface_t phy_if; phy_if 2178 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c if (mac_cb->phy_if == PHY_INTERFACE_MODE_XGMII) phy_if 512 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c phy_interface_t phy_if; phy_if 531 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c phy_if = PHY_INTERFACE_MODE_XGMII; phy_if 533 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c phy_if = PHY_INTERFACE_MODE_SGMII; phy_if 535 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c return phy_if; phy_if 540 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c phy_interface_t phy_if = PHY_INTERFACE_MODE_NA; phy_if 556 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c return phy_if; phy_if 558 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c phy_if = obj->integer.value ? phy_if 561 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c dev_dbg(mac_cb->dev, "mac_id=%d, phy_if=%d\n", mac_cb->mac_id, phy_if); phy_if 565 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c return phy_if; phy_if 1149 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (h->phy_if == PHY_INTERFACE_MODE_XGMII) phy_if 1152 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (h->phy_if != PHY_INTERFACE_MODE_XGMII) { phy_if 1156 drivers/net/ethernet/hisilicon/hns/hns_enet.c h->phy_if); phy_if 1158 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = phy_attach_direct(ndev, phy_dev, 0, h->phy_if); phy_if 1577 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (h->phy_if != PHY_INTERFACE_MODE_XGMII) phy_if 1976 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (h->phy_if != PHY_INTERFACE_MODE_XGMII) phy_if 161 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { phy_if 164 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c } else if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { phy_if 218 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (h->phy_if == PHY_INTERFACE_MODE_XGMII) { phy_if 223 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c } else if (h->phy_if == PHY_INTERFACE_MODE_SGMII) { phy_if 299 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)) phy_if 311 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) phy_if 357 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) phy_if 590 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c st_param[0][1] = (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII); phy_if 595 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII)); phy_if 902 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if != PHY_INTERFACE_MODE_XGMII) { phy_if 993 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (priv->ae_handle->phy_if == PHY_INTERFACE_MODE_XGMII) phy_if 269 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h phy_interface_t phy_if; phy_if 1255 drivers/net/ethernet/ti/cpsw.c &cpsw_adjust_link, 0, slave->data->phy_if); phy_if 1264 drivers/net/ethernet/ti/cpsw.c &cpsw_adjust_link, slave->data->phy_if); phy_if 1283 drivers/net/ethernet/ti/cpsw.c slave->data->phy_if); phy_if 2622 drivers/net/ethernet/ti/cpsw.c slave_data->phy_if = of_get_phy_mode(slave_node); phy_if 2623 drivers/net/ethernet/ti/cpsw.c if (slave_data->phy_if < 0) { phy_if 2626 drivers/net/ethernet/ti/cpsw.c ret = slave_data->phy_if; phy_if 278 drivers/net/ethernet/ti/cpsw_priv.h int phy_if;