Lines Matching refs:kobj
26 struct kobject kobj; member
33 static ssize_t legacy_show(struct kobject *kobj, struct attribute *attr, in legacy_show() argument
36 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); in legacy_show()
46 static ssize_t legacy_store(struct kobject *kobj, struct attribute *attr, in legacy_store() argument
49 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); in legacy_store()
58 sysfs_schedule_callback(&slot->dev->dev.kobj, remove_callback, in legacy_store()
68 static void legacy_release(struct kobject *kobj) in legacy_release() argument
70 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); in legacy_release()
91 if (kobject_init_and_add(&slot->kobj, &legacy_ktype, in legacy_add_slot()
92 &pci_slots_kset->kobj, "%s", in legacy_add_slot()
121 kobject_del(&slot->kobj); in legacy_notify()
123 kobject_put(&slot->kobj); in legacy_notify()
155 kobject_del(&slot->kobj); in remove_legacy()
156 kobject_put(&slot->kobj); in remove_legacy()