Lines Matching refs:operation
240 struct i2c_operation *operation, in i2c_read() argument
254 if (operation->length_in_bytes > 1) { in i2c_read()
262 for (n = 0; n < operation->length_in_bytes; n++) { in i2c_read()
266 if (n == (operation->length_in_bytes - 2)) { in i2c_read()
269 } else if (n == (operation->length_in_bytes - 1)) { in i2c_read()
284 operation->buffer[n] = io_read8((vaddr_t)®s->ibdr); in i2c_read()
297 struct i2c_operation *operation) in i2c_write() argument
310 for (n = 0; n < operation->length_in_bytes; n++) { in i2c_write()
311 io_write8((vaddr_t)®s->ibdr, operation->buffer[n]); in i2c_write()
377 struct i2c_operation *operation = NULL; in i2c_bus_xfer() local
389 for (n = 0, operation = i2c_operation; in i2c_bus_xfer()
390 n < operation_count; n++, operation++) { in i2c_bus_xfer()
403 if (operation->flags & I2C_FLAG_READ) in i2c_bus_xfer()
404 res = i2c_read(regs, slave_address, operation, in i2c_bus_xfer()
407 res = i2c_write(regs, slave_address, operation); in i2c_bus_xfer()