Lines Matching defs:attr_sd
76 struct sysfs_dirent *attr_sd = dentry->d_fsdata;
77 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
87 /* need attr_sd for attr and ops, its parent for kobj */
88 if (!sysfs_get_active(attr_sd))
91 buffer->event = atomic_read(&attr_sd->s_attr.open->event);
92 count = ops->show(kobj, attr_sd->s_attr.attr, buffer->page);
94 sysfs_put_active(attr_sd);
200 struct sysfs_dirent *attr_sd = dentry->d_fsdata;
201 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
205 /* need attr_sd for attr and ops, its parent for kobj */
206 if (!sysfs_get_active(attr_sd))
209 rc = ops->store(kobj, attr_sd->s_attr.attr, buffer->page, count);
211 sysfs_put_active(attr_sd);
335 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
336 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
346 /* need attr_sd for attr and ops, its parent for kobj */
347 if (!sysfs_get_active(attr_sd))
391 error = sysfs_get_open_dirent(attr_sd, buffer);
396 sysfs_put_active(attr_sd);
402 sysfs_put_active(attr_sd);
436 struct sysfs_dirent *attr_sd = filp->f_path.dentry->d_fsdata;
437 struct sysfs_open_dirent *od = attr_sd->s_attr.open;
440 if (!sysfs_get_active(attr_sd))
445 sysfs_put_active(attr_sd);