Lines Matching refs:reg_offset
253 int i, reg_offset; in gmbus_xfer() local
259 reg_offset = 0; in gmbus_xfer()
261 GMBUS_REG_WRITE(GMBUS0 + reg_offset, bus->reg0); in gmbus_xfer()
268 GMBUS_REG_WRITE(GMBUS1 + reg_offset, in gmbus_xfer()
274 GMBUS_REG_READ(GMBUS2+reg_offset); in gmbus_xfer()
278 if (wait_for(GMBUS_REG_READ(GMBUS2 + reg_offset) & in gmbus_xfer()
281 if (GMBUS_REG_READ(GMBUS2 + reg_offset) & GMBUS_SATOER) in gmbus_xfer()
284 val = GMBUS_REG_READ(GMBUS3 + reg_offset); in gmbus_xfer()
298 GMBUS_REG_WRITE(GMBUS3 + reg_offset, val); in gmbus_xfer()
299 GMBUS_REG_WRITE(GMBUS1 + reg_offset, in gmbus_xfer()
304 GMBUS_REG_READ(GMBUS2+reg_offset); in gmbus_xfer()
307 if (wait_for(GMBUS_REG_READ(GMBUS2 + reg_offset) & in gmbus_xfer()
310 if (GMBUS_REG_READ(GMBUS2 + reg_offset) & in gmbus_xfer()
319 GMBUS_REG_WRITE(GMBUS3 + reg_offset, val); in gmbus_xfer()
320 GMBUS_REG_READ(GMBUS2+reg_offset); in gmbus_xfer()
324 …if (i + 1 < num && wait_for(GMBUS_REG_READ(GMBUS2 + reg_offset) & (GMBUS_SATOER | GMBUS_HW_WAIT_PH… in gmbus_xfer()
326 if (GMBUS_REG_READ(GMBUS2 + reg_offset) & GMBUS_SATOER) in gmbus_xfer()
337 GMBUS_REG_WRITE(GMBUS1 + reg_offset, GMBUS_SW_CLR_INT); in gmbus_xfer()
338 GMBUS_REG_WRITE(GMBUS1 + reg_offset, 0); in gmbus_xfer()
344 GMBUS_REG_WRITE(GMBUS0 + reg_offset, 0); in gmbus_xfer()
350 GMBUS_REG_WRITE(GMBUS0 + reg_offset, 0); in gmbus_xfer()