/kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
D | ivtv-queue.c | 15 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user() 16 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user() 17 if (copy_from_user(buf->buf + buf->bytesused, src, copybytes)) { in ivtv_buf_copy_from_user() 20 buf->bytesused += copybytes; in ivtv_buf_copy_from_user() 28 for (i = 0; i < buf->bytesused; i += 4) in ivtv_buf_swap() 37 q->bytesused = 0; in ivtv_queue_init() 46 buf->bytesused = 0; in ivtv_enqueue() 55 q->bytesused += buf->bytesused - buf->readpos; in ivtv_enqueue() 70 q->bytesused -= buf->bytesused - buf->readpos; in ivtv_dequeue() 84 from->bytesused -= buf->bytesused - buf->readpos; in ivtv_queue_move_buf() [all …]
|
D | ivtv-irq.c | 49 if (buf->readpos < buf->bytesused) in ivtv_pcm_work_handler() 52 (size_t)(buf->bytesused - buf->readpos)); in ivtv_pcm_work_handler() 225 buf->bytesused = min(size, s->buf_size); in stream_enc_dma_append() 228 s->q_predma.bytesused += buf->bytesused; in stream_enc_dma_append() 229 size -= buf->bytesused; in stream_enc_dma_append() 288 buf->bytesused -= offset; in dma_post() 289 memcpy(buf->buf, buf->buf + offset, buf->bytesused + offset); in dma_post() 300 buf->bytesused += s->dma_last_offset; in dma_post() 304 s->q_dma.bytesused -= buf->bytesused; in dma_post() 306 s->q_dma.bytesused += buf->bytesused; in dma_post() [all …]
|
D | ivtv-fileops.c | 222 if (buf->readpos != buf->bytesused) { in ivtv_get_buffer() 282 itv->vbi.sliced_mpeg_buf.bytesused = itv->vbi.sliced_mpeg_size[idx]; in ivtv_setup_sliced_vbi_buf() 290 size_t len = buf->bytesused - buf->readpos; in ivtv_copy_buf_to_user() 303 if ((char *)q + 15 >= buf->buf + buf->bytesused || in ivtv_copy_buf_to_user() 385 ivtv_enqueue(s, buf, (buf->readpos == buf->bytesused) ? &s->q_free : &s->q_io); in ivtv_read() 387 else if (buf->readpos == buf->bytesused) { in ivtv_read() 391 itv->vbi_data_inserted += buf->bytesused; in ivtv_read() 605 IVTV_DEBUG_HI_FILE("Wrote %d bytes to %s (%d)\n", bytes_written, s->name, s->q_full.bytesused); in ivtv_write() 612 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_io))) in ivtv_write() 614 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_free))) { in ivtv_write() [all …]
|
D | ivtv-vbi.c | 367 u32 size = buf->bytesused; in ivtv_process_vbi_data() 378 size = buf->bytesused = compress_raw_buf(itv, p, size); in ivtv_process_vbi_data() 412 buf->bytesused = size = lines * sizeof(itv->vbi.sliced_data[0]); in ivtv_process_vbi_data() 444 buf->bytesused = cnt; in ivtv_process_vbi_data()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
D | cx18-queue.c | 21 for (i = 0; i < buf->bytesused; i += 4) in cx18_buf_swap() 30 if (buf->bytesused == 0) in _cx18_mdl_swap() 40 q->bytesused = 0; in cx18_queue_init() 48 mdl->bytesused = 0; in _cx18_enqueue() 66 q->bytesused += mdl->bytesused - mdl->readpos; in _cx18_enqueue() 81 q->bytesused -= mdl->bytesused - mdl->readpos; in cx18_dequeue() 94 u32 bytesused = mdl->bytesused; in _cx18_mdl_update_bufs_for_cpu() local 98 if (bytesused >= buf_size) { in _cx18_mdl_update_bufs_for_cpu() 99 buf->bytesused = buf_size; in _cx18_mdl_update_bufs_for_cpu() 100 bytesused -= buf_size; in _cx18_mdl_update_bufs_for_cpu() [all …]
|
D | cx18-mailbox.c | 126 if (s->dvb == NULL || !s->dvb->enabled || mdl->bytesused == 0) in cx18_mdl_send_to_dvb() 135 if (buf->bytesused) in cx18_mdl_send_to_dvb() 137 buf->buf, buf->bytesused); in cx18_mdl_send_to_dvb() 142 if (buf->bytesused == 0) in cx18_mdl_send_to_dvb() 144 dvb_dmx_swfilter(&s->dvb->demux, buf->buf, buf->bytesused); in cx18_mdl_send_to_dvb() 157 if (mdl->bytesused == 0) in cx18_mdl_send_to_videobuf() 174 if (buf->bytesused == 0) in cx18_mdl_send_to_videobuf() 177 if ((offset + buf->bytesused) <= vb_buf->vb.bsize) { in cx18_mdl_send_to_videobuf() 178 memcpy(p + offset, buf->buf, buf->bytesused); in cx18_mdl_send_to_videobuf() 179 offset += buf->bytesused; in cx18_mdl_send_to_videobuf() [all …]
|
D | cx18-vbi.c | 188 u32 size = buf->bytesused; in _cx18_process_vbi_data() 202 size = buf->bytesused = in _cx18_process_vbi_data() 229 buf->bytesused = size = lines * sizeof(cx->vbi.sliced_data[0]); in _cx18_process_vbi_data() 257 orig_used = buf->bytesused; in cx18_process_vbi_data() 261 mdl->bytesused -= (orig_used - buf->bytesused); in cx18_process_vbi_data()
|
D | cx18-fileops.c | 196 if (mdl->readpos != mdl->bytesused) in cx18_get_mdl() 251 buf->bytesused = cx->vbi.sliced_mpeg_size[idx]; in cx18_setup_sliced_vbi_mdl() 255 mdl->bytesused = cx->vbi.sliced_mpeg_size[idx]; in cx18_setup_sliced_vbi_mdl() 263 size_t len = buf->bytesused - buf->readpos; in cx18_copy_buf_to_user() 306 if ((char *)q + 15 >= buf->buf + buf->bytesused || in cx18_copy_buf_to_user() 380 mdl->readpos = mdl->bytesused; in cx18_copy_mdl_to_user() 386 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) in cx18_copy_mdl_to_user() 398 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || in cx18_copy_mdl_to_user() 399 mdl->readpos >= mdl->bytesused) /* MDL buffers drained */ in cx18_copy_mdl_to_user() 449 if (mdl->readpos == mdl->bytesused) in cx18_read() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
D | uvc_isight.c | 72 if (is_header && buf->bytesused != 0) { in isight_decode() 81 maxlen = buf->length - buf->bytesused; in isight_decode() 82 mem = buf->mem + buf->bytesused; in isight_decode() 85 buf->bytesused += nbytes; in isight_decode() 87 if (len > maxlen || buf->bytesused == buf->length) { in isight_decode()
|
D | uvc_queue.c | 124 buf->bytesused = 0; in uvc_buffer_prepare() 126 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 470 buf->bytesused = 0; in uvc_queue_buffer_requeue() 488 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvc_queue_buffer_complete()
|
D | uvc_video.c | 1120 if (fid != stream->last_fid && buf->bytesused != 0) { in uvc_video_decode_start() 1169 maxlen = buf->length - buf->bytesused; in uvc_video_decode_data() 1176 op->dst = buf->mem + buf->bytesused; in uvc_video_decode_data() 1179 buf->bytesused += op->len; in uvc_video_decode_data() 1195 if (data[1] & UVC_STREAM_EOF && buf->bytesused != 0) { in uvc_video_decode_end() 1234 nbytes = min((unsigned int)len, buf->bytesused - queue->buf_used); in uvc_video_encode_data() 1274 if (meta_buf->length - meta_buf->bytesused < in uvc_video_decode_meta() 1300 meta = (struct uvc_meta_buf *)((u8 *)meta_buf->mem + meta_buf->bytesused); in uvc_video_decode_meta() 1312 meta_buf->bytesused += length + sizeof(meta->ns) + sizeof(meta->sof); in uvc_video_decode_meta() 1333 if (stream->ctrl.dwMaxVideoFrameSize != buf->bytesused && in uvc_video_validate_buffer() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | vb2.h | 21 __field(u32, bytesused) 32 __entry->bytesused = vb->planes[0].bytesused; 41 __entry->bytesused,
|
D | v4l2.h | 109 __field(u32, bytesused) 130 __entry->bytesused = buf->bytesused; 153 __entry->bytesused,
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
D | videobuf2-v4l2.c | 98 unsigned int bytesused; in __verify_length() local 110 bytesused = b->m.planes[plane].bytesused in __verify_length() 111 ? b->m.planes[plane].bytesused : length; in __verify_length() 113 if (b->m.planes[plane].bytesused > length) in __verify_length() 117 b->m.planes[plane].data_offset >= bytesused) in __verify_length() 124 if (b->bytesused > length) in __verify_length() 256 if (psrc->bytesused == 0) in vb2_fill_vb2_v4l2_buffer() 260 pdst->bytesused = psrc->bytesused; in vb2_fill_vb2_v4l2_buffer() 262 pdst->bytesused = psrc->bytesused ? in vb2_fill_vb2_v4l2_buffer() 263 psrc->bytesused : pdst->length; in vb2_fill_vb2_v4l2_buffer() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/go7007/ |
D | go7007-driver.c | 381 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte() 384 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte() 412 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions() local 432 *bytesused -= 216; in go7007_motion_regions() 441 u32 *bytesused; in frame_boundary() local 454 bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in frame_boundary() 457 if (vb->modet_active && *bytesused + 216 < GO7007_BUF_SIZE) in frame_boundary() 516 if (vb && vb->vb.vb2_buf.planes[0].bytesused >= in go7007_parse_video_stream() 519 vb->vb.vb2_buf.planes[0].bytesused = 0; in go7007_parse_video_stream() 600 vb->vb.vb2_buf.planes[0].bytesused; in go7007_parse_video_stream()
|
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 93 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->bytesused); in stk1160_buffer_done() 143 if (lencopy > buf->bytesused - buf->length) { in stk1160_copy_video() 144 lencopy = buf->bytesused - buf->length; in stk1160_copy_video() 166 buf->bytesused += lencopy; in stk1160_copy_video() 186 if (lencopy > buf->bytesused - buf->length) { in stk1160_copy_video() 187 lencopy = buf->bytesused - buf->length; in stk1160_copy_video() 209 buf->bytesused += lencopy; in stk1160_copy_video()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | uvc_video.c | 33 if (buf->bytesused - video->queue.buf_used <= len - 2) in uvc_video_encode_header() 49 nbytes = min((unsigned int)len, buf->bytesused - queue->buf_used); in uvc_video_encode_data() 83 if (buf->bytesused == video->queue.buf_used) { in uvc_video_encode_bulk() 93 buf->bytesused == video->queue.buf_used) in uvc_video_encode_bulk() 116 if (buf->bytesused == video->queue.buf_used) { in uvc_video_encode_isoc()
|
D | uvc_queue.c | 76 buf->bytesused = 0; in uvc_buffer_prepare() 78 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 313 buf->length != buf->bytesused) { in uvcg_queue_next_buffer() 330 vb2_set_plane_payload(&buf->buf.vb2_buf, 0, buf->bytesused); in uvcg_queue_next_buffer()
|
/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
D | hantro_h1_jpeg_enc.c | 144 u32 bytesused = vepu_read(vpu, H1_REG_STR_BUF_LIMIT) / 8; in hantro_jpeg_enc_done() local 153 ctx->jpeg_enc.bounce_buffer.cpu, bytesused); in hantro_jpeg_enc_done() 155 ctx->vpu_dst_fmt->header_size + bytesused); in hantro_jpeg_enc_done()
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/ |
D | hva-debugfs.c | 180 u32 bytesused; in hva_dbg_perf_end() local 186 bytesused = vb2_get_plane_payload(&stream->vbuf.vb2_buf, 0); in hva_dbg_perf_end() 199 bytesused, (u32)div); in hva_dbg_perf_end() 213 dbg->total_stream_size += bytesused; in hva_dbg_perf_end() 214 dbg->window_stream_size += bytesused; in hva_dbg_perf_end()
|
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/ |
D | vdec_helpers.c | 279 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 280 vbuf->vb2_buf.planes[1].bytesused = output_size / 2; in dst_buf_done() 283 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 284 vbuf->vb2_buf.planes[1].bytesused = output_size / 4; in dst_buf_done() 285 vbuf->vb2_buf.planes[2].bytesused = output_size / 4; in dst_buf_done()
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/ |
D | dmx-querybuf.rst | 49 ``bytesused`` the number of bytes occupied by data in the buffer (payload). 56 and the ``bytesused`` the number of bytes occupied by data in the buffer
|
/kernel/linux/linux-5.10/include/media/ |
D | videobuf2-core.h | 178 unsigned int bytesused; member 1149 vb->planes[plane_no].bytesused = size; in vb2_set_plane_payload() 1162 return vb->planes[plane_no].bytesused; in vb2_get_plane_payload()
|
/kernel/linux/linux-5.10/drivers/media/usb/stkwebcam/ |
D | stk-webcam.c | 344 fill = fb->buffer + fb->v4lbuf.bytesused; in stk_isoc_handler() 372 if (fb->v4lbuf.bytesused != 0 in stk_isoc_handler() 373 && fb->v4lbuf.bytesused != dev->frame_size) { in stk_isoc_handler() 375 i, fb->v4lbuf.bytesused); in stk_isoc_handler() 376 fb->v4lbuf.bytesused = 0; in stk_isoc_handler() 378 } else if (fb->v4lbuf.bytesused == dev->frame_size) { in stk_isoc_handler() 381 fb->v4lbuf.bytesused = 0; in stk_isoc_handler() 389 fb->v4lbuf.bytesused = 0; in stk_isoc_handler() 399 if (framelen + fb->v4lbuf.bytesused > dev->frame_size) { in stk_isoc_handler() 410 fb->v4lbuf.bytesused += framelen; in stk_isoc_handler()
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 460 __u32 bytesused; member 478 __u32 bytesused; member 504 __u32 bytesused; member 666 if (assign_in_user(&p64->bytesused, &p32->bytesused) || in get_v4l2_buffer32() 766 if (assign_in_user(&p64->bytesused, &p32->bytesused) || in get_v4l2_buffer32_time32() 859 if (assign_in_user(&p32->bytesused, &p64->bytesused) || in put_v4l2_buffer32() 939 if (assign_in_user(&p32->bytesused, &p64->bytesused) || in put_v4l2_buffer32_time32()
|