Searched refs:allocated_buffers (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/media/v4l2-core/
H A Dvideobuf2-core.c572 unsigned int num_buffers, allocated_buffers, num_planes = 0; vb2_core_reqbufs() local
630 allocated_buffers = vb2_core_reqbufs()
632 if (allocated_buffers == 0) { vb2_core_reqbufs()
641 if (allocated_buffers < q->min_buffers_needed) vb2_core_reqbufs()
647 if (!ret && allocated_buffers < num_buffers) { vb2_core_reqbufs()
648 num_buffers = allocated_buffers; vb2_core_reqbufs()
653 if (!ret && allocated_buffers < num_buffers) vb2_core_reqbufs()
663 q->num_buffers = allocated_buffers; vb2_core_reqbufs()
667 * Note: __vb2_queue_free() will subtract 'allocated_buffers' vb2_core_reqbufs()
670 __vb2_queue_free(q, allocated_buffers); vb2_core_reqbufs()
680 *count = allocated_buffers; vb2_core_reqbufs()
706 unsigned int num_planes = 0, num_buffers, allocated_buffers; vb2_core_create_bufs() local
733 allocated_buffers = __vb2_queue_alloc(q, memory, num_buffers, vb2_core_create_bufs()
735 if (allocated_buffers == 0) { vb2_core_create_bufs()
743 if (allocated_buffers < num_buffers) { vb2_core_create_bufs()
744 num_buffers = allocated_buffers; vb2_core_create_bufs()
753 if (!ret && allocated_buffers < num_buffers) vb2_core_create_bufs()
763 q->num_buffers += allocated_buffers; vb2_core_create_bufs()
767 * Note: __vb2_queue_free() will subtract 'allocated_buffers' vb2_core_create_bufs()
770 __vb2_queue_free(q, allocated_buffers); vb2_core_create_bufs()
780 *count = allocated_buffers; vb2_core_create_bufs()
/linux-4.4.14/drivers/android/
H A Dbinder.c313 struct rb_root allocated_buffers; member in struct:binder_proc
502 struct rb_node **p = &proc->allocated_buffers.rb_node; binder_insert_allocated_buffer()
521 rb_insert_color(&new_buffer->rb_node, &proc->allocated_buffers); binder_insert_allocated_buffer()
527 struct rb_node *n = proc->allocated_buffers.rb_node; binder_buffer_lookup()
843 rb_erase(&buffer->rb_node, &proc->allocated_buffers); binder_free_buf()
3116 while ((n = rb_first(&proc->allocated_buffers))) { binder_deferred_release()
3384 for (n = rb_first(&proc->allocated_buffers); n != NULL; n = rb_next(n)) print_binder_proc()
3516 for (n = rb_first(&proc->allocated_buffers); n != NULL; n = rb_next(n)) print_binder_proc_stats()

Completed in 131 milliseconds