Lines Matching refs:user_buf
55 static void *validate_and_copy_from_user(const void __user *user_buf, in validate_and_copy_from_user() argument
64 if (!access_ok(user_buf, *count)) in validate_and_copy_from_user()
72 if (copy_from_user(buf, user_buf, nbytes)) { in validate_and_copy_from_user()
124 const char __user *user_buf, size_t count, in regs_write() argument
132 buf = validate_and_copy_from_user(user_buf, &count); in regs_write()
166 static ssize_t port_regs_write(struct file *file, const char __user *user_buf, in port_regs_write() argument
172 return regs_write(port->sw, port, user_buf, count, ppos); in port_regs_write()
175 static ssize_t switch_regs_write(struct file *file, const char __user *user_buf, in switch_regs_write() argument
181 return regs_write(sw, NULL, user_buf, count, ppos); in switch_regs_write()
207 static ssize_t counters_write(struct file *file, const char __user *user_buf, in counters_write() argument
217 buf = validate_and_copy_from_user(user_buf, &count); in counters_write()