• Home
  • Raw
  • Download

Lines Matching refs:mdio_bus

29 static struct mii_dev *mdio_bus;  variable
103 struct mii_dev *mdio_bus; member
195 data = keystone2_mdio_read(mdio_bus, eth_priv->phy_addr, in keystone2_eth_gigabit_enable()
219 data = keystone2_mdio_read(priv->mdio_bus, priv->phy_addr, in keystone2_eth_gigabit_enable()
549 keystone2_mdio_reset(mdio_bus); in keystone2_eth_open()
582 keystone2_mdio_reset(mdio_bus); in keystone2_eth_open()
706 if (!mdio_bus) { in keystone2_emac_initialize()
707 mdio_bus = mdio_alloc(); in keystone2_emac_initialize()
708 mdio_bus->read = keystone2_mdio_read; in keystone2_emac_initialize()
709 mdio_bus->write = keystone2_mdio_write; in keystone2_emac_initialize()
710 mdio_bus->reset = keystone2_mdio_reset; in keystone2_emac_initialize()
711 mdio_bus->priv = (void *)EMAC_MDIO_BASE_ADDR; in keystone2_emac_initialize()
712 strcpy(mdio_bus->name, "ethernet-mdio"); in keystone2_emac_initialize()
714 res = mdio_register(mdio_bus); in keystone2_emac_initialize()
725 phy_dev = phy_connect(mdio_bus, eth_priv->phy_addr, in keystone2_emac_initialize()
729 phy_dev = phy_find_by_mask(mdio_bus, 1 << eth_priv->phy_addr, in keystone2_emac_initialize()
771 keystone2_mdio_reset(priv->mdio_bus); in ks2_eth_start()
891 struct mii_dev *mdio_bus; in ks2_eth_probe() local
923 mdio_bus = mdio_alloc(); in ks2_eth_probe()
924 if (!mdio_bus) { in ks2_eth_probe()
928 priv->mdio_bus = mdio_bus; in ks2_eth_probe()
929 mdio_bus->read = keystone2_mdio_read; in ks2_eth_probe()
930 mdio_bus->write = keystone2_mdio_write; in ks2_eth_probe()
931 mdio_bus->reset = keystone2_mdio_reset; in ks2_eth_probe()
932 mdio_bus->priv = priv->mdio_base; in ks2_eth_probe()
933 sprintf(mdio_bus->name, "ethernet-mdio"); in ks2_eth_probe()
935 ret = mdio_register(mdio_bus); in ks2_eth_probe()
945 priv->mdio_bus = parent_priv->mdio_bus; in ks2_eth_probe()
955 priv->phydev = phy_connect(priv->mdio_bus, priv->phy_addr, in ks2_eth_probe()
968 mdio_unregister(priv->mdio_bus); in ks2_eth_remove()
969 mdio_free(priv->mdio_bus); in ks2_eth_remove()