Lines Matching refs:vfd
918 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_register() local
944 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr); in cal_ctx_v4l2_register()
952 &vfd->entity, 0, in cal_ctx_v4l2_register()
958 video_unregister_device(vfd); in cal_ctx_v4l2_register()
963 video_device_node_name(vfd)); in cal_ctx_v4l2_register()
978 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_init() local
1004 vfd->fops = &cal_fops; in cal_ctx_v4l2_init()
1005 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING in cal_ctx_v4l2_init()
1007 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init()
1008 vfd->queue = q; in cal_ctx_v4l2_init()
1009 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init()
1010 vfd->release = video_device_release_empty; in cal_ctx_v4l2_init()
1011 vfd->ioctl_ops = cal_mc_api ? &cal_ioctl_mc_ops : &cal_ioctl_legacy_ops; in cal_ctx_v4l2_init()
1012 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init()
1013 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init()
1016 ret = media_entity_pads_init(&vfd->entity, 1, &ctx->pad); in cal_ctx_v4l2_init()
1030 vfd->ctrl_handler = hdl; in cal_ctx_v4l2_init()
1036 media_entity_cleanup(&vfd->entity); in cal_ctx_v4l2_init()