Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/media/v4l2-core/v4l2-ctrls-api.c cur_to_user() -> ptr_to_user()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 ctrl 4096-ptr_max
PARAM_VALUE 1 ctrl->type_ops->validate 4096-ptr_max
BUF_SIZE 1 ctrl (-1),248-s32max
BUF_SIZE 1 ctrl (-1),248-s32max
DATA_SOURCE 0 c $0
DATA_SOURCE 1 ctrl $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 c->id 0-u32max[u]
USER_DATA 0 c->value s32min-s32max[u]
USER_DATA 1 *ctrl->p_new.p s64min-s64max
USER_DATA 1 *ctrl->p_new.p_s32 s32min-s32max[u]
USER_PTR 1 ctrl->p_new.p
HALF_LOCKED2 master->handler->lock
HALF_LOCKED2 1 ctrl->handler->lock

drivers/media/v4l2-core/v4l2-ctrls-api.c def_to_user() -> ptr_to_user()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 ctrl 4096-ptr_max
PARAM_VALUE 1 ctrl->type_ops 4096-ptr_max
DATA_SOURCE 0 c $0
DATA_SOURCE 1 ctrl $1
LOCK2 master->handler->lock
HALF_LOCKED2 &video->stream_lock
HALF_LOCKED2 lock

drivers/media/v4l2-core/v4l2-ctrls-api.c max_to_user() -> ptr_to_user()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 ctrl 4096-ptr_max
PARAM_VALUE 1 ctrl->type_ops 4096-ptr_max
DATA_SOURCE 0 c $0
DATA_SOURCE 1 ctrl $1
LOCK2 master->handler->lock
HALF_LOCKED2 &video->stream_lock
HALF_LOCKED2 lock

drivers/media/v4l2-core/v4l2-ctrls-api.c min_to_user() -> ptr_to_user()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 ctrl 4096-ptr_max
PARAM_VALUE 1 ctrl->type_ops 4096-ptr_max
DATA_SOURCE 0 c $0
DATA_SOURCE 1 ctrl $1
LOCK2 master->handler->lock
HALF_LOCKED2 &video->stream_lock
HALF_LOCKED2 lock

drivers/media/v4l2-core/v4l2-ctrls-api.c new_to_user() -> ptr_to_user()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 ctrl 4096-ptr_max
BUF_SIZE 1 ctrl (-1),248-s32max
BUF_SIZE 1 ctrl (-1),248-s32max
DATA_SOURCE 0 c $0
DATA_SOURCE 1 ctrl $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 master->handler->lock

drivers/media/v4l2-core/v4l2-ctrls-api.c req_to_user() -> ptr_to_user()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
DATA_SOURCE 0 c $0
LOCK2 master->handler->lock
HALF_LOCKED2 &video->stream_lock
HALF_LOCKED2 lock