Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 12 files:
- drivers/spi/atmel-quadspi.c
- drivers/spi/spi-amlogic-spisg.c, line 174
- drivers/spi/spi-axi-spi-engine.c
- drivers/spi/spi-bcm63xx-hsspi.c, line 287
- drivers/spi/spi-fsl-dspi.c
- drivers/spi/spi-fsl-espi.c, line 447
- drivers/spi/spi-imx.c
- drivers/spi/spi-mt65xx.c
- drivers/spi/spi-stm32.c, line 1951
- drivers/spi/spi-virtio.c
- drivers/spi/spi.c
- drivers/staging/greybus/spilib.c, line 264
Smatch caller information:
drivers/spi/spi-amlogic-spisg.c spi_delay_to_sclk() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 0 | _delay->unit | 0-1,3-255 |
| PARAM_VALUE | 1 | xfer | 0 |
| DATA_SOURCE | 0 | _delay | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctlr->io_mutex | ||
| HALF_LOCKED2 | &ctlr->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-bcm63xx-hsspi.c bcm63xx_prepare_prepend_transfer() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| CAPPED_DATA | 1 | &xfer->transfer_list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &bs->msg_mutex | ||
| LOCK2 | &host->io_mutex | ||
| HALF_LOCKED2 | &host->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct bcm63xx_hsspi)->msg_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/staging/greybus/spilib.c gb_spi_operation_create() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctlr->io_mutex | ||
| HALF_LOCKED2 | &ctlr->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-mt65xx.c mtk_spi_set_hw_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| BUF_SIZE | 0 | _delay | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &host->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| HALF_LOCKED2 | &spi->controller->io_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-mt65xx.c mtk_spi_set_hw_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| BUF_SIZE | 0 | _delay | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &host->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| HALF_LOCKED2 | &spi->controller->io_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-mt65xx.c mtk_spi_set_hw_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| BUF_SIZE | 0 | _delay | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &host->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| HALF_LOCKED2 | &spi->controller->io_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/atmel-quadspi.c atmel_qspi_set_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/atmel-quadspi.c atmel_qspi_set_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/atmel-quadspi.c atmel_qspi_set_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/atmel-quadspi.c atmel_qspi_set_cs_timing() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi.c _spi_xfer_word_delay_update() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer->effective_speed_hz | 0 |
| DATA_SOURCE | 1 | xfer | $0 |
| STR_LEN | 0 | _delay | (-1),8 |
| STR_LEN | 1 | xfer | (-1),8 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex |
drivers/spi/spi.c _spi_xfer_word_delay_update() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer->effective_speed_hz | 0 |
| DATA_SOURCE | 1 | xfer | $0 |
| STR_LEN | 0 | _delay | (-1),8 |
| STR_LEN | 1 | xfer | (-1),8 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex |
drivers/spi/spi.c spi_delay_exec() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0,4096-ptr_max |
| BUF_SIZE | 1 | xfer->rx_buf | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | _delay | $0 |
| DATA_SOURCE | 1 | xfer | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | _delay->value | 0-1000 |
| HOST_DATA | 1 | xfer->ptp_sts->post_sts.cycles | 0-u64max |
| HOST_DATA | 1 | xfer->ptp_sts->pre_sts.cycles | 0-u64max |
| HALF_LOCKED2 | &bs->msg_mutex | ||
| HALF_LOCKED2 | &controller->io_mutex | ||
| HALF_LOCKED2 | &ctlr->io_mutex | ||
| HALF_LOCKED2 | &host->io_mutex |
drivers/spi/spi-stm32.c stm32h7_spi_data_idleness() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| CAPPED_DATA | 1 | xfer->len | 1 |
| CAPPED_DATA | 1 | xfer->rx_buf | 1 |
| CAPPED_DATA | 1 | xfer->tx_buf | 1 |
| DATA_SOURCE | 1 | xfer | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| LOCK2 | &spi->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex | ||
| TYPE_LOCK | (struct stm32_spi)->lock |
drivers/spi/spi-fsl-dspi.c dspi_setup() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-fsl-dspi.c dspi_setup() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &spi->controller->io_mutex | ||
| HALF_LOCKED2 | &spi->controller->bus_lock_mutex | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-axi-spi-engine.c spi_engine_compile_message() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| CAPPED_DATA | 1 | &xfer->transfer_list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/spi/spi-axi-spi-engine.c spi_engine_compile_message() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| CAPPED_DATA | 1 | &xfer->transfer_list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/spi/spi-imx.c mx51_ecspi_prepare_transfer() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 0 | _delay->unit | 0-1,3-255 |
| PARAM_VALUE | 0 | _delay->value | 1-u16max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| CAPPED_DATA | 1 | xfer->len | 1 |
| CAPPED_DATA | 1 | xfer->rx_buf | 1 |
| CAPPED_DATA | 1 | xfer->tx_buf | 1 |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &controller->io_mutex | ||
| HALF_LOCKED2 | &controller->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-imx.c spi_imx_transfer_estimate_time_us() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 0 | _delay->value | 1-u16max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| CAPPED_DATA | 1 | xfer->len | 1 |
| DATA_SOURCE | 1 | xfer | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &controller->io_mutex | ||
| HALF_LOCKED2 | &controller->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |
drivers/spi/spi-virtio.c virtio_spi_set_delays() -> spi_delay_to_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | _delay | 4096-ptr_max |
| PARAM_VALUE | 1 | xfer | 4096-ptr_max |
| DATA_SOURCE | 1 | xfer | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctrl->io_mutex | ||
| HALF_LOCKED2 | &ctrl->dev.driver_data->op_lock | ||
| TYPE_LOCK | (struct spi_controller)->io_mutex |