mdio_bus         1890 drivers/net/dsa/lantiq_gswip.c 		goto mdio_bus;
mdio_bus         1909 drivers/net/dsa/lantiq_gswip.c mdio_bus:
mdio_bus          116 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_mdio_bus *mdio_bus;
mdio_bus          118 drivers/net/dsa/mv88e6xxx/chip.c 	mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus,
mdio_bus          120 drivers/net/dsa/mv88e6xxx/chip.c 	if (!mdio_bus)
mdio_bus          123 drivers/net/dsa/mv88e6xxx/chip.c 	return mdio_bus->bus;
mdio_bus         2765 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv;
mdio_bus         2766 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_chip *chip = mdio_bus->chip;
mdio_bus         2801 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv;
mdio_bus         2802 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_chip *chip = mdio_bus->chip;
mdio_bus         2820 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_mdio_bus *mdio_bus;
mdio_bus         2833 drivers/net/dsa/mv88e6xxx/chip.c 	bus = devm_mdiobus_alloc_size(chip->dev, sizeof(*mdio_bus));
mdio_bus         2837 drivers/net/dsa/mv88e6xxx/chip.c 	mdio_bus = bus->priv;
mdio_bus         2838 drivers/net/dsa/mv88e6xxx/chip.c 	mdio_bus->bus = bus;
mdio_bus         2839 drivers/net/dsa/mv88e6xxx/chip.c 	mdio_bus->chip = chip;
mdio_bus         2840 drivers/net/dsa/mv88e6xxx/chip.c 	INIT_LIST_HEAD(&mdio_bus->list);
mdio_bus         2841 drivers/net/dsa/mv88e6xxx/chip.c 	mdio_bus->external = external;
mdio_bus         2869 drivers/net/dsa/mv88e6xxx/chip.c 		list_add_tail(&mdio_bus->list, &chip->mdios);
mdio_bus         2871 drivers/net/dsa/mv88e6xxx/chip.c 		list_add(&mdio_bus->list, &chip->mdios);
mdio_bus         2885 drivers/net/dsa/mv88e6xxx/chip.c 	struct mv88e6xxx_mdio_bus *mdio_bus;
mdio_bus         2888 drivers/net/dsa/mv88e6xxx/chip.c 	list_for_each_entry(mdio_bus, &chip->mdios, list) {
mdio_bus         2889 drivers/net/dsa/mv88e6xxx/chip.c 		bus = mdio_bus->bus;
mdio_bus         2891 drivers/net/dsa/mv88e6xxx/chip.c 		if (!mdio_bus->external)
mdio_bus          764 drivers/net/dsa/mv88e6xxx/global2.c 	struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv;
mdio_bus          765 drivers/net/dsa/mv88e6xxx/global2.c 	bool external = mdio_bus->external;
mdio_bus          778 drivers/net/dsa/mv88e6xxx/global2.c 	struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv;
mdio_bus          779 drivers/net/dsa/mv88e6xxx/global2.c 	bool external = mdio_bus->external;
mdio_bus           57 drivers/net/ethernet/apm/xgene-v2/main.h 	struct mii_bus *mdio_bus;
mdio_bus           87 drivers/net/ethernet/apm/xgene-v2/mdio.c 	struct mii_bus *mdio_bus = pdata->mdio_bus;
mdio_bus           92 drivers/net/ethernet/apm/xgene-v2/mdio.c 	if (mdio_bus->state == MDIOBUS_REGISTERED)
mdio_bus           93 drivers/net/ethernet/apm/xgene-v2/mdio.c 		mdiobus_unregister(mdio_bus);
mdio_bus           95 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdiobus_free(mdio_bus);
mdio_bus          103 drivers/net/ethernet/apm/xgene-v2/mdio.c 	struct mii_bus *mdio_bus;
mdio_bus          107 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus = mdiobus_alloc();
mdio_bus          108 drivers/net/ethernet/apm/xgene-v2/mdio.c 	if (!mdio_bus)
mdio_bus          111 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus->name = "APM X-Gene Ethernet (v2) MDIO Bus";
mdio_bus          112 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus->read = xge_mdio_read;
mdio_bus          113 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus->write = xge_mdio_write;
mdio_bus          114 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus->priv = pdata;
mdio_bus          115 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus->parent = dev;
mdio_bus          116 drivers/net/ethernet/apm/xgene-v2/mdio.c 	snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(dev));
mdio_bus          117 drivers/net/ethernet/apm/xgene-v2/mdio.c 	pdata->mdio_bus = mdio_bus;
mdio_bus          119 drivers/net/ethernet/apm/xgene-v2/mdio.c 	mdio_bus->phy_mask = 0x1;
mdio_bus          120 drivers/net/ethernet/apm/xgene-v2/mdio.c 	ret = mdiobus_register(mdio_bus);
mdio_bus          124 drivers/net/ethernet/apm/xgene-v2/mdio.c 	phydev = phy_find_first(mdio_bus);
mdio_bus          946 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	struct mii_bus *mdio_bus;
mdio_bus          949 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio_bus = mdiobus_alloc();
mdio_bus          950 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	if (!mdio_bus)
mdio_bus          953 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio_bus->name = "APM X-Gene MDIO bus";
mdio_bus          954 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio_bus->read = xgene_mdio_rgmii_read;
mdio_bus          955 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio_bus->write = xgene_mdio_rgmii_write;
mdio_bus          956 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%s", "xgene-mii",
mdio_bus          959 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio_bus->priv = (void __force *)pdata->mcx_mac_addr;
mdio_bus          960 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio_bus->parent = &pdata->pdev->dev;
mdio_bus          962 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	ret = xgene_mdiobus_register(pdata, mdio_bus);
mdio_bus          965 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 		mdiobus_free(mdio_bus);
mdio_bus          968 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	pdata->mdio_bus = mdio_bus;
mdio_bus          992 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdiobus_unregister(pdata->mdio_bus);
mdio_bus          993 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdiobus_free(pdata->mdio_bus);
mdio_bus          994 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	pdata->mdio_bus = NULL;
mdio_bus          186 drivers/net/ethernet/apm/xgene/xgene_enet_main.h 	struct mii_bus *mdio_bus;
mdio_bus         1421 drivers/net/ethernet/broadcom/tg3.c 	phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         1541 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus = mdiobus_alloc();
mdio_bus         1542 drivers/net/ethernet/broadcom/tg3.c 	if (tp->mdio_bus == NULL)
mdio_bus         1545 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus->name     = "tg3 mdio bus";
mdio_bus         1546 drivers/net/ethernet/broadcom/tg3.c 	snprintf(tp->mdio_bus->id, MII_BUS_ID_SIZE, "%x",
mdio_bus         1548 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus->priv     = tp;
mdio_bus         1549 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus->parent   = &tp->pdev->dev;
mdio_bus         1550 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus->read     = &tg3_mdio_read;
mdio_bus         1551 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus->write    = &tg3_mdio_write;
mdio_bus         1552 drivers/net/ethernet/broadcom/tg3.c 	tp->mdio_bus->phy_mask = ~(1 << tp->phy_addr);
mdio_bus         1562 drivers/net/ethernet/broadcom/tg3.c 	i = mdiobus_register(tp->mdio_bus);
mdio_bus         1565 drivers/net/ethernet/broadcom/tg3.c 		mdiobus_free(tp->mdio_bus);
mdio_bus         1569 drivers/net/ethernet/broadcom/tg3.c 	phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         1573 drivers/net/ethernet/broadcom/tg3.c 		mdiobus_unregister(tp->mdio_bus);
mdio_bus         1574 drivers/net/ethernet/broadcom/tg3.c 		mdiobus_free(tp->mdio_bus);
mdio_bus         1619 drivers/net/ethernet/broadcom/tg3.c 		mdiobus_unregister(tp->mdio_bus);
mdio_bus         1620 drivers/net/ethernet/broadcom/tg3.c 		mdiobus_free(tp->mdio_bus);
mdio_bus         1979 drivers/net/ethernet/broadcom/tg3.c 		autoneg = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr)->autoneg;
mdio_bus         2015 drivers/net/ethernet/broadcom/tg3.c 	struct phy_device *phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         2104 drivers/net/ethernet/broadcom/tg3.c 	phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         2129 drivers/net/ethernet/broadcom/tg3.c 		phy_disconnect(mdiobus_get_phy(tp->mdio_bus, tp->phy_addr));
mdio_bus         2147 drivers/net/ethernet/broadcom/tg3.c 	phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         2168 drivers/net/ethernet/broadcom/tg3.c 	phy_stop(mdiobus_get_phy(tp->mdio_bus, tp->phy_addr));
mdio_bus         2174 drivers/net/ethernet/broadcom/tg3.c 		phy_disconnect(mdiobus_get_phy(tp->mdio_bus, tp->phy_addr));
mdio_bus         4059 drivers/net/ethernet/broadcom/tg3.c 			phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         12156 drivers/net/ethernet/broadcom/tg3.c 		phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         12232 drivers/net/ethernet/broadcom/tg3.c 		phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         12390 drivers/net/ethernet/broadcom/tg3.c 		r = phy_start_aneg(mdiobus_get_phy(tp->mdio_bus, tp->phy_addr));
mdio_bus         12515 drivers/net/ethernet/broadcom/tg3.c 		phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         14004 drivers/net/ethernet/broadcom/tg3.c 		phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr);
mdio_bus         3274 drivers/net/ethernet/broadcom/tg3.h 	struct mii_bus			*mdio_bus;
mdio_bus         9353 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		mdiobus_unregister(hdev->hw.mac.mdio_bus);
mdio_bus         9499 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		mdiobus_unregister(mac->mdio_bus);
mdio_bus          268 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 	struct mii_bus *mdio_bus;
mdio_bus          129 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	struct mii_bus *mdio_bus;
mdio_bus          142 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus = devm_mdiobus_alloc(&hdev->pdev->dev);
mdio_bus          143 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	if (!mdio_bus)
mdio_bus          146 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus->name = "hisilicon MII bus";
mdio_bus          147 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus->read = hclge_mdio_read;
mdio_bus          148 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus->write = hclge_mdio_write;
mdio_bus          149 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%s", "mii",
mdio_bus          152 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus->parent = &hdev->pdev->dev;
mdio_bus          153 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus->priv = hdev;
mdio_bus          154 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mdio_bus->phy_mask = ~(1 << mac->phy_addr);
mdio_bus          155 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	ret = mdiobus_register(mdio_bus);
mdio_bus          157 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 		dev_err(mdio_bus->parent,
mdio_bus          162 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	phydev = mdiobus_get_phy(mdio_bus, mac->phy_addr);
mdio_bus          164 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 		dev_err(mdio_bus->parent, "Failed to get phy device\n");
mdio_bus          165 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 		mdiobus_unregister(mdio_bus);
mdio_bus          170 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	mac->mdio_bus = mdio_bus;
mdio_bus          142 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	struct mii_bus *mdio_bus;
mdio_bus          151 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus = mdiobus_alloc();
mdio_bus          152 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	if (!mdio_bus) {
mdio_bus          163 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus->name = "sxgbe";
mdio_bus          164 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus->read = &sxgbe_mdio_read;
mdio_bus          165 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus->write = &sxgbe_mdio_write;
mdio_bus          166 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%x",
mdio_bus          167 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 		 mdio_bus->name, priv->plat->bus_id);
mdio_bus          168 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus->priv = ndev;
mdio_bus          169 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus->phy_mask = mdio_data->phy_mask;
mdio_bus          170 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdio_bus->parent = priv->device;
mdio_bus          173 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	err = mdiobus_register(mdio_bus);
mdio_bus          180 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 		struct phy_device *phy = mdiobus_get_phy(mdio_bus, phy_addr);
mdio_bus          226 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	priv->mii = mdio_bus;
mdio_bus          232 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdiobus_unregister(mdio_bus);
mdio_bus          234 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	mdiobus_free(mdio_bus);
mdio_bus          127 drivers/net/ethernet/sfc/mcdi_port.c 	MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus);
mdio_bus          153 drivers/net/ethernet/sfc/mcdi_port.c 	MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus);
mdio_bus          438 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio_bus = phy_data->channel;
mdio_bus         1038 drivers/net/ethernet/sfc/net_driver.h 	unsigned int mdio_bus;
mdio_bus          250 drivers/net/ethernet/xscale/ixp4xx_eth.c static struct mii_bus *mdio_bus;
mdio_bus          524 drivers/net/ethernet/xscale/ixp4xx_eth.c 	if (!(mdio_bus = mdiobus_alloc()))
mdio_bus          530 drivers/net/ethernet/xscale/ixp4xx_eth.c 	mdio_bus->name = "IXP4xx MII Bus";
mdio_bus          531 drivers/net/ethernet/xscale/ixp4xx_eth.c 	mdio_bus->read = &ixp4xx_mdio_read;
mdio_bus          532 drivers/net/ethernet/xscale/ixp4xx_eth.c 	mdio_bus->write = &ixp4xx_mdio_write;
mdio_bus          533 drivers/net/ethernet/xscale/ixp4xx_eth.c 	snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "ixp4xx-eth-0");
mdio_bus          535 drivers/net/ethernet/xscale/ixp4xx_eth.c 	if ((err = mdiobus_register(mdio_bus)))
mdio_bus          536 drivers/net/ethernet/xscale/ixp4xx_eth.c 		mdiobus_free(mdio_bus);
mdio_bus          542 drivers/net/ethernet/xscale/ixp4xx_eth.c 	mdiobus_unregister(mdio_bus);
mdio_bus          543 drivers/net/ethernet/xscale/ixp4xx_eth.c 	mdiobus_free(mdio_bus);
mdio_bus         1387 drivers/net/ethernet/xscale/ixp4xx_eth.c 		if (!mdio_bus)
mdio_bus         1406 drivers/net/ethernet/xscale/ixp4xx_eth.c 		if (!mdio_bus)
mdio_bus         1424 drivers/net/ethernet/xscale/ixp4xx_eth.c 		if (!mdio_bus)
mdio_bus         1461 drivers/net/ethernet/xscale/ixp4xx_eth.c 		mdio_bus->id, plat->phy);
mdio_bus          329 drivers/net/phy/mdio-xgene.c 	struct mii_bus *mdio_bus;
mdio_bus          379 drivers/net/phy/mdio-xgene.c 	mdio_bus = mdiobus_alloc();
mdio_bus          380 drivers/net/phy/mdio-xgene.c 	if (!mdio_bus) {
mdio_bus          385 drivers/net/phy/mdio-xgene.c 	mdio_bus->name = "APM X-Gene MDIO bus";
mdio_bus          388 drivers/net/phy/mdio-xgene.c 		mdio_bus->read = xgene_mdio_rgmii_read;
mdio_bus          389 drivers/net/phy/mdio-xgene.c 		mdio_bus->write = xgene_mdio_rgmii_write;
mdio_bus          390 drivers/net/phy/mdio-xgene.c 		mdio_bus->priv = (void __force *)pdata;
mdio_bus          391 drivers/net/phy/mdio-xgene.c 		snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s",
mdio_bus          394 drivers/net/phy/mdio-xgene.c 		mdio_bus->read = xgene_xfi_mdio_read;
mdio_bus          395 drivers/net/phy/mdio-xgene.c 		mdio_bus->write = xgene_xfi_mdio_write;
mdio_bus          396 drivers/net/phy/mdio-xgene.c 		mdio_bus->priv = (void __force *)pdata->mdio_csr_addr;
mdio_bus          397 drivers/net/phy/mdio-xgene.c 		snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s",
mdio_bus          401 drivers/net/phy/mdio-xgene.c 	mdio_bus->parent = dev;
mdio_bus          405 drivers/net/phy/mdio-xgene.c 		ret = of_mdiobus_register(mdio_bus, dev->of_node);
mdio_bus          409 drivers/net/phy/mdio-xgene.c 		mdio_bus->phy_mask = ~0;
mdio_bus          410 drivers/net/phy/mdio-xgene.c 		ret = mdiobus_register(mdio_bus);
mdio_bus          415 drivers/net/phy/mdio-xgene.c 				    acpi_register_phy, NULL, mdio_bus, NULL);
mdio_bus          422 drivers/net/phy/mdio-xgene.c 	pdata->mdio_bus = mdio_bus;
mdio_bus          428 drivers/net/phy/mdio-xgene.c 	mdiobus_free(mdio_bus);
mdio_bus          440 drivers/net/phy/mdio-xgene.c 	struct mii_bus *mdio_bus = pdata->mdio_bus;
mdio_bus          443 drivers/net/phy/mdio-xgene.c 	mdiobus_unregister(mdio_bus);
mdio_bus          444 drivers/net/phy/mdio-xgene.c 	mdiobus_free(mdio_bus);
mdio_bus           91 drivers/net/phy/mdio-xgene.h 	struct mii_bus *mdio_bus;