Lines Matching refs:sbus
163 struct mii_bus *sbus; /* mdio slave */ member
606 static int __ar9331_mdio_write(struct mii_bus *sbus, u8 mode, u16 reg, u16 val) in __ar9331_mdio_write() argument
614 return mdiobus_write(sbus, p, r, val); in __ar9331_mdio_write()
617 static int __ar9331_mdio_read(struct mii_bus *sbus, u16 reg) in __ar9331_mdio_read() argument
625 return mdiobus_read(sbus, p, r); in __ar9331_mdio_read()
632 struct mii_bus *sbus = priv->sbus; in ar9331_mdio_read() local
645 ret = __ar9331_mdio_read(sbus, reg); in ar9331_mdio_read()
650 ret = __ar9331_mdio_read(sbus, reg + 2); in ar9331_mdio_read()
658 dev_err_ratelimited(&sbus->dev, "Bus error. Failed to read register.\n"); in ar9331_mdio_read()
665 struct mii_bus *sbus = priv->sbus; in ar9331_mdio_write() local
669 ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_PAGE, in ar9331_mdio_write()
677 ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_REG, reg, val); in ar9331_mdio_write()
681 ret = __ar9331_mdio_write(sbus, AR9331_SW_MDIO_PHY_MODE_REG, reg + 2, in ar9331_mdio_write()
688 dev_err_ratelimited(&sbus->dev, "Bus error. Failed to write register.\n"); in ar9331_mdio_write()
804 priv->sbus = mdiodev->bus; in ar9331_sw_probe()