Lines Matching full:buffers
51 struct buffer *buffers;
91 if (-1 == read(fd, buffers[0].start, buffers[0].length)) {
106 process_image(buffers[0].start, buffers[0].length);
132 process_image(buffers[buf.index].start, buf.bytesused);
160 if (buf.m.userptr == (unsigned long)buffers[i].start
161 && buf.length == buffers[i].length)
268 buf.m.userptr = (unsigned long)buffers[i].start;
269 buf.length = buffers[i].length;
287 free(buffers[0].start);
292 if (-1 == munmap(buffers[i].start, buffers[i].length))
298 free(buffers[i].start);
302 free(buffers);
307 buffers = calloc(1, sizeof(*buffers));
309 if (!buffers) {
314 buffers[0].length = buffer_size;
315 buffers[0].start = malloc(buffer_size);
317 if (!buffers[0].start) {
349 buffers = calloc(req.count, sizeof(*buffers));
351 if (!buffers) {
368 buffers[n_buffers].length = buf.length;
369 buffers[n_buffers].start =
376 if (MAP_FAILED == buffers[n_buffers].start)
401 buffers = calloc(4, sizeof(*buffers));
403 if (!buffers) {
409 buffers[n_buffers].length = buffer_size;
410 buffers[n_buffers].start = malloc(buffer_size);
412 if (!buffers[n_buffers].start) {
571 "-m | --mmap Use memory mapped buffers [default]\n"
573 "-u | --userp Use application allocated buffers\n"