Lines Matching refs:kobj
23 struct kobject kobj; /* kobject for each entry */ member
56 static inline struct efi_runtime_map_entry *to_map_entry(struct kobject *kobj) in to_map_entry() argument
58 return container_of(kobj, struct efi_runtime_map_entry, kobj); in to_map_entry()
61 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, in map_attr_show() argument
64 struct efi_runtime_map_entry *entry = to_map_entry(kobj); in map_attr_show()
92 static void map_release(struct kobject *kobj) in map_release() argument
96 entry = to_map_entry(kobj); in map_release()
109 add_sysfs_runtime_map_entry(struct kobject *kobj, int nr) in add_sysfs_runtime_map_entry() argument
115 map_kset = kset_create_and_add("runtime-map", NULL, kobj); in add_sysfs_runtime_map_entry()
130 kobject_init(&entry->kobj, &map_ktype); in add_sysfs_runtime_map_entry()
131 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
132 ret = kobject_add(&entry->kobj, NULL, "%d", nr); in add_sysfs_runtime_map_entry()
134 kobject_put(&entry->kobj); in add_sysfs_runtime_map_entry()
198 kobject_put(&entry->kobj); in efi_runtime_map_init()