Lines Matching refs:i2c_rcar_write
84 static void i2c_rcar_write(const struct i2c_rcar_cfg *config, in i2c_rcar_write() function
98 i2c_rcar_write(config, RCAR_I2C_ICMIER, 0); in i2c_rcar_isr()
113 i2c_rcar_write(config, RCAR_I2C_ICMIER, mask); in i2c_rcar_wait_for_state()
125 i2c_rcar_write(config, RCAR_I2C_ICMCR, RCAR_I2C_ICMCR_MASTER | RCAR_I2C_ICMCR_FSB); in i2c_rcar_finish()
126 i2c_rcar_write(config, RCAR_I2C_ICMSR, 0); in i2c_rcar_finish()
130 i2c_rcar_write(config, RCAR_I2C_ICMSR, 0); in i2c_rcar_finish()
133 i2c_rcar_write(config, RCAR_I2C_ICMCR, RCAR_I2C_ICMCR_MASTER); in i2c_rcar_finish()
144 i2c_rcar_write(config, RCAR_I2C_ICMAR, (chip << 1) | read); in i2c_rcar_set_addr()
146 i2c_rcar_write(config, RCAR_I2C_ICMCR, RCAR_I2C_ICMCR_MASTER | RCAR_I2C_ICMCR_ESG); in i2c_rcar_set_addr()
148 i2c_rcar_write(config, RCAR_I2C_ICMSR, 0); in i2c_rcar_set_addr()
166 i2c_rcar_write(config, RCAR_I2C_ICMCR, RCAR_I2C_ICMCR_MASTER); in i2c_rcar_transfer_msg()
170 i2c_rcar_write(config, RCAR_I2C_ICMCR, RCAR_I2C_ICMCR_MASTER | in i2c_rcar_transfer_msg()
177 i2c_rcar_write(config, RCAR_I2C_ICMSR, reg); in i2c_rcar_transfer_msg()
190 i2c_rcar_write(config, RCAR_I2C_ICRXD_ICTXD, msg->buf[i]); in i2c_rcar_transfer_msg()
192 i2c_rcar_write(config, RCAR_I2C_ICMCR, RCAR_I2C_ICMCR_MASTER); in i2c_rcar_transfer_msg()
197 i2c_rcar_write(config, RCAR_I2C_ICMSR, reg); in i2c_rcar_transfer_msg()
298 i2c_rcar_write(config, RCAR_I2C_ICCCR, (scgd << 3) | cdf); in i2c_rcar_configure()
301 i2c_rcar_write(config, RCAR_I2C_ICSIER, 0); in i2c_rcar_configure()
302 i2c_rcar_write(config, RCAR_I2C_ICSAR, 0); in i2c_rcar_configure()
303 i2c_rcar_write(config, RCAR_I2C_ICSCR, 0); in i2c_rcar_configure()
304 i2c_rcar_write(config, RCAR_I2C_ICSSR, 0); in i2c_rcar_configure()
307 i2c_rcar_write(config, RCAR_I2C_ICMIER, 0); in i2c_rcar_configure()
308 i2c_rcar_write(config, RCAR_I2C_ICMCR, 0); in i2c_rcar_configure()
309 i2c_rcar_write(config, RCAR_I2C_ICMSR, 0); in i2c_rcar_configure()
310 i2c_rcar_write(config, RCAR_I2C_ICMAR, 0); in i2c_rcar_configure()