Lines Matching refs:ops

68 	return kn->attr.ops;  in kernfs_ops()
96 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_stop_active() local
98 if (ops->seq_stop) in kernfs_seq_stop_active()
99 ops->seq_stop(sf, v); in kernfs_seq_stop_active()
106 const struct kernfs_ops *ops; in kernfs_seq_start() local
116 ops = kernfs_ops(of->kn); in kernfs_seq_start()
117 if (ops->seq_start) { in kernfs_seq_start()
118 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
135 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_next() local
137 if (ops->seq_next) { in kernfs_seq_next()
138 void *next = ops->seq_next(sf, v, ppos); in kernfs_seq_next()
168 return of->kn->attr.ops->seq_show(sf, v); in kernfs_seq_show()
189 const struct kernfs_ops *ops; in kernfs_file_direct_read() local
211 ops = kernfs_ops(of->kn); in kernfs_file_direct_read()
212 if (ops->read) in kernfs_file_direct_read()
213 len = ops->read(of, buf, len, *ppos); in kernfs_file_direct_read()
274 const struct kernfs_ops *ops; in kernfs_fop_write() local
310 ops = kernfs_ops(of->kn); in kernfs_fop_write()
311 if (ops->write) in kernfs_fop_write()
312 len = ops->write(of, buf, len, *ppos); in kernfs_fop_write()
468 const struct kernfs_ops *ops; in kernfs_fop_mmap() local
487 ops = kernfs_ops(of->kn); in kernfs_fop_mmap()
488 rc = ops->mmap(of, vma); in kernfs_fop_mmap()
616 const struct kernfs_ops *ops; in kernfs_fop_open() local
624 ops = kernfs_ops(kn); in kernfs_fop_open()
626 has_read = ops->seq_show || ops->read || ops->mmap; in kernfs_fop_open()
627 has_write = ops->write || ops->mmap; in kernfs_fop_open()
628 has_mmap = ops->mmap; in kernfs_fop_open()
674 of->atomic_write_len = ops->atomic_write_len; in kernfs_fop_open()
682 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
684 if (ops->prealloc) { in kernfs_fop_open()
697 if (ops->seq_show) in kernfs_fop_open()
911 const struct kernfs_ops *ops, in __kernfs_create_file() argument
925 kn->attr.ops = ops; in __kernfs_create_file()
942 if (ops->seq_show) in __kernfs_create_file()
944 if (ops->mmap) in __kernfs_create_file()