Lines Matching refs:vm
1402 struct video_mbuf vm; in pwc_video_ioctl() local
1405 memset(&vm, 0, sizeof(vm)); in pwc_video_ioctl()
1406 vm.size = default_mbufs * pdev->len_per_image; in pwc_video_ioctl()
1407 vm.frames = default_mbufs; /* double buffering should be enough for most applications */ in pwc_video_ioctl()
1409 vm.offsets[i] = i * pdev->len_per_image; in pwc_video_ioctl()
1411 if (copy_to_user((void *)arg, (void *)&vm, sizeof(vm))) in pwc_video_ioctl()
1419 struct video_mmap vm; in pwc_video_ioctl() local
1421 if (copy_from_user((void *)&vm, (void *)arg, sizeof(vm))) in pwc_video_ioctl()
1423 …TRACE_READ, "VIDIOCMCAPTURE: %dx%d, frame %d, format %d\n", vm.width, vm.height, vm.frame, vm.form… in pwc_video_ioctl()
1424 if (vm.frame < 0 || vm.frame >= default_mbufs) in pwc_video_ioctl()
1432 if (vm.format && vm.format != VIDEO_PALETTE_YUV420P) in pwc_video_ioctl()
1435 if ((vm.width != pdev->view.x || vm.height != pdev->view.y) && in pwc_video_ioctl()
1436 (vm.width >= pdev->view_min.x && vm.height >= pdev->view_min.y)) { in pwc_video_ioctl()
1440 …ret = pwc_try_video_mode(pdev, vm.width, vm.height, pdev->vframes, pdev->vcompression, pdev->vsnap… in pwc_video_ioctl()
1446 if (pdev->image_used[vm.frame]) in pwc_video_ioctl()
1448 pdev->image_used[vm.frame] = 1; in pwc_video_ioctl()