Home
last modified time | relevance | path

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

/drivers/media/usb/stkwebcam/
Dstk-webcam.c541 if (dev->n_sbufs == 0 || dev->sio_bufs == NULL) in stk_free_sio_buffers()
546 for (i = 0; i < dev->n_sbufs; i++) { in stk_free_sio_buffers()
556 nbufs = dev->n_sbufs; in stk_free_sio_buffers()
557 dev->n_sbufs = 0; in stk_free_sio_buffers()
566 static int stk_prepare_sio_buffers(struct stk_camera *dev, unsigned n_sbufs) in stk_prepare_sio_buffers() argument
572 dev->sio_bufs = kcalloc(n_sbufs, in stk_prepare_sio_buffers()
577 for (i = 0; i < n_sbufs; i++) { in stk_prepare_sio_buffers()
579 return (dev->n_sbufs > 1 ? 0 : -ENOMEM); in stk_prepare_sio_buffers()
580 dev->n_sbufs = i+1; in stk_prepare_sio_buffers()
586 static int stk_allocate_buffers(struct stk_camera *dev, unsigned n_sbufs) in stk_allocate_buffers() argument
[all …]
Dstk-webcam.h103 unsigned int n_sbufs; member