Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/char/tpm/tpm-interface.c, line 354
- drivers/char/tpm/tpm-sysfs.c, line 103
- drivers/char/tpm/tpm1-cmd.c, line 667
Smatch caller information:
drivers/char/tpm/tpm1-cmd.c tpm1_do_selftest() -> tpm1_pcr_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops->clk_enable | 0,8238000303417774080 |
| PARAM_VALUE | 0 | chip->ops->cmd_ready | 0,2020414352265490432 |
| PARAM_VALUE | 0 | chip->ops->flags | 0-1 |
| PARAM_VALUE | 1 | pcr_idx | 0 |
| PARAM_VALUE | 2 | res_buf | 6876210790829543424 |
| BUF_SIZE | 0 | chip | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | chip | s32min-(-1),1-s32max |
| BUF_SIZE | 2 | res_buf | 20 |
| DATA_SOURCE | 0 | chip | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | chip | unit_byte |
drivers/char/tpm/tpm-interface.c tpm_pcr_read() -> tpm1_pcr_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->dev.driver_data->state | 0-9223372036854775799 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | chip->tpm_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | pcr_idx | 0-23 |
| BUF_SIZE | 2 | res_buf | 64 |
| DATA_SOURCE | 0 | chip | $0 |
| DATA_SOURCE | 1 | pcr_idx | $1 |
| FUZZY_MAX | 1 | pcr_idx | 9 |
| BIT_INFO | 0 | chip->flags | 0x0,0xfffffffd |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &chip->ops_sem | |
| LOCK2 | 0 | &chip->tpm_mutex | |
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm-sysfs.c pcrs_show() -> tpm1_pcr_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->dev.driver_data->state | 0-9223372036854775799 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | chip->tpm_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 2 | res_buf | 6721391546208485376 |
| BUF_SIZE | 2 | res_buf | 20 |
| CAPPED_DATA | 1 | pcr_idx | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | 0 | &chip->ops_sem | |
| LOCK2 | 0 | &chip->tpm_mutex | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |