Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/spi/spi-bcm2835.c bcm2835_spi_cleanup() -> spi_set_csgpiod()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 idx 0
PARAM_VALUE 2 csgpiod 0
BUF_SIZE 0 spi (-1)-0,32,56,416,424,520,752,784,880,904,1000,1088,1384,1400,1616,1696,1744,1776,1800,2368,3112,5144,5176,51056
BUF_SIZE 0 spi (-1)-0,32,56,416,424,520,752,784,880,904,1000,1088,1384,1400,1616,1696,1744,1776,1800,2368,3112,5144,5176,51056
BUF_SIZE 0 spi->controller (-1),64,176,208,272,360,504,696,976,1656,1728,1776,2360,2864-5728
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
DATA_SOURCE 0 spi $0
STR_LEN 0 spi (-1),56
STR_LEN 0 spi (-1),56
STR_LEN 0 spi->dev.init_name (-1),49
NOSPEC 0 spi->max_speed_hz
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 spi->controller->num_chipselect 1-32[c]
HOST_DATA 0 spi->controller->num_data_lanes 0-u16max[c]
USER_DATA 0 spi->bits_per_word 1-255
USER_DATA 0 spi->max_speed_hz 1-u32max[c]
USER_DATA 0 spi->mode 0-524287[c]
NO_OVERFLOW_SIMPLE 0 spi->controller->kworker->task->dl.pi_se->dl_runtime
NO_OVERFLOW_SIMPLE 0 spi->controller->num_chipselect
HALF_LOCKED2 0 &spi->controller->bus_lock_mutex
HALF_LOCKED2 0 &spi->controller->io_mutex

drivers/spi/spi-bcm2835.c bcm2835_spi_setup() -> spi_set_csgpiod()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 idx 0
PARAM_VALUE 2 csgpiod 4096-ptr_max
BUF_SIZE 0 spi->controller (-1),64,176,208,272,360,504,696,976,1656,1728,1776,2360,2864-5728
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
BUF_SIZE 2 csgpiod s32min-(-1),1-s32max
BUF_SIZE 2 csgpiod s32min-(-1),1-s32max
CAPPED_DATA 0 spi->controller->max_speed_hz 1
CAPPED_DATA 0 spi->max_speed_hz 1
DATA_SOURCE 0 spi $0
DATA_SOURCE 2 csgpiod r gpiod_get
STR_LEN 0 spi (-1),56
STR_LEN 0 spi (-1),56
STR_LEN 0 spi->dev.init_name (-1),49
BIT_INFO 0 spi->mode 0x0,0xffffffbf
NOSPEC 0 spi->max_speed_hz
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 spi->controller->num_chipselect 1-32[c]
HOST_DATA 0 spi->controller->num_data_lanes 0-u16max[c]
USER_DATA 0 spi->bits_per_word 1-255
USER_DATA 0 spi->max_speed_hz 1-u32max[c]
USER_DATA 0 spi->mode 0-524287[c]
NO_OVERFLOW_SIMPLE 0 spi->controller->kworker->task->dl.pi_se->dl_runtime
NO_OVERFLOW_SIMPLE 0 spi->controller->num_chipselect
LOCK2 0 &spi->controller->io_mutex
HALF_LOCKED2 0 &spi->controller->bus_lock_mutex
TYPE_LOCK (struct spi_controller)->io_mutex

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

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 idx 0-3
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
CAPPED_DATA 1 idx 1
DATA_SOURCE 0 spi $0
STR_LEN 0 spi->dev.init_name (-1),49
PARAM_COMPARE 1 idx < $0->num_chipselect
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
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
UNITS 1 idx unit_byte
HALF_LOCKED2 &ctlr->add_lock
HALF_LOCKED2 &of->mutex

sound/hda/codecs/side-codecs/cs35l41_hda_property.c generic_dsd_config() -> spi_set_csgpiod()

Type Parameter Key Value
PARAM_VALUE 1 idx 0
PARAM_VALUE 2 csgpiod 4096-ptr_max
BUF_SIZE 2 csgpiod s32min-(-1),1-s32max
BUF_SIZE 2 csgpiod s32min-(-1),1-s32max
DATA_SOURCE 2 csgpiod r gpiod_get_index
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL