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