Home
last modified time | relevance | path

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

12345678910>>...19

/linux/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
[all...]
/linux/lib/xz/
H A Dxz_dec_test.c41 * Input and output buffers. The input buffer is used as a temporary safe
48 * Structure to pass the input and output buffers to the XZ decoder.
51 static struct xz_buf buffers = { variable
74 buffers.in_pos = 0; in xz_dec_test_open()
75 buffers.in_size = 0; in xz_dec_test_open()
76 buffers.out_pos = 0; in xz_dec_test_open()
119 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write()
121 if (buffers.in_pos == buffers in xz_dec_test_write()
[all...]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_bl.c29 dma_unmap_single(dev, bl->buffers[i].addr, in qat_bl_free_bufl()
30 bl->buffers[i].len, bl_dma_dir); in qat_bl_free_bufl()
39 dma_unmap_single(dev, blout->buffers[i].addr, in qat_bl_free_bufl()
40 blout->buffers[i].len, in qat_bl_free_bufl()
68 size_t sz_out, sz = struct_size(bufl, buffers, n); in __qat_bl_sgl_to_bufl()
93 bufl->buffers[i].addr = DMA_MAPPING_ERROR; in __qat_bl_sgl_to_bufl()
107 bufl->buffers[y].addr = dma_map_single(dev, sg_virt(sg) + left, in __qat_bl_sgl_to_bufl()
110 bufl->buffers[y].len = sg->length; in __qat_bl_sgl_to_bufl()
111 if (unlikely(dma_mapping_error(dev, bufl->buffers[y].addr))) in __qat_bl_sgl_to_bufl()
115 bufl->buffers[ in __qat_bl_sgl_to_bufl()
128 struct qat_alg_buf *buffers; __qat_bl_sgl_to_bufl() local
[all...]
/linux/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 i
[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 i
[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.
84 ``OUTPUT`` buffers must be queued by the client in decode order; for
85 encoders ``CAPTURE`` buffers must be returned by the encoder in decode order.
92 buffers must be queued by the client in display order; for decoders,
93 ``CAPTURE`` buffers must be returned by the decoder in display order.
117 the source buffer queue; for decoders, the queue of buffers containing
118 an encoded bytestream; for encoders, the queue of buffers containin
[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 an
[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, whe
[all...]
H A Dvidioc-remove-bufs.rst13 VIDIOC_REMOVE_BUFS - Removes buffers from a queue
35 remove buffers from a queue.
55 - The number of buffers to be removed with indices 'index' until 'index + count - 1'.
56 All buffers in this range must be valid and in DEQUEUED state.
62 - Type of the stream or buffers, this is the same as the struct
76 buffers will be freed and one of the error codes below will be returned:
80 One or more of the buffers in the range ``index`` to ``index + count - 1`` are not
84 One or more of the buffers in the range ``index`` to ``index + count - 1`` do not
H 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``
51 If ``VIDIOC_STREAMON`` fails then any already queued buffers will remain
55 in progress, unlocks any user pointer buffers locked in physical memory,
56 and it removes all buffers from the incoming and outgoing queues. That
63 If buffers have been queued with :ref:`VIDIOC_QBUF` and
65 ``VIDIOC_STREAMON``, then those queued buffers will also be removed from
77 but ``VIDIOC_STREAMOFF`` will return queued buffers to their starting
95 The buffer ``type`` is not supported, or no buffers have been
H 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);
H A Ddev-encoder.rst157 desired size of ``CAPTURE`` buffers; the encoder may adjust it to
169 adjusted size of ``CAPTURE`` buffers.
307 coded video. It does *not* set the rate at which buffers arrive on the
365 buffers to be aligned to 1920x1088 for codecs with 16x16 macroblock
375 7. Allocate buffers for both ``OUTPUT`` and ``CAPTURE`` via
381 requested number of buffers to allocate; greater than zero.
393 actual number of buffers allocated.
397 The actual number of allocated buffers may differ from the ``count``
403 To allocate more than the minimum number of OUTPUT buffers (for pipeline
405 control to get the minimum number of buffers require
[all...]
/linux/drivers/media/platform/qcom/iris/
H A Diris_buffer.c240 struct iris_buffers *buffers = &inst->buffers[buffer_type]; in iris_fill_internal_buf_info() local
242 buffers->size = iris_vpu_buf_size(inst, buffer_type); in iris_fill_internal_buf_info()
243 buffers->min_count = iris_vpu_buf_count(inst, buffer_type); in iris_fill_internal_buf_info()
268 struct iris_buffers *buffers = &inst->buffers[buffer_type]; in iris_create_internal_buffer() local
272 if (!buffers->size) in iris_create_internal_buffer()
282 buffer->buffer_size = buffers->size; in iris_create_internal_buffer()
284 list_add_tail(&buffer->list, &buffers->list); in iris_create_internal_buffer()
298 struct iris_buffers *buffers; in iris_create_internal_buffers() local
341 struct iris_buffers *buffers; iris_queue_internal_buffers() local
386 struct iris_buffers *buffers; iris_destroy_internal_buffers() local
433 struct iris_buffers *buffers = &inst->buffers[buffer_type]; iris_release_internal_buffers() local
472 struct iris_buffers *buffers = &inst->buffers[BUF_PERSIST]; iris_alloc_and_queue_persist_bufs() local
[all...]
H A Diris_vidc.c156 INIT_LIST_HEAD(&inst->buffers[BUF_BIN].list); in iris_open()
157 INIT_LIST_HEAD(&inst->buffers[BUF_ARP].list); in iris_open()
158 INIT_LIST_HEAD(&inst->buffers[BUF_COMV].list); in iris_open()
159 INIT_LIST_HEAD(&inst->buffers[BUF_NON_COMV].list); in iris_open()
160 INIT_LIST_HEAD(&inst->buffers[BUF_LINE].list); in iris_open()
161 INIT_LIST_HEAD(&inst->buffers[BUF_DPB].list); in iris_open()
162 INIT_LIST_HEAD(&inst->buffers[BUF_PERSIST].list); in iris_open()
163 INIT_LIST_HEAD(&inst->buffers[BUF_SCRATCH_1].list); in iris_open()
228 struct iris_buffers *buffers; in iris_check_num_queued_internal_buffers() local
242 buffers in iris_check_num_queued_internal_buffers()
[all...]
/linux/fs/verity/
H A Denable.c77 struct block_buffer *buffers = &_buffers[1]; in build_merkle_tree() local
90 * Allocate the block buffers. Buffer "-1" is for data blocks. in build_merkle_tree()
95 buffers[level].data = kzalloc(params->block_size, GFP_KERNEL); in build_merkle_tree()
96 if (!buffers[level].data) { in build_merkle_tree()
101 buffers[num_levels].data = root_hash; in build_merkle_tree()
102 buffers[num_levels].is_root_hash = true; in build_merkle_tree()
112 buffers[-1].filled = min_t(u64, params->block_size, in build_merkle_tree()
114 bytes_read = __kernel_read(filp, buffers[-1].data, in build_merkle_tree()
115 buffers[-1].filled, &pos); in build_merkle_tree()
121 if (bytes_read != buffers[ in build_merkle_tree()
[all...]
/linux/drivers/iio/buffer/
H A Dindustrialio-hw-consumer.c19 * @buffers: hardware buffers list head.
23 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, hea in iio_hw_consumer_enable()
[all...]
/linux/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, afte
[all...]
/linux/drivers/staging/media/starfive/camss/
H A Dstf-capture.c79 struct stf_v_buf *output = &cap->buffers; in stf_init_addrs()
113 struct stf_v_buf *output = &cap->buffers; in stf_cap_s_cfg()
138 struct stf_v_buf *output = &cap->buffers; in stf_cap_s_cleanup()
244 cap->buffers.state = STF_OUTPUT_OFF; in stf_capture_init()
245 cap->buffers.buf[0] = NULL; in stf_capture_init()
246 cap->buffers.buf[1] = NULL; in stf_capture_init()
247 cap->buffers.active_buf = 0; in stf_capture_init()
248 atomic_set(&cap->buffers.frame_skip, 4); in stf_capture_init()
249 INIT_LIST_HEAD(&cap->buffers.pending_bufs); in stf_capture_init()
250 INIT_LIST_HEAD(&cap->buffers in stf_capture_init()
[all...]
/linux/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()
93 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
94 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'.
95 If 'steal' != NULL, then buffers may also taken from that queue if
99 also cleared if buffers need to be taken from the 'steal' queue and
107 -ENOMEM is returned if the buffers coul
[all...]
/linux/drivers/gpu/drm/imagination/
H A Dpvr_fw_trace.c33 for (u32 thread_nr = 0; thread_nr < ARRAY_SIZE(fw_trace->buffers); thread_nr++) { in tracebuf_ctrl_init()
36 struct pvr_fw_trace_buffer *trace_buffer = &fw_trace->buffers[thread_nr]; in tracebuf_ctrl_init()
52 for (u32 thread_nr = 0; thread_nr < ARRAY_SIZE(fw_trace->buffers); thread_nr++) { in pvr_fw_trace_init()
53 struct pvr_fw_trace_buffer *trace_buffer = &fw_trace->buffers[thread_nr]; in pvr_fw_trace_init()
87 ARRAY_SIZE(fw_trace->buffers)); in pvr_fw_trace_init()
89 for (u32 thread_nr = 0; thread_nr < ARRAY_SIZE(fw_trace->buffers); thread_nr++) { in pvr_fw_trace_init()
92 struct pvr_fw_trace_buffer *trace_buffer = &fw_trace->buffers[thread_nr]; in pvr_fw_trace_init()
100 for (u32 thread_nr = 0; thread_nr < ARRAY_SIZE(fw_trace->buffers); thread_nr++) { in pvr_fw_trace_init()
101 struct pvr_fw_trace_buffer *trace_buffer = &fw_trace->buffers[thread_nr]; in pvr_fw_trace_init()
114 for (u32 thread_nr = 0; thread_nr < ARRAY_SIZE(fw_trace->buffers); thread_n in pvr_fw_trace_fini()
[all...]
/linux/drivers/scsi/isci/
H A Dunsolicited_frame_control.c69 * The Unsolicited Frame buffers are set at the start of the UF in sci_unsolicited_frame_control_construct()
71 * placed after the buffers. in sci_unsolicited_frame_control_construct()
106 * Program the actual used UF buffers into the UF address table and in sci_unsolicited_frame_control_construct()
110 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/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
/linux/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
/linux/drivers/android/tests/
H A Dbinder_alloc_kunit.c166 struct binder_buffer *buffers[], in binder_alloc_test_alloc_buf() argument
173 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0); in binder_alloc_test_alloc_buf()
174 if (IS_ERR(buffers[i]) || in binder_alloc_test_alloc_buf()
175 !check_buffer_pages_allocated(test, alloc, buffers[i], sizes[i])) in binder_alloc_test_alloc_buf()
184 struct binder_buffer *buffers[], in binder_alloc_test_free_buf() argument
191 binder_alloc_free_buf(alloc, buffers[seq[i]]); in binder_alloc_test_free_buf()
235 struct binder_buffer *buffers[BUFFER_NUM]; in binder_alloc_test_alloc_free() local
239 failures = binder_alloc_test_alloc_buf(test, alloc, buffers, in binder_alloc_test_alloc_free()
244 "Initial allocation failed: %lu/%u buffers with errors", in binder_alloc_test_alloc_free()
247 failures = binder_alloc_test_free_buf(test, alloc, buffers, in binder_alloc_test_alloc_free()
[all...]
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_client_blt.c102 struct blit_buffer buffers[3]; member
262 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) in tiled_blits_destroy_buffers()
263 i915_vma_put(t->buffers[i].vma); in tiled_blits_destroy_buffers()
315 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) { in tiled_blits_create_buffers()
324 t->buffers[i].vma = vma; in tiled_blits_create_buffers()
325 t->buffers[i].tiling = in tiled_blits_create_buffers()
610 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) { in tiled_blits_prepare()
615 &t->buffers[i], t->hole + offset, in tiled_blits_prepare()
618 err = verify_buffer(t, &t->buffers[i], prng); in tiled_blits_prepare()
637 &t->buffers[ in tiled_blits_bounce()
[all...]

12345678910>>...19