Lines Matching refs:bus
92 static int ihs_mdio_idle(struct mii_dev *bus) in ihs_mdio_idle() argument
94 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_idle()
108 static int ihs_mdio_reset(struct mii_dev *bus) in ihs_mdio_reset() argument
110 ihs_mdio_idle(bus); in ihs_mdio_reset()
115 static int ihs_mdio_read(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_read() argument
118 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_read()
121 ihs_mdio_idle(bus); in ihs_mdio_read()
134 static int ihs_mdio_write(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_write() argument
137 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_write()
139 ihs_mdio_idle(bus); in ihs_mdio_write()
149 struct mii_dev *bus = mdio_alloc(); in ihs_mdio_init() local
151 if (!bus) { in ihs_mdio_init()
156 bus->read = ihs_mdio_read; in ihs_mdio_init()
157 bus->write = ihs_mdio_write; in ihs_mdio_init()
158 bus->reset = ihs_mdio_reset; in ihs_mdio_init()
159 strcpy(bus->name, info->name); in ihs_mdio_init()
161 bus->priv = info; in ihs_mdio_init()
163 return mdio_register(bus); in ihs_mdio_init()