Lines Matching refs:bufs

362 		struct vb2_buffer *prev = q->bufs[vb->index - 1];  in __setup_offsets()
440 q->bufs[vb->index] = vb; in __vb2_queue_alloc()
448 q->bufs[vb->index] = NULL; in __vb2_queue_alloc()
463 q->bufs[vb->index] = NULL; in __vb2_queue_alloc()
486 vb = q->bufs[buffer]; in __vb2_free_mem()
514 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
554 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
594 kfree(q->bufs[buffer]); in __vb2_queue_free()
595 q->bufs[buffer] = NULL; in __vb2_queue_free()
631 if (vb2_buffer_in_use(q, q->bufs[buffer])) in __buffers_in_use()
639 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
2682 if (q->bufs[0]->num_planes != 1) { in __vb2_init_fileio()
2691 fileio->bufs[i].vaddr = vb2_plane_vaddr(q->bufs[i], 0); in __vb2_init_fileio()
2692 if (fileio->bufs[i].vaddr == NULL) { in __vb2_init_fileio()
2696 fileio->bufs[i].size = vb2_plane_size(q->bufs[i], 0); in __vb2_init_fileio()
2710 fileio->bufs[i].queued = 1; in __vb2_init_fileio()
2823 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
2824 b = q->bufs[index]; in __vb2_perform_fileio()
2831 buf->size = read ? vb2_get_plane_payload(q->bufs[index], 0) in __vb2_perform_fileio()
2832 : vb2_plane_size(q->bufs[index], 0); in __vb2_perform_fileio()
2840 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
2875 struct vb2_buffer *b = q->bufs[index]; in __vb2_perform_fileio()
2902 buf->size = vb2_plane_size(q->bufs[index], 0); in __vb2_perform_fileio()
2973 vb = q->bufs[index++]; in vb2_thread()
2982 vb = q->bufs[index]; in vb2_thread()