Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_get_temp() -> gaokun_ec_read()

Type Parameter Key Value
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 2 resp_len 4
PARAM_VALUE 3 resp 4096-ptr_max
BUF_SIZE 0 ec s32min-(-2),1-s32max
BUF_SIZE 0 ec s32min-(-2),1-s32max
BUF_SIZE 1 req 5
BUF_SIZE 3 resp 4
DATA_SOURCE 0 ec $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec unit_byte
UNITS 2 resp_len unit_byte
LOCK2 _T->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tz->lock

drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_psy_get_smart_charge() -> gaokun_ec_read()

Type Parameter Key Value
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 2 resp_len 6
PARAM_VALUE 3 resp 4096-ptr_max
BUF_SIZE 1 req 4
BUF_SIZE 3 resp 6
DATA_SOURCE 0 ec $0
RX_PATH
TASK_NOT_RUNNING
UNITS 2 resp_len unit_byte
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_psy_multi_read() -> gaokun_ec_read()

Type Parameter Key Value
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 2 resp_len 3
PARAM_VALUE 3 resp 4096-ptr_max
BUF_SIZE 0 ec (-1),1-s32max
BUF_SIZE 0 ec (-1),1-s32max
BUF_SIZE 1 req 5
BUF_SIZE 3 resp 3
DATA_SOURCE 0 ec $0
RX_PATH
TASK_NOT_RUNNING
UNITS 2 resp_len unit_byte

drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_read_byte() -> gaokun_ec_read()

Type Parameter Key Value
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 2 resp_len 3
PARAM_VALUE 3 resp 4096-ptr_max
BUF_SIZE 0 ec s32min-(-1),1-s32max
BUF_SIZE 0 ec s32min-(-1),1-s32max
BUF_SIZE 1 req 4
BUF_SIZE 1 req 4
BUF_SIZE 3 resp 3
DATA_SOURCE 0 ec $0
DATA_SOURCE 1 req $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 ec unit_byte
UNITS 2 resp_len unit_byte
HALF_LOCKED2 &of->mutex

drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_ucsi_get_reg() -> gaokun_ec_read()

Type Parameter Key Value
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 2 resp_len 9
PARAM_VALUE 3 resp 4096-ptr_max
BUF_SIZE 0 ec (-1),1-s32max
BUF_SIZE 0 ec (-1),1-s32max
BUF_SIZE 1 req 4
BUF_SIZE 3 resp 9
DATA_SOURCE 0 ec $0
RX_PATH
TASK_NOT_RUNNING
UNITS 2 resp_len unit_byte

drivers/platform/arm64/huawei-gaokun-ec.c gaokun_ec_ucsi_read() -> gaokun_ec_read()

Type Parameter Key Value
PARAM_VALUE 1 req 4096-ptr_max
PARAM_VALUE 2 resp_len 22
PARAM_VALUE 3 resp 4096-ptr_max
BUF_SIZE 1 req 4
BUF_SIZE 3 resp 22
DATA_SOURCE 0 ec $0
RX_PATH
TASK_NOT_RUNNING
UNITS 2 resp_len unit_byte
HALF_LOCKED2 &ucsi->ppm_lock