Lines Matching refs:fsi
149 struct fsi_device *fsi; member
163 static int fsi_i2c_read_reg(struct fsi_device *fsi, unsigned int reg, in fsi_i2c_read_reg() argument
169 rc = fsi_device_read(fsi, reg, &data_be, sizeof(data_be)); in fsi_i2c_read_reg()
178 static int fsi_i2c_write_reg(struct fsi_device *fsi, unsigned int reg, in fsi_i2c_write_reg() argument
183 return fsi_device_write(fsi, reg, &data_be, sizeof(data_be)); in fsi_i2c_write_reg()
193 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_INT_MASK, &interrupt); in fsi_i2c_dev_init()
198 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_dev_init()
202 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_ESTAT, &extended_status); in fsi_i2c_dev_init()
211 return fsi_i2c_write_reg(i2c->fsi, I2C_FSI_WATER_MARK, &watermark); in fsi_i2c_dev_init()
217 struct fsi_device *fsi = port->master->fsi; in fsi_i2c_set_port() local
220 rc = fsi_i2c_read_reg(fsi, I2C_FSI_MODE, &mode); in fsi_i2c_set_port()
228 rc = fsi_i2c_write_reg(fsi, I2C_FSI_MODE, &mode); in fsi_i2c_set_port()
233 return fsi_i2c_write_reg(fsi, I2C_FSI_RESET_ERR, &dummy); in fsi_i2c_set_port()
253 return fsi_i2c_write_reg(i2c->fsi, I2C_FSI_CMD, &cmd); in fsi_i2c_start()
280 rc = fsi_device_write(i2c->fsi, I2C_FSI_FIFO, in fsi_i2c_write_fifo()
308 rc = fsi_device_read(i2c->fsi, I2C_FSI_FIFO, in fsi_i2c_read_fifo()
317 rc = fsi_device_read(i2c->fsi, I2C_FSI_FIFO, &dummy, in fsi_i2c_read_fifo()
335 fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); in fsi_i2c_get_scl()
347 fsi_i2c_write_reg(i2c->fsi, I2C_FSI_SET_SCL, &dummy); in fsi_i2c_set_scl()
349 fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_SCL, &dummy); in fsi_i2c_set_scl()
358 fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); in fsi_i2c_get_sda()
370 fsi_i2c_write_reg(i2c->fsi, I2C_FSI_SET_SDA, &dummy); in fsi_i2c_set_sda()
372 fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_SDA, &dummy); in fsi_i2c_set_sda()
382 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_prepare_recovery()
387 fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_prepare_recovery()
397 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_unprepare_recovery()
402 fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_unprepare_recovery()
415 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_ERR, &dummy); in fsi_i2c_reset_bus()
422 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); in fsi_i2c_reset_bus()
430 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_I2C, &dummy); in fsi_i2c_reset_bus()
444 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_I2C, &dummy); in fsi_i2c_reset_engine()
453 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_reset_engine()
461 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_reset_engine()
468 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_PORT_BUSY, &dummy); in fsi_i2c_reset_engine()
482 struct fsi_device *fsi = i2c->fsi; in fsi_i2c_abort() local
488 rc = fsi_i2c_read_reg(fsi, I2C_FSI_STAT, &stat); in fsi_i2c_abort()
504 rc = fsi_i2c_write_reg(fsi, I2C_FSI_CMD, &cmd); in fsi_i2c_abort()
512 rc = fsi_i2c_read_reg(fsi, I2C_FSI_STAT, &status); in fsi_i2c_abort()
582 rc = fsi_i2c_read_reg(port->master->fsi, I2C_FSI_STAT, in fsi_i2c_wait()
661 static struct device_node *fsi_i2c_find_port_of_node(struct device_node *fsi, in fsi_i2c_find_port_of_node() argument
668 for_each_child_of_node(fsi, np) { in fsi_i2c_find_port_of_node()
690 i2c->fsi = to_fsi_dev(dev); in fsi_i2c_probe()
697 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); in fsi_i2c_probe()