Lines Matching refs:vfd
935 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_register() local
961 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr); in cal_ctx_v4l2_register()
969 &vfd->entity, 0, in cal_ctx_v4l2_register()
975 video_unregister_device(vfd); in cal_ctx_v4l2_register()
980 video_device_node_name(vfd)); in cal_ctx_v4l2_register()
995 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_init() local
1021 vfd->fops = &cal_fops; in cal_ctx_v4l2_init()
1022 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING in cal_ctx_v4l2_init()
1024 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init()
1025 vfd->queue = q; in cal_ctx_v4l2_init()
1026 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init()
1027 vfd->release = video_device_release_empty; in cal_ctx_v4l2_init()
1028 vfd->ioctl_ops = cal_mc_api ? &cal_ioctl_mc_ops : &cal_ioctl_legacy_ops; in cal_ctx_v4l2_init()
1029 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init()
1030 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init()
1033 ret = media_entity_pads_init(&vfd->entity, 1, &ctx->pad); in cal_ctx_v4l2_init()
1047 vfd->ctrl_handler = hdl; in cal_ctx_v4l2_init()
1053 media_entity_cleanup(&vfd->entity); in cal_ctx_v4l2_init()