/drivers/media/video/s5p-fimc/ |
H A D | fimc-mdevice.h | 100 BUG_ON(fimc->vid_cap.vfd == NULL); 101 mutex_lock(&fimc->vid_cap.vfd->entity.parent->graph_mutex); 106 BUG_ON(fimc->vid_cap.vfd == NULL); 107 mutex_unlock(&fimc->vid_cap.vfd->entity.parent->graph_mutex);
|
H A D | fimc-capture.c | 233 fimc_pipeline_initialize(fimc, &fimc->vid_cap.vfd->entity, 299 v4l2_err(ctx->fimc_dev->vid_cap.vfd, 424 &fimc->vid_cap.vfd->entity, true); 1494 struct video_device *vfd; local 1511 vfd = video_device_alloc(); 1512 if (!vfd) { 1517 snprintf(vfd->name, sizeof(vfd->name), "%s.capture", 1520 vfd->fops = &fimc_capture_fops; 1521 vfd 1572 struct video_device *vfd = fimc->vid_cap.vfd; local [all...] |
H A D | fimc-core.c | 1149 v4l2_err(fimc->m2m.vfd, "queue (%d) busy\n", f->type); 1286 v4l2_err(fimc->m2m.vfd, 1356 v4l2_err(fimc->m2m.vfd, "Out of scaler range\n"); 1449 v4l2_fh_init(&ctx->fh, fimc->m2m.vfd); 1543 struct video_device *vfd; local 1553 vfd = video_device_alloc(); 1554 if (!vfd) { 1559 vfd->fops = &fimc_m2m_fops; 1560 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; 1561 vfd [all...] |
/drivers/media/video/ |
H A D | v4l2-ioctl.c | 33 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { \ 34 printk(KERN_DEBUG "%s: ", vfd->name); \ 42 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) \ 43 printk(KERN_DEBUG "%s: " fmt, vfd->name, ## arg);\ 48 if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) \ 49 printk(KERN_CONT "%s: " fmt, vfd->name, ## arg);\ 318 static void dbgbuf(unsigned int cmd, struct video_device *vfd, argument 355 static inline void dbgrect(struct video_device *vfd, char *s, argument 362 static inline void v4l_print_pix_fmt(struct video_device *vfd, argument 376 static inline void v4l_print_pix_fmt_mplane(struct video_device *vfd, argument 397 v4l_print_ext_ctrls(unsigned int cmd, struct video_device *vfd, struct v4l2_ext_controls *c, int show_vals) argument 502 struct video_device *vfd = video_devdata(file); local [all...] |
H A D | mem2mem_testdev.c | 175 struct video_device *vfd; member in struct:m2mtest_dev 937 struct video_device *vfd; local 953 vfd = video_device_alloc(); 954 if (!vfd) { 960 *vfd = m2mtest_videodev; 961 vfd->lock = &dev->dev_mutex; 963 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); 969 video_set_drvdata(vfd, dev); 970 snprintf(vfd->name, sizeof(vfd [all...] |
H A D | mx2_emmaprp.c | 205 struct video_device *vfd; member in struct:emmaprp_dev 868 struct video_device *vfd; local 899 vfd = video_device_alloc(); 900 if (!vfd) { 906 *vfd = emmaprp_videodev; 907 vfd->lock = &pcdev->dev_mutex; 909 video_set_drvdata(vfd, pcdev); 910 snprintf(vfd->name, sizeof(vfd->name), "%s", emmaprp_videodev.name); 911 pcdev->vfd [all...] |
H A D | vivi.c | 185 struct video_device *vfd; member in struct:vivi_dev 1224 video_device_node_name(dev->vfd)); 1225 video_unregister_device(dev->vfd); 1237 struct video_device *vfd; local 1307 vfd = video_device_alloc(); 1308 if (!vfd) 1311 *vfd = vivi_template; 1312 vfd->debug = debug; 1313 vfd->v4l2_dev = &dev->v4l2_dev; 1314 set_bit(V4L2_FL_USE_FH_PRIO, &vfd [all...] |
H A D | omap24xxcam.c | 995 strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); 1458 if (!cam || !cam->vfd) 1635 struct video_device *vfd; local 1651 vfd = cam->vfd = video_device_alloc(); 1652 if (!vfd) { 1657 vfd->release = video_device_release; 1659 vfd->parent = cam->dev; 1661 strlcpy(vfd->name, CAM_NAME, sizeof(vfd [all...] |
/drivers/media/common/ |
H A D | saa7146_fops.c | 500 struct video_device *vfd; local 506 // released by vfd->release 507 vfd = video_device_alloc(); 508 if (vfd == NULL) 511 vfd->fops = &video_fops; 512 vfd->ioctl_ops = &dev->ext_vv_data->ops; 513 vfd->release = video_device_release; 514 vfd->lock = &dev->v4l2_lock; 515 vfd->tvnorms = 0; 517 vfd [all...] |
/drivers/media/video/s5p-mfc/ |
H A D | s5p_mfc.c | 648 dev->num_inst++; /* It is guarded by mfc_mutex in vfd */ 946 struct video_device *vfd; local 1041 vfd = video_device_alloc(); 1042 if (!vfd) { 1047 vfd->fops = &s5p_mfc_fops, 1048 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); 1049 vfd->release = video_device_release, 1050 vfd->lock = &dev->mfc_mutex; 1051 vfd->v4l2_dev = &dev->v4l2_dev; 1052 snprintf(vfd [all...] |
/drivers/media/video/blackfin/ |
H A D | bfin_capture.c | 194 struct video_device *vfd = bcap_dev->video_dev; local 209 v4l2_fh_init(&bcap_fh->fh, vfd); 859 struct video_device *vfd; local 893 vfd = video_device_alloc(); 894 if (!vfd) { 901 vfd->release = video_device_release; 902 vfd->fops = &bcap_fops; 903 vfd->ioctl_ops = &bcap_ioctl_ops; 904 vfd->tvnorms = 0; 905 vfd [all...] |
/drivers/media/video/s5p-g2d/ |
H A D | g2d.c | 673 struct video_device *vfd; local 758 vfd = video_device_alloc(); 759 if (!vfd) { 764 *vfd = g2d_videodev; 765 vfd->lock = &dev->mutex; 766 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); 771 video_set_drvdata(vfd, dev); 772 snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name); 773 dev->vfd [all...] |
H A D | g2d.h | 21 struct video_device *vfd; member in struct:g2d_dev
|
/drivers/staging/media/solo6x10/ |
H A D | v4l2.c | 914 solo_dev->vfd = video_device_alloc(); 915 if (!solo_dev->vfd) 918 *solo_dev->vfd = solo_v4l2_template; 919 solo_dev->vfd->parent = &solo_dev->pdev->dev; 921 ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, video_nr); 923 video_device_release(solo_dev->vfd); 924 solo_dev->vfd = NULL; 928 video_set_drvdata(solo_dev->vfd, solo_dev); 930 snprintf(solo_dev->vfd->name, sizeof(solo_dev->vfd [all...] |
H A D | solo6x10.h | 154 struct video_device *vfd; member in struct:solo_enc_dev 211 struct video_device *vfd; member in struct:solo_dev
|
H A D | v4l2-enc.c | 1736 solo_enc->vfd = video_device_alloc(); 1737 if (!solo_enc->vfd) { 1745 *solo_enc->vfd = solo_enc_template; 1746 solo_enc->vfd->parent = &solo_dev->pdev->dev; 1747 ret = video_register_device(solo_enc->vfd, VFL_TYPE_GRABBER, 1750 video_device_release(solo_enc->vfd); 1755 video_set_drvdata(solo_enc->vfd, solo_enc); 1757 snprintf(solo_enc->vfd->name, sizeof(solo_enc->vfd->name), 1758 "%s-enc (%i/%i)", SOLO6X10_NAME, solo_dev->vfd [all...] |
/drivers/media/video/s5p-tv/ |
H A D | mixer_video.c | 163 strlcpy(cap->card, layer->vfd.name, sizeof cap->card); 629 struct video_device *vfd = video_devdata(file); local 642 vfd->tvnorms = 0; 644 &vfd->tvnorms); 650 mxr_dbg(mdev, "tvnorms = %08llx\n", vfd->tvnorms); 931 mxr_err(mdev, "watchdog fired for layer %s\n", layer->vfd.name); 1012 ret = video_register_device(&layer->vfd, VFL_TYPE_GRABBER, -1); 1017 layer->vfd.name, layer->vfd.num); 1023 video_unregister_device(&layer->vfd); [all...] |
/drivers/media/video/omap/ |
H A D | omap_vout.c | 1043 strlcpy(cap->card, vout->vfd->name, sizeof(cap->card)); 1890 struct video_device *vfd; local 1940 vfd = vout->vfd = video_device_alloc(); 1942 if (!vfd) { 1947 vfd->release = video_device_release; 1948 vfd->ioctl_ops = &vout_ioctl_ops; 1950 strlcpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); 1952 vfd 2018 struct video_device *vfd = NULL; local 2101 struct video_device *vfd; local [all...] |
H A D | omap_vout_vrfb.c | 91 struct video_device *vfd; local 99 vfd = vout->vfd; 138 " video%d\n", vfd->minor);
|
H A D | omap_voutdef.h | 117 struct video_device *vfd; member in struct:omap_vout_device
|
/drivers/media/video/tlg2300/ |
H A D | pd-video.c | 1374 void set_debug_mode(struct video_device *vfd, int debug_mode) argument 1376 vfd->debug = 0; 1378 vfd->debug = V4L2_DEBUG_IOCTL; 1380 vfd->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG; 1402 struct video_device *vfd = video_devdata(file); local 1403 struct poseidon *pd = video_get_drvdata(vfd); 1410 if (vfd->vfl_type == VFL_TYPE_GRABBER 1429 set_debug_mode(vfd, debug_mode); 1437 } else if (vfd->vfl_type == VFL_TYPE_VBI 1601 struct video_device *vfd; local [all...] |
/drivers/media/video/tm6000/ |
H A D | tm6000-video.c | 1146 rc = vidioc_s_std(file, priv, &dev->vfd->current_norm); 1724 struct video_device *vfd; local 1726 vfd = video_device_alloc(); 1727 if (NULL == vfd) 1730 *vfd = *template; 1731 vfd->v4l2_dev = &dev->v4l2_dev; 1732 vfd->release = video_device_release; 1733 vfd->debug = tm6000_debug; 1734 vfd->lock = &dev->lock; 1736 snprintf(vfd [all...] |
/drivers/media/video/cx88/ |
H A D | cx88-core.c | 1026 struct video_device *vfd; local 1028 vfd = video_device_alloc(); 1029 if (NULL == vfd) 1031 *vfd = *template_; 1032 vfd->v4l2_dev = &core->v4l2_dev; 1033 vfd->parent = &pci->dev; 1034 vfd->release = video_device_release; 1035 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", 1037 return vfd; [all...] |
/drivers/media/video/saa7134/ |
H A D | saa7134-core.c | 797 struct video_device *vfd; local 799 vfd = video_device_alloc(); 800 if (NULL == vfd) 802 *vfd = *template; 803 vfd->v4l2_dev = &dev->v4l2_dev; 804 vfd->release = video_device_release; 805 vfd->debug = video_debug; 806 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", 808 video_set_drvdata(vfd, de [all...] |
/drivers/media/video/davinci/ |
H A D | vpfe_capture.c | 1839 struct video_device *vfd; local 1910 vfd = video_device_alloc(); 1911 if (NULL == vfd) { 1918 vfd->release = video_device_release; 1919 vfd->fops = &vpfe_fops; 1920 vfd->ioctl_ops = &vpfe_ioctl_ops; 1921 vfd->tvnorms = 0; 1922 vfd->current_norm = V4L2_STD_PAL; 1923 vfd->v4l2_dev = &vpfe_dev->v4l2_dev; 1924 snprintf(vfd [all...] |