Lines Matching refs:kobj
18 struct kobject kobj; /* kobject for each entry */ member
51 static inline struct efi_runtime_map_entry *to_map_entry(struct kobject *kobj) in to_map_entry() argument
53 return container_of(kobj, struct efi_runtime_map_entry, kobj); in to_map_entry()
56 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, in map_attr_show() argument
59 struct efi_runtime_map_entry *entry = to_map_entry(kobj); in map_attr_show()
88 static void map_release(struct kobject *kobj) in map_release() argument
92 entry = to_map_entry(kobj); in map_release()
105 add_sysfs_runtime_map_entry(struct kobject *kobj, int nr, in add_sysfs_runtime_map_entry() argument
112 map_kset = kset_create_and_add("runtime-map", NULL, kobj); in add_sysfs_runtime_map_entry()
126 kobject_init(&entry->kobj, &map_ktype); in add_sysfs_runtime_map_entry()
127 entry->kobj.kset = map_kset; in add_sysfs_runtime_map_entry()
128 ret = kobject_add(&entry->kobj, NULL, "%d", nr); in add_sysfs_runtime_map_entry()
130 kobject_put(&entry->kobj); in add_sysfs_runtime_map_entry()
189 kobject_put(&entry->kobj); in efi_runtime_map_init()