Lines Matching refs:oc_setreg

150 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value)  in oc_setreg()  function
173 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); in ocores_process()
181 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); in ocores_process()
191 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); in ocores_process()
212 oc_setreg(i2c, OCI2C_DATA, addr); in ocores_process()
213 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_START); in ocores_process()
220 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); in ocores_process()
226 oc_setreg(i2c, OCI2C_CMD, i2c->pos == (msg->len-1) ? in ocores_process()
229 oc_setreg(i2c, OCI2C_DATA, msg->buf[i2c->pos++]); in ocores_process()
230 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_WRITE); in ocores_process()
263 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); in ocores_process_timeout()
379 oc_setreg(i2c, OCI2C_CONTROL, ctrl & ~OCI2C_CTRL_IEN); in ocores_xfer_core()
381 oc_setreg(i2c, OCI2C_CONTROL, ctrl | OCI2C_CTRL_IEN); in ocores_xfer_core()
388 oc_setreg(i2c, OCI2C_DATA, i2c_8bit_addr_from_msg(i2c->msg)); in ocores_xfer_core()
389 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_START); in ocores_xfer_core()
426 oc_setreg(i2c, OCI2C_CONTROL, ctrl); in ocores_init()
439 oc_setreg(i2c, OCI2C_PRELOW, prescale & 0xff); in ocores_init()
440 oc_setreg(i2c, OCI2C_PREHIGH, prescale >> 8); in ocores_init()
443 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); in ocores_init()
444 oc_setreg(i2c, OCI2C_CONTROL, ctrl | OCI2C_CTRL_EN); in ocores_init()
751 oc_setreg(i2c, OCI2C_CONTROL, ctrl); in ocores_i2c_remove()
770 oc_setreg(i2c, OCI2C_CONTROL, ctrl); in ocores_i2c_suspend()