Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/power/supply/macsmc-power.c apple_smc_key_exists() -> apple_smc_get_key_info()

Type Parameter Key Value
PARAM_VALUE 0 smc 1-u64max
PARAM_VALUE 1 key 0-s32max
PARAM_VALUE 2 info 0
BUF_SIZE 0 smc s32min-(-2),1-s32max
BUF_SIZE 0 smc s32min-(-2),1-s32max
DATA_SOURCE 0 smc $0
DATA_SOURCE 1 key $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 smc unit_byte

drivers/power/supply/macsmc-power.c macsmc_power_probe() -> apple_smc_get_key_info()

Type Parameter Key Value
PARAM_VALUE 0 smc 4096-ptr_max
PARAM_VALUE 0 smc->atomic_mode 0
PARAM_VALUE 0 smc->boot_stage 1
PARAM_VALUE 0 smc->cmd_done.done 0-4294967293,u32max
PARAM_VALUE 0 smc->cmd_done.wait.lock.dep_map->name 0-255
PARAM_VALUE 0 smc->msg_id 0-15
PARAM_VALUE 0 smc->rtk->mbox->tx_empty.done 0-4294967295
PARAM_VALUE 0 smc->rtk->mbox->tx_empty.wait.lock.owner (-1)
PARAM_VALUE 0 smc->rtk->mbox->tx_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 key 0-s32max
PARAM_VALUE 2 info 6861326140670210048
BUF_SIZE 0 smc s32min-(-2),1-s32max
BUF_SIZE 0 smc s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 smc unit_byte

drivers/hwmon/macsmc-hwmon.c macsmc_hwmon_parse_key() -> apple_smc_get_key_info()

Type Parameter Key Value
PARAM_VALUE 1 key 0-s32max
PARAM_VALUE 2 info 4096-ptr_max
BUF_SIZE 0 smc s32min-(-2),1-s32max
BUF_SIZE 0 smc s32min-(-2),1-s32max
DATA_SOURCE 0 smc $1
BIT_INFO 1 key 0x0,0xff
RX_PATH
TASK_NOT_RUNNING
UNITS 0 smc unit_byte