Lines Matching refs:allocated_buffers
666 unsigned int num_buffers, allocated_buffers, num_planes = 0; in vb2_core_reqbufs() local
731 allocated_buffers = in vb2_core_reqbufs()
733 if (allocated_buffers == 0) { in vb2_core_reqbufs()
742 if (allocated_buffers < q->min_buffers_needed) in vb2_core_reqbufs()
748 if (!ret && allocated_buffers < num_buffers) { in vb2_core_reqbufs()
749 num_buffers = allocated_buffers; in vb2_core_reqbufs()
761 if (!ret && allocated_buffers < num_buffers) in vb2_core_reqbufs()
771 q->num_buffers = allocated_buffers; in vb2_core_reqbufs()
778 __vb2_queue_free(q, allocated_buffers); in vb2_core_reqbufs()
788 *count = allocated_buffers; in vb2_core_reqbufs()
799 unsigned int num_planes = 0, num_buffers, allocated_buffers; in vb2_core_create_bufs() local
838 allocated_buffers = __vb2_queue_alloc(q, memory, num_buffers, in vb2_core_create_bufs()
840 if (allocated_buffers == 0) { in vb2_core_create_bufs()
848 if (allocated_buffers < num_buffers) { in vb2_core_create_bufs()
849 num_buffers = allocated_buffers; in vb2_core_create_bufs()
858 if (!ret && allocated_buffers < num_buffers) in vb2_core_create_bufs()
868 q->num_buffers += allocated_buffers; in vb2_core_create_bufs()
875 __vb2_queue_free(q, allocated_buffers); in vb2_core_create_bufs()
885 *count = allocated_buffers; in vb2_core_create_bufs()