/Linux-v4.19/drivers/media/platform/vivid/ |
D | vivid-vid-common.c | 41 .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-v4.19/lib/xz/ |
D | xz_dec_test.c | 52 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 …]
|
/Linux-v4.19/Documentation/media/uapi/v4l/ |
D | mmap.rst | 17 Streaming is an I/O method where only pointers to buffers are exchanged 19 mapping is primarily intended to map buffers in device memory into the 23 drivers support streaming as well, allocating buffers in DMA-able main 26 A driver can support many sets of buffers. Each set is identified by a 31 To allocate device buffers applications call the 33 of buffers and buffer type, for example ``V4L2_BUF_TYPE_VIDEO_CAPTURE``. 34 This ioctl can also be used to change the number of buffers or to free 35 the allocated memory, provided none of the buffers are still mapped. 37 Before applications can access the buffers they must map them into their 39 location of the buffers in device memory can be determined with the [all …]
|
D | capture.c.rst | 51 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 …]
|
D | vidioc-reqbufs.rst | 36 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, however this cannot succeed when any buffers are still mapped. 63 A ``count`` value of zero frees all buffers, after aborting or finishing [all …]
|
D | userp.rst | 25 No buffers (planes) are allocated beforehand, consequently they are not 26 indexed and cannot be queried like mapped buffers with the 50 :ref:`VIDIOC_QBUF <VIDIOC_QBUF>` ioctl. Although buffers are commonly 59 Filled or displayed buffers are dequeued with the 65 Applications must take care not to free buffers without dequeuing. For 66 once, the buffers remain locked until further, wasting physical memory. 72 buffers, to start capturing and enter the read loop. Here the 75 and enqueue buffers, when enough buffers are stacked up output is 77 buffers it must wait until an empty buffer can be dequeued and reused. 79 more buffers can be dequeued. By default :ref:`VIDIOC_DQBUF [all …]
|
D | vidioc-create-bufs.rst | 12 VIDIOC_CREATE_BUFS - Create buffers for Memory Mapped or User Pointer or DMA Buffer I/O 35 This ioctl is used to create buffers for :ref:`memory mapped <mmap>` 39 over buffers is required. This ioctl can be called multiple times to 40 create buffers of different sizes. 42 To allocate the device buffers applications must initialize the relevant 44 ``count`` field must be set to the number of requested buffers, the 48 The ``format`` field specifies the image format that the buffers must be 55 sizes (for multi-planar formats) will be used for the allocated buffers. 59 The buffers created by this ioctl will have as minimum size the size 69 will attempt to allocate up to the requested number of buffers and store [all …]
|
D | dmabuf.rst | 9 The DMABUF framework provides a generic method for sharing buffers 18 exporting V4L2 buffers as DMABUF file descriptors. 24 importing DMA buffers through DMABUF file descriptors is supported is 28 This I/O method is dedicated to sharing DMA buffers between different 31 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 …]
|
D | vidioc-streamon.rst | 42 Capture hardware is disabled and no input buffers are filled (if there 43 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 96 The buffer ``type`` is not supported, or no buffers have been
|
D | v4l2grab.c.rst | 67 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);
|
/Linux-v4.19/drivers/staging/media/zoran/ |
D | zoran_driver.c | 192 fh->buffers.buffer_size = v4l_bufsize; in map_mode_raw() 193 fh->buffers.num_buffers = v4l_nbufs; in map_mode_raw() 198 fh->buffers.buffer_size = jpg_bufsize; in map_mode_jpg() 199 fh->buffers.num_buffers = jpg_nbufs; in map_mode_jpg() 218 for (i = 0; i < fh->buffers.num_buffers; i++) { in v4l_fbuffer_alloc() 219 if (fh->buffers.buffer[i].v4l.fbuffer) in v4l_fbuffer_alloc() 226 mem = kmalloc(fh->buffers.buffer_size, in v4l_fbuffer_alloc() 236 fh->buffers.buffer[i].v4l.fbuffer = mem; in v4l_fbuffer_alloc() 237 fh->buffers.buffer[i].v4l.fbuffer_phys = virt_to_phys(mem); in v4l_fbuffer_alloc() 238 fh->buffers.buffer[i].v4l.fbuffer_bus = virt_to_bus(mem); in v4l_fbuffer_alloc() [all …]
|
/Linux-v4.19/drivers/android/ |
D | binder_alloc_selftest.c | 124 struct binder_buffer *buffers[], in binder_selftest_alloc_buf() argument 130 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0); in binder_selftest_alloc_buf() 131 if (IS_ERR(buffers[i]) || in binder_selftest_alloc_buf() 132 !check_buffer_pages_allocated(alloc, buffers[i], in binder_selftest_alloc_buf() 141 struct binder_buffer *buffers[], in binder_selftest_free_buf() argument 147 binder_alloc_free_buf(alloc, buffers[seq[i]]); in binder_selftest_free_buf() 187 struct binder_buffer *buffers[BUFFER_NUM]; in binder_selftest_alloc_free() local 189 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free() 190 binder_selftest_free_buf(alloc, buffers, sizes, seq, end); in binder_selftest_alloc_free() 193 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free() [all …]
|
/Linux-v4.19/drivers/iio/buffer/ |
D | industrialio-hw-consumer.c | 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() 217 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_enable() 226 list_for_each_entry_continue_reverse(buf, &hwc->buffers, head) in iio_hw_consumer_enable() 240 list_for_each_entry(buf, &hwc->buffers, head) in iio_hw_consumer_disable()
|
/Linux-v4.19/Documentation/media/uapi/dvb/ |
D | dmx-reqbufs.rst | 36 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 47 to the desired number of buffers, and ``size`` to the size of each 51 attempt to allocate the requested number of buffers and it stores the actual 53 number is also possible when the driver requires more buffers to 61 buffers, however this cannot succeed when any buffers are still mapped. 62 A ``count`` value of zero frees all buffers, after aborting or finishing
|
/Linux-v4.19/drivers/media/pci/ivtv/ |
D | ivtv-queue.c | 47 q->buffers = 0; in ivtv_queue_init() 65 q->buffers++; in ivtv_enqueue() 80 q->buffers--; in ivtv_dequeue() 94 from->buffers--; in ivtv_queue_move_buf() 100 to->buffers++; in ivtv_queue_move_buf() 155 steal->buffers--; in ivtv_queue_move() 159 from->buffers++; in ivtv_queue_move() 196 int SGsize = sizeof(struct ivtv_sg_host_element) * s->buffers; in ivtv_stream_alloc() 199 if (s->buffers == 0) in ivtv_stream_alloc() 204 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); in ivtv_stream_alloc() [all …]
|
/Linux-v4.19/drivers/scsi/isci/ |
D | unsolicited_frame_control.c | 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-v4.19/Documentation/media/v4l-drivers/ |
D | cafe_ccic.rst | 35 buffers until the time comes to transfer data. If this option is set, 36 then worst-case-sized buffers will be allocated at module load time. 40 - dma_buf_size: The size of DMA buffers to allocate. Note that this 41 option is only consulted for load-time allocation; when buffers are 46 buffers. Normally, the driver tries to use three buffers; on faster 49 - min_buffers: The minimum number of streaming I/O buffers that the driver 54 - max_buffers: The maximum number of streaming I/O buffers; default is
|
/Linux-v4.19/Documentation/media/kapi/ |
D | v4l2-videobuf.rst | 19 and user space. It handles the allocation and management of buffers for 32 Not all video devices use the same kind of buffers. In fact, there are (at 36 address spaces. (Almost) all user-space buffers are like this, but it 37 makes great sense to allocate kernel-space buffers this way as well when 43 contiguous; buffers allocated with vmalloc(), in other words. These 44 buffers are just as hard to use for DMA operations, but they can be 46 buffers are convenient. 52 Videobuf can work with all three types of buffers, but the driver author 55 [It's worth noting that there's a fourth kind of buffer: "overlay" buffers 59 benefits merit the use of this technique. Overlay buffers can be handled [all …]
|
/Linux-v4.19/lib/reed_solomon/ |
D | decode_rs.c | 31 uint16_t *lambda = rsc->buffers + RS_DECODE_LAMBDA * (nroots + 1); 32 uint16_t *syn = rsc->buffers + RS_DECODE_SYN * (nroots + 1); 33 uint16_t *b = rsc->buffers + RS_DECODE_B * (nroots + 1); 34 uint16_t *t = rsc->buffers + RS_DECODE_T * (nroots + 1); 35 uint16_t *omega = rsc->buffers + RS_DECODE_OMEGA * (nroots + 1); 36 uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); 37 uint16_t *reg = rsc->buffers + RS_DECODE_REG * (nroots + 1); 38 uint16_t *loc = rsc->buffers + RS_DECODE_LOC * (nroots + 1);
|
/Linux-v4.19/fs/ |
D | splice.c | 200 while (pipe->nrbufs < pipe->buffers) { in splice_to_pipe() 201 int newbuf = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in splice_to_pipe() 237 } else if (pipe->nrbufs == pipe->buffers) { in add_to_pipe() 240 int newbuf = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in add_to_pipe() 256 unsigned int buffers = READ_ONCE(pipe->buffers); in splice_grow_spd() local 258 spd->nr_pages_max = buffers; in splice_grow_spd() 259 if (buffers <= PIPE_DEF_BUFFERS) in splice_grow_spd() 262 spd->pages = kmalloc_array(buffers, sizeof(struct page *), GFP_KERNEL); in splice_grow_spd() 263 spd->partial = kmalloc_array(buffers, sizeof(struct partial_page), in splice_grow_spd() 380 if (pipe->nrbufs == pipe->buffers) in default_file_splice_read() [all …]
|
D | pipe.c | 298 curbuf = (curbuf + 1) & (pipe->buffers - 1); in pipe_read() 378 (pipe->buffers - 1); in pipe_write() 409 if (bufs < pipe->buffers) { in pipe_write() 410 int newbuf = (pipe->curbuf + bufs) & (pipe->buffers-1); in pipe_write() 453 if (bufs < pipe->buffers) in pipe_write() 502 buf = (buf+1) & (pipe->buffers - 1); in pipe_ioctl() 532 mask |= (nrbufs < pipe->buffers) ? EPOLLOUT | EPOLLWRNORM : 0; in pipe_poll() 656 pipe->buffers = pipe_bufs; in alloc_pipe_info() 674 (void) account_pipe_buffers(pipe->user, pipe->buffers, 0); in free_pipe_info() 676 for (i = 0; i < pipe->buffers; i++) { in free_pipe_info() [all …]
|
/Linux-v4.19/kernel/trace/ |
D | ring_buffer.c | 514 struct ring_buffer_per_cpu **buffers; member 578 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_wait() 675 cpu_buffer = buffer->buffers[cpu]; in ring_buffer_poll_wait() 1385 buffer->buffers = kzalloc(ALIGN(bsize, cache_line_size()), in __ring_buffer_alloc() 1387 if (!buffer->buffers) in __ring_buffer_alloc() 1392 buffer->buffers[cpu] = rb_allocate_cpu_buffer(buffer, nr_pages, cpu); in __ring_buffer_alloc() 1393 if (!buffer->buffers[cpu]) in __ring_buffer_alloc() 1406 if (buffer->buffers[cpu]) in __ring_buffer_alloc() 1407 rb_free_cpu_buffer(buffer->buffers[cpu]); in __ring_buffer_alloc() 1409 kfree(buffer->buffers); in __ring_buffer_alloc() [all …]
|
/Linux-v4.19/Documentation/filesystems/ |
D | relay.txt | 9 as a set of per-cpu kernel buffers ('channel buffers'), each 11 clients write into the channel buffers using efficient write 16 are associated with the channel buffers using the API described below. 18 The format of the data logged into the channel buffers is completely 33 sub-buffers. Messages are written to the first sub-buffer until it is 35 the next (if available). Messages are never split across sub-buffers. 57 read sub-buffers; thus in cases where read(2) is being used to drain 58 the channel buffers, special-purpose communication between kernel and 93 allowing both to convey the state of buffers (full, empty, amount of 95 consumes the read sub-buffers; thus in cases where read(2) is being [all …]
|
/Linux-v4.19/drivers/media/usb/pvrusb2/ |
D | pvrusb2-io.c | 59 struct pvr2_buffer **buffers; member 315 memcpy(nb, sp->buffers, in pvr2_stream_buffer_count() 317 kfree(sp->buffers); in pvr2_stream_buffer_count() 319 sp->buffers = nb; in pvr2_stream_buffer_count() 331 sp->buffers[sp->buffer_total_count] = bp; in pvr2_stream_buffer_count() 338 bp = sp->buffers[sp->buffer_total_count - 1]; in pvr2_stream_buffer_count() 340 sp->buffers[sp->buffer_total_count - 1] = NULL; in pvr2_stream_buffer_count() 348 nb = kmemdup(sp->buffers, scnt * sizeof(*nb), in pvr2_stream_buffer_count() 352 kfree(sp->buffers); in pvr2_stream_buffer_count() 353 sp->buffers = nb; in pvr2_stream_buffer_count() [all …]
|
/Linux-v4.19/drivers/crypto/ccree/ |
D | cc_hash.h | 38 u8 buffers[2][CC_MAX_HASH_BLCK_SIZE] ____cacheline_aligned; member 66 return state->buffers[state->buff_index]; in cc_hash_buf() 76 return state->buffers[state->buff_index ^ 1]; in cc_next_buf()
|