Searched refs:readpos (Results 1 – 16 of 16) sorted by relevance
/linux/drivers/media/pci/ivtv/ |
A D | ivtv-queue.c | 47 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()
|
A D | ivtv-fileops.c | 222 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()
|
A D | ivtv-irq.c | 49 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()
|
A D | ivtv-driver.h | 314 u32 readpos; member
|
/linux/drivers/media/pci/cx18/ |
A D | cx18-fileops.c | 196 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() 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() 449 if (mdl->readpos == mdl->bytesused) in cx18_read() [all …]
|
A D | cx18-queue.c | 49 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()
|
A D | cx18-ioctl.c | 687 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()
|
A D | cx18-driver.h | 293 u32 readpos; member 307 u32 readpos; member
|
/linux/lib/ |
A D | seq_buf.c | 321 if (len <= s->readpos) 324 len -= s->readpos; 327 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt); 333 s->readpos += cnt;
|
/linux/include/linux/ |
A D | seq_buf.h | 23 loff_t readpos; member 29 s->readpos = 0; in seq_buf_clear()
|
/linux/tools/lib/traceevent/ |
A D | trace-seq.c | 46 s->readpos = 0; in trace_seq_init() 65 s->readpos = 0; in trace_seq_reset()
|
A D | trace-seq.h | 34 unsigned int readpos; member
|
/linux/drivers/char/xillybus/ |
A D | xillyusb.c | 79 unsigned int readpos; member 275 unsigned int readpos = fifo->readpos; in fifo_read() local 293 unsigned int nrail = fifo->bufsize - readpos; in fifo_read() 301 fifo->readpos = readpos; in fifo_read() 310 rc = (*copier)(data + done, fifo->mem[readbuf] + readpos, n); in fifo_read() 318 readpos += n; in fifo_read() 321 if (readpos == fifo->bufsize) { in fifo_read() 322 readpos = 0; in fifo_read() 401 fifo->readpos = 0; in fifo_init()
|
/linux/drivers/mtd/ |
A D | mtdswap.c | 683 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() 1082 loff_t readpos; in mtdswap_readsect() local 1108 readpos = (loff_t)realblock << PAGE_SHIFT; in mtdswap_readsect() 1112 ret = mtd_read(mtd, readpos, PAGE_SIZE, &retlen, buf); in mtdswap_readsect()
|
/linux/drivers/md/ |
A D | raid5.c | 5965 sector_t writepos, readpos, safepos; in reshape_request() local 6009 readpos = conf->reshape_progress; in reshape_request() 6010 sector_div(readpos, data_disks); in reshape_request() 6016 readpos += reshape_sectors; in reshape_request() 6024 readpos -= min_t(sector_t, reshape_sectors, readpos); in reshape_request() 6065 readpos += -conf->min_offset_diff; in reshape_request() 6070 ? (safepos > writepos && readpos < writepos) in reshape_request() 6071 : (safepos < writepos && readpos > writepos)) || in reshape_request()
|
/linux/kernel/trace/ |
A D | trace.c | 1655 if (trace_seq_used(s) <= s->seq.readpos) in trace_seq_to_buffer() 1658 len = trace_seq_used(s) - s->seq.readpos; in trace_seq_to_buffer() 1661 memcpy(buf, s->buffer + s->seq.readpos, cnt); in trace_seq_to_buffer() 1663 s->seq.readpos += cnt; in trace_seq_to_buffer() 6757 if (iter->seq.seq.readpos >= trace_seq_used(&iter->seq)) in tracing_read_pipe()
|
Completed in 59 milliseconds