Home
last modified time | relevance | path

Searched refs:nbuffers (Results 1 – 11 of 11) sorted by relevance

/drivers/media/video/uvc/
Duvc_queue.c98 int uvc_alloc_buffers(struct uvc_video_queue *queue, unsigned int nbuffers, in uvc_alloc_buffers() argument
106 if (nbuffers > UVC_MAX_VIDEO_BUFFERS) in uvc_alloc_buffers()
107 nbuffers = UVC_MAX_VIDEO_BUFFERS; in uvc_alloc_buffers()
115 if (nbuffers == 0) in uvc_alloc_buffers()
119 for (; nbuffers > 0; --nbuffers) { in uvc_alloc_buffers()
120 mem = vmalloc_32(nbuffers * bufsize); in uvc_alloc_buffers()
130 for (i = 0; i < nbuffers; ++i) { in uvc_alloc_buffers()
144 queue->count = nbuffers; in uvc_alloc_buffers()
146 ret = nbuffers; in uvc_alloc_buffers()
Duvcvideo.h736 unsigned int nbuffers, unsigned int buflength);
/drivers/media/video/zc0301/
Dzc0301_core.c136 cam->nbuffers = count; in zc0301_request_buffers()
137 while (cam->nbuffers > 0) { in zc0301_request_buffers()
138 if ((buff = vmalloc_32_user(cam->nbuffers * in zc0301_request_buffers()
141 cam->nbuffers--; in zc0301_request_buffers()
144 for (i = 0; i < cam->nbuffers; i++) { in zc0301_request_buffers()
156 return cam->nbuffers; in zc0301_request_buffers()
162 if (cam->nbuffers) { in zc0301_release_buffers()
164 cam->nbuffers = 0; in zc0301_release_buffers()
202 for (i = 0; i < cam->nbuffers; i++) in zc0301_queue_unusedframes()
721 cam->nbuffers = 0; in zc0301_open()
[all …]
Dzc0301.h117 u32 frame_count, nbuffers, nreadbuffers; member
/drivers/media/video/et61x251/
Det61x251_core.c134 cam->nbuffers = count; in et61x251_request_buffers()
135 while (cam->nbuffers > 0) { in et61x251_request_buffers()
136 if ((buff = vmalloc_32_user(cam->nbuffers * in et61x251_request_buffers()
139 cam->nbuffers--; in et61x251_request_buffers()
142 for (i = 0; i < cam->nbuffers; i++) { in et61x251_request_buffers()
154 return cam->nbuffers; in et61x251_request_buffers()
160 if (cam->nbuffers) { in et61x251_release_buffers()
162 cam->nbuffers = 0; in et61x251_release_buffers()
200 for (i = 0; i < cam->nbuffers; i++) in et61x251_queue_unusedframes()
1279 cam->nbuffers = 0; in et61x251_open()
[all …]
Det61x251.h152 u32 frame_count, nbuffers, nreadbuffers; member
/drivers/media/video/sn9c102/
Dsn9c102_core.c159 cam->nbuffers = count; in sn9c102_request_buffers()
160 while (cam->nbuffers > 0) { in sn9c102_request_buffers()
161 if ((buff = vmalloc_32_user(cam->nbuffers * in sn9c102_request_buffers()
164 cam->nbuffers--; in sn9c102_request_buffers()
167 for (i = 0; i < cam->nbuffers; i++) { in sn9c102_request_buffers()
179 return cam->nbuffers; in sn9c102_request_buffers()
185 if (cam->nbuffers) { in sn9c102_release_buffers()
187 cam->nbuffers = 0; in sn9c102_release_buffers()
225 for (i = 0; i < cam->nbuffers; i++) in sn9c102_queue_unusedframes()
1844 cam->nbuffers = 0; in sn9c102_open()
[all …]
Dsn9c102.h114 u32 frame_count, nbuffers, nreadbuffers; member
/drivers/media/video/
Dw9968cf.c664 rvfree(cam->frame[0].buffer, cam->nbuffers*cam->frame[0].size); in w9968cf_deallocate_memory()
668 cam->nbuffers = 0; in w9968cf_deallocate_memory()
731 cam->nbuffers = cam->max_buffers; in w9968cf_allocate_memory()
732 while (cam->nbuffers >= 2) { in w9968cf_allocate_memory()
733 if ((buff = rvmalloc(cam->nbuffers * vpp_bufsize))) in w9968cf_allocate_memory()
736 cam->nbuffers--; in w9968cf_allocate_memory()
741 cam->nbuffers = 0; in w9968cf_allocate_memory()
745 if (cam->nbuffers != cam->max_buffers) in w9968cf_allocate_memory()
748 cam->max_buffers, cam->nbuffers) in w9968cf_allocate_memory()
750 for (i = 0; i < cam->nbuffers; i++) { in w9968cf_allocate_memory()
[all …]
Dw9968cf.h242 u8 nbuffers, /* number of allocated frame buffers */ member
/drivers/media/video/pwc/
Dpwc-v4l.c1043 int nbuffers; in pwc_video_do_ioctl() local
1051 nbuffers = rb->count; in pwc_video_do_ioctl()
1052 if (nbuffers < 2) in pwc_video_do_ioctl()
1053 nbuffers = 2; in pwc_video_do_ioctl()
1054 else if (nbuffers > pwc_mbufs) in pwc_video_do_ioctl()
1055 nbuffers = pwc_mbufs; in pwc_video_do_ioctl()