• Home
  • Raw
  • Download

Lines Matching refs:p_new

79 	return ptr_to_user(c, ctrl, ctrl->p_new);  in new_to_user()
92 ctrl->type_ops->init(ctrl, 0, ctrl->p_new); in def_to_user()
94 return ptr_to_user(c, ctrl, ctrl->p_new); in def_to_user()
111 memcpy(tmp, ctrl->p_new.p, ctrl->elems * ctrl->elem_size); in user_to_new()
113 ctrl->p_new.p = tmp; in user_to_new()
123 if (copy_from_user(ctrl->p_new.p, c->ptr, c->size)) in user_to_new()
129 ctrl->type_ops->init(ctrl, elems, ctrl->p_new); in user_to_new()
135 *ctrl->p_new.p_s64 = c->value64; in user_to_new()
143 ret = copy_from_user(ctrl->p_new.p_char, c->string, size) ? -EFAULT : 0; in user_to_new()
145 char last = ctrl->p_new.p_char[size - 1]; in user_to_new()
147 ctrl->p_new.p_char[size - 1] = 0; in user_to_new()
152 if (strlen(ctrl->p_new.p_char) == ctrl->maximum && last) in user_to_new()
158 *ctrl->p_new.p_s32 = c->value; in user_to_new()
496 static int validate_new(const struct v4l2_ctrl *ctrl, union v4l2_ctrl_ptr p_new) in validate_new() argument
498 return ctrl->type_ops->validate(ctrl, p_new); in validate_new()
513 union v4l2_ctrl_ptr p_new; in validate_ctrls() local
544 p_new.p_s64 = &cs->controls[i].value64; in validate_ctrls()
546 p_new.p_s32 = &cs->controls[i].value; in validate_ctrls()
547 ret = validate_new(ctrl, p_new); in validate_ctrls()
652 ret = validate_new(ctrl, ctrl->p_new); in try_set_ext_ctrls_common()
790 ret = validate_new(ctrl, ctrl->p_new); in set_ctrl()
891 *ctrl->p_new.p_s64 = val; in __v4l2_ctrl_s_ctrl_int64()
903 strscpy(ctrl->p_new.p_char, s, ctrl->maximum + 1); in __v4l2_ctrl_s_ctrl_string()
919 memcpy(ctrl->p_new.p, p, ctrl->elems * ctrl->elem_size); in __v4l2_ctrl_s_ctrl_compound()
964 if (validate_new(ctrl, ctrl->p_new)) { in __v4l2_ctrl_modify_range()
966 *ctrl->p_new.p_s64 = def; in __v4l2_ctrl_modify_range()
968 *ctrl->p_new.p_s32 = def; in __v4l2_ctrl_modify_range()
972 value_changed = *ctrl->p_new.p_s64 != *ctrl->p_cur.p_s64; in __v4l2_ctrl_modify_range()
974 value_changed = *ctrl->p_new.p_s32 != *ctrl->p_cur.p_s32; in __v4l2_ctrl_modify_range()
1007 ctrl->p_new.p = p_array; in __v4l2_ctrl_modify_dimensions()