Lines Matching refs:kobj

93 	struct kobject kobj;
124 #define to_pdcspath_entry(obj) container_of(obj, struct pdcspath_entry, kobj)
321 sysfs_remove_link(&entry->kobj, "device");
324 ret = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device");
428 * @kobj: The kobject to get info from.
433 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf)
435 struct pdcspath_entry *entry = to_pdcspath_entry(kobj);
447 * @kobj: The kobject to write info to.
453 pdcspath_attr_store(struct kobject *kobj, struct attribute *attr,
456 struct pdcspath_entry *entry = to_pdcspath_entry(kobj);
512 * @kobj: The kobject used to share data with userspace.
516 static ssize_t pdcs_size_read(struct kobject *kobj,
533 * @kobj: The kobject used to share data with userspace.
538 static ssize_t pdcs_auto_read(struct kobject *kobj,
561 * @kobj: The kobject used to share data with userspace.
565 static ssize_t pdcs_autoboot_read(struct kobject *kobj,
568 return pdcs_auto_read(kobj, attr, buf, PF_AUTOBOOT);
573 * @kobj: The kobject used to share data with userspace.
577 static ssize_t pdcs_autosearch_read(struct kobject *kobj,
580 return pdcs_auto_read(kobj, attr, buf, PF_AUTOSEARCH);
585 * @kobj: The kobject used to share data with userspace.
591 static ssize_t pdcs_timer_read(struct kobject *kobj,
614 * @kobj: The kobject used to share data with userspace.
618 static ssize_t pdcs_osid_read(struct kobject *kobj,
634 * @kobj: The kobject used to share data with userspace.
640 static ssize_t pdcs_osdep1_read(struct kobject *kobj,
662 * @kobj: The kobject used to share data with userspace.
668 static ssize_t pdcs_diagnostic_read(struct kobject *kobj,
688 * @kobj: The kobject used to share data with userspace.
694 static ssize_t pdcs_fastsize_read(struct kobject *kobj,
718 * @kobj: The kobject used to share data with userspace.
724 static ssize_t pdcs_osdep2_read(struct kobject *kobj,
752 * @kobj: The kobject used to share data with userspace.
762 static ssize_t pdcs_auto_write(struct kobject *kobj,
826 * @kobj: The kobject used to share data with userspace.
835 static ssize_t pdcs_autoboot_write(struct kobject *kobj,
839 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOBOOT);
844 * @kobj: The kobject used to share data with userspace.
853 static ssize_t pdcs_autosearch_write(struct kobject *kobj,
857 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOSEARCH);
862 * @kobj: The kobject used to share data with userspace.
871 static ssize_t pdcs_osdep1_write(struct kobject *kobj,
901 * @kobj: The kobject used to share data with userspace.
910 static ssize_t pdcs_osdep2_write(struct kobject *kobj,
1007 entry->kobj.kset = paths_kset;
1008 err = kobject_init_and_add(&entry->kobj, &ktype_pdcspath, NULL,
1011 kobject_put(&entry->kobj);
1022 err = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device");
1026 kobject_uevent(&entry->kobj, KOBJ_ADD);
1044 kobject_put(&entry->kobj);