Lines Matching refs:vm
1457 struct video_mbuf vm; in usbvideo_v4l_ioctl() local
1460 memset(&vm, 0, sizeof(vm)); in usbvideo_v4l_ioctl()
1461 vm.size = uvd->max_frame_size * USBVIDEO_NUMFRAMES; in usbvideo_v4l_ioctl()
1462 vm.frames = USBVIDEO_NUMFRAMES; in usbvideo_v4l_ioctl()
1464 vm.offsets[i] = i * uvd->max_frame_size; in usbvideo_v4l_ioctl()
1466 if (copy_to_user((void *)arg, (void *)&vm, sizeof(vm))) in usbvideo_v4l_ioctl()
1473 struct video_mmap vm; in usbvideo_v4l_ioctl() local
1475 if (copy_from_user((void *)&vm, (void *)arg, sizeof(vm))) { in usbvideo_v4l_ioctl()
1481 vm.frame, vm.width, vm.height, vm.format); in usbvideo_v4l_ioctl()
1496 if ((vm.width > VIDEOSIZE_X(uvd->canvas)) || in usbvideo_v4l_ioctl()
1497 (vm.height > VIDEOSIZE_Y(uvd->canvas))) { in usbvideo_v4l_ioctl()
1500 "allowed only up to %ldx%ld", vm.width, vm.height, in usbvideo_v4l_ioctl()
1506 if (((1L << vm.format) & uvd->paletteBits) == 0) { in usbvideo_v4l_ioctl()
1510 vm.format, uvd->paletteBits); in usbvideo_v4l_ioctl()
1514 if ((vm.frame < 0) && (vm.frame >= USBVIDEO_NUMFRAMES)) { in usbvideo_v4l_ioctl()
1515 err("VIDIOCMCAPTURE: vm.frame=%d. !E [0-%d]", vm.frame, USBVIDEO_NUMFRAMES-1); in usbvideo_v4l_ioctl()
1518 if (uvd->frame[vm.frame].frameState == FrameState_Grabbing) { in usbvideo_v4l_ioctl()
1521 uvd->frame[vm.frame].request = VIDEOSIZE(vm.width, vm.height); in usbvideo_v4l_ioctl()
1522 uvd->frame[vm.frame].palette = vm.format; in usbvideo_v4l_ioctl()
1525 uvd->frame[vm.frame].frameState = FrameState_Ready; in usbvideo_v4l_ioctl()
1527 return usbvideo_NewFrame(uvd, vm.frame); in usbvideo_v4l_ioctl()