Home
last modified time | relevance | path

Searched refs:devices_kobj (Results 1 – 3 of 3) sorted by relevance

/drivers/vfio/mdev/
Dmdev_sysfs.c122 type->devices_kobj = kobject_create_and_add("devices", &type->kobj); in add_mdev_supported_type()
123 if (!type->devices_kobj) { in add_mdev_supported_type()
139 kobject_put(type->devices_kobj); in add_mdev_supported_type()
152 kobject_put(type->devices_kobj); in remove_mdev_supported_type()
255 ret = sysfs_create_link(type->devices_kobj, &dev->kobj, dev_name(dev)); in mdev_create_sysfs_files()
272 sysfs_remove_link(type->devices_kobj, dev_name(dev)); in mdev_create_sysfs_files()
280 sysfs_remove_link(type->devices_kobj, dev_name(dev)); in mdev_remove_sysfs_files()
Dmdev_private.h46 struct kobject *devices_kobj; member
/drivers/iommu/
Diommu.c38 struct kobject *devices_kobj; member
621 group->devices_kobj = kobject_create_and_add("devices", &group->kobj); in iommu_group_alloc()
622 if (!group->devices_kobj) { in iommu_group_alloc()
671 kobject_get(group->devices_kobj); in iommu_group_get_by_id()
839 ret = sysfs_create_link_nowarn(group->devices_kobj, in iommu_group_add_device()
855 kobject_get(group->devices_kobj); in iommu_group_add_device()
882 kobject_put(group->devices_kobj); in iommu_group_add_device()
883 sysfs_remove_link(group->devices_kobj, device->name); in iommu_group_add_device()
929 sysfs_remove_link(group->devices_kobj, device->name); in iommu_group_remove_device()
937 kobject_put(group->devices_kobj); in iommu_group_remove_device()
[all …]