Lines Matching refs:bufs

366 		struct vb2_buffer *prev = q->bufs[vb->index - 1];  in __setup_offsets()
444 q->bufs[vb->index] = vb; in __vb2_queue_alloc()
452 q->bufs[vb->index] = NULL; in __vb2_queue_alloc()
467 q->bufs[vb->index] = NULL; in __vb2_queue_alloc()
490 vb = q->bufs[buffer]; in __vb2_free_mem()
518 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
558 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
598 kfree(q->bufs[buffer]); in __vb2_queue_free()
599 q->bufs[buffer] = NULL; in __vb2_queue_free()
635 if (vb2_buffer_in_use(q, q->bufs[buffer])) in __buffers_in_use()
643 call_void_bufop(q, fill_user_buffer, q->bufs[index], pb); in vb2_core_querybuf()
1550 vb = q->bufs[index]; in vb2_core_prepare_buf()
1621 vb = q->bufs[i]; in vb2_start_streaming()
1649 vb = q->bufs[index]; in vb2_core_qbuf()
2026 if (q->bufs[i]->state == VB2_BUF_STATE_ACTIVE) { in __vb2_queue_cancel()
2028 q->bufs[i]); in __vb2_queue_cancel()
2029 vb2_buffer_done(q->bufs[i], VB2_BUF_STATE_ERROR); in __vb2_queue_cancel()
2064 struct vb2_buffer *vb = q->bufs[i]; in __vb2_queue_cancel()
2218 vb = q->bufs[buffer]; in __find_plane_by_offset()
2265 vb = q->bufs[index]; in vb2_core_expbuf()
2342 vb = q->bufs[buffer]; in vb2_mmap()
2399 vb = q->bufs[buffer]; in vb2_get_unmapped_area()
2611 struct vb2_fileio_buf bufs[VB2_MAX_FRAME]; member
2687 if (q->bufs[0]->num_planes != 1) { in __vb2_init_fileio()
2696 fileio->bufs[i].vaddr = vb2_plane_vaddr(q->bufs[i], 0); in __vb2_init_fileio()
2697 if (fileio->bufs[i].vaddr == NULL) { in __vb2_init_fileio()
2701 fileio->bufs[i].size = vb2_plane_size(q->bufs[i], 0); in __vb2_init_fileio()
2715 fileio->bufs[i].queued = 1; in __vb2_init_fileio()
2828 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
2829 b = q->bufs[index]; in __vb2_perform_fileio()
2836 buf->size = read ? vb2_get_plane_payload(q->bufs[index], 0) in __vb2_perform_fileio()
2837 : vb2_plane_size(q->bufs[index], 0); in __vb2_perform_fileio()
2845 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
2880 struct vb2_buffer *b = q->bufs[index]; in __vb2_perform_fileio()
2907 buf->size = vb2_plane_size(q->bufs[index], 0); in __vb2_perform_fileio()
2978 vb = q->bufs[index++]; in vb2_thread()
2987 vb = q->bufs[index]; in vb2_thread()