Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/spi/spi-stm32.c stm32_spi_enable() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0,4,8,12,32,48,1008
PARAM_VALUE 2 bits 0-2,56,64,128,8192,16384,32768,8388608,16777216,33554432,251658240,268435456,1879048192
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
CAPPED_DATA 0 spi->cur_xferlen 1
DATA_SOURCE 0 spi $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32_spi_transfer_one_dma() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0,4,8,12,32,48,1008
PARAM_VALUE 2 bits 0-2,56,64,128,8192,16384,32768,8388608,16777216,33554432,251658240,268435456,1879048192
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 spi unit_byte
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32_spi_transfer_one_dma() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0,4,8,12,32,48,1008
PARAM_VALUE 2 bits 0-2,56,64,128,8192,16384,32768,8388608,16777216,33554432,251658240,268435456,1879048192
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 spi unit_byte
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32f4_spi_set_bpw() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 2048
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
CAPPED_DATA 0 spi->cur_xferlen 1
DATA_SOURCE 0 spi $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32f7_spi_read_rx() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 4
PARAM_VALUE 2 bits 4096
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
BIT_INFO 0 spi->cur_comm 0x0,0x7
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &spi->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32f7_spi_transfer_one_dma_start() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 4
PARAM_VALUE 2 bits 4096
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32fx_spi_config() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 17156
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->clk (-1),1-s32max
BUF_SIZE 0 spi->ctrl (-1),2864-5728
BUF_SIZE 0 spi->dev (-1),1616
BUF_SIZE 0 spi->irq s32min-(-1),1-s32max
DATA_SOURCE 0 spi $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 spi->feature_set 0,2-u32max[c]
LOCK2 flags
LOCK2 0 &spi->lock
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32fx_spi_set_mode() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 49152
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
CAPPED_DATA 0 spi->cur_xferlen 1
DATA_SOURCE 0 spi $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32fx_spi_set_mode() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 32768
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
CAPPED_DATA 0 spi->cur_xferlen 1
DATA_SOURCE 0 spi $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32fx_spi_transfer_one_dma_start() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 4
PARAM_VALUE 2 bits 32
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
BIT_INFO 0 spi->cur_comm 0x0,0x6
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32fx_spi_transfer_one_irq() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 4
PARAM_VALUE 2 bits 96,128
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
BIT_INFO 2 bits 0x0,0xe0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_config() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 0,6400
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->clk (-1),1-s32max
BUF_SIZE 0 spi->ctrl (-1),2864-5728
BUF_SIZE 0 spi->dev (-1),1616
BUF_SIZE 0 spi->irq s32min-(-1),1-s32max
DATA_SOURCE 0 spi $0
FUZZY_MAX 2 bits 0
BIT_INFO 2 bits 0x0,0x1900
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 spi->feature_set 0,2-u32max[c]
LOCK2 flags
LOCK2 0 &spi->lock
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_config() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 12
PARAM_VALUE 2 bits 0,2218786816
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->clk (-1),1-s32max
BUF_SIZE 0 spi->ctrl (-1),2864-5728
BUF_SIZE 0 spi->dev (-1),1616
BUF_SIZE 0 spi->irq s32min-(-1),1-s32max
DATA_SOURCE 0 spi $0
BIT_INFO 2 bits 0x0,0x84400000
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 spi->feature_set 0,2-u32max[c]
LOCK2 flags
LOCK2 0 &spi->lock
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_get_bpw_mask() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 0 spi->base 4096-ptr_max
PARAM_VALUE 1 offset 8
PARAM_VALUE 2 bits 31
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->clk (-1),1-s32max
BUF_SIZE 0 spi->ctrl 2864-5728
BUF_SIZE 0 spi->dev 1616
BUF_SIZE 0 spi->irq s32min-(-1),1-s32max
CAPPED_DATA 0 spi->clk->core 1
DATA_SOURCE 0 spi $0
BIT_INFO 0 spi->t_size_max 0x3ff,0xffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 spi->feature_set 0,2-u32max[c]
LOCK2 flags
LOCK2 0 &spi->lock
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_get_fifo_size() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 0 spi->base 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 1
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->clk (-1),1-s32max
BUF_SIZE 0 spi->ctrl 2864-5728
BUF_SIZE 0 spi->dev 1616
BUF_SIZE 0 spi->irq s32min-(-1),1-s32max
CAPPED_DATA 0 spi->clk->core 1
DATA_SOURCE 0 spi $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 flags
LOCK2 0 &spi->lock
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_set_mode() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 2048
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
CAPPED_DATA 0 spi->cur_xferlen 1
DATA_SOURCE 0 spi $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_transfer_one_dma_start() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 16
PARAM_VALUE 2 bits 576,584,600
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
FUZZY_MAX 2 bits 576
BIT_INFO 2 bits 0x240,0x258
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_transfer_one_dma_start() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 512
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_transfer_one_irq() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 512
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
DATA_SOURCE 0 spi $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock

drivers/spi/spi-stm32.c stm32h7_spi_transfer_one_poll() -> stm32_spi_set_bits()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 bits 512
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi s32min-(-2),1-s32max
BUF_SIZE 0 spi->rx_buf s32min-(-2),1-s32max
BUF_SIZE 0 spi->tx_buf s32min-(-2),1-s32max
CAPPED_DATA 0 spi->cur_xferlen 1
DATA_SOURCE 0 spi $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl->io_mutex
LOCK2 flags
LOCK2 0 &spi->lock
HALF_LOCKED2 &ctrl->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex
TYPE_LOCK (struct stm32_spi)->lock