Lines Matching refs:ppos
20 static ssize_t sfb_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in sfb_read() argument
29 if (*ppos >= s) in sfb_read()
32 s -= *ppos; in sfb_read()
35 if (copy_to_user(buf, &str[*ppos], s)) in sfb_read()
38 *ppos += s; in sfb_read()
43 static ssize_t sfb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in sfb_write() argument
93 static ssize_t tso_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in tso_read() argument
108 if (*ppos >= s) in tso_read()
111 s -= *ppos; in tso_read()
114 if (copy_to_user(buf, &str[*ppos], s)) in tso_read()
117 *ppos += s; in tso_read()
122 static ssize_t tso_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in tso_write() argument