Searched refs:siic (Results 1 – 1 of 1) sorted by relevance
87 static void i2c_sirfsoc_read_data(struct sirfsoc_i2c *siic) in i2c_sirfsoc_read_data() argument92 for (i = 0; i < siic->read_cmd_len; i++) { in i2c_sirfsoc_read_data()94 data = readl(siic->base + SIRFSOC_I2C_DATA_BUF + i); in i2c_sirfsoc_read_data()95 siic->buf[siic->finished_len++] = in i2c_sirfsoc_read_data()101 static void i2c_sirfsoc_queue_cmd(struct sirfsoc_i2c *siic) in i2c_sirfsoc_queue_cmd() argument106 if (siic->msg_read) { in i2c_sirfsoc_queue_cmd()107 while (((siic->finished_len + i) < siic->msg_len) in i2c_sirfsoc_queue_cmd()108 && (siic->cmd_ptr < SIRFSOC_I2C_CMD_BUF_MAX)) { in i2c_sirfsoc_queue_cmd()110 if (((siic->finished_len + i) == in i2c_sirfsoc_queue_cmd()111 (siic->msg_len - 1)) && siic->last) in i2c_sirfsoc_queue_cmd()[all …]