Home
last modified time | relevance | path

Searched refs:buffers (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/linux/drivers/media/test-drivers/vivid/
A Dvivid-vid-common.c41 .buffers = 1,
50 .buffers = 1,
58 .buffers = 1,
66 .buffers = 1,
74 .buffers = 1,
82 .buffers = 1,
90 .buffers = 1,
98 .buffers = 1,
106 .buffers = 1,
114 .buffers = 1,
[all …]
/linux/lib/xz/
A Dxz_dec_test.c52 static struct xz_buf buffers = { variable
75 buffers.in_pos = 0; in xz_dec_test_open()
76 buffers.in_size = 0; in xz_dec_test_open()
77 buffers.out_pos = 0; in xz_dec_test_open()
120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write()
122 if (buffers.in_pos == buffers.in_size) { in xz_dec_test_write()
123 buffers.in_pos = 0; in xz_dec_test_write()
128 buf += buffers.in_size; in xz_dec_test_write()
129 remaining -= buffers.in_size; in xz_dec_test_write()
132 buffers.out_pos = 0; in xz_dec_test_write()
[all …]
/linux/Documentation/userspace-api/media/v4l/
A Dmmap.rst65 } *buffers;
90 buffers = calloc(reqbuf.count, sizeof(*buffers));
91 assert(buffers != NULL);
115 the buffers mapped so far. */
124 munmap(buffers[i].start, buffers[i].length);
138 } *buffers;
163 buffers = calloc(reqbuf.count, sizeof(*buffers));
164 assert(buffers != NULL);
206 munmap(buffers[i].start[j], buffers[i].length[j]);
229 applications fill and enqueue buffers, when enough buffers are stacked
[all …]
A Dcapture.c.rst91 if (-1 == read(fd, buffers[0].start, buffers[0].length)) {
106 process_image(buffers[0].start, buffers[0].length);
287 free(buffers[0].start);
292 if (-1 == munmap(buffers[i].start, buffers[i].length))
302 free(buffers);
307 buffers = calloc(1, sizeof(*buffers));
309 if (!buffers) {
349 buffers = calloc(req.count, sizeof(*buffers));
351 if (!buffers) {
401 buffers = calloc(4, sizeof(*buffers));
[all …]
A Duserp.rst26 No buffers (planes) are allocated beforehand, consequently they are not
27 indexed and cannot be queried like mapped buffers with the
51 :ref:`VIDIOC_QBUF <VIDIOC_QBUF>` ioctl. Although buffers are commonly
60 Filled or displayed buffers are dequeued with the
66 Applications must take care not to free buffers without dequeuing.
73 buffers, to start capturing and enter the read loop. Here the
76 and enqueue buffers, when enough buffers are stacked up output is
80 more buffers can be dequeued. By default :ref:`VIDIOC_DQBUF
94 :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` removes all buffers from
99 outputted buffers.
[all …]
A Ddev-decoder.rst12 from the client to process these buffers.
54 into ``CAPTURE`` buffers.
114 from ``OUTPUT`` buffers.
569 buffers.
712 and ``OUTPUT`` buffers and any specific timing of buffers becoming
736 To allow matching decoded ``CAPTURE`` buffers with ``OUTPUT`` buffers they
752 buffers are out-of-order compared to the ``OUTPUT`` buffers): ``CAPTURE``
757 ``CAPTURE`` buffers that originated from all the ``OUTPUT`` buffers processed
848 buffers containing decoded frames.
868 ``OUTPUT`` buffers, which means that not all of the ``OUTPUT`` buffers
[all …]
A Dvidioc-reqbufs.rst36 Memory mapped buffers are located in device memory and must be allocated
38 space. User buffers are allocated by applications themselves, and this
40 to setup some internal structures. Similarly, DMABUF buffers are
45 To allocate device buffers applications initialize all fields of the
48 the desired number of buffers, ``memory`` must be set to the requested
51 allocate the requested number of buffers and it stores the actual number
54 number is also possible when the driver requires more buffers to
56 buffers, one displayed and one filled by the application.
62 buffers. Note that if any buffers are still mapped or exported via DMABUF,
83 - The number of buffers requested or granted.
[all …]
A Ddmabuf.rst10 The DMABUF framework provides a generic method for sharing buffers
19 exporting V4L2 buffers as DMABUF file descriptors.
25 importing DMA buffers through DMABUF file descriptors is supported is
29 This I/O method is dedicated to sharing DMA buffers between different
32 application. Next, these buffers are exported to the application as file
63 buffers, every plane can be associated with a different DMABUF
121 Captured or displayed buffers are dequeued with the
129 buffers, to start capturing and enter the read loop. Here the
132 and enqueue buffers, when enough buffers are stacked up output is
136 more buffers can be dequeued. By default :ref:`VIDIOC_DQBUF
[all …]
A Dvidioc-create-bufs.rst34 This ioctl is used to create buffers for :ref:`memory mapped <mmap>`
38 over buffers is required. This ioctl can be called multiple times to
39 create buffers of different sizes.
41 To allocate the device buffers applications must initialize the relevant
43 ``count`` field must be set to the number of requested buffers, the
47 The ``format`` field specifies the image format that the buffers must be
54 sizes (for multi-planar formats) will be used for the allocated buffers.
58 The buffers created by this ioctl will have as minimum size the size
87 - The number of buffers requested or granted. If count == 0, then
89 created buffers, and it will check the validity of ``memory`` and
[all …]
A Dvidioc-streamon.rst43 Capture hardware is disabled and no input buffers are filled (if there
44 are any empty buffers in the incoming queue) until ``VIDIOC_STREAMON``
52 If ``VIDIOC_STREAMON`` fails then any already queued buffers will remain
56 in progress, unlocks any user pointer buffers locked in physical memory,
57 and it removes all buffers from the incoming and outgoing queues. That
64 If buffers have been queued with :ref:`VIDIOC_QBUF` and
66 ``VIDIOC_STREAMON``, then those queued buffers will also be removed from
78 but ``VIDIOC_STREAMOFF`` will return queued buffers to their starting
96 The buffer ``type`` is not supported, or no buffers have been
A Ddev-encoder.rst169 adjusted size of ``CAPTURE`` buffers.
375 7. Allocate buffers for both ``OUTPUT`` and ``CAPTURE`` via
393 actual number of buffers allocated.
426 adjusted to the number of allocated buffers.
465 ``OUTPUT`` buffers and any specific timing of buffers becoming
489 To allow matching encoded ``CAPTURE`` buffers with ``OUTPUT`` buffers they
502 ``CAPTURE`` buffers are out-of-order compared to the ``OUTPUT`` buffers):
529 free existing buffers that were too small.
586 2. Any ``OUTPUT`` buffers queued by the client before the
606 * dequeuing processed ``OUTPUT`` buffers, until all the buffers queued
[all …]
A Dv4l2grab.c.rst67 struct buffer *buffers;
96 buffers = calloc(req.count, sizeof(*buffers));
106 buffers[n_buffers].length = buf.length;
107 buffers[n_buffers].start = v4l2_mmap(NULL, buf.length,
111 if (MAP_FAILED == buffers[n_buffers].start) {
156 fwrite(buffers[buf.index].start, buf.bytesused, 1, fout);
165 v4l2_munmap(buffers[i].start, buffers[i].length);
A Ddev-stateless-decoder.rst100 destination buffers parsed/decoded from the bytestream.
167 to obtain up-to-date information about the buffers size and layout.
169 6. Allocate source (bytestream) buffers via :c:func:`VIDIOC_REQBUFS` on
175 requested number of buffers to allocate; greater than zero.
186 actual number of buffers allocated.
191 to get the actual number of buffers allocated.
209 for ``CAPTURE`` buffers.
215 more buffers than requested.
220 returns to get the number of buffers allocated.
324 ``CAPTURE`` buffers must not be part of the request, and are queued
[all …]
/linux/drivers/android/
A Dbinder_alloc_selftest.c116 struct binder_buffer *buffers[], in binder_selftest_alloc_buf() argument
122 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0, 0); in binder_selftest_alloc_buf()
123 if (IS_ERR(buffers[i]) || in binder_selftest_alloc_buf()
124 !check_buffer_pages_allocated(alloc, buffers[i], in binder_selftest_alloc_buf()
133 struct binder_buffer *buffers[], in binder_selftest_free_buf() argument
139 binder_alloc_free_buf(alloc, buffers[seq[i]]); in binder_selftest_free_buf()
179 struct binder_buffer *buffers[BUFFER_NUM]; in binder_selftest_alloc_free() local
181 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free()
182 binder_selftest_free_buf(alloc, buffers, sizes, seq, end); in binder_selftest_alloc_free()
185 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free()
[all …]
/linux/drivers/iio/buffer/
A Dindustrialio-hw-consumer.c23 struct list_head buffers; member
58 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer()
72 list_add_tail(&buf->head, &hwc->buffers); in iio_hw_consumer_get_buffer()
94 INIT_LIST_HEAD(&hwc->buffers); in iio_hw_consumer_alloc()
116 list_for_each_entry(buf, &hwc->buffers, head) in iio_hw_consumer_alloc()
134 list_for_each_entry_safe(buf, n, &hwc->buffers, head) in iio_hw_consumer_free()
183 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_enable()
192 list_for_each_entry_continue_reverse(buf, &hwc->buffers, head) in iio_hw_consumer_enable()
206 list_for_each_entry(buf, &hwc->buffers, head) in iio_hw_consumer_disable()
/linux/Documentation/userspace-api/media/dvb/
A Ddmx-reqbufs.rst38 Memory mapped buffers are located in device memory and must be allocated
40 space. User buffers are allocated by applications themselves, and this
42 to setup some internal structures. Similarly, DMABUF buffers are
47 To allocate device buffers applications initialize all fields of the
49 to the desired number of buffers, and ``size`` to the size of each
53 attempt to allocate the requested number of buffers and it stores the actual
55 number is also possible when the driver requires more buffers to
63 buffers, however this cannot succeed when any buffers are still mapped.
64 A ``count`` value of zero frees all buffers, after aborting or finishing
/linux/drivers/media/pci/ivtv/
A Divtv-queue.c35 q->buffers = 0; in ivtv_queue_init()
53 q->buffers++; in ivtv_enqueue()
68 q->buffers--; in ivtv_dequeue()
82 from->buffers--; in ivtv_queue_move_buf()
88 to->buffers++; in ivtv_queue_move_buf()
143 steal->buffers--; in ivtv_queue_move()
147 from->buffers++; in ivtv_queue_move()
187 if (s->buffers == 0) in ivtv_stream_alloc()
192 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); in ivtv_stream_alloc()
228 for (i = 0; i < s->buffers; i++) { in ivtv_stream_alloc()
[all …]
/linux/drivers/scsi/isci/
A Dunsolicited_frame_control.c110 uf = &uf_control->buffers.array[i]; in sci_unsolicited_frame_control_construct()
136 *frame_header = &uf_control->buffers.array[frame_index].header->data; in sci_unsolicited_frame_control_get_header()
149 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in sci_unsolicited_frame_control_get_buffer()
184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; in sci_unsolicited_frame_control_release_frame()
198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) { in sci_unsolicited_frame_control_release_frame()
199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY; in sci_unsolicited_frame_control_release_frame()
/linux/Documentation/driver-api/media/
A Dv4l2-videobuf.rst21 and user space. It handles the allocation and management of buffers for
38 address spaces. (Almost) all user-space buffers are like this, but it
45 contiguous; buffers allocated with vmalloc(), in other words. These
46 buffers are just as hard to use for DMA operations, but they can be
48 buffers are convenient.
69 Depending on which type of buffers are being used, the driver should
75 <media/videobuf-vmalloc.h> /* vmalloc() buffers */
85 the management of buffers:
105 minimum of two buffers are needed for proper streaming, and there is
348 Filling the buffers
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-kernel-dmabuf-buffers1 What: /sys/kernel/dmabuf/buffers
5 Description: The /sys/kernel/dmabuf/buffers directory contains a
7 /sys/kernel/dmabuf/buffers/<inode_number> will contain the
12 What: /sys/kernel/dmabuf/buffers/<inode_number>/exporter_name
19 What: /sys/kernel/dmabuf/buffers/<inode_number>/size
/linux/Documentation/admin-guide/media/
A Dcafe_ccic.rst37 buffers until the time comes to transfer data. If this option is set,
38 then worst-case-sized buffers will be allocated at module load time.
42 - dma_buf_size: The size of DMA buffers to allocate. Note that this
43 option is only consulted for load-time allocation; when buffers are
48 buffers. Normally, the driver tries to use three buffers; on faster
51 - min_buffers: The minimum number of streaming I/O buffers that the driver
56 - max_buffers: The maximum number of streaming I/O buffers; default is
/linux/drivers/gpu/drm/i915/gem/selftests/
A Di915_gem_client_blt.c38 struct blit_buffer buffers[3]; member
118 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) in tiled_blits_destroy_buffers()
119 i915_vma_put(t->buffers[i].vma); in tiled_blits_destroy_buffers()
171 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) { in tiled_blits_create_buffers()
180 t->buffers[i].vma = vma; in tiled_blits_create_buffers()
181 t->buffers[i].tiling = in tiled_blits_create_buffers()
473 &t->buffers[i], t->hole + offset, in tiled_blits_prepare()
496 &t->buffers[1], t->hole + offset / 2, in tiled_blits_bounce()
497 &t->buffers[0], t->hole + 2 * offset); in tiled_blits_bounce()
504 &t->buffers[1], t->hole + 3 * offset / 2); in tiled_blits_bounce()
[all …]
/linux/lib/reed_solomon/
A Ddecode_rs.c32 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1);
33 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1);
34 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1);
35 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1);
36 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1);
37 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1);
38 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1);
39 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
/linux/kernel/trace/
A Dring_buffer.c919 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_wait()
1023 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_poll_wait()
1745 if (!buffer->buffers) in __ring_buffer_alloc()
1751 if (!buffer->buffers[cpu]) in __ring_buffer_alloc()
1764 if (buffer->buffers[cpu]) in __ring_buffer_alloc()
1767 kfree(buffer->buffers); in __ring_buffer_alloc()
1792 kfree(buffer->buffers); in ring_buffer_free()
3224 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_nest_start()
3243 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_nest_end()
5706 buffer->buffers[cpu] = in trace_rb_cpu_prepare()
[all …]
/linux/Documentation/filesystems/
A Drelay.rst12 as a set of per-cpu kernel buffers ('channel buffers'), each
14 clients write into the channel buffers using efficient write
19 are associated with the channel buffers using the API described below.
21 The format of the data logged into the channel buffers is completely
36 sub-buffers. Messages are written to the first sub-buffer until it is
60 read sub-buffers; thus in cases where read(2) is being used to drain
98 consumes the read sub-buffers; thus in cases where read(2) is being
99 used to drain the channel buffers, special-purpose communication
200 channel buffers. Each channel buffer will have an associated file
336 per-cpu channel buffers, each implemented as a circular buffer
[all …]

Completed in 45 milliseconds

12345678910>>...18