Lines Matching refs:fileio
460 if (q->fileio) { in vb2_reqbufs()
849 if (q->fileio) { in vb2_qbuf()
1058 if (q->fileio) { in vb2_dqbuf()
1123 if (q->fileio) { in vb2_streamon()
1225 if (q->fileio) { in vb2_streamoff()
1381 if (q->num_buffers == 0 && q->fileio == NULL) { in vb2_poll()
1513 struct vb2_fileio_data *fileio; in __vb2_init_fileio() local
1544 fileio = kzalloc(sizeof(struct vb2_fileio_data), GFP_KERNEL); in __vb2_init_fileio()
1545 if (fileio == NULL) in __vb2_init_fileio()
1548 fileio->flags = q->io_flags; in __vb2_init_fileio()
1554 fileio->req.count = count; in __vb2_init_fileio()
1555 fileio->req.memory = V4L2_MEMORY_MMAP; in __vb2_init_fileio()
1556 fileio->req.type = q->type; in __vb2_init_fileio()
1557 ret = vb2_reqbufs(q, &fileio->req); in __vb2_init_fileio()
1566 fileio->req.count = 0; in __vb2_init_fileio()
1575 fileio->bufs[i].vaddr = vb2_plane_vaddr(q->bufs[i], 0); in __vb2_init_fileio()
1576 if (fileio->bufs[i].vaddr == NULL) in __vb2_init_fileio()
1578 fileio->bufs[i].size = vb2_plane_size(q->bufs[i], 0); in __vb2_init_fileio()
1589 struct v4l2_buffer *b = &fileio->b; in __vb2_init_fileio()
1597 fileio->bufs[i].queued = 1; in __vb2_init_fileio()
1608 q->fileio = fileio; in __vb2_init_fileio()
1613 vb2_reqbufs(q, &fileio->req); in __vb2_init_fileio()
1616 kfree(fileio); in __vb2_init_fileio()
1626 struct vb2_fileio_data *fileio = q->fileio; in __vb2_cleanup_fileio() local
1628 if (fileio) { in __vb2_cleanup_fileio()
1633 q->fileio = NULL; in __vb2_cleanup_fileio()
1636 fileio->req.count = 0; in __vb2_cleanup_fileio()
1637 vb2_reqbufs(q, &fileio->req); in __vb2_cleanup_fileio()
1638 kfree(fileio); in __vb2_cleanup_fileio()
1656 struct vb2_fileio_data *fileio; in __vb2_perform_fileio() local
1670 if (!q->fileio) { in __vb2_perform_fileio()
1676 fileio = q->fileio; in __vb2_perform_fileio()
1682 q->fileio = NULL; in __vb2_perform_fileio()
1684 index = fileio->index; in __vb2_perform_fileio()
1685 buf = &fileio->bufs[index]; in __vb2_perform_fileio()
1696 memset(&fileio->b, 0, sizeof(fileio->b)); in __vb2_perform_fileio()
1697 fileio->b.type = q->type; in __vb2_perform_fileio()
1698 fileio->b.memory = q->memory; in __vb2_perform_fileio()
1699 fileio->b.index = index; in __vb2_perform_fileio()
1700 ret = vb2_dqbuf(q, &fileio->b, nonblock); in __vb2_perform_fileio()
1704 fileio->dq_count += 1; in __vb2_perform_fileio()
1747 (!read && (fileio->flags & VB2_FILEIO_WRITE_IMMEDIATELY))) { in __vb2_perform_fileio()
1751 if (read && (fileio->flags & VB2_FILEIO_READ_ONCE) && in __vb2_perform_fileio()
1752 fileio->dq_count == 1) { in __vb2_perform_fileio()
1757 q->fileio = fileio; in __vb2_perform_fileio()
1764 memset(&fileio->b, 0, sizeof(fileio->b)); in __vb2_perform_fileio()
1765 fileio->b.type = q->type; in __vb2_perform_fileio()
1766 fileio->b.memory = q->memory; in __vb2_perform_fileio()
1767 fileio->b.index = index; in __vb2_perform_fileio()
1768 fileio->b.bytesused = buf->pos; in __vb2_perform_fileio()
1769 ret = vb2_qbuf(q, &fileio->b); in __vb2_perform_fileio()
1780 fileio->q_count += 1; in __vb2_perform_fileio()
1785 fileio->index = (index + 1) % q->num_buffers; in __vb2_perform_fileio()
1806 q->fileio = fileio; in __vb2_perform_fileio()