Home
last modified time | relevance | path

Searched refs:vm (Results 1 – 15 of 15) sorted by relevance

/drivers/media/video/usbvideo/
Dvicam.c384 struct video_mbuf vm; in vicam_ioctl() local
388 memset(&vm, 0, sizeof (vm)); in vicam_ioctl()
389 vm.size = in vicam_ioctl()
391 vm.frames = VICAM_FRAMES; in vicam_ioctl()
393 vm.offsets[i] = VICAM_MAX_FRAME_SIZE * i; in vicam_ioctl()
395 if (copy_to_user(user_arg, (void *)&vm, sizeof(vm))) in vicam_ioctl()
403 struct video_mmap vm; in vicam_ioctl() local
406 if (copy_from_user((void *)&vm, user_arg, sizeof(vm))) { in vicam_ioctl()
411 …DBG("VIDIOCMCAPTURE frame=%d, height=%d, width=%d, format=%d.\n",vm.frame,vm.width,vm.height,vm.fo… in vicam_ioctl()
413 if ( vm.frame >= VICAM_FRAMES || vm.format != VIDEO_PALETTE_RGB24 ) in vicam_ioctl()
Dusbvideo.c1364 struct video_mbuf *vm = arg; in usbvideo_v4l_do_ioctl() local
1367 memset(vm, 0, sizeof(*vm)); in usbvideo_v4l_do_ioctl()
1368 vm->size = uvd->max_frame_size * USBVIDEO_NUMFRAMES; in usbvideo_v4l_do_ioctl()
1369 vm->frames = USBVIDEO_NUMFRAMES; in usbvideo_v4l_do_ioctl()
1371 vm->offsets[i] = i * uvd->max_frame_size; in usbvideo_v4l_do_ioctl()
1377 struct video_mmap *vm = arg; in usbvideo_v4l_do_ioctl() local
1382 vm->frame, vm->width, vm->height, vm->format); in usbvideo_v4l_do_ioctl()
1397 if ((vm->width > VIDEOSIZE_X(uvd->canvas)) || in usbvideo_v4l_do_ioctl()
1398 (vm->height > VIDEOSIZE_Y(uvd->canvas))) { in usbvideo_v4l_do_ioctl()
1403 "to %ldx%ld\n", vm->width, in usbvideo_v4l_do_ioctl()
[all …]
/drivers/media/video/pwc/
Dpwc-v4l.c511 struct video_mbuf *vm = arg; in pwc_video_do_ioctl() local
514 memset(vm, 0, sizeof(*vm)); in pwc_video_do_ioctl()
515 vm->size = pwc_mbufs * pdev->len_per_image; in pwc_video_do_ioctl()
516 vm->frames = pwc_mbufs; /* double buffering should be enough for most applications */ in pwc_video_do_ioctl()
518 vm->offsets[i] = i * pdev->len_per_image; in pwc_video_do_ioctl()
525 struct video_mmap *vm = arg; in pwc_video_do_ioctl() local
527 …EBUG_READ("VIDIOCMCAPTURE: %dx%d, frame %d, format %d\n", vm->width, vm->height, vm->frame, vm->fo… in pwc_video_do_ioctl()
528 if (vm->frame < 0 || vm->frame >= pwc_mbufs) in pwc_video_do_ioctl()
536 if (vm->format) in pwc_video_do_ioctl()
538 switch (vm->format) in pwc_video_do_ioctl()
[all …]
/drivers/video/
Dsh7760fb.c213 struct fb_videomode *vm = par->pd->def_mode; in sh7760fb_set_par() local
223 if (par->rot && (vm->xres > 320)) { in sh7760fb_set_par()
229 hsynp = vm->right_margin + vm->xres; in sh7760fb_set_par()
230 hsynw = vm->hsync_len; in sh7760fb_set_par()
231 htcn = vm->left_margin + hsynp + hsynw; in sh7760fb_set_par()
232 hdcn = vm->xres; in sh7760fb_set_par()
233 vsynp = vm->lower_margin + vm->yres; in sh7760fb_set_par()
234 vsynw = vm->vsync_len; in sh7760fb_set_par()
235 vtln = vm->upper_margin + vsynp + vsynw; in sh7760fb_set_par()
236 vdln = vm->yres; in sh7760fb_set_par()
[all …]
Dtgafb.c430 min_diff = delta, vm = m, va = a, vr = r; \
438 int r,a,m,vm = 34, va = 1, vr = 30; local
504 TGA_WRITE_REG(par, (vm >> r) & 1, TGA_CLOCK_REG);
/drivers/media/video/
Dmxb.c318 struct tea6415c_multiplex vm; in mxb_init_done() local
351 vm.out = 17; in mxb_init_done()
352 vm.in = 3; in mxb_init_done()
353 mxb->tea6415c->driver->command(mxb->tea6415c, TEA6415C_SWITCH, &vm); in mxb_init_done()
356 vm.in = 3; in mxb_init_done()
357 vm.out = 13; in mxb_init_done()
358 mxb->tea6415c->driver->command(mxb->tea6415c, TEA6415C_SWITCH, &vm); in mxb_init_done()
591 struct tea6415c_multiplex vm; in mxb_ioctl() local
610 vm.in = 3; in mxb_ioctl()
611 vm.out = 17; in mxb_ioctl()
[all …]
Dstv680.c1215 struct video_mbuf *vm = arg; in stv680_do_ioctl() local
1218 memset (vm, 0, sizeof (*vm)); in stv680_do_ioctl()
1219 vm->size = STV680_NUMFRAMES * stv680->maxframesize; in stv680_do_ioctl()
1220 vm->frames = STV680_NUMFRAMES; in stv680_do_ioctl()
1222 vm->offsets[i] = stv680->maxframesize * i; in stv680_do_ioctl()
1226 struct video_mmap *vm = arg; in stv680_do_ioctl() local
1228 if (vm->format != STV_VIDEO_PALETTE) { in stv680_do_ioctl()
1230 vm->format, STV_VIDEO_PALETTE); in stv680_do_ioctl()
1231 if ((vm->format == 3) && (swapRGB_on == 0)) { in stv680_do_ioctl()
1238 if (vm->frame >= STV680_NUMFRAMES) { in stv680_do_ioctl()
[all …]
Dse401.c1062 struct video_mbuf *vm = arg; in se401_do_ioctl() local
1065 memset(vm, 0, sizeof(*vm)); in se401_do_ioctl()
1066 vm->size = SE401_NUMFRAMES * se401->maxframesize; in se401_do_ioctl()
1067 vm->frames = SE401_NUMFRAMES; in se401_do_ioctl()
1069 vm->offsets[i] = se401->maxframesize * i; in se401_do_ioctl()
1074 struct video_mmap *vm = arg; in se401_do_ioctl() local
1076 if (vm->format != VIDEO_PALETTE_RGB24) in se401_do_ioctl()
1078 if (vm->frame >= SE401_NUMFRAMES) in se401_do_ioctl()
1080 if (se401->frame[vm->frame].grabstate != FRAME_UNUSED) in se401_do_ioctl()
1084 if (se401_set_size(se401, vm->width, vm->height)) in se401_do_ioctl()
[all …]
Dov511.c4248 struct video_mbuf *vm = arg; in ov51x_v4l1_ioctl_internal() local
4253 memset(vm, 0, sizeof(struct video_mbuf)); in ov51x_v4l1_ioctl_internal()
4254 vm->size = OV511_NUMFRAMES in ov51x_v4l1_ioctl_internal()
4256 vm->frames = OV511_NUMFRAMES; in ov51x_v4l1_ioctl_internal()
4258 vm->offsets[0] = 0; in ov51x_v4l1_ioctl_internal()
4260 vm->offsets[i] = vm->offsets[i-1] in ov51x_v4l1_ioctl_internal()
4268 struct video_mmap *vm = arg; in ov51x_v4l1_ioctl_internal() local
4270 unsigned int f = vm->frame; in ov51x_v4l1_ioctl_internal()
4272 PDEBUG(4, "VIDIOCMCAPTURE: frame: %d, %dx%d, %s", f, vm->width, in ov51x_v4l1_ioctl_internal()
4273 vm->height, symbolic(v4l1_plist, vm->format)); in ov51x_v4l1_ioctl_internal()
[all …]
Dcpia.c2954 static int capture_frame(struct cam_data *cam, struct video_mmap *vm) in capture_frame() argument
2963 cam->curframe = vm->frame; in capture_frame()
3519 struct video_mbuf *vm = arg; in cpia_do_ioctl() local
3523 memset(vm, 0, sizeof(*vm)); in cpia_do_ioctl()
3524 vm->size = CPIA_MAX_FRAME_SIZE*FRAME_NUM; in cpia_do_ioctl()
3525 vm->frames = FRAME_NUM; in cpia_do_ioctl()
3527 vm->offsets[i] = CPIA_MAX_FRAME_SIZE * i; in cpia_do_ioctl()
3533 struct video_mmap *vm = arg; in cpia_do_ioctl() local
3536 DBG("VIDIOCMCAPTURE: %d / %d / %dx%d\n", vm->format, vm->frame, in cpia_do_ioctl()
3537 vm->width, vm->height); in cpia_do_ioctl()
[all …]
Dv4l2-dev.c201 static int v4l2_mmap(struct file *filp, struct vm_area_struct *vm) in v4l2_mmap() argument
208 return vdev->fops->mmap(filp, vm); in v4l2_mmap()
/drivers/s390/
Dsysinfo.c217 EBCASC (info->vm[i].name, sizeof(info->vm[i].name)); in stsi_3_2_2()
218 EBCASC (info->vm[i].cpi, sizeof(info->vm[i].cpi)); in stsi_3_2_2()
221 i, info->vm[i].name); in stsi_3_2_2()
223 i, info->vm[i].cpi); in stsi_3_2_2()
226 i, info->vm[i].caf); in stsi_3_2_2()
229 i, info->vm[i].cpus_total); in stsi_3_2_2()
231 i, info->vm[i].cpus_configured); in stsi_3_2_2()
233 i, info->vm[i].cpus_standby); in stsi_3_2_2()
235 i, info->vm[i].cpus_reserved); in stsi_3_2_2()
/drivers/media/video/cpia2/
Dcpia2_v4l.c590 struct video_mbuf *vm; in ioctl_get_mbuf() local
592 vm = arg; in ioctl_get_mbuf()
594 memset(vm, 0, sizeof(*vm)); in ioctl_get_mbuf()
595 vm->size = cam->frame_size*cam->num_frames; in ioctl_get_mbuf()
596 vm->frames = cam->num_frames; in ioctl_get_mbuf()
598 vm->offsets[i] = cam->frame_size * i; in ioctl_get_mbuf()
611 struct video_mmap *vm; in ioctl_mcapture() local
613 vm = arg; in ioctl_mcapture()
615 if (vm->frame < 0 || vm->frame >= cam->num_frames) in ioctl_mcapture()
619 video_size = cpia2_match_video_size(vm->width, vm->height); in ioctl_mcapture()
[all …]
/drivers/media/video/pvrusb2/
Dpvrusb2-v4l2.c663 struct v4l2_querymenu *vm = (struct v4l2_querymenu *)arg; in pvr2_v4l2_do_ioctl() local
665 ret = pvr2_ctrl_get_valname(pvr2_hdw_get_ctrl_v4l(hdw,vm->id), in pvr2_v4l2_do_ioctl()
666 vm->index, in pvr2_v4l2_do_ioctl()
667 vm->name,sizeof(vm->name)-1, in pvr2_v4l2_do_ioctl()
669 vm->name[cnt] = 0; in pvr2_v4l2_do_ioctl()
/drivers/video/matrox/
Dmatroxfb_base.c1283 vaddr_t vm; in matroxfb_getmemory() local
1292 vm = ACCESS_FBINFO(video.vbase); in matroxfb_getmemory()
1304 *tmp++ = mga_readb(vm, offs); in matroxfb_getmemory()
1306 mga_writeb(vm, offs, 0x02); in matroxfb_getmemory()
1309 if (mga_readb(vm, offs) != 0x02) in matroxfb_getmemory()
1311 mga_writeb(vm, offs, mga_readb(vm, offs) - 0x02); in matroxfb_getmemory()
1312 if (mga_readb(vm, offs)) in matroxfb_getmemory()
1317 mga_writeb(vm, offs2, *tmp++); in matroxfb_getmemory()