Lines Matching full:endian

143 	bool endian = priv->is_little_endian;  in xgmac_mdio_write()  local
145 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write()
156 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write()
158 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
164 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_write()
168 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_write()
170 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
176 xgmac_write32(MDIO_DATA(value), &regs->mdio_data, endian); in xgmac_mdio_write()
178 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_write()
199 bool endian = priv->is_little_endian; in xgmac_mdio_read() local
201 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_read()
210 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_read()
212 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_read()
218 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_read()
222 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_read()
224 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_read()
236 xgmac_write32(mdio_ctl | MDIO_CTL_READ, &regs->mdio_ctl, endian); in xgmac_mdio_read()
238 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_read()
243 if ((xgmac_read32(&regs->mdio_stat, endian) & MDIO_STAT_RD_ER) && in xgmac_mdio_read()
250 ret = xgmac_read32(&regs->mdio_data, endian) & 0xffff; in xgmac_mdio_read()
342 * needs to be specified using "little-endian" property. in xgmac_mdio_probe()
345 "little-endian"); in xgmac_mdio_probe()