Lines Matching refs:operation
241 struct i2c_operation *operation, in i2c_read() argument
255 if (operation->length_in_bytes > 1) { in i2c_read()
263 for (n = 0; n < operation->length_in_bytes; n++) { in i2c_read()
267 if (n == (operation->length_in_bytes - 2)) { in i2c_read()
270 } else if (n == (operation->length_in_bytes - 1)) { in i2c_read()
285 operation->buffer[n] = io_read8((vaddr_t)®s->ibdr); in i2c_read()
298 struct i2c_operation *operation) in i2c_write() argument
311 for (n = 0; n < operation->length_in_bytes; n++) { in i2c_write()
312 io_write8((vaddr_t)®s->ibdr, operation->buffer[n]); in i2c_write()
378 struct i2c_operation *operation = NULL; in i2c_bus_xfer() local
390 for (n = 0, operation = i2c_operation; in i2c_bus_xfer()
391 n < operation_count; n++, operation++) { in i2c_bus_xfer()
404 if (operation->flags & I2C_FLAG_READ) in i2c_bus_xfer()
405 res = i2c_read(regs, slave_address, operation, in i2c_bus_xfer()
408 res = i2c_write(regs, slave_address, operation); in i2c_bus_xfer()