Searched refs:n_sbufs (Results 1 – 2 of 2) sorted by relevance
541 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() argument572 dev->sio_bufs = kzalloc(n_sbufs * sizeof(struct stk_sio_buffer), in stk_prepare_sio_buffers()576 for (i = 0; i < n_sbufs; i++) { in stk_prepare_sio_buffers()578 return (dev->n_sbufs > 1 ? 0 : -ENOMEM); in stk_prepare_sio_buffers()579 dev->n_sbufs = i+1; in stk_prepare_sio_buffers()585 static int stk_allocate_buffers(struct stk_camera *dev, unsigned n_sbufs) in stk_allocate_buffers() argument[all …]
122 unsigned int n_sbufs; member