Home
last modified time | relevance | path

Searched refs:vfd (Results 1 – 25 of 52) sorted by relevance

123

/drivers/media/video/
Dv4l2-ioctl.c33 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, in dbgbuf() argument
355 static inline void dbgrect(struct video_device *vfd, char *s, in dbgrect() argument
362 static inline void v4l_print_pix_fmt(struct video_device *vfd, in v4l_print_pix_fmt() argument
376 static inline void v4l_print_pix_fmt_mplane(struct video_device *vfd, in v4l_print_pix_fmt_mplane() argument
[all …]
Dmem2mem_testdev.c175 struct video_device *vfd; member
937 struct video_device *vfd; in m2mtest_probe() local
953 vfd = video_device_alloc(); in m2mtest_probe()
954 if (!vfd) { in m2mtest_probe()
960 *vfd = m2mtest_videodev; in m2mtest_probe()
961 vfd->lock = &dev->dev_mutex; in m2mtest_probe()
963 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in m2mtest_probe()
969 video_set_drvdata(vfd, dev); in m2mtest_probe()
970 snprintf(vfd->name, sizeof(vfd->name), "%s", m2mtest_videodev.name); in m2mtest_probe()
971 dev->vfd = vfd; in m2mtest_probe()
[all …]
Dmx2_emmaprp.c205 struct video_device *vfd; member
868 struct video_device *vfd; in emmaprp_probe() local
899 vfd = video_device_alloc(); in emmaprp_probe()
900 if (!vfd) { in emmaprp_probe()
906 *vfd = emmaprp_videodev; in emmaprp_probe()
907 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
909 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
910 snprintf(vfd->name, sizeof(vfd->name), "%s", emmaprp_videodev.name); in emmaprp_probe()
911 pcdev->vfd = vfd; in emmaprp_probe()
913 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe()
[all …]
Dvivi.c185 struct video_device *vfd; member
1224 video_device_node_name(dev->vfd)); in vivi_release()
1225 video_unregister_device(dev->vfd); in vivi_release()
1237 struct video_device *vfd; in vivi_create_instance() local
1307 vfd = video_device_alloc(); in vivi_create_instance()
1308 if (!vfd) in vivi_create_instance()
1311 *vfd = vivi_template; in vivi_create_instance()
1312 vfd->debug = debug; in vivi_create_instance()
1313 vfd->v4l2_dev = &dev->v4l2_dev; in vivi_create_instance()
1314 set_bit(V4L2_FL_USE_FH_PRIO, &vfd->flags); in vivi_create_instance()
[all …]
Domap24xxcam.c995 strlcpy(cap->card, cam->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1458 if (!cam || !cam->vfd) in omap24xxcam_open()
1635 struct video_device *vfd; in omap24xxcam_device_register() local
1651 vfd = cam->vfd = video_device_alloc(); in omap24xxcam_device_register()
1652 if (!vfd) { in omap24xxcam_device_register()
1657 vfd->release = video_device_release; in omap24xxcam_device_register()
1659 vfd->parent = cam->dev; in omap24xxcam_device_register()
1661 strlcpy(vfd->name, CAM_NAME, sizeof(vfd->name)); in omap24xxcam_device_register()
1662 vfd->fops = &omap24xxcam_fops; in omap24xxcam_device_register()
1663 vfd->ioctl_ops = &omap24xxcam_ioctl_fops; in omap24xxcam_device_register()
[all …]
/drivers/media/common/
Dsaa7146_fops.c500 struct video_device *vfd; in saa7146_register_device() local
507 vfd = video_device_alloc(); in saa7146_register_device()
508 if (vfd == NULL) in saa7146_register_device()
511 vfd->fops = &video_fops; in saa7146_register_device()
512 vfd->ioctl_ops = &dev->ext_vv_data->ops; in saa7146_register_device()
513 vfd->release = video_device_release; in saa7146_register_device()
514 vfd->lock = &dev->v4l2_lock; in saa7146_register_device()
515 vfd->tvnorms = 0; in saa7146_register_device()
517 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device()
518 strlcpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
[all …]
/drivers/media/video/s5p-mfc/
Ds5p_mfc.c946 struct video_device *vfd; in s5p_mfc_probe() local
1041 vfd = video_device_alloc(); in s5p_mfc_probe()
1042 if (!vfd) { in s5p_mfc_probe()
1047 vfd->fops = &s5p_mfc_fops, in s5p_mfc_probe()
1048 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe()
1049 vfd->release = video_device_release, in s5p_mfc_probe()
1050 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe()
1051 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1052 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe()
1053 dev->vfd_dec = vfd; in s5p_mfc_probe()
[all …]
/drivers/media/video/s5p-fimc/
Dfimc-mdevice.h100 BUG_ON(fimc->vid_cap.vfd == NULL); in fimc_md_graph_lock()
101 mutex_lock(&fimc->vid_cap.vfd->entity.parent->graph_mutex); in fimc_md_graph_lock()
106 BUG_ON(fimc->vid_cap.vfd == NULL); in fimc_md_graph_unlock()
107 mutex_unlock(&fimc->vid_cap.vfd->entity.parent->graph_mutex); in fimc_md_graph_unlock()
Dfimc-capture.c233 fimc_pipeline_initialize(fimc, &fimc->vid_cap.vfd->entity, in fimc_capture_resume()
299 v4l2_err(ctx->fimc_dev->vid_cap.vfd, in buffer_prepare()
424 &fimc->vid_cap.vfd->entity, true); in fimc_capture_open()
1494 struct video_device *vfd; in fimc_register_capture_device() local
1511 vfd = video_device_alloc(); in fimc_register_capture_device()
1512 if (!vfd) { in fimc_register_capture_device()
1517 snprintf(vfd->name, sizeof(vfd->name), "%s.capture", in fimc_register_capture_device()
1520 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device()
1521 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device()
1522 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device()
[all …]
Dfimc-core.c1149 v4l2_err(fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
1286 v4l2_err(fimc->m2m.vfd, in fimc_m2m_try_crop()
1356 v4l2_err(fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_crop()
1449 v4l2_fh_init(&ctx->fh, fimc->m2m.vfd); in fimc_m2m_open()
1543 struct video_device *vfd; in fimc_register_m2m_device() local
1553 vfd = video_device_alloc(); in fimc_register_m2m_device()
1554 if (!vfd) { in fimc_register_m2m_device()
1559 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
1560 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
1561 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
[all …]
/drivers/media/video/blackfin/
Dbfin_capture.c194 struct video_device *vfd = bcap_dev->video_dev; in bcap_open() local
209 v4l2_fh_init(&bcap_fh->fh, vfd); in bcap_open()
859 struct video_device *vfd; in bcap_probe() local
893 vfd = video_device_alloc(); in bcap_probe()
894 if (!vfd) { in bcap_probe()
901 vfd->release = video_device_release; in bcap_probe()
902 vfd->fops = &bcap_fops; in bcap_probe()
903 vfd->ioctl_ops = &bcap_ioctl_ops; in bcap_probe()
904 vfd->tvnorms = 0; in bcap_probe()
905 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe()
[all …]
/drivers/staging/media/solo6x10/
Dv4l2.c914 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init()
915 if (!solo_dev->vfd) in solo_v4l2_init()
918 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init()
919 solo_dev->vfd->parent = &solo_dev->pdev->dev; in solo_v4l2_init()
921 ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, video_nr); in solo_v4l2_init()
923 video_device_release(solo_dev->vfd); in solo_v4l2_init()
924 solo_dev->vfd = NULL; in solo_v4l2_init()
928 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init()
930 snprintf(solo_dev->vfd->name, sizeof(solo_dev->vfd->name), "%s (%i)", in solo_v4l2_init()
931 SOLO6X10_NAME, solo_dev->vfd->num); in solo_v4l2_init()
[all …]
Dv4l2-enc.c1736 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1737 if (!solo_enc->vfd) { in solo_enc_alloc()
1745 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1746 solo_enc->vfd->parent = &solo_dev->pdev->dev; in solo_enc_alloc()
1747 ret = video_register_device(solo_enc->vfd, VFL_TYPE_GRABBER, in solo_enc_alloc()
1750 video_device_release(solo_enc->vfd); in solo_enc_alloc()
1755 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc()
1757 snprintf(solo_enc->vfd->name, sizeof(solo_enc->vfd->name), in solo_enc_alloc()
1758 "%s-enc (%i/%i)", SOLO6X10_NAME, solo_dev->vfd->num, in solo_enc_alloc()
1759 solo_enc->vfd->num); in solo_enc_alloc()
[all …]
/drivers/media/video/s5p-g2d/
Dg2d.c673 struct video_device *vfd; in g2d_probe() local
758 vfd = video_device_alloc(); in g2d_probe()
759 if (!vfd) { in g2d_probe()
764 *vfd = g2d_videodev; in g2d_probe()
765 vfd->lock = &dev->mutex; in g2d_probe()
766 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); in g2d_probe()
771 video_set_drvdata(vfd, dev); in g2d_probe()
772 snprintf(vfd->name, sizeof(vfd->name), "%s", g2d_videodev.name); in g2d_probe()
773 dev->vfd = vfd; in g2d_probe()
775 vfd->num); in g2d_probe()
[all …]
/drivers/media/video/s5p-tv/
Dmixer_video.c163 strlcpy(cap->card, layer->vfd.name, sizeof cap->card); in mxr_querycap()
629 struct video_device *vfd = video_devdata(file); in mxr_s_output() local
642 vfd->tvnorms = 0; in mxr_s_output()
644 &vfd->tvnorms); in mxr_s_output()
650 mxr_dbg(mdev, "tvnorms = %08llx\n", vfd->tvnorms); in mxr_s_output()
931 mxr_err(mdev, "watchdog fired for layer %s\n", layer->vfd.name); in mxr_watchdog()
1012 ret = video_register_device(&layer->vfd, VFL_TYPE_GRABBER, -1); in mxr_base_layer_register()
1017 layer->vfd.name, layer->vfd.num); in mxr_base_layer_register()
1023 video_unregister_device(&layer->vfd); in mxr_base_layer_unregister()
1061 layer->vfd = (struct video_device) { in mxr_base_layer_create()
[all …]
/drivers/media/video/omap/
Domap_vout.c1043 strlcpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1890 struct video_device *vfd; in omap_vout_setup_video_data() local
1940 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1942 if (!vfd) { in omap_vout_setup_video_data()
1947 vfd->release = video_device_release; in omap_vout_setup_video_data()
1948 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data()
1950 strlcpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1952 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data()
1953 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data()
1956 vfd->minor = -1; in omap_vout_setup_video_data()
[all …]
Domap_vout_vrfb.c91 struct video_device *vfd; in omap_vout_setup_vrfb_bufs() local
99 vfd = vout->vfd; in omap_vout_setup_vrfb_bufs()
138 " video%d\n", vfd->minor); in omap_vout_setup_vrfb_bufs()
/drivers/media/video/tlg2300/
Dpd-video.c1374 void set_debug_mode(struct video_device *vfd, int debug_mode) in set_debug_mode() argument
1376 vfd->debug = 0; in set_debug_mode()
1378 vfd->debug = V4L2_DEBUG_IOCTL; in set_debug_mode()
1380 vfd->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG; in set_debug_mode()
1402 struct video_device *vfd = video_devdata(file); in pd_video_open() local
1403 struct poseidon *pd = video_get_drvdata(vfd); in pd_video_open()
1410 if (vfd->vfl_type == VFL_TYPE_GRABBER in pd_video_open()
1429 set_debug_mode(vfd, debug_mode); in pd_video_open()
1437 } else if (vfd->vfl_type == VFL_TYPE_VBI in pd_video_open()
1601 struct video_device *vfd; in vdev_init() local
[all …]
/drivers/media/video/tm6000/
Dtm6000-video.c1146 rc = vidioc_s_std(file, priv, &dev->vfd->current_norm); in vidioc_s_input()
1724 struct video_device *vfd; in vdev_init() local
1726 vfd = video_device_alloc(); in vdev_init()
1727 if (NULL == vfd) in vdev_init()
1730 *vfd = *template; in vdev_init()
1731 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
1732 vfd->release = video_device_release; in vdev_init()
1733 vfd->debug = tm6000_debug; in vdev_init()
1734 vfd->lock = &dev->lock; in vdev_init()
1736 snprintf(vfd->name, sizeof(vfd->name), "%s %s", dev->name, type_name); in vdev_init()
[all …]
/drivers/media/video/cx88/
Dcx88-core.c1026 struct video_device *vfd; in cx88_vdev_init() local
1028 vfd = video_device_alloc(); in cx88_vdev_init()
1029 if (NULL == vfd) in cx88_vdev_init()
1031 *vfd = *template_; in cx88_vdev_init()
1032 vfd->v4l2_dev = &core->v4l2_dev; in cx88_vdev_init()
1033 vfd->parent = &pci->dev; in cx88_vdev_init()
1034 vfd->release = video_device_release; in cx88_vdev_init()
1035 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in cx88_vdev_init()
1037 return vfd; in cx88_vdev_init()
/drivers/media/video/saa7134/
Dsaa7134-core.c797 struct video_device *vfd; in vdev_init() local
799 vfd = video_device_alloc(); in vdev_init()
800 if (NULL == vfd) in vdev_init()
802 *vfd = *template; in vdev_init()
803 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
804 vfd->release = video_device_release; in vdev_init()
805 vfd->debug = video_debug; in vdev_init()
806 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", in vdev_init()
808 video_set_drvdata(vfd, dev); in vdev_init()
809 return vfd; in vdev_init()
/drivers/media/video/davinci/
Dvpfe_capture.c1839 struct video_device *vfd; in vpfe_probe() local
1910 vfd = video_device_alloc(); in vpfe_probe()
1911 if (NULL == vfd) { in vpfe_probe()
1918 vfd->release = video_device_release; in vpfe_probe()
1919 vfd->fops = &vpfe_fops; in vpfe_probe()
1920 vfd->ioctl_ops = &vpfe_ioctl_ops; in vpfe_probe()
1921 vfd->tvnorms = 0; in vpfe_probe()
1922 vfd->current_norm = V4L2_STD_PAL; in vpfe_probe()
1923 vfd->v4l2_dev = &vpfe_dev->v4l2_dev; in vpfe_probe()
1924 snprintf(vfd->name, sizeof(vfd->name), in vpfe_probe()
[all …]
/drivers/media/video/saa7164/
Dsaa7164-vbi.c1284 struct video_device *vfd; in saa7164_vbi_alloc() local
1289 vfd = video_device_alloc(); in saa7164_vbi_alloc()
1290 if (NULL == vfd) in saa7164_vbi_alloc()
1293 *vfd = *template; in saa7164_vbi_alloc()
1294 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc()
1297 vfd->parent = &pci->dev; in saa7164_vbi_alloc()
1298 vfd->release = video_device_release; in saa7164_vbi_alloc()
1299 return vfd; in saa7164_vbi_alloc()
Dsaa7164-encoder.c1368 struct video_device *vfd; in saa7164_encoder_alloc() local
1373 vfd = video_device_alloc(); in saa7164_encoder_alloc()
1374 if (NULL == vfd) in saa7164_encoder_alloc()
1377 *vfd = *template; in saa7164_encoder_alloc()
1378 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_encoder_alloc()
1381 vfd->parent = &pci->dev; in saa7164_encoder_alloc()
1382 vfd->release = video_device_release; in saa7164_encoder_alloc()
1383 return vfd; in saa7164_encoder_alloc()
/drivers/media/video/cx23885/
Dcx23885-417.c1727 struct video_device *vfd; in cx23885_video_dev_alloc() local
1732 vfd = video_device_alloc(); in cx23885_video_dev_alloc()
1733 if (NULL == vfd) in cx23885_video_dev_alloc()
1735 *vfd = *template; in cx23885_video_dev_alloc()
1736 snprintf(vfd->name, sizeof(vfd->name), "%s (%s)", in cx23885_video_dev_alloc()
1738 vfd->parent = &pci->dev; in cx23885_video_dev_alloc()
1739 vfd->release = video_device_release; in cx23885_video_dev_alloc()
1740 return vfd; in cx23885_video_dev_alloc()

123