Searched refs:siic (Results 1 – 1 of 1) sorted by relevance
89 static void i2c_sirfsoc_read_data(struct sirfsoc_i2c *siic) in i2c_sirfsoc_read_data() argument94 for (i = 0; i < siic->read_cmd_len; i++) { in i2c_sirfsoc_read_data()96 data = readl(siic->base + SIRFSOC_I2C_DATA_BUF + i); in i2c_sirfsoc_read_data()97 siic->buf[siic->finished_len++] = in i2c_sirfsoc_read_data()103 static void i2c_sirfsoc_queue_cmd(struct sirfsoc_i2c *siic) in i2c_sirfsoc_queue_cmd() argument108 if (siic->msg_read) { in i2c_sirfsoc_queue_cmd()109 while (((siic->finished_len + i) < siic->msg_len) in i2c_sirfsoc_queue_cmd()110 && (siic->cmd_ptr < SIRFSOC_I2C_CMD_BUF_MAX)) { in i2c_sirfsoc_queue_cmd()112 if (((siic->finished_len + i) == in i2c_sirfsoc_queue_cmd()113 (siic->msg_len - 1)) && siic->last) in i2c_sirfsoc_queue_cmd()[all …]