mdio              322 arch/powerpc/platforms/85xx/mpc85xx_mds.c 	struct device_node *mdio;
mdio              327 arch/powerpc/platforms/85xx/mpc85xx_mds.c 		mdio = of_find_compatible_node(NULL, NULL, compstrs[i]);
mdio              329 arch/powerpc/platforms/85xx/mpc85xx_mds.c 		of_address_to_resource(mdio, 0, &res);
mdio              341 arch/powerpc/platforms/85xx/mpc85xx_mds.c 		of_node_put(mdio);
mdio               73 arch/powerpc/sysdev/tsi108_dev.c 		struct device_node *phy, *mdio;
mdio              109 arch/powerpc/sysdev/tsi108_dev.c 		mdio = of_find_node_by_phandle(*ph);
mdio              110 arch/powerpc/sysdev/tsi108_dev.c 		ret = of_address_to_resource(mdio, 0, &res);
mdio              111 arch/powerpc/sysdev/tsi108_dev.c 		of_node_put(mdio);
mdio               25 drivers/net/dsa/lan9303_mdio.c static void lan9303_mdio_real_write(struct mdio_device *mdio, int reg, u16 val)
mdio               27 drivers/net/dsa/lan9303_mdio.c 	mdio->bus->write(mdio->bus, PHY_ADDR(reg), PHY_REG(reg), val);
mdio               43 drivers/net/dsa/lan9303_mdio.c static u16 lan9303_mdio_real_read(struct mdio_device *mdio, int reg)
mdio               45 drivers/net/dsa/lan9303_mdio.c 	return mdio->bus->read(mdio->bus, PHY_ADDR(reg), PHY_REG(reg));
mdio              246 drivers/net/dsa/lantiq_gswip.c 	__iomem void *mdio;
mdio              353 drivers/net/dsa/lantiq_gswip.c 	return __raw_readl(priv->mdio + (offset * 4));
mdio              358 drivers/net/dsa/lantiq_gswip.c 	__raw_writel(val, priv->mdio + (offset * 4));
mdio              670 drivers/net/dsa/lantiq_gswip.c 			      (phydev->mdio.addr & GSWIP_MDIO_PHY_ADDR_MASK);
mdio             1845 drivers/net/dsa/lantiq_gswip.c 	priv->mdio = devm_platform_ioremap_resource(pdev, 1);
mdio             1846 drivers/net/dsa/lantiq_gswip.c 	if (IS_ERR(priv->mdio))
mdio             1847 drivers/net/dsa/lantiq_gswip.c 		return PTR_ERR(priv->mdio);
mdio               60 drivers/net/dsa/realtek-smi-core.c 	gpiod_direction_output(smi->mdio, 1);
mdio               72 drivers/net/dsa/realtek-smi-core.c 	gpiod_set_value(smi->mdio, 0);
mdio               76 drivers/net/dsa/realtek-smi-core.c 	gpiod_set_value(smi->mdio, 1);
mdio               82 drivers/net/dsa/realtek-smi-core.c 	gpiod_set_value(smi->mdio, 0);
mdio               85 drivers/net/dsa/realtek-smi-core.c 	gpiod_set_value(smi->mdio, 1);
mdio              100 drivers/net/dsa/realtek-smi-core.c 	gpiod_direction_input(smi->mdio);
mdio              110 drivers/net/dsa/realtek-smi-core.c 		gpiod_set_value(smi->mdio, !!(data & (1 << (len - 1))));
mdio              122 drivers/net/dsa/realtek-smi-core.c 	gpiod_direction_input(smi->mdio);
mdio              132 drivers/net/dsa/realtek-smi-core.c 		u = !!gpiod_get_value(smi->mdio);
mdio              138 drivers/net/dsa/realtek-smi-core.c 	gpiod_direction_output(smi->mdio, 0);
mdio              435 drivers/net/dsa/realtek-smi-core.c 	smi->mdio = devm_gpiod_get_optional(dev, "mdio", GPIOD_OUT_LOW);
mdio              436 drivers/net/dsa/realtek-smi-core.c 	if (IS_ERR(smi->mdio))
mdio              437 drivers/net/dsa/realtek-smi-core.c 		return PTR_ERR(smi->mdio);
mdio               47 drivers/net/dsa/realtek-smi-core.h 	struct gpio_desc	*mdio;
mdio             1155 drivers/net/ethernet/aeroflex/greth.c 	while (GRETH_REGLOAD(greth->regs->mdio) & GRETH_MII_BUSY) {
mdio             1170 drivers/net/ethernet/aeroflex/greth.c 	GRETH_REGSAVE(greth->regs->mdio, ((phy & 0x1F) << 11) | ((reg & 0x1F) << 6) | 2);
mdio             1175 drivers/net/ethernet/aeroflex/greth.c 	if (!(GRETH_REGLOAD(greth->regs->mdio) & GRETH_MII_NVALID)) {
mdio             1176 drivers/net/ethernet/aeroflex/greth.c 		data = (GRETH_REGLOAD(greth->regs->mdio) >> 16) & 0xFFFF;
mdio             1191 drivers/net/ethernet/aeroflex/greth.c 	GRETH_REGSAVE(greth->regs->mdio,
mdio             1260 drivers/net/ethernet/aeroflex/greth.c 	phy = phy_find_first(greth->mdio);
mdio             1296 drivers/net/ethernet/aeroflex/greth.c 	greth->mdio = mdiobus_alloc();
mdio             1297 drivers/net/ethernet/aeroflex/greth.c 	if (!greth->mdio) {
mdio             1301 drivers/net/ethernet/aeroflex/greth.c 	greth->mdio->name = "greth-mdio";
mdio             1302 drivers/net/ethernet/aeroflex/greth.c 	snprintf(greth->mdio->id, MII_BUS_ID_SIZE, "%s-%d", greth->mdio->name, greth->irq);
mdio             1303 drivers/net/ethernet/aeroflex/greth.c 	greth->mdio->read = greth_mdio_read;
mdio             1304 drivers/net/ethernet/aeroflex/greth.c 	greth->mdio->write = greth_mdio_write;
mdio             1305 drivers/net/ethernet/aeroflex/greth.c 	greth->mdio->priv = greth;
mdio             1307 drivers/net/ethernet/aeroflex/greth.c 	ret = mdiobus_register(greth->mdio);
mdio             1335 drivers/net/ethernet/aeroflex/greth.c 	mdiobus_unregister(greth->mdio);
mdio             1337 drivers/net/ethernet/aeroflex/greth.c 	mdiobus_free(greth->mdio);
mdio             1404 drivers/net/ethernet/aeroflex/greth.c 	greth->phyaddr = (GRETH_REGLOAD(regs->mdio) >> 11) & 0x1F;
mdio             1521 drivers/net/ethernet/aeroflex/greth.c 	mdiobus_unregister(greth->mdio);
mdio             1541 drivers/net/ethernet/aeroflex/greth.c 	mdiobus_unregister(greth->mdio);
mdio               87 drivers/net/ethernet/aeroflex/greth.h 	u32 mdio;
mdio              127 drivers/net/ethernet/aeroflex/greth.h 	struct mii_bus *mdio;
mdio             1239 drivers/net/ethernet/agere/et131x.c 	return et131x_phy_mii_read(adapter, phydev->mdio.addr, reg, value);
mdio             1466 drivers/net/ethernet/agere/et131x.c 	et131x_mii_write(adapter, phydev->mdio.addr, MII_BMCR, data);
mdio             1494 drivers/net/ethernet/agere/et131x.c 		et131x_mii_write(adapter, phydev->mdio.addr, PHY_LED_2, lcr2);
mdio             3180 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3183 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3185 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3187 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3200 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3214 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3217 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3219 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio             3221 drivers/net/ethernet/agere/et131x.c 			et131x_mii_write(adapter, phydev->mdio.addr,
mdio              474 drivers/net/ethernet/altera/altera_tse.h 	struct mii_bus *mdio;
mdio              146 drivers/net/ethernet/altera/altera_tse_main.c 	struct mii_bus *mdio = NULL;
mdio              163 drivers/net/ethernet/altera/altera_tse_main.c 	mdio = mdiobus_alloc();
mdio              164 drivers/net/ethernet/altera/altera_tse_main.c 	if (mdio == NULL) {
mdio              169 drivers/net/ethernet/altera/altera_tse_main.c 	mdio->name = ALTERA_TSE_RESOURCE_NAME;
mdio              170 drivers/net/ethernet/altera/altera_tse_main.c 	mdio->read = &altera_tse_mdio_read;
mdio              171 drivers/net/ethernet/altera/altera_tse_main.c 	mdio->write = &altera_tse_mdio_write;
mdio              172 drivers/net/ethernet/altera/altera_tse_main.c 	snprintf(mdio->id, MII_BUS_ID_SIZE, "%s-%u", mdio->name, id);
mdio              174 drivers/net/ethernet/altera/altera_tse_main.c 	mdio->priv = dev;
mdio              175 drivers/net/ethernet/altera/altera_tse_main.c 	mdio->parent = priv->device;
mdio              177 drivers/net/ethernet/altera/altera_tse_main.c 	ret = of_mdiobus_register(mdio, mdio_node);
mdio              180 drivers/net/ethernet/altera/altera_tse_main.c 			   mdio->id);
mdio              185 drivers/net/ethernet/altera/altera_tse_main.c 		netdev_info(dev, "MDIO bus %s: created\n", mdio->id);
mdio              187 drivers/net/ethernet/altera/altera_tse_main.c 	priv->mdio = mdio;
mdio              190 drivers/net/ethernet/altera/altera_tse_main.c 	mdiobus_free(mdio);
mdio              191 drivers/net/ethernet/altera/altera_tse_main.c 	mdio = NULL;
mdio              199 drivers/net/ethernet/altera/altera_tse_main.c 	if (priv->mdio == NULL)
mdio              204 drivers/net/ethernet/altera/altera_tse_main.c 			    priv->mdio->id);
mdio              206 drivers/net/ethernet/altera/altera_tse_main.c 	mdiobus_unregister(priv->mdio);
mdio              207 drivers/net/ethernet/altera/altera_tse_main.c 	mdiobus_free(priv->mdio);
mdio              208 drivers/net/ethernet/altera/altera_tse_main.c 	priv->mdio = NULL;
mdio              700 drivers/net/ethernet/altera/altera_tse_main.c 			 priv->mdio->id, priv->phy_addr);
mdio              713 drivers/net/ethernet/altera/altera_tse_main.c 		phydev = phy_find_first(priv->mdio);
mdio              808 drivers/net/ethernet/altera/altera_tse_main.c 			if (!priv->mdio) {
mdio              847 drivers/net/ethernet/altera/altera_tse_main.c 		   phydev->mdio.addr, phydev->phy_id, phydev->link);
mdio              264 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 		struct mii_bus *bus = ndev->phydev->mdio.bus;
mdio              323 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 		struct mii_bus *bus = ndev->phydev->mdio.bus;
mdio              895 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 				  struct mii_bus *mdio)
mdio              919 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 		return of_mdiobus_register(mdio, mdio_np);
mdio              923 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	mdio->phy_mask = ~0;
mdio              926 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	ret = mdiobus_register(mdio);
mdio              936 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	phy = xgene_enet_phy_register(mdio, phy_addr);
mdio             1063 drivers/net/ethernet/atheros/alx/hw.c 	hw->mdio.mmds = devs1 | devs2 << 16;
mdio              491 drivers/net/ethernet/atheros/alx/hw.h 	struct mdio_if_info mdio;
mdio             1571 drivers/net/ethernet/atheros/alx/main.c 	if (prtad != hw->mdio.prtad)
mdio             1590 drivers/net/ethernet/atheros/alx/main.c 	if (prtad != hw->mdio.prtad)
mdio             1606 drivers/net/ethernet/atheros/alx/main.c 	return mdio_mii_ioctl(&alx->hw.mdio, if_mii(ifr), cmd);
mdio             1814 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.prtad = 0;
mdio             1815 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.mmds = 0;
mdio             1816 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.dev = netdev;
mdio             1817 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.mode_support = MDIO_SUPPORTS_C45 |
mdio             1820 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.mdio_read = alx_mdio_read;
mdio             1821 drivers/net/ethernet/atheros/alx/main.c 	hw->mdio.mdio_write = alx_mdio_write;
mdio             2318 drivers/net/ethernet/broadcom/b44.c 	bp->phy_addr = phydev->mdio.addr;
mdio             1539 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h 	struct mdio_if_info	mdio;
mdio              298 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	cmd->base.phy_address = bp->mdio.prtad;
mdio             11621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		bp->mdio.prtad = bp->port.phy_addr;
mdio             11625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		bp->mdio.prtad =
mdio             12926 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	struct mii_ioctl_data *mdio = if_mii(ifr);
mdio             12936 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		   mdio->phy_id, mdio->reg_num, mdio->val_in);
mdio             12937 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		return mdio_mii_ioctl(&bp->mdio, mdio, cmd);
mdio             13382 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.prtad = MDIO_PRTAD_NONE;
mdio             13383 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.mmds = 0;
mdio             13384 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
mdio             13385 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.dev = dev;
mdio             13386 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.mdio_read = bnx2x_mdio_read;
mdio             13387 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	bp->mdio.mdio_write = bnx2x_mdio_write;
mdio             9392 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	struct mii_ioctl_data *mdio = if_mii(ifr);
mdio             9398 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		mdio->phy_id = bp->link_info.phy_addr;
mdio             9407 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		rc = bnxt_hwrm_port_phy_read(bp, mdio->phy_id, mdio->reg_num,
mdio             9409 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		mdio->val_out = mii_regval;
mdio             9417 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		return bnxt_hwrm_port_phy_write(bp, mdio->phy_id, mdio->reg_num,
mdio             9418 drivers/net/ethernet/broadcom/bnxt/bnxt.c 						mdio->val_in);
mdio              520 drivers/net/ethernet/broadcom/genet/bcmmii.c 			put_device(&phydev->mdio.dev);
mdio             2339 drivers/net/ethernet/broadcom/sb1250-mac.c 	phy_dev = phy_connect(dev, dev_name(&phy_dev->mdio.dev),
mdio             1521 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 			put_device(&bgx->lmac[lmac].phydev->mdio.dev);
mdio              105 drivers/net/ethernet/chelsio/cxgb/cphy.h 	struct mdio_if_info mdio;
mdio              113 drivers/net/ethernet/chelsio/cxgb/cphy.h 	int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd,
mdio              122 drivers/net/ethernet/chelsio/cxgb/cphy.h 	return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
mdio              147 drivers/net/ethernet/chelsio/cxgb/cphy.h 		phy->mdio.prtad = phy_addr;
mdio              148 drivers/net/ethernet/chelsio/cxgb/cphy.h 		phy->mdio.mmds = phy_ops->mmds;
mdio              149 drivers/net/ethernet/chelsio/cxgb/cphy.h 		phy->mdio.mode_support = mdio_ops->mode_support;
mdio              150 drivers/net/ethernet/chelsio/cxgb/cphy.h 		phy->mdio.mdio_read = mdio_ops->read;
mdio              151 drivers/net/ethernet/chelsio/cxgb/cphy.h 		phy->mdio.mdio_write = mdio_ops->write;
mdio              153 drivers/net/ethernet/chelsio/cxgb/cphy.h 	phy->mdio.dev = dev;
mdio              586 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	cmd->base.phy_address = p->phy->mdio.prtad;
mdio              821 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	struct mdio_if_info *mdio = &adapter->port[dev->if_port].phy->mdio;
mdio              823 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	return mdio_mii_ioctl(mdio, if_mii(req), cmd);
mdio              103 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL;
mdio              137 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		phy->mdio.prtad, dev_addr, word_addr);
mdio              147 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		err = mdio_set_flag(&phy->mdio, phy->mdio.prtad,
mdio              886 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		phy->mdio.prtad = 1;
mdio              900 drivers/net/ethernet/chelsio/cxgb3/ael1002.c 		int prtad = phy->mdio.prtad;
mdio               75 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 			phy->mdio.prtad, err);
mdio              122 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 	return mdio_set_flag(&phy->mdio, phy->mdio.prtad,
mdio              133 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 		err = mdio_set_flag(&phy->mdio, phy->mdio.prtad,
mdio              146 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 		err = mdio_set_flag(&phy->mdio, phy->mdio.prtad,
mdio              196 drivers/net/ethernet/chelsio/cxgb3/aq100x.c 	return mdio_set_flag(&phy->mdio, phy->mdio.prtad,
mdio              556 drivers/net/ethernet/chelsio/cxgb3/common.h 	struct mdio_if_info mdio;
mdio              564 drivers/net/ethernet/chelsio/cxgb3/common.h 	int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg);
mdio              572 drivers/net/ethernet/chelsio/cxgb3/common.h 	return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd,
mdio              587 drivers/net/ethernet/chelsio/cxgb3/common.h 		phy->mdio.prtad = phy_addr;
mdio              588 drivers/net/ethernet/chelsio/cxgb3/common.h 		phy->mdio.mmds = phy_ops->mmds;
mdio              589 drivers/net/ethernet/chelsio/cxgb3/common.h 		phy->mdio.mode_support = mdio_ops->mode_support;
mdio              590 drivers/net/ethernet/chelsio/cxgb3/common.h 		phy->mdio.mdio_read = mdio_ops->read;
mdio              591 drivers/net/ethernet/chelsio/cxgb3/common.h 		phy->mdio.mdio_write = mdio_ops->write;
mdio             1827 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	cmd->base.phy_address = p->phy.mdio.prtad;
mdio             2549 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 		return mdio_mii_ioctl(&pi->phy.mdio, data, cmd);
mdio             3745 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c 		p->phy.mdio.dev = adapter->port[i];
mdio             3803 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c 		ret = pti->phy_prep(&p->phy, adapter, p->phy.mdio.prtad, NULL);
mdio             6565 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	c.u.mdio.paddr_mmd = cpu_to_be16(FW_LDST_CMD_PADDR_V(phy_addr) |
mdio             6567 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	c.u.mdio.raddr = cpu_to_be16(reg);
mdio             6571 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		*valp = be16_to_cpu(c.u.mdio.rval);
mdio             6598 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	c.u.mdio.paddr_mmd = cpu_to_be16(FW_LDST_CMD_PADDR_V(phy_addr) |
mdio             6600 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	c.u.mdio.raddr = cpu_to_be16(reg);
mdio             6601 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	c.u.mdio.rval = cpu_to_be16(val);
mdio              913 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 		} mdio;
mdio              215 drivers/net/ethernet/ethoc.c 	struct mii_bus *mdio;
mdio              702 drivers/net/ethernet/ethoc.c 		phy = mdiobus_get_phy(priv->mdio, priv->phy_id);
mdio              704 drivers/net/ethernet/ethoc.c 		phy = phy_find_first(priv->mdio);
mdio              783 drivers/net/ethernet/ethoc.c 	struct mii_ioctl_data *mdio = if_mii(ifr);
mdio              790 drivers/net/ethernet/ethoc.c 		if (mdio->phy_id >= PHY_MAX_ADDR)
mdio              793 drivers/net/ethernet/ethoc.c 		phy = mdiobus_get_phy(priv->mdio, mdio->phy_id);
mdio             1194 drivers/net/ethernet/ethoc.c 	priv->mdio = mdiobus_alloc();
mdio             1195 drivers/net/ethernet/ethoc.c 	if (!priv->mdio) {
mdio             1200 drivers/net/ethernet/ethoc.c 	priv->mdio->name = "ethoc-mdio";
mdio             1201 drivers/net/ethernet/ethoc.c 	snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "%s-%d",
mdio             1202 drivers/net/ethernet/ethoc.c 			priv->mdio->name, pdev->id);
mdio             1203 drivers/net/ethernet/ethoc.c 	priv->mdio->read = ethoc_mdio_read;
mdio             1204 drivers/net/ethernet/ethoc.c 	priv->mdio->write = ethoc_mdio_write;
mdio             1205 drivers/net/ethernet/ethoc.c 	priv->mdio->priv = priv;
mdio             1207 drivers/net/ethernet/ethoc.c 	ret = mdiobus_register(priv->mdio);
mdio             1241 drivers/net/ethernet/ethoc.c 	mdiobus_unregister(priv->mdio);
mdio             1242 drivers/net/ethernet/ethoc.c 	mdiobus_free(priv->mdio);
mdio             1264 drivers/net/ethernet/ethoc.c 		if (priv->mdio) {
mdio             1265 drivers/net/ethernet/ethoc.c 			mdiobus_unregister(priv->mdio);
mdio             1266 drivers/net/ethernet/ethoc.c 			mdiobus_free(priv->mdio);
mdio              183 drivers/net/ethernet/freescale/enetc/enetc_mdio.c 	pf->mdio = bus;
mdio              190 drivers/net/ethernet/freescale/enetc/enetc_mdio.c 	if (pf->mdio)
mdio              191 drivers/net/ethernet/freescale/enetc/enetc_mdio.c 		mdiobus_unregister(pf->mdio);
mdio               46 drivers/net/ethernet/freescale/enetc/enetc_pf.h 	struct mii_bus *mdio; /* saved for cleanup */
mdio             1417 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		   dtsec->tbiphy->mdio.addr);
mdio             1559 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	put_device(&dtsec->tbiphy->mdio.dev);
mdio             1097 drivers/net/ethernet/freescale/fman/fman_memac.c 			phy_addr = memac->pcsphy->mdio.addr;
mdio             1099 drivers/net/ethernet/freescale/fman/fman_memac.c 			memac->pcsphy->mdio.addr = qsmgii_phy_addr;
mdio             1105 drivers/net/ethernet/freescale/fman/fman_memac.c 			memac->pcsphy->mdio.addr = phy_addr;
mdio             1148 drivers/net/ethernet/freescale/fman/fman_memac.c 		put_device(&memac->pcsphy->mdio.dev);
mdio              834 drivers/net/ethernet/freescale/fman/mac.c 		put_device(&phy->mdio.dev);
mdio              237 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	struct mii_bus *mii = dev->phydev->mdio.bus;
mdio              346 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	struct fec_info *feci = dev->phydev->mdio.bus->priv;
mdio              107 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c 	.set_mdio_data = mdio,
mdio              233 drivers/net/ethernet/freescale/fsl_pq_mdio.c 	struct fsl_pq_mdio __iomem *mdio = container_of(p, struct fsl_pq_mdio, mii);
mdio              235 drivers/net/ethernet/freescale/fsl_pq_mdio.c 	return &mdio->utbipar;
mdio             1649 drivers/net/ethernet/freescale/gianfar.c 		put_device(&tbiphy->mdio.dev);
mdio             1664 drivers/net/ethernet/freescale/gianfar.c 	put_device(&tbiphy->mdio.dev);
mdio             1386 drivers/net/ethernet/freescale/ucc_geth.c 		put_device(&tbiphy->mdio.dev);
mdio             1706 drivers/net/ethernet/freescale/ucc_geth.c 		put_device(&tbiphy->mdio.dev);
mdio             1717 drivers/net/ethernet/freescale/ucc_geth.c 	put_device(&tbiphy->mdio.dev);
mdio              686 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_register_phydev(struct mii_bus *mdio, struct hns_mac_cb *mac_cb,
mdio              706 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	phy = get_phy_device(mdio, addr, is_c45);
mdio              710 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	phy->irq = mdio->irq[addr];
mdio              718 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 		dev_err(&mdio->dev, "registered phy fail at address %i\n",
mdio              725 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	dev_dbg(&mdio->dev, "registered phy at address %i\n", addr);
mdio              845 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 			put_device(&mac_cb->phy_dev->mdio.dev);
mdio              864 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 			put_device(&mac_cb->phy_dev->mdio.dev);
mdio               68 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	if (!phy_dev || !phy_dev->mdio.bus) {
mdio             2650 drivers/net/ethernet/ibm/emac/core.c 	dev->phy.address = dev->phy_dev->mdio.addr;
mdio             2713 drivers/net/ethernet/ibm/emac/core.c 			put_device(&dev->phy_dev->mdio.dev);
mdio             8825 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (prtad != hw->phy.mdio.prtad)
mdio             8848 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (prtad != hw->phy.mdio.prtad)
mdio             8867 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		return mdio_mii_ioctl(&adapter->hw.phy.mdio, if_mii(req), cmd);
mdio             10843 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.prtad = MDIO_PRTAD_NONE;
mdio             10844 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.mmds = 0;
mdio             10845 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
mdio             10846 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.dev = netdev;
mdio             10847 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.mdio_read = ixgbe_mdio_read;
mdio             10848 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	hw->phy.mdio.mdio_write = ixgbe_mdio_write;
mdio              232 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 	hw->phy.mdio.prtad = phy_addr;
mdio              233 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 	if (mdio45_probe(&hw->phy.mdio, phy_addr) != 0)
mdio              300 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		hw->phy.mdio.prtad = MDIO_PRTAD_NONE;
mdio              479 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
mdio              507 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
mdio              583 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
mdio              612 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 		   (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) |
mdio              949 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c 	hw->phy.mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_SUPPORTS_C22;
mdio             3577 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h 	struct mdio_if_info		mdio;
mdio             1815 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	if (hw->phy.mdio.prtad == MDIO_PRTAD_NONE)
mdio             3175 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 		hw->phy.mdio.prtad = (hw->phy.nw_mng_if_sel &
mdio             3146 drivers/net/ethernet/marvell/mv643xx_eth.c 			phy_addr_set(mp, phydev->mdio.addr);
mdio              134 drivers/net/ethernet/qualcomm/emac/emac-phy.c 			get_device(&adpt->phydev->mdio.dev);
mdio              715 drivers/net/ethernet/qualcomm/emac/emac.c 	put_device(&adpt->phydev->mdio.dev);
mdio              735 drivers/net/ethernet/qualcomm/emac/emac.c 	put_device(&adpt->phydev->mdio.dev);
mdio             6763 drivers/net/ethernet/realtek/r8169_main.c 	mdiobus_unregister(tp->phydev->mdio.bus);
mdio             7263 drivers/net/ethernet/realtek/r8169_main.c 	mdiobus_unregister(tp->phydev->mdio.bus);
mdio             2165 drivers/net/ethernet/sfc/efx.c 	return mdio_mii_ioctl(&efx->mdio, data, cmd);
mdio             3046 drivers/net/ethernet/sfc/efx.c 	efx->mdio.dev = net_dev;
mdio              569 drivers/net/ethernet/sfc/ethtool.c 	return mdio45_nway_restart(&efx->mdio);
mdio             2010 drivers/net/ethernet/sfc/falcon/efx.c 	return mdio_mii_ioctl(&efx->mdio, data, cmd);
mdio             2666 drivers/net/ethernet/sfc/falcon/efx.c 	efx->mdio.dev = net_dev;
mdio              547 drivers/net/ethernet/sfc/falcon/ethtool.c 	return mdio45_nway_restart(&efx->mdio);
mdio             1094 drivers/net/ethernet/sfc/falcon/falcon.c 		(!(efx->mdio.mmds & (1 << MDIO_MMD_PHYXS)) ||
mdio             1701 drivers/net/ethernet/sfc/falcon/falcon.c 	efx->mdio.mdio_read = falcon_mdio_read;
mdio             1702 drivers/net/ethernet/sfc/falcon/falcon.c 	efx->mdio.mdio_write = falcon_mdio_write;
mdio             1716 drivers/net/ethernet/sfc/falcon/falcon.c 	if (efx->mdio.mmds & MDIO_DEVS_AN)
mdio             2192 drivers/net/ethernet/sfc/falcon/falcon.c 	efx->mdio.prtad = nvconfig->board_v2.port0_phy_addr;
mdio             2209 drivers/net/ethernet/sfc/falcon/falcon.c 		  efx->phy_type, efx->mdio.prtad);
mdio              175 drivers/net/ethernet/sfc/falcon/mdio_10g.c 	return mdio45_links_ok(&efx->mdio, mmd_mask);
mdio              277 drivers/net/ethernet/sfc/falcon/mdio_10g.c 	WARN_ON(!(efx->mdio.mmds & MDIO_DEVS_AN));
mdio              303 drivers/net/ethernet/sfc/falcon/mdio_10g.c 	WARN_ON(!(efx->mdio.mmds & MDIO_DEVS_AN));
mdio              313 drivers/net/ethernet/sfc/falcon/mdio_10g.c 	int devad = __ffs(efx->mdio.mmds);
mdio              324 drivers/net/ethernet/sfc/falcon/mdio_10g.c 			  "no MDIO PHY present with ID %d\n", efx->mdio.prtad);
mdio              327 drivers/net/ethernet/sfc/falcon/mdio_10g.c 		rc = ef4_mdio_check_mmds(efx, efx->mdio.mmds);
mdio               24 drivers/net/ethernet/sfc/falcon/mdio_10g.h 	return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr);
mdio               30 drivers/net/ethernet/sfc/falcon/mdio_10g.h 	efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value);
mdio              102 drivers/net/ethernet/sfc/falcon/mdio_10g.h 	mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state);
mdio              862 drivers/net/ethernet/sfc/falcon/net_driver.h 	struct mdio_if_info mdio;
mdio              351 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 	efx->mdio.mmds = QT202X_REQUIRED_DEVS;
mdio              352 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 	efx->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
mdio              415 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 			&efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD,
mdio              440 drivers/net/ethernet/sfc/falcon/qt202x_phy.c 	mdio45_ethtool_ksettings_get(&efx->mdio, cmd);
mdio              174 drivers/net/ethernet/sfc/falcon/tenxpress.c 	efx->mdio.mmds = TENXPRESS_REQUIRED_DEVS;
mdio              175 drivers/net/ethernet/sfc/falcon/tenxpress.c 	efx->mdio.mode_support = MDIO_SUPPORTS_C45;
mdio              453 drivers/net/ethernet/sfc/falcon/tenxpress.c 	mdio45_ethtool_ksettings_get_npage(&efx->mdio, cmd, adv, lpa);
mdio              332 drivers/net/ethernet/sfc/falcon/txc43128_phy.c 	efx->mdio.mmds = TXC_REQUIRED_DEVS;
mdio              333 drivers/net/ethernet/sfc/falcon/txc43128_phy.c 	efx->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
mdio              543 drivers/net/ethernet/sfc/falcon/txc43128_phy.c 	mdio45_ethtool_ksettings_get(&efx->mdio, cmd);
mdio              439 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.prtad = phy_data->port;
mdio              440 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22);
mdio              441 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.mode_support = 0;
mdio              443 drivers/net/ethernet/sfc/mcdi_port.c 		efx->mdio.mode_support |= MDIO_SUPPORTS_C22;
mdio              445 drivers/net/ethernet/sfc/mcdi_port.c 		efx->mdio.mode_support |= MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
mdio              602 drivers/net/ethernet/sfc/mcdi_port.c 	cmd->base.mdio_support = (efx->mdio.mode_support &
mdio             1321 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;
mdio             1322 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.mdio_read = efx_mcdi_mdio_read;
mdio             1323 drivers/net/ethernet/sfc/mcdi_port.c 	efx->mdio.mdio_write = efx_mcdi_mdio_write;
mdio             1037 drivers/net/ethernet/sfc/net_driver.h 	struct mdio_if_info mdio;
mdio              314 drivers/net/ethernet/sfc/siena.c 		efx->mdio.prtad = MDIO_PRTAD_NONE;
mdio              868 drivers/net/ethernet/smsc/smsc911x.c 		smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr,
mdio              897 drivers/net/ethernet/smsc/smsc911x.c 	smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0);
mdio             1026 drivers/net/ethernet/smsc/smsc911x.c 		   phydev->mdio.addr, phydev->phy_id);
mdio             2004 drivers/net/ethernet/smsc/smsc911x.c 		data[j++] = smsc911x_mii_read(phy_dev->mdio.bus,
mdio             2005 drivers/net/ethernet/smsc/smsc911x.c 					      phy_dev->mdio.addr, i);
mdio              269 drivers/net/ethernet/smsc/smsc9420.c 		data[j++] = smsc9420_mii_read(phy_dev->mdio.bus,
mdio              270 drivers/net/ethernet/smsc/smsc9420.c 					      phy_dev->mdio.addr, i);
mdio              261 drivers/net/ethernet/socionext/sni_ave.c 	struct mii_bus		*mdio;
mdio             1204 drivers/net/ethernet/socionext/sni_ave.c 	ret = of_mdiobus_register(priv->mdio, mdio_np);
mdio             1237 drivers/net/ethernet/socionext/sni_ave.c 	mdiobus_unregister(priv->mdio);
mdio             1254 drivers/net/ethernet/socionext/sni_ave.c 	mdiobus_unregister(priv->mdio);
mdio             1687 drivers/net/ethernet/socionext/sni_ave.c 	priv->mdio = devm_mdiobus_alloc(dev);
mdio             1688 drivers/net/ethernet/socionext/sni_ave.c 	if (!priv->mdio) {
mdio             1692 drivers/net/ethernet/socionext/sni_ave.c 	priv->mdio->priv = ndev;
mdio             1693 drivers/net/ethernet/socionext/sni_ave.c 	priv->mdio->parent = dev;
mdio             1694 drivers/net/ethernet/socionext/sni_ave.c 	priv->mdio->read = ave_mdiobus_read;
mdio             1695 drivers/net/ethernet/socionext/sni_ave.c 	priv->mdio->write = ave_mdiobus_write;
mdio             1696 drivers/net/ethernet/socionext/sni_ave.c 	priv->mdio->name = "uniphier-mdio";
mdio             1697 drivers/net/ethernet/socionext/sni_ave.c 	snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "%s-%x",
mdio              323 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	bool mdio = !of_phy_is_fixed_link(np);
mdio              345 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		mdio = true;
mdio              348 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (mdio) {
mdio             2598 drivers/net/ethernet/ti/cpsw.c 			struct platform_device *mdio;
mdio             2606 drivers/net/ethernet/ti/cpsw.c 			mdio = of_find_device_by_node(mdio_node);
mdio             2608 drivers/net/ethernet/ti/cpsw.c 			if (!mdio) {
mdio             2614 drivers/net/ethernet/ti/cpsw.c 				 PHY_ID_FMT, mdio->name, phyid);
mdio             2615 drivers/net/ethernet/ti/cpsw.c 			put_device(&mdio->dev);
mdio              427 drivers/net/ethernet/ti/davinci_mdio.c 				 phy->mdio.addr, phydev_name(phy),
mdio              845 drivers/net/ethernet/xilinx/xilinx_emaclite.c 			put_device(&phydev->mdio.dev);
mdio               26 drivers/net/mdio.c int mdio45_probe(struct mdio_if_info *mdio, int prtad)
mdio               34 drivers/net/mdio.c 		stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2);
mdio               40 drivers/net/mdio.c 		devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1);
mdio               41 drivers/net/mdio.c 		devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2);
mdio               45 drivers/net/mdio.c 		mdio->prtad = prtad;
mdio               46 drivers/net/mdio.c 		mdio->mmds = devs1 | (devs2 << 16);
mdio               66 drivers/net/mdio.c int mdio_set_flag(const struct mdio_if_info *mdio,
mdio               70 drivers/net/mdio.c 	int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr);
mdio               81 drivers/net/mdio.c 	return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val);
mdio               94 drivers/net/mdio.c int mdio45_links_ok(const struct mdio_if_info *mdio, u32 mmd_mask)
mdio              100 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad,
mdio              110 drivers/net/mdio.c 			mdio->mdio_read(mdio->dev, mdio->prtad,
mdio              114 drivers/net/mdio.c 				mdio->mdio_read(mdio->dev, mdio->prtad,
mdio              118 drivers/net/mdio.c 			reg = mdio->mdio_read(mdio->dev, mdio->prtad,
mdio              137 drivers/net/mdio.c int mdio45_nway_restart(const struct mdio_if_info *mdio)
mdio              139 drivers/net/mdio.c 	if (!(mdio->mmds & MDIO_DEVS_AN))
mdio              142 drivers/net/mdio.c 	mdio_set_flag(mdio, mdio->prtad, MDIO_MMD_AN, MDIO_CTRL1,
mdio              148 drivers/net/mdio.c static u32 mdio45_get_an(const struct mdio_if_info *mdio, u16 addr)
mdio              153 drivers/net/mdio.c 	reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN, addr);
mdio              183 drivers/net/mdio.c void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
mdio              194 drivers/net/mdio.c 	ecmd->phy_address = mdio->prtad;
mdio              196 drivers/net/mdio.c 		mdio->mode_support & (MDIO_SUPPORTS_C45 | MDIO_SUPPORTS_C22);
mdio              198 drivers/net/mdio.c 	reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              207 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              234 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              242 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              257 drivers/net/mdio.c 	if (mdio->mmds & MDIO_DEVS_AN) {
mdio              259 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN,
mdio              265 drivers/net/mdio.c 				mdio45_get_an(mdio, MDIO_AN_ADVERTISE) |
mdio              276 drivers/net/mdio.c 		int an_stat = mdio->mdio_read(mdio->dev, mdio->prtad,
mdio              283 drivers/net/mdio.c 				mdio45_get_an(mdio, MDIO_AN_LPA) | npage_lpa;
mdio              311 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              324 drivers/net/mdio.c 		switch (mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              355 drivers/net/mdio.c void mdio45_ethtool_ksettings_get_npage(const struct mdio_if_info *mdio,
mdio              365 drivers/net/mdio.c 	cmd->base.phy_address = mdio->prtad;
mdio              367 drivers/net/mdio.c 		mdio->mode_support & (MDIO_SUPPORTS_C45 | MDIO_SUPPORTS_C22);
mdio              369 drivers/net/mdio.c 	reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              378 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              405 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              413 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              428 drivers/net/mdio.c 	if (mdio->mmds & MDIO_DEVS_AN) {
mdio              430 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_AN,
mdio              436 drivers/net/mdio.c 				mdio45_get_an(mdio, MDIO_AN_ADVERTISE) |
mdio              447 drivers/net/mdio.c 		int an_stat = mdio->mdio_read(mdio->dev, mdio->prtad,
mdio              455 drivers/net/mdio.c 				mdio45_get_an(mdio, MDIO_AN_LPA) | npage_lpa;
mdio              483 drivers/net/mdio.c 		reg = mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              502 drivers/net/mdio.c 		switch (mdio->mdio_read(mdio->dev, mdio->prtad, MDIO_MMD_PMAPMD,
mdio              527 drivers/net/mdio.c int mdio_mii_ioctl(const struct mdio_if_info *mdio,
mdio              536 drivers/net/mdio.c 		if (mdio->prtad == MDIO_PRTAD_NONE)
mdio              538 drivers/net/mdio.c 		mii_data->phy_id = mdio->prtad;
mdio              549 drivers/net/mdio.c 	if ((mdio->mode_support & MDIO_SUPPORTS_C45) &&
mdio              553 drivers/net/mdio.c 	} else if ((mdio->mode_support & MDIO_SUPPORTS_C22) &&
mdio              558 drivers/net/mdio.c 	} else if ((mdio->mode_support & MDIO_EMULATE_C22) &&
mdio              559 drivers/net/mdio.c 		   mdio->prtad != MDIO_PRTAD_NONE &&
mdio              560 drivers/net/mdio.c 		   mii_data->phy_id == mdio->prtad) {
mdio              562 drivers/net/mdio.c 		prtad = mdio->prtad;
mdio              568 drivers/net/mdio.c 			devad = __ffs(mdio->mmds);
mdio              572 drivers/net/mdio.c 			if (!(mdio->mmds & MDIO_DEVS_AN))
mdio              588 drivers/net/mdio.c 		int rc = mdio->mdio_read(mdio->dev, prtad, devad, addr);
mdio              594 drivers/net/mdio.c 		return mdio->mdio_write(mdio->dev, prtad, devad, addr,
mdio              200 drivers/net/phy/adin.c 	struct device *dev = &phydev->mdio.dev;
mdio              480 drivers/net/phy/adin.c 	struct mii_bus *bus = phydev->mdio.bus;
mdio              481 drivers/net/phy/adin.c 	int phy_addr = phydev->mdio.addr;
mdio              500 drivers/net/phy/adin.c 	struct mii_bus *bus = phydev->mdio.bus;
mdio              501 drivers/net/phy/adin.c 	int phy_addr = phydev->mdio.addr;
mdio              716 drivers/net/phy/adin.c 	struct device *dev = &phydev->mdio.dev;
mdio              779 drivers/net/phy/adin.c MODULE_DEVICE_TABLE(mdio, adin_tbl);
mdio               76 drivers/net/phy/amd.c MODULE_DEVICE_TABLE(mdio, amd_tbl);
mdio              226 drivers/net/phy/aquantia_hwmon.c 	struct device *dev = &phydev->mdio.dev;
mdio              598 drivers/net/phy/aquantia_main.c 	phydev->priv = devm_kzalloc(&phydev->mdio.dev,
mdio              700 drivers/net/phy/aquantia_main.c MODULE_DEVICE_TABLE(mdio, aqr_tbl);
mdio              245 drivers/net/phy/at803x.c 	struct device *dev = &phydev->mdio.dev;
mdio              323 drivers/net/phy/at803x.c 	if (phydev->state == PHY_NOLINK && phydev->mdio.reset_gpio) {
mdio              485 drivers/net/phy/at803x.c MODULE_DEVICE_TABLE(mdio, atheros_tbl);
mdio               57 drivers/net/phy/ax88796b.c MODULE_DEVICE_TABLE(mdio, asix_tbl);
mdio              237 drivers/net/phy/bcm-cygnus.c 	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
mdio              243 drivers/net/phy/bcm-cygnus.c 	priv->stats = devm_kcalloc(&phydev->mdio.dev,
mdio              286 drivers/net/phy/bcm-cygnus.c MODULE_DEVICE_TABLE(mdio, bcm_cygnus_phy_tbl);
mdio               92 drivers/net/phy/bcm63xx.c MODULE_DEVICE_TABLE(mdio, bcm63xx_tbl);
mdio              521 drivers/net/phy/bcm7xxx.c 	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
mdio              527 drivers/net/phy/bcm7xxx.c 	priv->stats = devm_kcalloc(&phydev->mdio.dev,
mdio              623 drivers/net/phy/bcm7xxx.c MODULE_DEVICE_TABLE(mdio, bcm7xxx_tbl);
mdio               40 drivers/net/phy/bcm87xx.c 	if (!phydev->mdio.dev.of_node)
mdio               43 drivers/net/phy/bcm87xx.c 	paddr = of_get_property(phydev->mdio.dev.of_node,
mdio              429 drivers/net/phy/broadcom.c 	struct device_node *np = phydev->mdio.dev.of_node;
mdio              580 drivers/net/phy/broadcom.c 	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
mdio              586 drivers/net/phy/broadcom.c 	priv->stats = devm_kcalloc(&phydev->mdio.dev,
mdio              773 drivers/net/phy/broadcom.c MODULE_DEVICE_TABLE(mdio, broadcom_tbl);
mdio              127 drivers/net/phy/cicada.c MODULE_DEVICE_TABLE(mdio, cicada_tbl);
mdio               20 drivers/net/phy/cortina.c 	return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr,
mdio               97 drivers/net/phy/cortina.c MODULE_DEVICE_TABLE(mdio, cortina_tbl);
mdio              189 drivers/net/phy/davicom.c MODULE_DEVICE_TABLE(mdio, davicom_tbl);
mdio              213 drivers/net/phy/dp83640.c 	return mdiobus_write(phydev->mdio.bus, BROADCAST_ADDR, regnum, val);
mdio             1075 drivers/net/phy/dp83640.c 	if (chosen_phy == phydev->mdio.addr)
mdio             1140 drivers/net/phy/dp83640.c 	if (phydev->mdio.addr == BROADCAST_ADDR)
mdio             1143 drivers/net/phy/dp83640.c 	clock = dp83640_clock_get_bus(phydev->mdio.bus);
mdio             1170 drivers/net/phy/dp83640.c 						      &phydev->mdio.dev);
mdio             1196 drivers/net/phy/dp83640.c 	if (phydev->mdio.addr == BROADCAST_ADDR)
mdio             1569 drivers/net/phy/dp83640.c MODULE_DEVICE_TABLE(mdio, dp83640_tbl);
mdio              330 drivers/net/phy/dp83822.c MODULE_DEVICE_TABLE(mdio, dp83822_tbl);
mdio               90 drivers/net/phy/dp83848.c MODULE_DEVICE_TABLE(mdio, dp83848_tbl);
mdio              181 drivers/net/phy/dp83867.c 	struct device *dev = &phydev->mdio.dev;
mdio              301 drivers/net/phy/dp83867.c 	dp83867 = devm_kzalloc(&phydev->mdio.dev, sizeof(*dp83867),
mdio              511 drivers/net/phy/dp83867.c MODULE_DEVICE_TABLE(mdio, dp83867_tbl);
mdio              355 drivers/net/phy/dp83tc811.c MODULE_DEVICE_TABLE(mdio, dp83811_tbl);
mdio              101 drivers/net/phy/et1011c.c MODULE_DEVICE_TABLE(mdio, et1011c_tbl);
mdio               56 drivers/net/phy/fixed_phy.c 	if (!phydev || !phydev->mdio.bus)
mdio               60 drivers/net/phy/fixed_phy.c 		if (fp->addr == phydev->mdio.addr) {
mdio              122 drivers/net/phy/fixed_phy.c 	if (!phydev || !phydev->mdio.bus)
mdio              126 drivers/net/phy/fixed_phy.c 		if (fp->addr == phydev->mdio.addr) {
mdio              279 drivers/net/phy/fixed_phy.c 	phy->mdio.dev.of_node = np;
mdio              336 drivers/net/phy/fixed_phy.c 	of_node_put(phy->mdio.dev.of_node);
mdio              337 drivers/net/phy/fixed_phy.c 	fixed_phy_del(phy->mdio.addr);
mdio               72 drivers/net/phy/icplus.c 		err = mdiobus_write(phydev->mdio.bus, 30, 0, 0x175c);
mdio               77 drivers/net/phy/icplus.c 		err = mdiobus_read(phydev->mdio.bus, 30, 0);
mdio               83 drivers/net/phy/icplus.c 		err = mdiobus_write(phydev->mdio.bus, 29, 31, 0x175c);
mdio               88 drivers/net/phy/icplus.c 		err = mdiobus_write(phydev->mdio.bus, 29, 22, 0x420);
mdio               94 drivers/net/phy/icplus.c 			err = mdiobus_write(phydev->mdio.bus, i,
mdio              101 drivers/net/phy/icplus.c 			err = mdiobus_read(phydev->mdio.bus, i, MII_BMCR);
mdio              108 drivers/net/phy/icplus.c 	if (phydev->mdio.addr != 4) {
mdio              183 drivers/net/phy/icplus.c 	if (phydev->mdio.addr == 4) /* WAN port */
mdio              194 drivers/net/phy/icplus.c 	if (phydev->mdio.addr == 4) /* WAN port */
mdio              202 drivers/net/phy/icplus.c 	struct device *dev = &phydev->mdio.dev;
mdio              351 drivers/net/phy/icplus.c MODULE_DEVICE_TABLE(mdio, icplus_tbl);
mdio              362 drivers/net/phy/intel-xway.c MODULE_DEVICE_TABLE(mdio, xway_gphy_tbl);
mdio              299 drivers/net/phy/lxt.c MODULE_DEVICE_TABLE(mdio, lxt_tbl);
mdio              380 drivers/net/phy/marvell.c 	if (!phydev->mdio.dev.of_node)
mdio              383 drivers/net/phy/marvell.c 	paddr = of_get_property(phydev->mdio.dev.of_node,
mdio             2019 drivers/net/phy/marvell.c 	struct device *dev = &phydev->mdio.dev;
mdio             2040 drivers/net/phy/marvell.c 	struct device *dev = &phydev->mdio.dev;
mdio             2088 drivers/net/phy/marvell.c 	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
mdio             2448 drivers/net/phy/marvell.c MODULE_DEVICE_TABLE(mdio, marvell_tbl);
mdio              166 drivers/net/phy/marvell10g.c 	struct device *dev = &phydev->mdio.dev;
mdio              167 drivers/net/phy/marvell10g.c 	struct mv3310_priv *priv = dev_get_drvdata(&phydev->mdio.dev);
mdio              224 drivers/net/phy/marvell10g.c 		dev_warn(&phydev->mdio.dev,
mdio              229 drivers/net/phy/marvell10g.c 	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
mdio              233 drivers/net/phy/marvell10g.c 	dev_set_drvdata(&phydev->mdio.dev, priv);
mdio              516 drivers/net/phy/marvell10g.c MODULE_DEVICE_TABLE(mdio, mv3310_tbl);
mdio               32 drivers/net/phy/mdio-gpio.c 	struct gpio_desc *mdc, *mdio, *mdo;
mdio               43 drivers/net/phy/mdio-gpio.c 	bitbang->mdio = devm_gpiod_get_index(dev, NULL, MDIO_GPIO_MDIO,
mdio               45 drivers/net/phy/mdio-gpio.c 	if (IS_ERR(bitbang->mdio))
mdio               46 drivers/net/phy/mdio-gpio.c 		return PTR_ERR(bitbang->mdio);
mdio               69 drivers/net/phy/mdio-gpio.c 		gpiod_direction_output(bitbang->mdio, 1);
mdio               71 drivers/net/phy/mdio-gpio.c 		gpiod_direction_input(bitbang->mdio);
mdio               79 drivers/net/phy/mdio-gpio.c 	return gpiod_get_value_cansleep(bitbang->mdio);
mdio               90 drivers/net/phy/mdio-gpio.c 		gpiod_set_value_cansleep(bitbang->mdio, what);
mdio              282 drivers/net/phy/mdio-xgene.c 	struct mii_bus *mdio = context;
mdio              295 drivers/net/phy/mdio-xgene.c 	phy_dev = xgene_enet_phy_register(mdio, phy_addr);
mdio              128 drivers/net/phy/mdio_bus.c 	return container_of(mdiodev, struct phy_device, mdio);
mdio              319 drivers/net/phy/mdio_bus.c static inline void of_mdiobus_link_mdiodev(struct mii_bus *mdio,
mdio              527 drivers/net/phy/mdio_bus.c 	of_mdiobus_link_mdiodev(bus, &phydev->mdio);
mdio              705 drivers/net/phy/mdio_bus.c 	struct mdio_device *mdio = to_mdio_device(dev);
mdio              710 drivers/net/phy/mdio_bus.c 	if (mdio->bus_match)
mdio              711 drivers/net/phy/mdio_bus.c 		return mdio->bus_match(dev, drv);
mdio              259 drivers/net/phy/meson-gxl.c MODULE_DEVICE_TABLE(mdio, meson_gxl_tbl);
mdio              314 drivers/net/phy/micrel.c 	struct device_node *of_node = phydev->mdio.dev.of_node;
mdio              452 drivers/net/phy/micrel.c 	const struct device *dev = &phydev->mdio.dev;
mdio              460 drivers/net/phy/micrel.c 	dev_walker = &phydev->mdio.dev;
mdio              570 drivers/net/phy/micrel.c 	const struct device *dev = &phydev->mdio.dev;
mdio              593 drivers/net/phy/micrel.c 	dev_walker = &phydev->mdio.dev;
mdio              710 drivers/net/phy/micrel.c 	const struct device *dev = &phydev->mdio.dev;
mdio              725 drivers/net/phy/micrel.c 	dev_walker = &phydev->mdio.dev;
mdio              929 drivers/net/phy/micrel.c 	const struct device_node *np = phydev->mdio.dev.of_node;
mdio              934 drivers/net/phy/micrel.c 	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
mdio              957 drivers/net/phy/micrel.c 	clk = devm_clk_get(&phydev->mdio.dev, "rmii-ref");
mdio             1225 drivers/net/phy/micrel.c MODULE_DEVICE_TABLE(mdio, micrel_tbl);
mdio              217 drivers/net/phy/microchip.c 	struct device *dev = &phydev->mdio.dev;
mdio              260 drivers/net/phy/microchip.c 	struct device *dev = &phydev->mdio.dev;
mdio              360 drivers/net/phy/microchip.c MODULE_DEVICE_TABLE(mdio, microchip_tbl);
mdio              239 drivers/net/phy/microchip_t1.c MODULE_DEVICE_TABLE(mdio, microchip_t1_tbl);
mdio              715 drivers/net/phy/mscc.c 	struct device *dev = &phydev->mdio.dev;
mdio              742 drivers/net/phy/mscc.c 	struct device *dev = &phydev->mdio.dev;
mdio              985 drivers/net/phy/mscc.c 	if (unlikely(!mutex_is_locked(&phydev->mdio.bus->mdio_lock))) {
mdio              986 drivers/net/phy/mscc.c 		dev_err(&phydev->mdio.dev, "MDIO bus lock not held!\n");
mdio              990 drivers/net/phy/mscc.c 	return __mdiobus_write(phydev->mdio.bus, priv->base_addr, regnum, val);
mdio              998 drivers/net/phy/mscc.c 	if (unlikely(!mutex_is_locked(&phydev->mdio.bus->mdio_lock))) {
mdio              999 drivers/net/phy/mscc.c 		dev_err(&phydev->mdio.dev, "MDIO bus lock not held!\n");
mdio             1003 drivers/net/phy/mscc.c 	return __mdiobus_read(phydev->mdio.bus, priv->base_addr, regnum);
mdio             1153 drivers/net/phy/mscc.c 		dev_err(&phydev->mdio.dev,
mdio             1291 drivers/net/phy/mscc.c 	struct device *dev = &phydev->mdio.dev;
mdio             1460 drivers/net/phy/mscc.c 	struct device *dev = &phydev->mdio.dev;
mdio             1584 drivers/net/phy/mscc.c 	struct mdio_device **map = phydev->mdio.bus->mdio_map;
mdio             1598 drivers/net/phy/mscc.c 		phy = container_of(map[addr], struct phy_device, mdio);
mdio             1621 drivers/net/phy/mscc.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio             1623 drivers/net/phy/mscc.c 	__mdiobus_write(phydev->mdio.bus, phydev->mdio.addr,
mdio             1625 drivers/net/phy/mscc.c 	addr = __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr,
mdio             1629 drivers/net/phy/mscc.c 	val = __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr,
mdio             1632 drivers/net/phy/mscc.c 		vsc8531->base_addr = phydev->mdio.addr + addr;
mdio             1634 drivers/net/phy/mscc.c 		vsc8531->base_addr = phydev->mdio.addr - addr;
mdio             1708 drivers/net/phy/mscc.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             1731 drivers/net/phy/mscc.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             1992 drivers/net/phy/mscc.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio             2002 drivers/net/phy/mscc.c 		vsc8531->base_addr = phydev->mdio.addr + addr;
mdio             2004 drivers/net/phy/mscc.c 		vsc8531->base_addr = phydev->mdio.addr - addr;
mdio             2094 drivers/net/phy/mscc.c 			mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             2101 drivers/net/phy/mscc.c 		mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             2121 drivers/net/phy/mscc.c 			mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             2128 drivers/net/phy/mscc.c 		mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             2132 drivers/net/phy/mscc.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             2159 drivers/net/phy/mscc.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio             2219 drivers/net/phy/mscc.c 	vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL);
mdio             2229 drivers/net/phy/mscc.c 	vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats,
mdio             2244 drivers/net/phy/mscc.c 	vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL);
mdio             2254 drivers/net/phy/mscc.c 	vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats,
mdio             2270 drivers/net/phy/mscc.c 		dev_err(&phydev->mdio.dev, "Only VSC8584 revB is supported.\n");
mdio             2274 drivers/net/phy/mscc.c 	vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL);
mdio             2284 drivers/net/phy/mscc.c 	vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats,
mdio             2303 drivers/net/phy/mscc.c 	vsc8531 = devm_kzalloc(&phydev->mdio.dev, sizeof(*vsc8531), GFP_KERNEL);
mdio             2314 drivers/net/phy/mscc.c 	vsc8531->stats = devm_kcalloc(&phydev->mdio.dev, vsc8531->nstats,
mdio             2513 drivers/net/phy/mscc.c MODULE_DEVICE_TABLE(mdio, vsc85xx_tbl);
mdio              151 drivers/net/phy/national.c MODULE_DEVICE_TABLE(mdio, ns_tbl);
mdio              332 drivers/net/phy/nxp-tja11xx.c 	struct device *dev = &phydev->mdio.dev;
mdio              399 drivers/net/phy/nxp-tja11xx.c MODULE_DEVICE_TABLE(mdio, tja11xx_tbl);
mdio              246 drivers/net/phy/phy-core.c 	struct device_node *node = phydev->mdio.dev.of_node;
mdio              261 drivers/net/phy/phy-core.c 	struct device_node *node = phydev->mdio.dev.of_node;
mdio              387 drivers/net/phy/phy-core.c 		val = __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, addr);
mdio              389 drivers/net/phy/phy-core.c 		struct mii_bus *bus = phydev->mdio.bus;
mdio              390 drivers/net/phy/phy-core.c 		int phy_addr = phydev->mdio.addr;
mdio              414 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              416 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              444 drivers/net/phy/phy-core.c 		ret = __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr,
mdio              447 drivers/net/phy/phy-core.c 		struct mii_bus *bus = phydev->mdio.bus;
mdio              448 drivers/net/phy/phy-core.c 		int phy_addr = phydev->mdio.addr;
mdio              475 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              477 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              531 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              533 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              575 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              577 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              634 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              636 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              682 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              684 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              710 drivers/net/phy/phy-core.c 	mutex_lock(&phydev->mdio.bus->mdio_lock);
mdio              777 drivers/net/phy/phy-core.c 	mutex_unlock(&phydev->mdio.bus->mdio_lock);
mdio              273 drivers/net/phy/phy.c 	if (cmd->phy_address != phydev->mdio.addr)
mdio              323 drivers/net/phy/phy.c 	if (cmd->base.phy_address != phydev->mdio.addr)
mdio              381 drivers/net/phy/phy.c 	cmd->base.phy_address = phydev->mdio.addr;
mdio              407 drivers/net/phy/phy.c 		mii_data->phy_id = phydev->mdio.addr;
mdio              419 drivers/net/phy/phy.c 		mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad,
mdio              432 drivers/net/phy/phy.c 		if (prtad == phydev->mdio.addr) {
mdio              471 drivers/net/phy/phy.c 		mdiobus_write(phydev->mdio.bus, prtad, devad, val);
mdio              473 drivers/net/phy/phy.c 		if (prtad == phydev->mdio.addr &&
mdio              202 drivers/net/phy/phy_device.c 	put_device(&phydev->mdio.dev);
mdio              210 drivers/net/phy/phy_device.c 	phydev = container_of(mdiodev, struct phy_device, mdio);
mdio              223 drivers/net/phy/phy_device.c 	phydev = container_of(mdiodev, struct phy_device, mdio);
mdio              236 drivers/net/phy/phy_device.c 	struct device_driver *drv = phydev->mdio.dev.driver;
mdio              593 drivers/net/phy/phy_device.c 	mdiodev = &dev->mdio;
mdio              847 drivers/net/phy/phy_device.c 	err = mdiobus_register_device(&phydev->mdio);
mdio              861 drivers/net/phy/phy_device.c 	err = device_add(&phydev->mdio.dev);
mdio              873 drivers/net/phy/phy_device.c 	mdiobus_unregister_device(&phydev->mdio);
mdio              888 drivers/net/phy/phy_device.c 	device_del(&phydev->mdio.dev);
mdio              893 drivers/net/phy/phy_device.c 	mdiobus_unregister_device(&phydev->mdio);
mdio             1155 drivers/net/phy/phy_device.c 	err = sysfs_create_link(&phydev->mdio.dev.kobj, &dev->dev.kobj,
mdio             1161 drivers/net/phy/phy_device.c 				       &phydev->mdio.dev.kobj,
mdio             1165 drivers/net/phy/phy_device.c 			kobject_name(&phydev->mdio.dev.kobj),
mdio             1203 drivers/net/phy/phy_device.c 	struct mii_bus *bus = phydev->mdio.bus;
mdio             1204 drivers/net/phy/phy_device.c 	struct device *d = &phydev->mdio.dev;
mdio             1275 drivers/net/phy/phy_device.c 		err = sysfs_create_file(&phydev->mdio.dev.kobj,
mdio             1363 drivers/net/phy/phy_device.c 	struct device *d = &phydev->mdio.dev;
mdio             1406 drivers/net/phy/phy_device.c 		sysfs_remove_link(&phydev->mdio.dev.kobj, "attached_dev");
mdio             1410 drivers/net/phy/phy_device.c 		sysfs_remove_file(&phydev->mdio.dev.kobj,
mdio             1422 drivers/net/phy/phy_device.c 	module_put(phydev->mdio.dev.driver->owner);
mdio             1431 drivers/net/phy/phy_device.c 		device_release_driver(&phydev->mdio.dev);
mdio             1437 drivers/net/phy/phy_device.c 	bus = phydev->mdio.bus;
mdio             1439 drivers/net/phy/phy_device.c 	put_device(&phydev->mdio.dev);
mdio             1452 drivers/net/phy/phy_device.c 	struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver);
mdio             1476 drivers/net/phy/phy_device.c 	struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver);
mdio             1507 drivers/net/phy/phy_device.c 	struct phy_driver *phydrv = to_phy_driver(phydev->mdio.dev.driver);
mdio             2187 drivers/net/phy/phy_device.c 	struct device_driver *drv = phydev->mdio.dev.driver;
mdio               64 drivers/net/phy/phy_led_triggers.c 		 phy->mdio.bus->id, phy->mdio.addr, suffix);
mdio               94 drivers/net/phy/phy_led_triggers.c 	phy->led_link_trigger = devm_kzalloc(&phy->mdio.dev,
mdio              111 drivers/net/phy/phy_led_triggers.c 	phy->phy_led_triggers = devm_kcalloc(&phy->mdio.dev,
mdio              134 drivers/net/phy/phy_led_triggers.c 	devm_kfree(&phy->mdio.dev, phy->phy_led_triggers);
mdio              138 drivers/net/phy/phy_led_triggers.c 	devm_kfree(&phy->mdio.dev, phy->led_link_trigger);
mdio              753 drivers/net/phy/phylink.c 		     "PHY [%s] driver [%s]\n", dev_name(&phy->mdio.dev),
mdio             1512 drivers/net/phy/phylink.c 	return mdiobus_read(pl->phydev->mdio.bus, prtad, devad);
mdio             1553 drivers/net/phy/phylink.c 	return mdiobus_write(phydev->mdio.bus, prtad, devad, val);
mdio             1633 drivers/net/phy/phylink.c 			mii->phy_id = pl->phydev->mdio.addr;
mdio              126 drivers/net/phy/qsemi.c MODULE_DEVICE_TABLE(mdio, qs6612_tbl);
mdio              174 drivers/net/phy/realtek.c 	struct device *dev = &phydev->mdio.dev;
mdio              279 drivers/net/phy/realtek.c 		dev_err(&phydev->mdio.dev,
mdio              568 drivers/net/phy/realtek.c MODULE_DEVICE_TABLE(mdio, realtek_tbl);
mdio              196 drivers/net/phy/rockchip.c MODULE_DEVICE_TABLE(mdio, rockchip_phy_tbl);
mdio              193 drivers/net/phy/smsc.c 	struct device *dev = &phydev->mdio.dev;
mdio              368 drivers/net/phy/smsc.c MODULE_DEVICE_TABLE(mdio, smsc_tbl);
mdio              110 drivers/net/phy/ste10Xp.c MODULE_DEVICE_TABLE(mdio, ste10Xp_tbl);
mdio               96 drivers/net/phy/teranetics.c MODULE_DEVICE_TABLE(mdio, teranetics_tbl);
mdio               30 drivers/net/phy/uPD60620.c 	return phy_write(phydev, PHY_SPM, 0x0180 | phydev->mdio.addr);
mdio              103 drivers/net/phy/uPD60620.c MODULE_DEVICE_TABLE(mdio, upd60620_tbl);
mdio              502 drivers/net/phy/vitesse.c MODULE_DEVICE_TABLE(mdio, vitesse_tbl);
mdio               27 drivers/net/phy/xilinx_gmii2rgmii.c 	struct mdio_device *mdio;
mdio               32 drivers/net/phy/xilinx_gmii2rgmii.c 	struct gmii2rgmii *priv = mdiodev_get_drvdata(&phydev->mdio);
mdio               33 drivers/net/phy/xilinx_gmii2rgmii.c 	struct mii_bus *bus = priv->mdio->bus;
mdio               34 drivers/net/phy/xilinx_gmii2rgmii.c 	int addr = priv->mdio->addr;
mdio               88 drivers/net/phy/xilinx_gmii2rgmii.c 	priv->mdio = mdiodev;
mdio               93 drivers/net/phy/xilinx_gmii2rgmii.c 	mdiodev_set_drvdata(&priv->phy_dev->mdio, priv);
mdio               19 drivers/net/usb/ax88172a.c 	struct mii_bus *mdio;
mdio               91 drivers/net/usb/ax88172a.c 	priv->mdio = mdiobus_alloc();
mdio               92 drivers/net/usb/ax88172a.c 	if (!priv->mdio) {
mdio               97 drivers/net/usb/ax88172a.c 	priv->mdio->priv = (void *)dev;
mdio               98 drivers/net/usb/ax88172a.c 	priv->mdio->read = &asix_mdio_bus_read;
mdio               99 drivers/net/usb/ax88172a.c 	priv->mdio->write = &asix_mdio_bus_write;
mdio              100 drivers/net/usb/ax88172a.c 	priv->mdio->name = "Asix MDIO Bus";
mdio              102 drivers/net/usb/ax88172a.c 	snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "usb-%03d:%03d",
mdio              105 drivers/net/usb/ax88172a.c 	ret = mdiobus_register(priv->mdio);
mdio              111 drivers/net/usb/ax88172a.c 	netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id);
mdio              115 drivers/net/usb/ax88172a.c 	mdiobus_free(priv->mdio);
mdio              123 drivers/net/usb/ax88172a.c 	netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id);
mdio              124 drivers/net/usb/ax88172a.c 	mdiobus_unregister(priv->mdio);
mdio              125 drivers/net/usb/ax88172a.c 	mdiobus_free(priv->mdio);
mdio              329 drivers/net/usb/ax88172a.c 		 priv->mdio->id, priv->phy_addr);
mdio             2173 drivers/net/usb/lan78xx.c 	if (phydev->mdio.dev.of_node) {
mdio             2177 drivers/net/usb/lan78xx.c 		len = of_property_count_elems_of_size(phydev->mdio.dev.of_node,
mdio               45 drivers/of/of_mdio.c static int of_mdiobus_register_phy(struct mii_bus *mdio,
mdio               57 drivers/of/of_mdio.c 		phy = phy_device_create(mdio, addr, phy_id, 0, NULL);
mdio               59 drivers/of/of_mdio.c 		phy = get_phy_device(mdio, addr, is_c45);
mdio               70 drivers/of/of_mdio.c 		mdio->irq[addr] = rc;
mdio               72 drivers/of/of_mdio.c 		phy->irq = mdio->irq[addr];
mdio               76 drivers/of/of_mdio.c 		mdio->phy_ignore_ta_mask |= 1 << addr;
mdio               79 drivers/of/of_mdio.c 			     &phy->mdio.reset_assert_delay);
mdio               81 drivers/of/of_mdio.c 			     &phy->mdio.reset_deassert_delay);
mdio               86 drivers/of/of_mdio.c 	phy->mdio.dev.of_node = child;
mdio               87 drivers/of/of_mdio.c 	phy->mdio.dev.fwnode = of_fwnode_handle(child);
mdio               98 drivers/of/of_mdio.c 	dev_dbg(&mdio->dev, "registered phy %pOFn at address %i\n",
mdio              103 drivers/of/of_mdio.c static int of_mdiobus_register_device(struct mii_bus *mdio,
mdio              109 drivers/of/of_mdio.c 	mdiodev = mdio_device_create(mdio, addr);
mdio              128 drivers/of/of_mdio.c 	dev_dbg(&mdio->dev, "registered mdio device %pOFn at address %i\n",
mdio              199 drivers/of/of_mdio.c int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
mdio              206 drivers/of/of_mdio.c 		return mdiobus_register(mdio);
mdio              214 drivers/of/of_mdio.c 	mdio->phy_mask = ~0;
mdio              216 drivers/of/of_mdio.c 	mdio->dev.of_node = np;
mdio              217 drivers/of/of_mdio.c 	mdio->dev.fwnode = of_fwnode_handle(np);
mdio              220 drivers/of/of_mdio.c 	mdio->reset_delay_us = DEFAULT_GPIO_RESET_DELAY;
mdio              221 drivers/of/of_mdio.c 	of_property_read_u32(np, "reset-delay-us", &mdio->reset_delay_us);
mdio              224 drivers/of/of_mdio.c 	rc = mdiobus_register(mdio);
mdio              230 drivers/of/of_mdio.c 		addr = of_mdio_parse_addr(&mdio->dev, child);
mdio              237 drivers/of/of_mdio.c 			rc = of_mdiobus_register_phy(mdio, child, addr);
mdio              239 drivers/of/of_mdio.c 			rc = of_mdiobus_register_device(mdio, child, addr);
mdio              242 drivers/of/of_mdio.c 			dev_err(&mdio->dev,
mdio              260 drivers/of/of_mdio.c 			if (mdiobus_is_registered_device(mdio, addr))
mdio              264 drivers/of/of_mdio.c 			dev_info(&mdio->dev, "scan phy %pOFn at address %i\n",
mdio              268 drivers/of/of_mdio.c 				rc = of_mdiobus_register_phy(mdio, child, addr);
mdio              279 drivers/of/of_mdio.c 	mdiobus_unregister(mdio);
mdio              339 drivers/of/of_mdio.c 	put_device(&phy->mdio.dev);
mdio              413 drivers/of/of_mdio.c 	put_device(&phy->mdio.dev);
mdio              513 drivers/of/of_mdio.c 	put_device(&phydev->mdio.dev);	/* of_phy_find_device() */
mdio              246 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	NSP_PIN_GROUP(mdio, NSP_MUX_BASE0, 5, 0x03, 0x00),
mdio              304 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	NSP_PIN_FUNCTION(mdio),
mdio              195 drivers/pinctrl/pinctrl-rzn1.c static void rzn1_pinctrl_mdio_select(struct rzn1_pinctrl *ipctl, int mdio,
mdio              198 drivers/pinctrl/pinctrl-rzn1.c 	if (ipctl->mdio_func[mdio] >= 0 && ipctl->mdio_func[mdio] != func)
mdio              199 drivers/pinctrl/pinctrl-rzn1.c 		dev_warn(ipctl->dev, "conflicting setting for mdio%d!\n", mdio);
mdio              200 drivers/pinctrl/pinctrl-rzn1.c 	ipctl->mdio_func[mdio] = func;
mdio              202 drivers/pinctrl/pinctrl-rzn1.c 	dev_dbg(ipctl->dev, "setting mdio%d to %u\n", mdio, func);
mdio              204 drivers/pinctrl/pinctrl-rzn1.c 	writel(func, &ipctl->lev2->l2_mdio[mdio]);
mdio              510 drivers/pinctrl/qcom/pinctrl-ipq4019.c 	FUNCTION(mdio),
mdio              538 drivers/pinctrl/qcom/pinctrl-ipq4019.c 	PINGROUP(6, mdio, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA),
mdio              628 drivers/pinctrl/qcom/pinctrl-ipq4019.c 	PINGROUP(53, qpic, mdio, i2s_tx, prng_rosc, NA, tm, wifi0, wifi1, NA,
mdio              492 drivers/pinctrl/qcom/pinctrl-ipq8064.c 	FUNCTION(mdio),
mdio              540 drivers/pinctrl/qcom/pinctrl-ipq8064.c 	PINGROUP(0, mdio, NA, NA, NA, NA, NA, NA, NA, NA, NA),
mdio              541 drivers/pinctrl/qcom/pinctrl-ipq8064.c 	PINGROUP(1, mdio, NA, NA, NA, NA, NA, NA, NA, NA, NA),
mdio              550 drivers/pinctrl/qcom/pinctrl-ipq8064.c 	PINGROUP(10, gsbi4, spdif, sata, ssbi, mdio, spmi, NA, NA, NA, NA),
mdio              551 drivers/pinctrl/qcom/pinctrl-ipq8064.c 	PINGROUP(11, gsbi4, pcie2_prsnt, pcie1_prsnt, pcie3_prsnt, ssbi, mdio, spmi, NA, NA, NA),
mdio              863 drivers/pinctrl/qcom/pinctrl-ipq8074.c 	FUNCTION(mdio),
mdio             1022 drivers/pinctrl/qcom/pinctrl-ipq8074.c 	PINGROUP(69, mdio, NA, NA, NA, NA, NA, NA, NA, NA),
mdio               72 include/linux/mdio.h static inline void mdiodev_set_drvdata(struct mdio_device *mdio, void *data)
mdio               74 include/linux/mdio.h 	dev_set_drvdata(&mdio->dev, data);
mdio               77 include/linux/mdio.h static inline void *mdiodev_get_drvdata(struct mdio_device *mdio)
mdio               79 include/linux/mdio.h 	return dev_get_drvdata(&mdio->dev);
mdio              140 include/linux/mdio.h extern int mdio45_probe(struct mdio_if_info *mdio, int prtad);
mdio              141 include/linux/mdio.h extern int mdio_set_flag(const struct mdio_if_info *mdio,
mdio              144 include/linux/mdio.h extern int mdio45_links_ok(const struct mdio_if_info *mdio, u32 mmds);
mdio              145 include/linux/mdio.h extern int mdio45_nway_restart(const struct mdio_if_info *mdio);
mdio              146 include/linux/mdio.h extern void mdio45_ethtool_gset_npage(const struct mdio_if_info *mdio,
mdio              150 include/linux/mdio.h mdio45_ethtool_ksettings_get_npage(const struct mdio_if_info *mdio,
mdio              164 include/linux/mdio.h static inline void mdio45_ethtool_gset(const struct mdio_if_info *mdio,
mdio              167 include/linux/mdio.h 	mdio45_ethtool_gset_npage(mdio, ecmd, 0, 0);
mdio              181 include/linux/mdio.h mdio45_ethtool_ksettings_get(const struct mdio_if_info *mdio,
mdio              184 include/linux/mdio.h 	mdio45_ethtool_ksettings_get_npage(mdio, cmd, 0, 0);
mdio              187 include/linux/mdio.h extern int mdio_mii_ioctl(const struct mdio_if_info *mdio,
mdio               15 include/linux/of_mdio.h extern int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np);
mdio               57 include/linux/of_mdio.h static inline int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
mdio               64 include/linux/of_mdio.h 	return mdiobus_register(mdio);
mdio              361 include/linux/phy.h 	struct mdio_device mdio;
mdio              447 include/linux/phy.h 				      struct phy_device, mdio)
mdio              698 include/linux/phy.h 	return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum);
mdio              710 include/linux/phy.h 	return __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum);
mdio              725 include/linux/phy.h 	return mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, regnum, val);
mdio              738 include/linux/phy.h 	return __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, regnum,
mdio             1051 include/linux/phy.h 	mdio_device_reset(&phydev->mdio, value);
mdio             1055 include/linux/phy.h 	dev_err(&_phydev->mdio.dev, format, ##args)
mdio             1058 include/linux/phy.h 	dev_info(&_phydev->mdio.dev, format, ##args)
mdio             1061 include/linux/phy.h 	dev_warn(&_phydev->mdio.dev, format, ##args)
mdio             1064 include/linux/phy.h 	dev_dbg(&_phydev->mdio.dev, format, ##args)
mdio             1068 include/linux/phy.h 	return dev_name(&phydev->mdio.dev);
mdio                3 include/trace/events/mdio.h #define TRACE_SYSTEM mdio
mdio              578 net/dsa/port.c 	put_device(&phydev->mdio.dev);
mdio              611 net/dsa/port.c 	put_device(&phydev->mdio.dev);
mdio              702 net/dsa/port.c 	put_device(&phydev->mdio.dev);
mdio              721 net/dsa/port.c 	put_device(&phydev->mdio.dev);
mdio              740 net/dsa/port.c 	put_device(&phydev->mdio.dev);