Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/spi/spi-aspeed-smc.c aspeed_spi_dirmap_read() -> aspeed_spi_read_user()

Type Parameter Key Value
PARAM_VALUE 0 chip 4096-ptr_max
PARAM_VALUE 0 chip->force_user_mode 1
PARAM_VALUE 1 op 4096-ptr_max
PARAM_VALUE 1 op->data.dir 1
PARAM_VALUE 3 len 1-u64max
BUF_SIZE 1 op (-1),64
BUF_SIZE 1 op (-1),64
BUF_SIZE 4 buf (-1)-s32max
BUF_SIZE 4 buf (-1)-s32max
DATA_SOURCE 2 offset $1
DATA_SOURCE 3 len $2
DATA_SOURCE 4 buf $3
NOSPEC 3 len
NOSPEC 3 len
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 2 offset 0-5294967294[c]
HOST_DATA 3 len 1-u32max[c]
HOST_DATA 4 buf 4096-ptr_max[c]
HOST_DATA 4 *buf 0-255
USER_DATA 2 offset 0-9223372036854775807
USER_DATA 3 len 1-u32max[c]
USER_PTR 4 buf
LOCK2 &desc->mem->spi->controller->bus_lock_mutex
LOCK2 &desc->mem->spi->controller->io_mutex
TYPE_LOCK (struct spi_controller)->bus_lock_mutex
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-aspeed-smc.c do_aspeed_spi_exec_mem_op() -> aspeed_spi_read_user()

Type Parameter Key Value
PARAM_VALUE 0 chip 4096-ptr_max
PARAM_VALUE 0 chip->aspi 4096-ptr_max
PARAM_VALUE 0 chip->ctl 4096-ptr_max
PARAM_VALUE 0 chip->ctl_val 4096-ptr_max
PARAM_VALUE 1 op 4096-ptr_max
PARAM_VALUE 1 op->addr.buswidth 0-8
PARAM_VALUE 1 op->addr.nbytes 1-255
PARAM_VALUE 1 op->cmd.buswidth 1-8
PARAM_VALUE 1 op->cmd.nbytes 1-255
PARAM_VALUE 1 op->data.buswidth 0-8
PARAM_VALUE 1 op->data.dir 1
PARAM_VALUE 1 op->dummy.buswidth 0-8
BUF_SIZE 1 op->data.buf.in (-1)-s32max
BUF_SIZE 1 op->data.buf.out (-1)-s32max
BUF_SIZE 4 buf (-1)-s32max
BUF_SIZE 4 buf (-1)-s32max
DATA_SOURCE 1 op $1
FUZZY_MAX 1 op->addr.nbytes 4
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 op->addr.val 0-9589934589[c]
HOST_DATA 1 op->data.nbytes 0-u32max
HOST_DATA 1 *op->data.buf.in 0-255
HOST_DATA 2 offset 0-9589934589[c]
HOST_DATA 3 len 0-u32max
HOST_DATA 4 *buf 0-255
USER_DATA 1 op->addr.val 0-9223372041149743102
USER_DATA 1 op->data.nbytes 0-u32max
USER_DATA 2 offset 0-9223372041149743102
USER_DATA 3 len 0-u32max
UNITS 2 offset unit_byte
UNITS 3 len unit_byte
UNITS 4 buf unit_byte
USER_PTR 1 op->data.buf.in
USER_PTR 1 op->data.buf.out
USER_PTR 4 buf
LOCK2 &mem->spi->controller->bus_lock_mutex
LOCK2 &mem->spi->controller->io_mutex
HALF_LOCKED2 &at25->lock
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &spinand->lock
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct spi_controller)->bus_lock_mutex
TYPE_LOCK (struct spi_controller)->io_mutex