/drivers/net/phy/ |
D | phylink.c | 42 struct phylink { struct 593 static int phylink_validate_mac_and_pcs(struct phylink *pl, in phylink_validate_mac_and_pcs() 641 static int phylink_validate_mask(struct phylink *pl, unsigned long *supported, in phylink_validate_mask() 670 static int phylink_validate(struct phylink *pl, unsigned long *supported, in phylink_validate() 687 static int phylink_parse_fixedlink(struct phylink *pl, in phylink_parse_fixedlink() 788 static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode) in phylink_parse_mode() 922 static void phylink_apply_manual_flow(struct phylink *pl, in phylink_apply_manual_flow() 950 static void phylink_pcs_poll_stop(struct phylink *pl) in phylink_pcs_poll_stop() 956 static void phylink_pcs_poll_start(struct phylink *pl) in phylink_pcs_poll_start() 962 static void phylink_mac_config(struct phylink *pl, in phylink_mac_config() [all …]
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_netdev.c | 104 err = phylink_of_phy_connect(port->phylink, port->of_node, 0); in sparx5_port_open() 110 phylink_start(port->phylink); in sparx5_port_open() 128 phylink_stop(port->phylink); in sparx5_port_open() 129 phylink_disconnect_phy(port->phylink); in sparx5_port_open() 142 phylink_stop(port->phylink); in sparx5_port_stop() 143 phylink_disconnect_phy(port->phylink); in sparx5_port_stop() 303 if (port && port->phylink) { in sparx5_destroy_netdevs() 307 phylink_disconnect_phy(port->phylink); in sparx5_destroy_netdevs() 309 phylink_destroy(port->phylink); in sparx5_destroy_netdevs() 310 port->phylink = NULL; in sparx5_destroy_netdevs()
|
D | sparx5_main.c | 260 struct phylink *phylink; in sparx5_create_port() local 325 phylink = phylink_create(&spx5_port->phylink_config, in sparx5_create_port() 329 if (IS_ERR(phylink)) in sparx5_create_port() 330 return PTR_ERR(phylink); in sparx5_create_port() 332 spx5_port->phylink = phylink; in sparx5_create_port()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-mac.c | 354 struct phylink *phylink; in dpaa2_mac_connect() local 414 phylink = phylink_create(&mac->phylink_config, in dpaa2_mac_connect() 417 if (IS_ERR(phylink)) { in dpaa2_mac_connect() 418 err = PTR_ERR(phylink); in dpaa2_mac_connect() 421 mac->phylink = phylink; in dpaa2_mac_connect() 423 err = phylink_fwnode_phy_connect(mac->phylink, dpmac_node, 0); in dpaa2_mac_connect() 432 phylink_destroy(mac->phylink); in dpaa2_mac_connect() 441 if (!mac->phylink) in dpaa2_mac_disconnect() 444 phylink_disconnect_phy(mac->phylink); in dpaa2_mac_disconnect() 445 phylink_destroy(mac->phylink); in dpaa2_mac_disconnect()
|
D | dpaa2-mac.h | 24 struct phylink *phylink; member
|
D | dpaa2-switch-ethtool.c | 66 return phylink_ethtool_ksettings_get(port_priv->mac->phylink, in dpaa2_switch_get_link_ksettings() 103 return phylink_ethtool_ksettings_set(port_priv->mac->phylink, in dpaa2_switch_set_link_ksettings()
|
D | dpaa2-ethtool.c | 91 return phylink_ethtool_nway_reset(priv->mac->phylink); in dpaa2_eth_nway_reset() 103 return phylink_ethtool_ksettings_get(priv->mac->phylink, in dpaa2_eth_get_link_ksettings() 123 return phylink_ethtool_ksettings_set(priv->mac->phylink, link_settings); in dpaa2_eth_set_link_ksettings() 133 phylink_ethtool_get_pauseparam(priv->mac->phylink, pause); in dpaa2_eth_get_pauseparam() 156 return phylink_ethtool_set_pauseparam(priv->mac->phylink, in dpaa2_eth_set_pauseparam()
|
/drivers/net/usb/ |
D | asix_devices.c | 312 phylink_ethtool_get_pauseparam(priv->phylink, pause); in ax88772_ethtool_get_pauseparam() 321 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in ax88772_ethtool_set_pauseparam() 366 phylink_start(priv->phylink); in ax88772_reset() 615 phylink_suspend(priv->phylink, false); in ax88772_suspend() 650 phylink_resume(priv->phylink); in ax88772_resume() 710 ret = phylink_connect_phy(priv->phylink, priv->phydev); in ax88772_init_phy() 731 phylink_disconnect_phy(priv->phylink); in ax88772_init_phy() 800 struct phylink *phylink; in ax88772_phylink_setup() local 817 phylink = phylink_create(&priv->phylink_config, dev->net->dev.fwnode, in ax88772_phylink_setup() 819 if (IS_ERR(phylink)) in ax88772_phylink_setup() [all …]
|
D | asix.h | 189 struct phylink *phylink; member
|
/drivers/net/ethernet/ |
D | jme.c | 388 u32 phylink, bmsr; in jme_linkstat_from_phy() local 390 phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17); in jme_linkstat_from_phy() 393 phylink |= PHY_LINK_AUTONEG_COMPLETE; in jme_linkstat_from_phy() 395 return phylink; in jme_linkstat_from_phy() 414 u32 phylink, cnt = JME_SPDRSV_TIMEOUT, bmcr; in jme_check_link() local 421 phylink = jme_linkstat_from_phy(jme); in jme_check_link() 423 phylink = jread32(jme, JME_PHY_LINK); in jme_check_link() 425 if (phylink & PHY_LINK_UP) { in jme_check_link() 426 if (!(phylink & PHY_LINK_AUTONEG_COMPLETE)) { in jme_check_link() 431 phylink = PHY_LINK_UP; in jme_check_link() [all …]
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.c | 183 err = phylink_fwnode_phy_connect(port->phylink, port->fwnode, 0); in lan966x_port_open() 189 phylink_start(port->phylink); in lan966x_port_open() 199 phylink_stop(port->phylink); in lan966x_port_stop() 200 phylink_disconnect_phy(port->phylink); in lan966x_port_stop() 700 if (port->phylink) { in lan966x_cleanup_ports() 704 phylink_destroy(port->phylink); in lan966x_cleanup_ports() 705 port->phylink = NULL; in lan966x_cleanup_ports() 735 struct phylink *phylink; in lan966x_probe_port() local 794 phylink = phylink_create(&port->phylink_config, in lan966x_probe_port() 798 if (IS_ERR(phylink)) { in lan966x_probe_port() [all …]
|
/drivers/net/ethernet/atheros/ |
D | ag71xx.c | 370 struct phylink *phylink; member 464 return phylink_ethtool_ksettings_get(ag->phylink, kset); in ag71xx_get_link_ksettings() 472 return phylink_ethtool_ksettings_set(ag->phylink, kset); in ag71xx_set_link_ksettings() 479 return phylink_ethtool_nway_reset(ag->phylink); in ag71xx_ethtool_nway_reset() 487 phylink_ethtool_get_pauseparam(ag->phylink, pause); in ag71xx_ethtool_get_pauseparam() 495 return phylink_ethtool_set_pauseparam(ag->phylink, pause); in ag71xx_ethtool_set_pauseparam() 1097 struct phylink *phylink; in ag71xx_phylink_setup() local 1130 phylink = phylink_create(&ag->phylink_config, ag->pdev->dev.fwnode, in ag71xx_phylink_setup() 1132 if (IS_ERR(phylink)) in ag71xx_phylink_setup() 1133 return PTR_ERR(phylink); in ag71xx_phylink_setup() [all …]
|
/drivers/net/ethernet/ti/ |
D | am65-cpsw-ethtool.c | 472 phylink_ethtool_get_pauseparam(salve->phylink, pause); in am65_cpsw_get_pauseparam() 480 return phylink_ethtool_set_pauseparam(salve->phylink, pause); in am65_cpsw_set_pauseparam() 488 phylink_ethtool_get_wol(salve->phylink, wol); in am65_cpsw_get_wol() 496 return phylink_ethtool_set_wol(salve->phylink, wol); in am65_cpsw_set_wol() 504 return phylink_ethtool_ksettings_get(salve->phylink, ecmd); in am65_cpsw_get_link_ksettings() 513 return phylink_ethtool_ksettings_set(salve->phylink, ecmd); in am65_cpsw_set_link_ksettings() 520 return phylink_ethtool_get_eee(salve->phylink, edata); in am65_cpsw_get_eee() 527 return phylink_ethtool_set_eee(salve->phylink, edata); in am65_cpsw_set_eee() 534 return phylink_ethtool_nway_reset(salve->phylink); in am65_cpsw_nway_reset()
|
D | am65-cpsw-nuss.h | 39 struct phylink *phylink; member
|
D | am65-cpsw-nuss.c | 536 phylink_stop(port->slave.phylink); in am65_cpsw_nuss_ndo_slave_stop() 540 phylink_disconnect_phy(port->slave.phylink); in am65_cpsw_nuss_ndo_slave_stop() 603 ret = phylink_of_phy_connect(port->slave.phylink, port->slave.phy_node, 0); in am65_cpsw_nuss_ndo_slave_open() 610 phylink_start(port->slave.phylink); in am65_cpsw_nuss_ndo_slave_open() 1360 return phylink_mii_ioctl(port->slave.phylink, req, cmd); in am65_cpsw_nuss_ndo_slave_ioctl() 1955 if (port->slave.phylink) in am65_cpsw_nuss_phylink_cleanup() 1956 phylink_destroy(port->slave.phylink); in am65_cpsw_nuss_phylink_cleanup() 1966 struct phylink *phylink; in am65_cpsw_nuss_init_port_ndev() local 2023 phylink = phylink_create(&port->slave.phylink_config, in am65_cpsw_nuss_init_port_ndev() 2027 if (IS_ERR(phylink)) in am65_cpsw_nuss_init_port_ndev() [all …]
|
/drivers/net/ethernet/xilinx/ |
D | xilinx_axienet_main.c | 1154 ret = phylink_of_phy_connect(lp->phylink, lp->dev->of_node, 0); in axienet_open() 1160 phylink_start(lp->phylink); in axienet_open() 1195 phylink_stop(lp->phylink); in axienet_open() 1196 phylink_disconnect_phy(lp->phylink); in axienet_open() 1221 phylink_stop(lp->phylink); in axienet_stop() 1222 phylink_disconnect_phy(lp->phylink); in axienet_stop() 1296 return phylink_mii_ioctl(lp->phylink, rq, cmd); in axienet_ioctl() 1480 phylink_ethtool_get_pauseparam(lp->phylink, epauseparm); in axienet_ethtools_get_pauseparam() 1501 return phylink_ethtool_set_pauseparam(lp->phylink, epauseparm); in axienet_ethtools_set_pauseparam() 1577 return phylink_ethtool_ksettings_get(lp->phylink, cmd); in axienet_ethtools_get_link_ksettings() [all …]
|
/drivers/net/ethernet/mscc/ |
D | ocelot_net.c | 549 phylink_start(priv->phylink); in ocelot_port_open() 558 phylink_stop(priv->phylink); in ocelot_port_stop() 1753 struct phylink *phylink; in ocelot_port_phylink_create() local 1810 phylink = phylink_create(&priv->phylink_config, in ocelot_port_phylink_create() 1813 if (IS_ERR(phylink)) { in ocelot_port_phylink_create() 1814 err = PTR_ERR(phylink); in ocelot_port_phylink_create() 1815 dev_err(dev, "Could not create phylink (%pe)\n", phylink); in ocelot_port_phylink_create() 1819 priv->phylink = phylink; in ocelot_port_phylink_create() 1821 err = phylink_of_phy_connect(phylink, portnp, 0); in ocelot_port_phylink_create() 1824 phylink_destroy(phylink); in ocelot_port_phylink_create() [all …]
|
D | ocelot.h | 49 struct phylink *phylink; member
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 385 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in stmmac_ethtool_get_link_ksettings() 416 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in stmmac_ethtool_set_link_ksettings() 476 return phylink_ethtool_nway_reset(priv->phylink); in stmmac_nway_reset() 522 phylink_ethtool_get_pauseparam(priv->phylink, pause); in stmmac_get_pauseparam() 539 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in stmmac_set_pauseparam() 603 int val = phylink_get_eee_err(priv->phylink); in stmmac_get_ethtool_stats() 724 return phylink_ethtool_get_wol(priv->phylink, wol); in stmmac_get_wol() 745 int ret = phylink_ethtool_set_wol(priv->phylink, wol); in stmmac_set_wol() 796 return phylink_ethtool_get_eee(priv->phylink, edata); in stmmac_ethtool_op_get_eee() 815 ret = phylink_ethtool_set_eee(priv->phylink, edata); in stmmac_ethtool_op_set_eee()
|
/drivers/net/ethernet/marvell/ |
D | mvneta.c | 529 struct phylink *phylink; member 3195 phylink_mac_change(pp->phylink, !!(gmac_stat & MVNETA_GMAC_LINK_UP)); in mvneta_link_change() 3713 phylink_start(pp->phylink); in mvneta_start_dev() 3716 phylink_speed_up(pp->phylink); in mvneta_start_dev() 3730 phylink_speed_down(pp->phylink, false); in mvneta_stop_dev() 3732 phylink_stop(pp->phylink); in mvneta_stop_dev() 4243 int err = phylink_of_phy_connect(pp->phylink, pp->dn, 0); in mvneta_mdio_probe() 4248 phylink_ethtool_get_wol(pp->phylink, &wol); in mvneta_mdio_probe() 4260 phylink_disconnect_phy(pp->phylink); in mvneta_mdio_remove() 4537 return phylink_mii_ioctl(pp->phylink, ifr, cmd); in mvneta_ioctl() [all …]
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 1125 struct phylink *phylink; in enetc_phylink_create() local 1143 phylink = phylink_create(&pf->phylink_config, of_fwnode_handle(node), in enetc_phylink_create() 1145 if (IS_ERR(phylink)) { in enetc_phylink_create() 1146 err = PTR_ERR(phylink); in enetc_phylink_create() 1150 priv->phylink = phylink; in enetc_phylink_create() 1157 phylink_destroy(priv->phylink); in enetc_phylink_destroy()
|
D | enetc_ethtool.c | 834 phylink_ethtool_get_pauseparam(priv->phylink, pause); in enetc_get_pauseparam() 842 return phylink_ethtool_set_pauseparam(priv->phylink, pause); in enetc_set_pauseparam() 850 if (!priv->phylink) in enetc_get_link_ksettings() 853 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in enetc_get_link_ksettings() 861 if (!priv->phylink) in enetc_set_link_ksettings() 864 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in enetc_set_link_ksettings()
|
/drivers/net/ethernet/altera/ |
D | altera_tse_main.c | 956 ret = phylink_of_phy_connect(priv->phylink, priv->device->of_node, 0); in tse_open() 961 phylink_start(priv->phylink); in tse_open() 992 phylink_stop(priv->phylink); in tse_shutdown() 993 phylink_disconnect_phy(priv->phylink); in tse_shutdown() 1410 priv->phylink = phylink_create(&priv->phylink_config, in altera_tse_probe() 1413 if (IS_ERR(priv->phylink)) { in altera_tse_probe() 1415 ret = PTR_ERR(priv->phylink); in altera_tse_probe() 1441 phylink_destroy(priv->phylink); in altera_tse_remove()
|
D | altera_tse_ethtool.c | 229 return phylink_ethtool_ksettings_set(priv->phylink, cmd); in tse_ethtool_set_link_ksettings() 237 return phylink_ethtool_ksettings_get(priv->phylink, cmd); in tse_ethtool_get_link_ksettings()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 1741 if (port->phylink || in mvpp22_gop_setup_irq() 3429 if (port->phylink) { in mvpp2_isr_handle_link() 3430 phylink_mac_change(port->phylink, link); in mvpp2_isr_handle_link() 4614 if (port->phylink) { in mvpp2_start_dev() 4615 phylink_start(port->phylink); in mvpp2_start_dev() 4638 if (port->phylink) in mvpp2_stop_dev() 4639 phylink_stop(port->phylink); in mvpp2_stop_dev() 4818 if (port->phylink) { in mvpp2_open() 4819 err = phylink_fwnode_phy_connect(port->phylink, port->fwnode, 0); in mvpp2_open() 4889 if (port->phylink) in mvpp2_stop() [all …]
|