Lines Matching refs: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
71 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe()
72 if (!mdio) in mvusb_mdio_probe()
75 mvusb = mdio->priv; in mvusb_mdio_probe()
76 mvusb->mdio = mdio; in mvusb_mdio_probe()
83 snprintf(mdio->id, MII_BUS_ID_SIZE, "mvusb-%s", dev_name(dev)); in mvusb_mdio_probe()
84 mdio->name = mdio->id; in mvusb_mdio_probe()
85 mdio->parent = dev; in mvusb_mdio_probe()
86 mdio->read = mvusb_mdio_read; in mvusb_mdio_probe()
87 mdio->write = mvusb_mdio_write; in mvusb_mdio_probe()
90 return of_mdiobus_register(mdio, dev->of_node); in mvusb_mdio_probe()
98 mdiobus_unregister(mvusb->mdio); in mvusb_mdio_disconnect()