Lines Matching refs:buffers
2237 if(!cam->buffers) { in cpia2_allocate_buffers()
2239 cam->buffers = kmalloc(size, GFP_KERNEL); in cpia2_allocate_buffers()
2240 if(!cam->buffers) { in cpia2_allocate_buffers()
2250 kfree(cam->buffers); in cpia2_allocate_buffers()
2251 cam->buffers = NULL; in cpia2_allocate_buffers()
2257 cam->buffers[i].next = &cam->buffers[i+1]; in cpia2_allocate_buffers()
2258 cam->buffers[i].data = cam->frame_buffer +i*cam->frame_size; in cpia2_allocate_buffers()
2259 cam->buffers[i].status = FRAME_EMPTY; in cpia2_allocate_buffers()
2260 cam->buffers[i].length = 0; in cpia2_allocate_buffers()
2261 cam->buffers[i].max_length = 0; in cpia2_allocate_buffers()
2262 cam->buffers[i].num = i; in cpia2_allocate_buffers()
2264 cam->buffers[i].next = cam->buffers; in cpia2_allocate_buffers()
2265 cam->buffers[i].data = cam->frame_buffer +i*cam->frame_size; in cpia2_allocate_buffers()
2266 cam->buffers[i].status = FRAME_EMPTY; in cpia2_allocate_buffers()
2267 cam->buffers[i].length = 0; in cpia2_allocate_buffers()
2268 cam->buffers[i].max_length = 0; in cpia2_allocate_buffers()
2269 cam->buffers[i].num = i; in cpia2_allocate_buffers()
2270 cam->curbuff = cam->buffers; in cpia2_allocate_buffers()
2272 DBG("buffers=%p, curbuff=%p, workbuff=%p\n", cam->buffers, cam->curbuff, in cpia2_allocate_buffers()
2284 if(cam->buffers) { in cpia2_free_buffers()
2285 kfree(cam->buffers); in cpia2_free_buffers()
2286 cam->buffers = NULL; in cpia2_free_buffers()