Searched refs:readpos (Results 1 – 11 of 11) sorted by relevance
/drivers/media/pci/ivtv/ |
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()
|
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()
|
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()
|
D | ivtv-driver.h | 314 u32 readpos; member
|
/drivers/media/pci/cx18/ |
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() 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 …]
|
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()
|
D | cx18-ioctl.c | 685 remaining = buf->bytesused - buf->readpos; in _cx18_process_idx_data() 688 e_buf = (struct cx18_enc_idx_entry *) &buf->buf[buf->readpos]; in _cx18_process_idx_data() 718 buf->readpos += consumed; in _cx18_process_idx_data() 738 mdl->readpos = mdl->bytesused; in cx18_process_idx_data() 745 if (mdl->curr_buf->readpos >= mdl->curr_buf->bytesused) in cx18_process_idx_data() 748 mdl->readpos += _cx18_process_idx_data(mdl->curr_buf, idx); in cx18_process_idx_data() 752 mdl->curr_buf->readpos < mdl->curr_buf->bytesused || in cx18_process_idx_data() 753 mdl->readpos >= mdl->bytesused) in cx18_process_idx_data() 790 if (mdl->readpos < mdl->bytesused) { in cx18_g_enc_index()
|
D | cx18-driver.h | 293 u32 readpos; member 307 u32 readpos; member
|
/drivers/char/xillybus/ |
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()
|
/drivers/mtd/ |
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()
|
/drivers/md/ |
D | raid5.c | 6271 sector_t writepos, readpos, safepos; in reshape_request() local 6315 readpos = conf->reshape_progress; in reshape_request() 6316 sector_div(readpos, data_disks); in reshape_request() 6322 readpos += reshape_sectors; in reshape_request() 6330 readpos -= min_t(sector_t, reshape_sectors, readpos); in reshape_request() 6371 readpos += -conf->min_offset_diff; in reshape_request() 6376 ? (safepos > writepos && readpos < writepos) in reshape_request() 6377 : (safepos < writepos && readpos > writepos)) || in reshape_request()
|