Lines Matching refs:bus
15 static int ihs_mdio_idle(struct mii_dev *bus) in ihs_mdio_idle() argument
17 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_idle()
31 static int ihs_mdio_reset(struct mii_dev *bus) in ihs_mdio_reset() argument
33 ihs_mdio_idle(bus); in ihs_mdio_reset()
38 static int ihs_mdio_read(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_read() argument
41 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_read()
44 ihs_mdio_idle(bus); in ihs_mdio_read()
57 static int ihs_mdio_write(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_write() argument
60 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_write()
62 ihs_mdio_idle(bus); in ihs_mdio_write()
73 struct mii_dev *bus = mdio_alloc(); in ihs_mdio_init() local
75 if (!bus) { in ihs_mdio_init()
80 bus->read = ihs_mdio_read; in ihs_mdio_init()
81 bus->write = ihs_mdio_write; in ihs_mdio_init()
82 bus->reset = ihs_mdio_reset; in ihs_mdio_init()
83 strcpy(bus->name, info->name); in ihs_mdio_init()
85 bus->priv = info; in ihs_mdio_init()
87 return mdio_register(bus); in ihs_mdio_init()