Home
last modified time | relevance | path

Searched refs:allocated_buffers (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/android/
Dbinder_alloc.c111 struct rb_node **p = &alloc->allocated_buffers.rb_node; in binder_insert_allocated_buffer_locked()
130 rb_insert_color(&new_buffer->rb_node, &alloc->allocated_buffers); in binder_insert_allocated_buffer_locked()
137 struct rb_node *n = alloc->allocated_buffers.rb_node; in binder_alloc_prepare_to_free_locked()
430 size_t allocated_buffers = 0; in binder_alloc_new_buf_locked() local
437 for (n = rb_first(&alloc->allocated_buffers); n != NULL; in binder_alloc_new_buf_locked()
441 allocated_buffers++; in binder_alloc_new_buf_locked()
460 total_alloc_size, allocated_buffers, in binder_alloc_new_buf_locked()
646 rb_erase(&buffer->rb_node, &alloc->allocated_buffers); in binder_free_buf_locked()
788 while ((n = rb_first(&alloc->allocated_buffers))) { in binder_alloc_deferred_release()
866 for (n = rb_first(&alloc->allocated_buffers); n != NULL; n = rb_next(n)) in binder_alloc_print_allocated()
[all …]
Dbinder_alloc.h110 struct rb_root allocated_buffers; member
/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-core.c662 unsigned int num_buffers, allocated_buffers, num_planes = 0; in vb2_core_reqbufs() local
722 allocated_buffers = in vb2_core_reqbufs()
724 if (allocated_buffers == 0) { in vb2_core_reqbufs()
733 if (allocated_buffers < q->min_buffers_needed) in vb2_core_reqbufs()
739 if (!ret && allocated_buffers < num_buffers) { in vb2_core_reqbufs()
740 num_buffers = allocated_buffers; in vb2_core_reqbufs()
752 if (!ret && allocated_buffers < num_buffers) in vb2_core_reqbufs()
762 q->num_buffers = allocated_buffers; in vb2_core_reqbufs()
769 __vb2_queue_free(q, allocated_buffers); in vb2_core_reqbufs()
779 *count = allocated_buffers; in vb2_core_reqbufs()
[all …]