Lines Matching refs:vm
1206 struct video_mbuf vm; in saa7114h_ioctl() local
1209 memset(&vm, 0, sizeof(vm)); in saa7114h_ioctl()
1210 vm.size = MAX_FRAME_SIZE*NUM_FRAME; in saa7114h_ioctl()
1211 vm.frames = NUM_FRAME; in saa7114h_ioctl()
1213 vm.offsets[i] = MAX_FRAME_SIZE * i; in saa7114h_ioctl()
1215 if (copy_to_user((void *)arg, (void *)&vm, sizeof(vm))) in saa7114h_ioctl()
1223 struct video_mmap vm; in saa7114h_ioctl() local
1226 if (copy_from_user((void *)&vm, (void *)arg, sizeof(vm))) { in saa7114h_ioctl()
1230 if (vm.frame<0||vm.frame>NUM_FRAME) { in saa7114h_ioctl()
1236 printk(KERN_DEBUG IF_NAME ":ioctl MCAPTURE %d\n", vm.frame)); in saa7114h_ioctl()
1238 d->vp.palette = vm.format; in saa7114h_ioctl()
1249 d->frame[vm.frame].pos = d->frame[vm.frame].data + d->vw.width*RAW_PER_PIXEL; in saa7114h_ioctl()
1251 d->frame[vm.frame].pos = d->frame[vm.frame].data; in saa7114h_ioctl()
1254 d->frame[vm.frame].state = FRAME_READY; in saa7114h_ioctl()
1258 d->hwframe = d->swframe = vm.frame; in saa7114h_ioctl()