Lines Matching full:mdio
27 struct mii_bus *mdio; member
32 static int mvusb_mdio_read(struct mii_bus *mdio, int dev, int reg) in mvusb_mdio_read() argument
34 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_read()
52 static int mvusb_mdio_write(struct mii_bus *mdio, int dev, int reg, u16 val) in mvusb_mdio_write() argument
54 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_write()
69 struct mii_bus *mdio; in mvusb_mdio_probe() local
72 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe()
73 if (!mdio) in mvusb_mdio_probe()
76 mvusb = mdio->priv; in mvusb_mdio_probe()
77 mvusb->mdio = mdio; in mvusb_mdio_probe()
84 snprintf(mdio->id, MII_BUS_ID_SIZE, "mvusb-%s", dev_name(dev)); in mvusb_mdio_probe()
85 mdio->name = mdio->id; in mvusb_mdio_probe()
86 mdio->parent = dev; in mvusb_mdio_probe()
87 mdio->read = mvusb_mdio_read; in mvusb_mdio_probe()
88 mdio->write = mvusb_mdio_write; in mvusb_mdio_probe()
91 ret = of_mdiobus_register(mdio, dev->of_node); in mvusb_mdio_probe()
107 mdiobus_unregister(mvusb->mdio); in mvusb_mdio_disconnect()
122 MODULE_DESCRIPTION("Marvell USB MDIO Adapter");