Lines Matching refs:sio_bufs
512 struct stk_sio_buffer *buf = dev->sio_bufs + index; in stk_setup_siobuf()
534 if (dev->n_sbufs == 0 || dev->sio_bufs == NULL) in stk_free_sio_buffers()
540 if (dev->sio_bufs[i].mapcount > 0) in stk_free_sio_buffers()
553 if (dev->sio_bufs[i].buffer != NULL) in stk_free_sio_buffers()
554 vfree(dev->sio_bufs[i].buffer); in stk_free_sio_buffers()
556 kfree(dev->sio_bufs); in stk_free_sio_buffers()
557 dev->sio_bufs = NULL; in stk_free_sio_buffers()
564 if (dev->sio_bufs != NULL) in stk_prepare_sio_buffers()
567 dev->sio_bufs = kzalloc(n_sbufs * sizeof(struct stk_sio_buffer), in stk_prepare_sio_buffers()
569 if (dev->sio_bufs == NULL) in stk_prepare_sio_buffers()
668 list_add_tail(&dev->sio_bufs[i].list, &dev->sio_avail); in stk_read()
669 dev->sio_bufs[i].v4lbuf.flags = V4L2_BUF_FLAG_QUEUED; in stk_read()
767 if (dev->sio_bufs[i].v4lbuf.m.offset == offset) { in v4l_stk_mmap()
768 sbuf = dev->sio_bufs + i; in v4l_stk_mmap()
1078 sbuf = dev->sio_bufs + buf->index; in stk_vidioc_querybuf()
1095 sbuf = dev->sio_bufs + buf->index; in stk_vidioc_qbuf()
1146 if (dev->sio_bufs == NULL) in stk_vidioc_streamon()
1163 INIT_LIST_HEAD(&dev->sio_bufs[i].list); in stk_vidioc_streamoff()
1164 dev->sio_bufs[i].v4lbuf.flags = 0; in stk_vidioc_streamoff()
1240 if (dev->sio_bufs != NULL || dev->isobufs != NULL) in stk_v4l_dev_release()