Lines Matching refs:kobj
93 struct kobject kobj; member
124 #define to_pdcspath_entry(obj) container_of(obj, struct pdcspath_entry, kobj)
321 sysfs_remove_link(&entry->kobj, "device"); in pdcspath_hwpath_write()
324 ret = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device"); in pdcspath_hwpath_write()
433 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) in pdcspath_attr_show() argument
435 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); in pdcspath_attr_show()
453 pdcspath_attr_store(struct kobject *kobj, struct attribute *attr, in pdcspath_attr_store() argument
456 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); in pdcspath_attr_store()
516 static ssize_t pdcs_size_read(struct kobject *kobj, in pdcs_size_read() argument
538 static ssize_t pdcs_auto_read(struct kobject *kobj, in pdcs_auto_read() argument
565 static ssize_t pdcs_autoboot_read(struct kobject *kobj, in pdcs_autoboot_read() argument
568 return pdcs_auto_read(kobj, attr, buf, PF_AUTOBOOT); in pdcs_autoboot_read()
577 static ssize_t pdcs_autosearch_read(struct kobject *kobj, in pdcs_autosearch_read() argument
580 return pdcs_auto_read(kobj, attr, buf, PF_AUTOSEARCH); in pdcs_autosearch_read()
591 static ssize_t pdcs_timer_read(struct kobject *kobj, in pdcs_timer_read() argument
618 static ssize_t pdcs_osid_read(struct kobject *kobj, in pdcs_osid_read() argument
640 static ssize_t pdcs_osdep1_read(struct kobject *kobj, in pdcs_osdep1_read() argument
668 static ssize_t pdcs_diagnostic_read(struct kobject *kobj, in pdcs_diagnostic_read() argument
694 static ssize_t pdcs_fastsize_read(struct kobject *kobj, in pdcs_fastsize_read() argument
724 static ssize_t pdcs_osdep2_read(struct kobject *kobj, in pdcs_osdep2_read() argument
762 static ssize_t pdcs_auto_write(struct kobject *kobj, in pdcs_auto_write() argument
835 static ssize_t pdcs_autoboot_write(struct kobject *kobj, in pdcs_autoboot_write() argument
839 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOBOOT); in pdcs_autoboot_write()
853 static ssize_t pdcs_autosearch_write(struct kobject *kobj, in pdcs_autosearch_write() argument
857 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOSEARCH); in pdcs_autosearch_write()
871 static ssize_t pdcs_osdep1_write(struct kobject *kobj, in pdcs_osdep1_write() argument
910 static ssize_t pdcs_osdep2_write(struct kobject *kobj, in pdcs_osdep2_write() argument
1007 entry->kobj.kset = paths_kset; in pdcs_register_pathentries()
1008 err = kobject_init_and_add(&entry->kobj, &ktype_pdcspath, NULL, in pdcs_register_pathentries()
1011 kobject_put(&entry->kobj); in pdcs_register_pathentries()
1022 err = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device"); in pdcs_register_pathentries()
1026 kobject_uevent(&entry->kobj, KOBJ_ADD); in pdcs_register_pathentries()
1044 kobject_put(&entry->kobj); in pdcs_unregister_pathentries()