Lines Matching defs:buf_num
265 int buf_num;
400 int buf_num)
402 if (buf_num == 1)
740 done = csi->active_vb2_buf[csi->buf_num];
754 csi->active_vb2_buf[csi->buf_num] = next;
757 csi->active_vb2_buf[csi->buf_num] = NULL;
760 imx7_csi_update_buf(csi, dma_addr, csi->buf_num);
801 csi->buf_num = 0;
803 csi->buf_num = 1;
1321 int buf_num;
1330 * buf_num holds the framebuffer ID of the most recently (*not* the
1332 * if buf_num is 0, the hardware is capturing to FB2. If FB1 has been
1340 * buf_num when it programs the next buffer, but we can still race with
1342 * completes FB2 and switches to FB1 and before buf_num can be updated
1360 buf_num = csi->buf_num;
1361 if (csi->active_vb2_buf[buf_num]) {
1366 imx7_csi_update_buf(csi, dma_addr, buf_num);
1369 if (isr & (buf_num ? BIT_DMA_TSF_DONE_FB1 : BIT_DMA_TSF_DONE_FB2)) {
1373 * sure we've programmed buf_num FB in time, so queue the buffer
1383 csi->active_vb2_buf[buf_num] = buf;