Lines Matching refs:kobj
35 struct kobject kobj; /* kobject for each entry */ member
41 static ssize_t memmap_attr_show(struct kobject *kobj,
92 to_memmap_entry(struct kobject *kobj) in to_memmap_entry() argument
94 return container_of(kobj, struct firmware_map_entry, kobj); in to_memmap_entry()
97 static void __meminit release_firmware_map_entry(struct kobject *kobj) in release_firmware_map_entry() argument
99 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry()
151 kobject_init(&entry->kobj, &memmap_ktype); in firmware_map_add_entry()
180 if (entry->kobj.state_in_sysfs) in add_sysfs_fw_map_entry()
189 entry->kobj.kset = mmap_kset; in add_sysfs_fw_map_entry()
190 if (kobject_add(&entry->kobj, NULL, "%d", map_entries_nr++)) in add_sysfs_fw_map_entry()
191 kobject_put(&entry->kobj); in add_sysfs_fw_map_entry()
201 kobject_put(&entry->kobj); in remove_sysfs_fw_map_entry()
391 static ssize_t memmap_attr_show(struct kobject *kobj, in memmap_attr_show() argument
394 struct firmware_map_entry *entry = to_memmap_entry(kobj); in memmap_attr_show()