Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/spi/spi.c __spi_add_device() -> __spi_setup()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 0 spi->controller 4096-ptr_max
PARAM_VALUE 0 spi->controller->target 1
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 spi->num_chipselect 0-4
PARAM_VALUE 0 *spi->chip_select 0-255
PARAM_VALUE 1 initial_setup 1
BUF_SIZE 0 spi (-1),1776,1792
BUF_SIZE 0 spi (-1),1776,1792
BUF_SIZE 0 spi->controller (-1),1-s32max
BUF_SIZE 0 spi->controller_data s32min-(-1),1-s32max
BUF_SIZE 0 spi->dev.init_name (-1),50
BUF_SIZE 0 spi->dev.platform_data (-1),32
CAPPED_DATA 0 spi->num_chipselect 1
DATA_SOURCE 0 spi $0
STR_LEN 0 spi->dev.init_name (-1),49
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 spi->controller->num_chipselect 1-32[c]
HOST_DATA 0 spi->controller->num_data_lanes 0-u16max[c]
NO_OVERFLOW_SIMPLE 0 spi->controller->num_chipselect
HALF_LOCKED2 &ctlr->add_lock
HALF_LOCKED2 &of->mutex

drivers/spi/spi.c spi_setup() -> __spi_setup()

Type Parameter Key Value
PARAM_VALUE 1 initial_setup 0
DATA_SOURCE 0 spi $0
STR_LEN 0 spi (-1),56
STR_LEN 0 spi (-1),56
NOSPEC 0 spi->max_speed_hz
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 spi->bits_per_word 0-255
USER_DATA 0 spi->max_speed_hz 1-u32max
USER_DATA 0 spi->mode 0-524287[c]
NO_OVERFLOW_SIMPLE 0 spi->controller->kworker->task->dl.pi_se->dl_runtime
HALF_LOCKED2 &ctlr->io_mutex
HALF_LOCKED2 &priv->mux->lock
HALF_LOCKED2 &spi->controller->io_mutex
HALF_LOCKED2 &spidev->spi_lock
HALF_LOCKED2 0 &spi->controller->bus_lock_mutex