Lines Matching refs:kobject
32 static struct kobject *edac_pci_top_main_kobj;
76 /* DEVICE instance kobject release() function */
77 static void edac_pci_instance_release(struct kobject *kobj)
100 static ssize_t edac_pci_instance_show(struct kobject *kobj,
112 static ssize_t edac_pci_instance_store(struct kobject *kobj,
157 * construct one EDAC PCI instance's kobject for use
161 struct kobject *main_kobj;
176 /* And now register this new kobject under the main kobj */
187 debugf1("%s() Register instance 'pci%d' kobject\n", __func__, idx);
206 /* Unregister the instance kobject and allow its release
242 static ssize_t edac_pci_dev_show(struct kobject *kobj, struct attribute *attr,
253 static ssize_t edac_pci_dev_store(struct kobject *kobj,
315 * This kobj is the 'main' kobject that EDAC PCI instances
318 static void edac_pci_release_main_kobj(struct kobject *kobj)
324 /* last reference to top EDAC PCI kobject has been removed,
350 /* check and count if we have already created the main kobject */
354 /* First time, so create the main kobject and its
374 edac_pci_top_main_kobj = kzalloc(sizeof(struct kobject), GFP_KERNEL);
390 /* At this point, to 'release' the top level kobject
395 debugf1("Registered '.../edac/pci' kobject\n");
417 * kobject with its controls and attributes
443 struct kobject *edac_kobj = &pci->kobj;
447 /* create the top main EDAC PCI kobject, IF needed */
452 /* Create this instance's kobject under the MAIN kobject */
493 * If it is, the main kobject will be unregistered as a result