Searched refs:max_num_buffers (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/media/common/videobuf2/ |
| H A D | videobuf2-core.c | 437 WARN_ON(index >= q->max_num_buffers || test_bit(index, q->bufs_bitmap) || vb->vb2_queue); in vb2_queue_add_buffer() 472 unsigned long index = q->max_num_buffers; in __vb2_queue_alloc() 480 q->max_num_buffers - vb2_get_num_buffers(q)); in __vb2_queue_alloc() 483 index = bitmap_find_next_zero_area(q->bufs_bitmap, q->max_num_buffers, in __vb2_queue_alloc() 486 if (index < q->max_num_buffers) in __vb2_queue_alloc() 725 for (buffer = 0; buffer < q->max_num_buffers; ++buffer) { in __buffers_in_use() 850 q->bufs = kcalloc(q->max_num_buffers, sizeof(*q->bufs), GFP_KERNEL); in vb2_core_allocated_buffers_storage() 855 q->bufs_bitmap = bitmap_zalloc(q->max_num_buffers, GFP_KERNEL); in vb2_core_allocated_buffers_storage() 911 __vb2_queue_free(q, 0, q->max_num_buffers); in vb2_core_reqbufs() 927 num_buffers = min_t(unsigned int, num_buffers, q->max_num_buffers); in vb2_core_reqbufs() [all …]
|
| H A D | videobuf2-v4l2.c | 624 for (i = 0; i < q->max_num_buffers; i++) { in vb2_find_buffer() 702 *max_num_bufs = q->max_num_buffers; in vb2_set_flags_and_caps() 756 &create->capabilities, &create->max_num_buffers); in vb2_create_bufs() 1053 &p->capabilities, &p->max_num_buffers); in vb2_ioctl_create_bufs()
|
| /linux/include/media/ |
| H A D | videobuf2-core.h | 651 unsigned int max_num_buffers; member 1191 return bitmap_weight(q->bufs_bitmap, q->max_num_buffers); in vb2_get_num_buffers() 1299 if (index >= q->max_num_buffers) in vb2_get_buffer()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-create-bufs.rst | 120 - ``max_num_buffers``
|
| H A D | vidioc-reqbufs.rst | 165 - If set, then the ``max_num_buffers`` field in ``struct v4l2_create_buffers``
|