Documented in 2 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

drivers/tee/qcomtee/mem_obj.c qcomtee_mem_object_release() -> tee_shm_put()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 _T->lock

drivers/tee/qcomtee/mem_obj.c qcomtee_memobj_param_to_object() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 4096-ptr_max
PARAM_VALUE 0 shm->ctx 4096-ptr_max
BUF_SIZE 0 shm->ctx s32min-(-2),1-s32max
CAPPED_DATA 0 shm->ctx 1
DATA_SOURCE 0 shm r tee_shm_get_from_id
NOCHECK_CALL
HALF_LOCKED2 _T->lock

drivers/tee/tee_shm.c tee_shm_fop_release() -> tee_shm_put()

Type Parameter Key Value
BUF_SIZE 0 shm (-1),26
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/tee/tee_shm.c tee_shm_free() -> tee_shm_put()

Type Parameter Key Value
BUF_SIZE 0 shm (-1),80
BUF_SIZE 0 shm (-1),80
BUF_SIZE 0 shm->ctx s32min-(-1),1-s32max
DATA_SOURCE 0 shm $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 shm->num_pages
HALF_LOCKED2 &dev->mutex

drivers/tee/tee_shm.c tee_shm_get_fd() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 4096-ptr_max
PARAM_VALUE 0 shm->id 0-s32max
BUF_SIZE 0 shm (-1),80
BUF_SIZE 0 shm (-1),80
BUF_SIZE 0 shm->ctx s32min-(-1),1-s32max
DATA_SOURCE 0 shm $0
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 shm->num_pages

drivers/tee/tee_core.c free_params() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 1-u64max
NOCHECK_CALL

drivers/tee/tee_core.c param_from_user_memref() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 4096-ptr_max
PARAM_VALUE 0 shm->ctx 4096-ptr_max
BUF_SIZE 0 shm->ctx s32min-(-2),1-s32max
CAPPED_DATA 0 shm->ctx 1
DATA_SOURCE 0 shm r tee_shm_get_from_id
NOCHECK_CALL

drivers/tee/tee_core.c param_from_user_memref() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 4096-ptr_max
PARAM_VALUE 0 shm->ctx 4096-ptr_max
BUF_SIZE 0 shm->ctx s32min-(-2),1-s32max
CAPPED_DATA 0 shm->ctx 1
DATA_SOURCE 0 shm r tee_shm_get_from_id
BIT_INFO 0 shm->flags 0x10,0xffffffff
NOCHECK_CALL

drivers/tee/tee_core.c tee_ioctl_shm_alloc() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 4096-ptr_max
PARAM_VALUE 0 shm->ctx 4096-ptr_max
PARAM_VALUE 0 shm->ctx->teedev 4096-ptr_max
PARAM_VALUE 0 shm->flags 4-5,12
PARAM_VALUE 0 shm->id 0-s32max
BUF_SIZE 0 shm 80
BUF_SIZE 0 shm->ctx s32min-(-2),1-s32max
DATA_SOURCE 0 shm r tee_shm_alloc_user_buf
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 shm->num_pages

drivers/tee/tee_core.c tee_ioctl_shm_register() -> tee_shm_put()

Type Parameter Key Value
BUF_SIZE 0 shm (-1),8
BUF_SIZE 0 shm (-1),8
DATA_SOURCE 0 shm r tee_shm_register_user_buf
NOCHECK_CALL

drivers/tee/tee_core.c tee_ioctl_shm_register_fd() -> tee_shm_put()

Type Parameter Key Value
PARAM_VALUE 0 shm 4096-ptr_max
PARAM_VALUE 0 shm->ctx 4096-ptr_max
PARAM_VALUE 0 shm->flags 16
PARAM_VALUE 0 shm->id 0-s32max
BUF_SIZE 0 shm 80
BUF_SIZE 0 shm->ctx s32min-(-2),1-s32max
DATA_SOURCE 0 shm r tee_shm_register_fd
NOCHECK_CALL