Lines Matching defs:vfd
1226 struct video_device *vfd;
1246 vfd = video_device_alloc();
1247 if (!vfd) {
1252 vfd->fops = &fimc_m2m_fops;
1253 vfd->ioctl_ops = &fimc_m2m_ioctl_ops;
1254 vfd->minor = -1;
1255 vfd->release = video_device_release;
1257 snprintf(vfd->name, sizeof(vfd->name), "%s:m2m", dev_name(&pdev->dev));
1259 video_set_drvdata(vfd, fimc);
1262 fimc->m2m.vfd = vfd;
1270 ret = video_register_device(vfd, VFL_TYPE_GRABBER, -1);
1277 "FIMC m2m driver registered as /dev/video%d\n", vfd->num);
1284 video_device_release(fimc->m2m.vfd);
1295 video_unregister_device(fimc->m2m.vfd);
1296 video_device_release(fimc->m2m.vfd);