Lines Matching defs:user_buf
59 static void *validate_and_copy_from_user(const void __user *user_buf,
68 if (!access_ok(user_buf, *count))
76 if (copy_from_user(buf, user_buf, nbytes)) {
128 const char __user *user_buf, size_t count,
136 buf = validate_and_copy_from_user(user_buf, &count);
170 static ssize_t port_regs_write(struct file *file, const char __user *user_buf,
176 return regs_write(port->sw, port, user_buf, count, ppos);
179 static ssize_t switch_regs_write(struct file *file, const char __user *user_buf,
185 return regs_write(sw, NULL, user_buf, count, ppos);
262 margining_ber_level_write(struct file *file, const char __user *user_buf,
281 buf = validate_and_copy_from_user(user_buf, &count);
407 margining_lanes_write(struct file *file, const char __user *user_buf,
417 buf = validate_and_copy_from_user(user_buf, &count);
480 const char __user *user_buf,
490 buf = validate_and_copy_from_user(user_buf, &count);
631 const char __user *user_buf,
744 const char __user *user_buf,
754 buf = validate_and_copy_from_user(user_buf, &count);
803 const char __user *user_buf,
813 buf = validate_and_copy_from_user(user_buf, &count);
1047 static ssize_t counters_write(struct file *file, const char __user *user_buf,
1057 buf = validate_and_copy_from_user(user_buf, &count);