Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/char/tpm/tpm_tis_i2c.c tpm_tis_i2c_init_guard_time() -> tpm_tis_i2c_read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 1 addr 48
PARAM_VALUE 2 len 4
PARAM_VALUE 3 result 7003857173868822528
PARAM_VALUE 4 io_mode 2
BUF_SIZE 3 result 4
MEM_ZERO 0 data
RX_PATH
TASK_NOT_RUNNING
UNITS 2 len unit_byte

drivers/char/tpm/tpm_tis_core.c tpm_tis_read16() -> (struct tpm_tis_phy_ops)->read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 0 data->phy_ops 4096-ptr_max
PARAM_VALUE 1 addr 3840
PARAM_VALUE 2 len 2
PARAM_VALUE 3 result 2766327880409149440
PARAM_VALUE 4 io_mode 1
BUF_SIZE 0 data s32min-(-2),1-s32max
BUF_SIZE 0 data s32min-(-2),1-s32max
BUF_SIZE 3 result 2
DATA_SOURCE 0 data $0
DATA_SOURCE 1 addr $1
CONTAINER 0 -0-480+0 $(-1)
RX_PATH
TASK_NOT_RUNNING

drivers/char/tpm/tpm_tis_core.c tpm_tis_read32() -> (struct tpm_tis_phy_ops)->read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 0 data->phy_ops 4096-ptr_max
PARAM_VALUE 0 data->phy_ops->read_bytes 0,4096-ptr_max
PARAM_VALUE 0 data->phy_ops->write_bytes 0,4096-ptr_max
PARAM_VALUE 1 addr 0,8-s32max,2147483656-4294963224
PARAM_VALUE 2 len 4
PARAM_VALUE 3 result 339493839218233344
PARAM_VALUE 4 io_mode 2
BUF_SIZE 0 data s32min-(-1),1-s32max
BUF_SIZE 0 data s32min-(-1),1-s32max
BUF_SIZE 0 data->chip (-1),9120
BUF_SIZE 3 result 4
DATA_SOURCE 0 data $0
DATA_SOURCE 1 addr $1
CONTAINER 0 -0-480+0 $(-1)
BIT_INFO 1 addr 0x0,0xffffff1c
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 data->did_vid 0
HOST_DATA 0 data->irq 1-255

drivers/char/tpm/tpm_tis_core.c tpm_tis_read8() -> (struct tpm_tis_phy_ops)->read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 0 data->phy_ops 4096-ptr_max
PARAM_VALUE 0 data->phy_ops->read_bytes 0,4096-ptr_max
PARAM_VALUE 0 data->phy_ops->write_bytes 0,4096-ptr_max
PARAM_VALUE 1 addr 0,4-s32max,2147483660-4294963224
PARAM_VALUE 2 len 1
PARAM_VALUE 3 result 823463513889538048,2028323198799814656,3353245129063522304,4616530293249490944,6487846048305430528,7935763184910934016
PARAM_VALUE 4 io_mode 0
BUF_SIZE 0 data s32min-(-1),1-s32max
BUF_SIZE 0 data s32min-(-1),1-s32max
BUF_SIZE 0 data->chip (-1),9120
DATA_SOURCE 0 data $0
DATA_SOURCE 1 addr $1
DATA_SOURCE 3 result $2
CONTAINER 0 -0-480+0 $(-1)
BIT_INFO 1 addr 0x0,0xffffff1c
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 data->did_vid 0
HOST_DATA 0 data->irq 1-255
HALF_LOCKED2 &priv->locality_count_mutex

drivers/char/tpm/tpm_tis_core.c tpm_tis_read_bytes() -> (struct tpm_tis_phy_ops)->read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 0 data->phy_ops 4096-ptr_max
PARAM_VALUE 0 data->phy_ops->read_bytes 0,4096-ptr_max
PARAM_VALUE 1 addr 0,4-s32max,2147483684-4294963236
PARAM_VALUE 2 len 1-4086
PARAM_VALUE 4 io_mode 0
BUF_SIZE 0 data s32min-(-2),1-s32max
BUF_SIZE 0 data s32min-(-2),1-s32max
CAPPED_DATA 2 len 1
DATA_SOURCE 0 data $0
DATA_SOURCE 1 addr $1
DATA_SOURCE 2 len $2
DATA_SOURCE 3 result $3
CONTAINER 0 -0-480+0 $(-1)
BIT_INFO 1 addr 0x24,0xfffff024
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 *result 0-255
USER_PTR 3 result
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex
HALF_LOCKED2 &priv->buffer_mutex

drivers/char/tpm/tpm_tis_i2c.c tpm_tis_read16() -> (struct tpm_tis_phy_ops)->read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 0 data->phy_ops 4096-ptr_max
PARAM_VALUE 0 data->phy_ops->read_bytes 4096-ptr_max
PARAM_VALUE 0 data->phy_ops->verify_crc 3331698306427895808
PARAM_VALUE 0 data->phy_ops->write_bytes 0,4096-ptr_max
PARAM_VALUE 1 addr 68
PARAM_VALUE 2 len 2
PARAM_VALUE 3 result 9032736502440325120
PARAM_VALUE 4 io_mode 1
BUF_SIZE 0 data s32min-(-2),1-s32max
BUF_SIZE 0 data s32min-(-2),1-s32max
BUF_SIZE 3 result 2
DATA_SOURCE 0 data $0
DATA_SOURCE 1 addr $1
CONTAINER 0 -0-480+0 $(-1)
RX_PATH
TASK_NOT_RUNNING

drivers/char/tpm/tpm_tis_spi_cr50.c tpm_tis_read_bytes() -> (struct tpm_tis_phy_ops)->read_bytes()

Type Parameter Key Value
PARAM_VALUE 0 data 4096-ptr_max
PARAM_VALUE 0 data->chip 4096-ptr_max
PARAM_VALUE 0 data->int_mask 0-s32max
PARAM_VALUE 0 data->int_queue.head.next 4096-ptr_max
PARAM_VALUE 0 data->int_queue.head.prev 4096-ptr_max
PARAM_VALUE 0 data->locality_count_mutex.magic 4096-ptr_max
PARAM_VALUE 0 data->phy_ops 1750017963751510016
PARAM_VALUE 0 data->phy_ops->read_bytes 4096-ptr_max
PARAM_VALUE 0 data->phy_ops->write_bytes 4096-ptr_max
PARAM_VALUE 0 data->read_queue.head.next 4096-ptr_max
PARAM_VALUE 0 data->read_queue.head.prev 4096-ptr_max
PARAM_VALUE 0 data->rng_quality 700
PARAM_VALUE 0 data->timeout_max 500,15000
PARAM_VALUE 0 data->timeout_min 100,14700
PARAM_VALUE 1 addr 3984
PARAM_VALUE 2 len 4
PARAM_VALUE 3 result 3179165098939113472
PARAM_VALUE 4 io_mode 0
BUF_SIZE 3 result 4
BUF_SIZE 3 result 4
DATA_SOURCE 0 data $0
DATA_SOURCE 1 addr $1
DATA_SOURCE 2 len $2
DATA_SOURCE 3 result $3
CONTAINER 0 -0-480+0 $(-1)
MEM_ZERO 0 data
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 data->did_vid 0
HOST_DATA 0 data->int_mask 0-390[c]
HOST_DATA 3 *result 0-255