Lines Matching refs:phy_dev

238 int keystone_rgmii_config(struct phy_device *phy_dev)  in keystone_rgmii_config()  argument
246 phy_dev->link = 0; in keystone_rgmii_config()
252 phy_dev->link = 0; in keystone_rgmii_config()
268 int keystone_sgmii_config(struct phy_device *phy_dev, int port, int interface) in keystone_sgmii_config() argument
334 phy_dev->dev->name); in keystone_sgmii_config()
341 phy_dev->link = 0; in keystone_sgmii_config()
347 phy_dev->link = 0; in keystone_sgmii_config()
539 struct phy_device *phy_dev = eth_priv->phy_dev; in keystone2_eth_open() local
552 keystone_rgmii_config(phy_dev); in keystone2_eth_open()
554 keystone_sgmii_config(phy_dev, eth_priv->slave_port - 1, in keystone2_eth_open()
584 phy_startup(phy_dev); in keystone2_eth_open()
585 if (phy_dev->link == 0) { in keystone2_eth_open()
607 struct phy_device *phy_dev = eth_priv->phy_dev; in keystone2_eth_close() local
618 phy_shutdown(phy_dev); in keystone2_eth_close()
634 struct phy_device *phy_dev = eth_priv->phy_dev; in keystone2_eth_send_packet() local
636 genphy_update_link(phy_dev); in keystone2_eth_send_packet()
637 if (phy_dev->link == 0) in keystone2_eth_send_packet()
680 struct phy_device *phy_dev; in keystone2_emac_initialize() local
725 phy_dev = phy_connect(mdio_bus, eth_priv->phy_addr, in keystone2_emac_initialize()
727 phy_config(phy_dev); in keystone2_emac_initialize()
729 phy_dev = phy_find_by_mask(mdio_bus, 1 << eth_priv->phy_addr, in keystone2_emac_initialize()
731 phy_dev->dev = dev; in keystone2_emac_initialize()
733 eth_priv->phy_dev = phy_dev; in keystone2_emac_initialize()