Lines Matching refs:sysfs_ops
26 static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn) in sysfs_file_ops()
32 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; in sysfs_file_ops()
44 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show()
104 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_read()
130 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_write()
259 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops; in sysfs_add_file_mode_ns() local
265 if (WARN(!sysfs_ops, KERN_ERR in sysfs_add_file_mode_ns()
271 if (sysfs_ops->show && sysfs_ops->store) in sysfs_add_file_mode_ns()
273 else if (sysfs_ops->show) in sysfs_add_file_mode_ns()
275 else if (sysfs_ops->store) in sysfs_add_file_mode_ns()
278 if (sysfs_ops->show && sysfs_ops->store) in sysfs_add_file_mode_ns()
280 else if (sysfs_ops->show) in sysfs_add_file_mode_ns()
282 else if (sysfs_ops->store) in sysfs_add_file_mode_ns()