Lines Matching defs:vm
502 struct video_mbuf *vm = arg;
505 memset(vm, 0, sizeof(*vm));
506 vm->size = pwc_mbufs * pdev->len_per_image;
507 vm->frames = pwc_mbufs; /* double buffering should be enough for most applications */
509 vm->offsets[i] = i * pdev->len_per_image;
516 struct video_mmap *vm = arg;
518 PWC_DEBUG_READ("VIDIOCMCAPTURE: %dx%d, frame %d, format %d\n", vm->width, vm->height, vm->frame, vm->format);
519 if (vm->frame < 0 || vm->frame >= pwc_mbufs)
527 if (vm->format)
529 switch (vm->format)
540 if ((vm->width != pdev->view.x || vm->height != pdev->view.y) &&
541 (vm->width >= pdev->view_min.x && vm->height >= pdev->view_min.y)) {
545 ret = pwc_try_video_mode(pdev, vm->width, vm->height, pdev->vframes, pdev->vcompression, pdev->vsnapshot);
550 if (pdev->image_used[vm->frame])
552 pdev->image_used[vm->frame] = 1;