Searched refs:oc_setreg (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-ocores.c130 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) oc_setreg() function
147 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); ocores_process()
155 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); ocores_process()
165 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); ocores_process()
188 oc_setreg(i2c, OCI2C_DATA, addr); ocores_process()
189 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_START); ocores_process()
196 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_STOP); ocores_process()
202 oc_setreg(i2c, OCI2C_CMD, i2c->pos == (msg->len-1) ? ocores_process()
205 oc_setreg(i2c, OCI2C_DATA, msg->buf[i2c->pos++]); ocores_process()
206 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_WRITE); ocores_process()
228 oc_setreg(i2c, OCI2C_DATA, ocores_xfer()
232 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_START); ocores_xfer()
248 oc_setreg(i2c, OCI2C_CONTROL, ctrl & ~(OCI2C_CTRL_EN|OCI2C_CTRL_IEN)); ocores_init()
261 oc_setreg(i2c, OCI2C_PRELOW, prescale & 0xff); ocores_init()
262 oc_setreg(i2c, OCI2C_PREHIGH, prescale >> 8); ocores_init()
265 oc_setreg(i2c, OCI2C_CMD, OCI2C_CMD_IACK); ocores_init()
266 oc_setreg(i2c, OCI2C_CONTROL, ctrl | OCI2C_CTRL_IEN | OCI2C_CTRL_EN); ocores_init()
517 oc_setreg(i2c, OCI2C_CONTROL, oc_getreg(i2c, OCI2C_CONTROL) ocores_i2c_remove()
536 oc_setreg(i2c, OCI2C_CONTROL, ctrl & ~(OCI2C_CTRL_EN|OCI2C_CTRL_IEN)); ocores_i2c_suspend()

Completed in 40 milliseconds