Home
last modified time | relevance | path

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

/drivers/vfio/mdev/
Dmdev_sysfs.c130 type->devices_kobj = kobject_create_and_add("devices", &type->kobj); in add_mdev_supported_type()
131 if (!type->devices_kobj) { in add_mdev_supported_type()
145 kobject_put(type->devices_kobj); in add_mdev_supported_type()
161 kobject_put(type->devices_kobj); in remove_mdev_supported_type()
266 ret = sysfs_create_link(type->devices_kobj, kobj, dev_name(&mdev->dev)); in mdev_create_sysfs_files()
283 sysfs_remove_link(mdev->type->devices_kobj, dev_name(&mdev->dev)); in mdev_create_sysfs_files()
293 sysfs_remove_link(mdev->type->devices_kobj, dev_name(&mdev->dev)); in mdev_remove_sysfs_files()
Dmdev_private.h29 struct kobject *devices_kobj; member
/drivers/iommu/
Diommu.c39 struct kobject *devices_kobj; member
660 group->devices_kobj = kobject_create_and_add("devices", &group->kobj); in iommu_group_alloc()
661 if (!group->devices_kobj) { in iommu_group_alloc()
676 kobject_put(group->devices_kobj); in iommu_group_alloc()
682 kobject_put(group->devices_kobj); in iommu_group_alloc()
714 kobject_get(group->devices_kobj); in iommu_group_get_by_id()
894 ret = sysfs_create_link_nowarn(group->devices_kobj, in iommu_group_add_device()
910 kobject_get(group->devices_kobj); in iommu_group_add_device()
937 kobject_put(group->devices_kobj); in iommu_group_add_device()
938 sysfs_remove_link(group->devices_kobj, device->name); in iommu_group_add_device()
[all …]