Searched refs:n_sbufs (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/media/usb/stkwebcam/
H A Dstk-webcam.c541 if (dev->n_sbufs == 0 || dev->sio_bufs == NULL) stk_free_sio_buffers()
546 for (i = 0; i < dev->n_sbufs; i++) { stk_free_sio_buffers()
556 nbufs = dev->n_sbufs; stk_free_sio_buffers()
557 dev->n_sbufs = 0; stk_free_sio_buffers()
566 static int stk_prepare_sio_buffers(struct stk_camera *dev, unsigned n_sbufs) stk_prepare_sio_buffers() argument
572 dev->sio_bufs = kzalloc(n_sbufs * sizeof(struct stk_sio_buffer), stk_prepare_sio_buffers()
576 for (i = 0; i < n_sbufs; i++) { stk_prepare_sio_buffers()
578 return (dev->n_sbufs > 1 ? 0 : -ENOMEM); stk_prepare_sio_buffers()
579 dev->n_sbufs = i+1; stk_prepare_sio_buffers()
585 static int stk_allocate_buffers(struct stk_camera *dev, unsigned n_sbufs) stk_allocate_buffers() argument
593 err = stk_prepare_sio_buffers(dev, n_sbufs); stk_allocate_buffers()
672 for (i = 0; i < dev->n_sbufs; i++) { stk_read()
771 for (i = 0; i < dev->n_sbufs; i++) { v4l_stk_mmap()
1069 rb->count = dev->n_sbufs; stk_vidioc_reqbufs()
1079 if (buf->index >= dev->n_sbufs) stk_vidioc_querybuf()
1096 if (buf->index >= dev->n_sbufs) stk_vidioc_qbuf()
1165 for (i = 0; i < dev->n_sbufs; i++) { stk_vidioc_streamoff()
1336 dev->n_sbufs = 0; stk_camera_probe()
H A Dstk-webcam.h122 unsigned int n_sbufs; member in struct:stk_camera

Completed in 71 milliseconds