Searched refs:next_buf (Results 1 – 10 of 10) sorted by relevance
167 int next_buf; /* Next to consume (dev_lock) */ member264 cam->next_buf = -1; in cafe_reset_buffers()956 if (cam->next_buf < 0) { in cafe_deliver_buffer()961 bufno = cam->next_buf; in cafe_deliver_buffer()963 if (++(cam->next_buf) >= cam->nbufs) in cafe_deliver_buffer()964 cam->next_buf = 0; in cafe_deliver_buffer()965 if (! test_bit(cam->next_buf, &cam->flags)) in cafe_deliver_buffer()966 cam->next_buf = -1; in cafe_deliver_buffer()1026 if (cam->next_buf >= 0) { in cafe_v4l_read()1061 wait_event_timeout(cam->iowait, cam->next_buf >= 0, HZ); in cafe_v4l_read()[all …]
91 int next_buf; member563 cam->next_buf = 0; in viacam_start_engine()
252 for (i = lp->next_buf; i != lp->first_free_buf; i = (i+1) % 5) in release_arcbuf()274 if (lp->next_buf >= 5) in get_arcbuf()275 lp->next_buf -= 5; in get_arcbuf()277 if (lp->next_buf == lp->first_free_buf) in get_arcbuf()280 buf = lp->buf_queue[lp->next_buf++]; in get_arcbuf()281 lp->next_buf %= 5; in get_arcbuf()288 for (i = lp->next_buf; i != lp->first_free_buf; i = (i+1) % 5) in get_arcbuf()414 lp->next_buf = lp->first_free_buf = 0; in arcnet_open()
150 unsigned next_buf; member177 .next_buf = LCDC_V3_NEXT_BUF,186 .next_buf = LCDC_V4_NEXT_BUF,486 host->base + host->devdata->next_buf); in mxsfb_set_par()568 host->base + host->devdata->next_buf); in mxsfb_pan_display()664 writel(fb_info->fix.smem_start, host->base + host->devdata->next_buf); in mxsfb_restore_mode()
281 int next_buf, first_free_buf; member
800 struct buffer_desc *next_buf; in chainup_buffers() local806 next_buf = dma_pool_alloc(buffer_pool, flags, &next_buf_phys); in chainup_buffers()807 if (!next_buf) { in chainup_buffers()812 buf->next = next_buf; in chainup_buffers()814 buf = next_buf; in chainup_buffers()
321 u64 next_buf; member
2068 pbuf = pginfo->u.phy.phys_buf_array + pginfo->u.phy.next_buf; in ehca_set_pagebuf_phys()2110 (pginfo->u.phy.next_buf)++; in ehca_set_pagebuf_phys()
411 #define next_buf(bufnr) \ macro
231 bufnr = next_buf(bufnr); in get_buf_states()257 bufnr = next_buf(bufnr); in set_buf_states()