Home
last modified time | relevance | path

Searched refs:readpos (Results 1 – 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-queue.c47 buf->readpos = 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()
87 buf->bytesused = buf->readpos = buf->b_flags = buf->dma_xfer_cnt = 0; in ivtv_queue_move_buf()
90 to->bytesused += buf->bytesused - buf->readpos; in ivtv_queue_move_buf()
145 steal->bytesused -= buf->bytesused - buf->readpos; in ivtv_queue_move()
146 buf->bytesused = buf->readpos = buf->b_flags = buf->dma_xfer_cnt = 0; in ivtv_queue_move()
Divtv-fileops.c222 if (buf->readpos != buf->bytesused) { in ivtv_get_buffer()
283 itv->vbi.sliced_mpeg_buf.readpos = 0; in ivtv_setup_sliced_vbi_buf()
290 size_t len = buf->bytesused - buf->readpos; in ivtv_copy_buf_to_user()
295 const char *start = buf->buf + buf->readpos; in ivtv_copy_buf_to_user()
333 if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { in ivtv_copy_buf_to_user()
340 buf->readpos += len; 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()
Divtv-irq.c49 if (buf->readpos < buf->bytesused) in ivtv_pcm_work_handler()
51 (u8 *)(buf->buf + buf->readpos), in ivtv_pcm_work_handler()
52 (size_t)(buf->bytesused - buf->readpos)); in ivtv_pcm_work_handler()
Divtv-driver.h316 u32 readpos; member
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
Dcx18-fileops.c196 if (mdl->readpos != mdl->bytesused) in cx18_get_mdl()
252 buf->readpos = 0; in cx18_setup_sliced_vbi_mdl()
256 mdl->readpos = 0; in cx18_setup_sliced_vbi_mdl()
263 size_t len = buf->bytesused - buf->readpos; in cx18_copy_buf_to_user()
289 const char *start = buf->buf + buf->readpos; in cx18_copy_buf_to_user()
351 if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { in cx18_copy_buf_to_user()
356 buf->readpos += len; 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()
393 mdl->readpos += rc; in cx18_copy_mdl_to_user()
[all …]
Dcx18-queue.c49 mdl->readpos = 0; in _cx18_enqueue()
66 q->bytesused += mdl->bytesused - mdl->readpos; in _cx18_enqueue()
81 q->bytesused -= mdl->bytesused - mdl->readpos; in cx18_dequeue()
97 buf->readpos = 0; in _cx18_mdl_update_bufs_for_cpu()
118 buf->readpos = 0; in cx18_mdl_update_bufs_for_cpu()
210 mdl->readpos = 0; in cx18_queue_flush()
250 buf->readpos = 0; in cx18_unload_queues()
Dcx18-ioctl.c687 remaining = buf->bytesused - buf->readpos; in _cx18_process_idx_data()
690 e_buf = (struct cx18_enc_idx_entry *) &buf->buf[buf->readpos]; in _cx18_process_idx_data()
720 buf->readpos += consumed; in _cx18_process_idx_data()
740 mdl->readpos = mdl->bytesused; in cx18_process_idx_data()
747 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) in cx18_process_idx_data()
750 mdl->readpos += _cx18_process_idx_data(mdl->curr_buf, idx); in cx18_process_idx_data()
754 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || in cx18_process_idx_data()
755 mdl->readpos >= mdl->bytesused) in cx18_process_idx_data()
792 if (mdl->readpos < mdl->bytesused) { in cx18_g_enc_index()
Dcx18-driver.h293 u32 readpos; member
307 u32 readpos; member
/kernel/linux/linux-5.10/lib/
Dseq_buf.c321 if (len <= s->readpos)
324 len -= s->readpos;
327 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
333 s->readpos += cnt;
/kernel/linux/linux-5.10/include/linux/
Dseq_buf.h23 loff_t readpos; member
29 s->readpos = 0; in seq_buf_clear()
/kernel/linux/linux-5.10/tools/lib/traceevent/
Dtrace-seq.c46 s->readpos = 0; in trace_seq_init()
65 s->readpos = 0; in trace_seq_reset()
Dtrace-seq.h34 unsigned int readpos; member
/kernel/linux/linux-5.10/drivers/mtd/
Dmtdswap.c683 loff_t readpos; in mtdswap_move_block() local
686 readpos = (loff_t) oldblock << PAGE_SHIFT; in mtdswap_move_block()
690 ret = mtd_read(mtd, readpos, PAGE_SIZE, &retlen, d->page_buf); in mtdswap_move_block()
1084 loff_t readpos; in mtdswap_readsect() local
1110 readpos = (loff_t)realblock << PAGE_SHIFT; in mtdswap_readsect()
1114 ret = mtd_read(mtd, readpos, PAGE_SIZE, &retlen, buf); in mtdswap_readsect()
/kernel/linux/linux-5.10/drivers/md/
Draid5.c5960 sector_t writepos, readpos, safepos; in reshape_request() local
6004 readpos = conf->reshape_progress; in reshape_request()
6005 sector_div(readpos, data_disks); in reshape_request()
6011 readpos += reshape_sectors; in reshape_request()
6019 readpos -= min_t(sector_t, reshape_sectors, readpos); in reshape_request()
6060 readpos += -conf->min_offset_diff; in reshape_request()
6065 ? (safepos > writepos && readpos < writepos) in reshape_request()
6066 : (safepos < writepos && readpos > writepos)) || in reshape_request()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace.c1685 if (trace_seq_used(s) <= s->seq.readpos) in trace_seq_to_buffer()
1688 len = trace_seq_used(s) - s->seq.readpos; in trace_seq_to_buffer()
1691 memcpy(buf, s->buffer + s->seq.readpos, cnt); in trace_seq_to_buffer()
1693 s->seq.readpos += cnt; in trace_seq_to_buffer()
6410 if (iter->seq.seq.readpos >= trace_seq_used(&iter->seq)) in tracing_read_pipe()