Lines Matching refs:kobj

70 #define to_instance(k) container_of(k, struct edac_pci_ctl_info, kobj)
74 static void edac_pci_instance_release(struct kobject *kobj) in edac_pci_instance_release() argument
81 pci = to_instance(kobj); in edac_pci_instance_release()
97 static ssize_t edac_pci_instance_show(struct kobject *kobj, in edac_pci_instance_show() argument
100 struct edac_pci_ctl_info *pci = to_instance(kobj); in edac_pci_instance_show()
109 static ssize_t edac_pci_instance_store(struct kobject *kobj, in edac_pci_instance_store() argument
113 struct edac_pci_ctl_info *pci = to_instance(kobj); in edac_pci_instance_store()
174 err = kobject_init_and_add(&pci->kobj, &ktype_pci_instance, in edac_pci_create_instance_kobj()
182 kobject_uevent(&pci->kobj, KOBJ_ADD); in edac_pci_create_instance_kobj()
206 kobject_put(&pci->kobj); in edac_pci_unregister_sysfs_instance_kobj()
210 #define to_edacpci(k) container_of(k, struct edac_pci_ctl_info, kobj)
238 static ssize_t edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, in edac_pci_dev_show() argument
249 static ssize_t edac_pci_dev_store(struct kobject *kobj, in edac_pci_dev_store() argument
314 static void edac_pci_release_main_kobj(struct kobject *kobj) in edac_pci_release_main_kobj() argument
318 kfree(kobj); in edac_pci_release_main_kobj()
380 &edac_subsys->dev_root->kobj, "pci"); in edac_pci_main_kobj_setup()
442 struct kobject *edac_kobj = &pci->kobj; in edac_pci_create_sysfs()
456 err = sysfs_create_link(edac_kobj, &pci->dev->kobj, EDAC_PCI_SYMLINK); in edac_pci_create_sysfs()
484 sysfs_remove_link(&pci->kobj, EDAC_PCI_SYMLINK); in edac_pci_remove_sysfs()