Lines Matching refs:user_iob
206 papr_sysparm_buf_from_user(const struct papr_sysparm_io_block __user *user_iob) in papr_sysparm_buf_from_user() argument
216 if (get_user(len, &user_iob->length)) in papr_sysparm_buf_from_user()
219 static_assert(sizeof(user_iob->data) >= PAPR_SYSPARM_MAX_INPUT); in papr_sysparm_buf_from_user()
231 if (len > 0 && copy_from_user(kern_spbuf->val, user_iob->data, len)) { in papr_sysparm_buf_from_user()
244 struct papr_sysparm_io_block __user *user_iob) in papr_sysparm_buf_to_user() argument
248 if (put_user(len_out, &user_iob->length)) in papr_sysparm_buf_to_user()
251 static_assert(sizeof(user_iob->data) >= PAPR_SYSPARM_MAX_OUTPUT); in papr_sysparm_buf_to_user()
254 if (copy_to_user(user_iob->data, kern_spbuf->val, PAPR_SYSPARM_MAX_OUTPUT)) in papr_sysparm_buf_to_user()
260 static long papr_sysparm_ioctl_get(struct papr_sysparm_io_block __user *user_iob) in papr_sysparm_ioctl_get() argument
266 if (get_user(param.token, &user_iob->parameter)) in papr_sysparm_ioctl_get()
269 kern_spbuf = papr_sysparm_buf_from_user(user_iob); in papr_sysparm_ioctl_get()
277 ret = papr_sysparm_buf_to_user(kern_spbuf, user_iob); in papr_sysparm_ioctl_get()
289 static long papr_sysparm_ioctl_set(struct papr_sysparm_io_block __user *user_iob) in papr_sysparm_ioctl_set() argument
295 if (get_user(param.token, &user_iob->parameter)) in papr_sysparm_ioctl_set()
298 kern_spbuf = papr_sysparm_buf_from_user(user_iob); in papr_sysparm_ioctl_set()