Lines Matching refs:devnode
295 struct media_intf_devnode *devnode; in media_device_get_topology() local
297 devnode = intf_to_devnode(intf); in media_device_get_topology()
299 kintf.devnode.major = devnode->major; in media_device_get_topology()
300 kintf.devnode.minor = devnode->minor; in media_device_get_topology()
441 struct media_devnode *devnode = media_devnode_data(filp); in media_device_ioctl() local
442 struct media_device *dev = devnode->media_dev; in media_device_ioctl()
525 struct media_devnode *devnode = media_devnode_data(filp); in media_device_compat_ioctl() local
526 struct media_device *dev = devnode->media_dev; in media_device_compat_ioctl()
562 struct media_devnode *devnode = to_media_devnode(cd); in model_show() local
563 struct media_device *mdev = devnode->media_dev; in model_show()
574 static void media_device_release(struct media_devnode *devnode) in media_device_release() argument
576 dev_dbg(devnode->parent, "Media device released\n"); in media_device_release()
721 struct media_devnode *devnode; in __media_device_register() local
724 devnode = kzalloc(sizeof(*devnode), GFP_KERNEL); in __media_device_register()
725 if (!devnode) in __media_device_register()
729 mdev->devnode = devnode; in __media_device_register()
730 devnode->fops = &media_device_fops; in __media_device_register()
731 devnode->parent = mdev->dev; in __media_device_register()
732 devnode->release = media_device_release; in __media_device_register()
737 ret = media_devnode_register(mdev, devnode, owner); in __media_device_register()
740 mdev->devnode = NULL; in __media_device_register()
744 ret = device_create_file(&devnode->dev, &dev_attr_model); in __media_device_register()
747 mdev->devnode = NULL; in __media_device_register()
748 media_devnode_unregister_prepare(devnode); in __media_device_register()
749 media_devnode_unregister(devnode); in __media_device_register()
800 if (!media_devnode_is_registered(mdev->devnode)) { in media_device_unregister()
806 media_devnode_unregister_prepare(mdev->devnode); in media_device_unregister()
832 device_remove_file(&mdev->devnode->dev, &dev_attr_model); in media_device_unregister()
833 media_devnode_unregister(mdev->devnode); in media_device_unregister()
835 mdev->devnode = NULL; in media_device_unregister()