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()
55 static int mvusb_mdio_write(struct mii_bus *mdio, int dev, int reg, u16 val) in mvusb_mdio_write() argument
57 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_write()
75 struct mii_bus *mdio; in mvusb_mdio_probe() local
77 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe()
78 if (!mdio) in mvusb_mdio_probe()
81 mvusb = mdio->priv; in mvusb_mdio_probe()
82 mvusb->mdio = mdio; in mvusb_mdio_probe()
89 snprintf(mdio->id, MII_BUS_ID_SIZE, "mvusb-%s", dev_name(dev)); in mvusb_mdio_probe()
90 mdio->name = mdio->id; in mvusb_mdio_probe()
91 mdio->parent = dev; in mvusb_mdio_probe()
92 mdio->read = mvusb_mdio_read; in mvusb_mdio_probe()
93 mdio->write = mvusb_mdio_write; in mvusb_mdio_probe()
96 return of_mdiobus_register(mdio, dev->of_node); in mvusb_mdio_probe()
104 mdiobus_unregister(mvusb->mdio); in mvusb_mdio_disconnect()
119 MODULE_DESCRIPTION("Marvell USB MDIO Adapter");