Searched refs:cur_idx (Results 1 – 2 of 2) sorted by relevance
70 static int cur_idx; variable133 if (idx == cur_idx || freqs[idx].mhz != mhz) { in mtk_adsp_set_cpu_freq()150 cur_idx = idx; in mtk_adsp_set_cpu_freq()
98 uint32_t cur_idx; member309 data->cur_idx = 0; in i2c_start_xfer()388 if (data->cur_idx == msg->len) { in i2c_prepare_next()389 data->cur_idx = 0; in i2c_prepare_next()447 msg->buf[data->cur_idx++] = twim->RHR; in i2c_sam_twim_isr()467 if (data->cur_idx < msg->len) { in i2c_sam_twim_isr()468 twim->THR = msg->buf[data->cur_idx++]; in i2c_sam_twim_isr()