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()
519 if (q->bufs[buffer] == NULL) in __vb2_queue_free()
521 if (q->bufs[buffer]->state == VB2_BUF_STATE_PREPARING) { in __vb2_queue_free()
530 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
565 struct vb2_buffer *vb = q->bufs[buffer]; in __vb2_queue_free()
605 kfree(q->bufs[buffer]); in __vb2_queue_free()
606 q->bufs[buffer] = NULL; in __vb2_queue_free()
643 if (vb2_buffer_in_use(q, q->bufs[buffer])) in __buffers_in_use()
651 call_void_bufop(q, fill_user_buffer, q->bufs[index], pb); in vb2_core_querybuf()
1529 vb = q->bufs[index]; in vb2_core_prepare_buf()
1600 vb = q->bufs[i]; in vb2_start_streaming()
1628 vb = q->bufs[index]; in vb2_core_qbuf()
2002 if (q->bufs[i]->state == VB2_BUF_STATE_ACTIVE) { in __vb2_queue_cancel()
2004 q->bufs[i]); in __vb2_queue_cancel()
2005 vb2_buffer_done(q->bufs[i], VB2_BUF_STATE_ERROR); in __vb2_queue_cancel()
2040 struct vb2_buffer *vb = q->bufs[i]; in __vb2_queue_cancel()
2173 vb = q->bufs[buffer]; in __find_plane_by_offset()
2220 vb = q->bufs[index]; in vb2_core_expbuf()
2307 vb = q->bufs[buffer]; in vb2_mmap()
2366 vb = q->bufs[buffer]; in vb2_get_unmapped_area()
2573 struct vb2_fileio_buf bufs[VB2_MAX_FRAME]; member
2644 if (q->bufs[0]->num_planes != 1) { in __vb2_init_fileio()
2653 fileio->bufs[i].vaddr = vb2_plane_vaddr(q->bufs[i], 0); in __vb2_init_fileio()
2654 if (fileio->bufs[i].vaddr == NULL) { in __vb2_init_fileio()
2658 fileio->bufs[i].size = vb2_plane_size(q->bufs[i], 0); in __vb2_init_fileio()
2672 fileio->bufs[i].queued = 1; in __vb2_init_fileio()
2785 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
2786 b = q->bufs[index]; in __vb2_perform_fileio()
2793 buf->size = read ? vb2_get_plane_payload(q->bufs[index], 0) in __vb2_perform_fileio()
2794 : vb2_plane_size(q->bufs[index], 0); in __vb2_perform_fileio()
2802 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
2837 struct vb2_buffer *b = q->bufs[index]; in __vb2_perform_fileio()
2864 buf->size = vb2_plane_size(q->bufs[index], 0); in __vb2_perform_fileio()
2935 vb = q->bufs[index++]; in vb2_thread()
2944 vb = q->bufs[index]; in vb2_thread()