Lines Matching defs:buf
46 ssize_t oprofilefs_str_to_user(char const *str, char __user *buf, size_t count, loff_t *offset)
48 return simple_read_from_buffer(buf, count, offset, str, strlen(str));
54 ssize_t oprofilefs_ulong_to_user(unsigned long val, char __user *buf, size_t count, loff_t *offset)
60 return simple_read_from_buffer(buf, count, offset, tmpbuf, maxlen);
71 int oprofilefs_ulong_from_user(unsigned long *val, char const __user *buf, size_t count)
84 if (copy_from_user(tmpbuf, buf, count))
94 static ssize_t ulong_read_file(struct file *file, char __user *buf, size_t count, loff_t *offset)
97 return oprofilefs_ulong_to_user(*val, buf, count, offset);
101 static ssize_t ulong_write_file(struct file *file, char const __user *buf, size_t count, loff_t *offset)
109 retval = oprofilefs_ulong_from_user(&value, buf, count);
181 static ssize_t atomic_read_file(struct file *file, char __user *buf, size_t count, loff_t *offset)
184 return oprofilefs_ulong_to_user(atomic_read(val), buf, count, offset);