• Home
  • Raw
  • Download

Lines Matching full:endian

137 	bool endian = priv->is_little_endian;  in xgmac_mdio_write()  local
139 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write()
150 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write()
152 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
158 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_write()
162 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_write()
164 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
170 xgmac_write32(MDIO_DATA(value), &regs->mdio_data, endian); in xgmac_mdio_write()
172 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_write()
193 bool endian = priv->is_little_endian; in xgmac_mdio_read() local
195 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_read()
204 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_read()
206 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_read()
212 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_read()
216 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_read()
218 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_read()
230 xgmac_write32(mdio_ctl | MDIO_CTL_READ, &regs->mdio_ctl, endian); in xgmac_mdio_read()
232 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_read()
237 if ((xgmac_read32(&regs->mdio_stat, endian) & MDIO_STAT_RD_ER) && in xgmac_mdio_read()
244 ret = xgmac_read32(&regs->mdio_data, endian) & 0xffff; in xgmac_mdio_read()
294 "little-endian"); in xgmac_mdio_probe()