Home
last modified time | relevance | path

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

12345678910>>...25

/OK3568_Linux_fs/kernel/drivers/media/test-drivers/vivid/
H 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 …]
/OK3568_Linux_fs/kernel/lib/xz/
H 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()
124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
125 if (copy_from_user(buffer_in, buf, buffers.in_size)) in xz_dec_test_write()
128 buf += buffers.in_size; in xz_dec_test_write()
[all …]
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/
H A Dmmap.rst18 Streaming is an I/O method where only pointers to buffers are exchanged
20 mapping is primarily intended to map buffers in device memory into the
24 drivers support streaming as well, allocating buffers in DMA-able main
27 A driver can support many sets of buffers. Each set is identified by a
32 To allocate device buffers applications call the
34 of buffers and buffer type, for example ``V4L2_BUF_TYPE_VIDEO_CAPTURE``.
35 This ioctl can also be used to change the number of buffers or to free
36 the allocated memory, provided none of the buffers are still mapped.
38 Before applications can access the buffers they must map them into their
40 location of the buffers in device memory can be determined with the
[all …]
H A Dcapture.c.rst51 struct buffer *buffers;
91 if (-1 == read(fd, buffers[0].start, buffers[0].length)) {
106 process_image(buffers[0].start, buffers[0].length);
132 process_image(buffers[buf.index].start, buf.bytesused);
160 if (buf.m.userptr == (unsigned long)buffers[i].start
161 && buf.length == buffers[i].length)
268 buf.m.userptr = (unsigned long)buffers[i].start;
269 buf.length = buffers[i].length;
287 free(buffers[0].start);
292 if (-1 == munmap(buffers[i].start, buffers[i].length))
[all …]
H 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.
67 Firstly, the buffers remain locked for longer, wasting physical memory.
73 buffers, to start capturing and enter the read loop. Here the
76 and enqueue buffers, when enough buffers are stacked up output is
78 buffers it must wait until an empty buffer can be dequeued and reused.
80 more buffers can be dequeued. By default :ref:`VIDIOC_DQBUF
[all …]
H A Ddev-decoder.rst12 from the client to process these buffers.
50 the destination buffer queue; for decoders, the queue of buffers containing
51 decoded frames; for encoders, the queue of buffers containing an encoded
54 into ``CAPTURE`` buffers.
78 ``OUTPUT`` buffers must be queued by the client in decode order; for
79 encoders ``CAPTURE`` buffers must be returned by the encoder in decode order.
86 buffers must be queued by the client in display order; for decoders,
87 ``CAPTURE`` buffers must be returned by the decoder in display order.
110 the source buffer queue; for decoders, the queue of buffers containing
111 an encoded bytestream; for encoders, the queue of buffers containing raw
[all …]
H 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,
66 If ``V4L2_BUF_CAP_SUPPORTS_ORPHANED_BUFS`` is set, then these buffers are
[all …]
H 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
64 descriptor. Although buffers are commonly cycled, applications can pass
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
[all …]
H A Dvidioc-create-bufs.rst13 VIDIOC_CREATE_BUFS - Create buffers for Memory Mapped or User Pointer or DMA Buffer I/O
34 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
68 will attempt to allocate up to the requested number of buffers and store
[all …]
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_base.c130 Vp8eVpuBuf *buffers = (Vp8eVpuBuf *)ctx->buffers; in set_segmentation() local
144 RK_U32 *map = mpp_buffer_get_ptr(buffers->hw_segment_map_buf); in set_segmentation()
436 Vp8eVpuBuf *buffers = (Vp8eVpuBuf *)ctx->buffers; in set_new_frame() local
574 hw_cfg->size_tbl_base = mpp_buffer_get_fd(buffers->hw_size_table_buf); in set_new_frame()
591 memset(mpp_buffer_get_ptr(buffers->hw_prob_count_buf), in set_new_frame()
1208 Vp8eVpuBuf *buffers = (Vp8eVpuBuf *)ctx->buffers; in alloc_buffer() local
1213 ret = mpp_buffer_group_get_internal(&buffers->hw_buf_grp, in alloc_buffer()
1221 ret = mpp_buffer_get(buffers->hw_buf_grp, &buffers->hw_luma_buf, in alloc_buffer()
1231 ret = mpp_buffer_get(buffers->hw_buf_grp, &buffers->hw_cbcr_buf[i], in alloc_buffer()
1239 hw_cfg->internal_img_lum_base_w = mpp_buffer_get_fd(buffers->hw_luma_buf); in alloc_buffer()
[all …]
/OK3568_Linux_fs/external/xserver/glx/
H A Dglxdri2.c93 __DRIbuffer buffers[MAX_DRAWABLE_BUFFERS]; member
645 DRI2BufferPtr *buffers; in dri2GetBuffers() local
650 buffers = DRI2GetBuffers(private->base.pDraw, in dri2GetBuffers()
659 buffers = DRI2GetBuffers(private->base.pDraw, in dri2GetBuffers()
679 && (buffers[i]->attachment == DRI2BufferFrontLeft)) { in dri2GetBuffers()
683 private->buffers[j].attachment = buffers[i]->attachment; in dri2GetBuffers()
684 private->buffers[j].name = buffers[i]->name; in dri2GetBuffers()
685 private->buffers[j].pitch = buffers[i]->pitch; in dri2GetBuffers()
686 private->buffers[j].cpp = buffers[i]->cpp; in dri2GetBuffers()
687 private->buffers[j].flags = buffers[i]->flags; in dri2GetBuffers()
[all …]
/OK3568_Linux_fs/kernel/drivers/android/
H 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/buffer/
H 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()
186 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_enable()
195 list_for_each_entry_continue_reverse(buf, &hwc->buffers, head) in iio_hw_consumer_enable()
209 list_for_each_entry(buf, &hwc->buffers, head) in iio_hw_consumer_disable()
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/dvb/
H 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
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_softjobs.c508 struct kbase_debug_copy_buffer *buffers = katom->softjob_data; in kbase_debug_copy_finish() local
512 if (!buffers) in kbase_debug_copy_finish()
518 struct kbase_mem_phy_alloc *gpu_alloc = buffers[i].gpu_alloc; in kbase_debug_copy_finish()
520 if (!buffers[i].pages) in kbase_debug_copy_finish()
522 for (p = 0; p < buffers[i].nr_pages; p++) { in kbase_debug_copy_finish()
523 struct page *pg = buffers[i].pages[p]; in kbase_debug_copy_finish()
528 if (buffers[i].is_vmalloc) in kbase_debug_copy_finish()
529 vfree(buffers[i].pages); in kbase_debug_copy_finish()
531 kfree(buffers[i].pages); in kbase_debug_copy_finish()
536 kbase_free_user_buffer(&buffers[i]); in kbase_debug_copy_finish()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/
H 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()
184 int SGsize = sizeof(struct ivtv_sg_host_element) * s->buffers; in ivtv_stream_alloc()
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()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/dri2/
H A Ddri2.c90 DRI2BufferPtr *buffers; member
251 pPriv->buffers = NULL; in DRI2AllocateDrawable()
438 if (pPriv->buffers != NULL) { in DRI2DrawableGone()
440 destroy_buffer(pDraw, pPriv->buffers[i], pPriv->prime_id); in DRI2DrawableGone()
442 free(pPriv->buffers); in DRI2DrawableGone()
491 if (pPriv->buffers == NULL) { in find_attachment()
496 if ((pPriv->buffers[i] != NULL) in find_attachment()
497 && (pPriv->buffers[i]->attachment == attachment)) { in find_attachment()
515 || !dimensions_match || (pPriv->buffers[old_buf]->format != format)) { in allocate_or_reuse_buffer()
521 *buffer = pPriv->buffers[old_buf]; in allocate_or_reuse_buffer()
[all …]
H A Ddri2ext.c213 DRI2BufferPtr * buffers, int count, int width, int height) in send_buffers_reply() argument
219 if (buffers == NULL) in send_buffers_reply()
226 if (buffers[i]->attachment == DRI2BufferFrontLeft) { in send_buffers_reply()
249 && (buffers[i]->attachment == DRI2BufferFrontLeft)) { in send_buffers_reply()
253 buffer.attachment = buffers[i]->attachment; in send_buffers_reply()
254 buffer.name = buffers[i]->name; in send_buffers_reply()
255 buffer.pitch = buffers[i]->pitch; in send_buffers_reply()
256 buffer.cpp = buffers[i]->cpp; in send_buffers_reply()
257 buffer.flags = buffers[i]->flags; in send_buffers_reply()
268 DRI2BufferPtr *buffers; in ProcDRI2GetBuffers() local
[all …]
/OK3568_Linux_fs/app/forlinx/flapp/src/plugins/imxx11/camera/
H A Dcamera.cpp20 struct buffer * buffers = NULL; variable
239 buffers = (struct buffer*)calloc(req.count, sizeof(*buffers)); in mmapInit()
241 if (!buffers) in mmapInit()
260 buffers[n_buffers].length = buf.length; in mmapInit()
262 buffers[n_buffers].start = in mmapInit()
265 if (MAP_FAILED == buffers[n_buffers].start) in mmapInit()
357 imageProcess(buffers[buf.index].start,src); in frameRead()
385 if (-1 == munmap (buffers[i].start, buffers[i].length)) in deviceUninit()
389 free(buffers); in deviceUninit()
/OK3568_Linux_fs/kernel/drivers/scsi/isci/
H 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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_softjobs.c525 struct kbase_debug_copy_buffer *buffers = in kbase_debug_copy_finish() local
530 if (!buffers) in kbase_debug_copy_finish()
536 struct kbase_mem_phy_alloc *gpu_alloc = buffers[i].gpu_alloc; in kbase_debug_copy_finish()
538 if (!buffers[i].pages) in kbase_debug_copy_finish()
540 for (p = 0; p < buffers[i].nr_pages; p++) { in kbase_debug_copy_finish()
541 struct page *pg = buffers[i].pages[p]; in kbase_debug_copy_finish()
546 kfree(buffers[i].pages); in kbase_debug_copy_finish()
551 free_user_buffer(&buffers[i]); in kbase_debug_copy_finish()
562 kfree(buffers); in kbase_debug_copy_finish()
569 struct kbase_debug_copy_buffer *buffers; in kbase_debug_copy_prepare() local
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/media/
H A Dv4l2-videobuf.rst21 and user space. It handles the allocation and management of buffers for
34 Not all video devices use the same kind of buffers. In fact, there are (at
38 address spaces. (Almost) all user-space buffers are like this, but it
39 makes great sense to allocate kernel-space buffers this way as well when
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.
54 Videobuf can work with all three types of buffers, but the driver author
57 [It's worth noting that there's a fourth kind of buffer: "overlay" buffers
61 benefits merit the use of this technique. Overlay buffers can be handled
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H 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
/OK3568_Linux_fs/yocto/meta-openembedded/meta-multimedia/recipes-multimedia/fluidsynth/fluidsynth/
H A D0002-fluid_synth_nwrite_float-Allow-zero-pointer-for-left.patch11 buffers to avoid useless copying of data. On weak machines this leads to measurable
31 - * @param left Array of float buffers to store left channel of planar audio (as many as \c synth.a…
32 - * @param right Array of float buffers to store right channel of planar audio (size: dito)
33 ….7: If not \c NULL, array of float buffers to store left effect channels (as many as \c synth.effe…
34 - * @param fx_right Since 1.1.7: If not \c NULL, array of float buffers to store right effect chann…
35 + * @param left Array of float buffers to store left channel of planar audio (as many as \c synth.a…
36 + * @param right Array of float buffers to store right channel of planar audio (size: dito). Since …
37 ….7: If not \c NULL, array of float buffers to store left effect channels (as many as \c synth.effe…
38 + * @param fx_right Since 1.1.7: If not \c NULL, array of float buffers to store right effect chann…
/OK3568_Linux_fs/kernel/Documentation/admin-guide/media/
H 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

12345678910>>...25