Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/spi/spi-orion.c orion_spi_50mhz_ac_timing_erratum() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 24
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
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-orion.c orion_spi_50mhz_ac_timing_erratum() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 24
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
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-orion.c orion_spi_baudrate_set() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 4
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
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-orion.c orion_spi_baudrate_set() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 4
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
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-orion.c orion_spi_clrbits() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 0,4
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw->axi_clk (-1),1-s32max
BUF_SIZE 0 hw->clk (-1),1-s32max
BUF_SIZE 0 hw->dev (-1),1616
BUF_SIZE 0 hw->devdata (-1),32
BUF_SIZE 0 hw->host (-1),2864-5728
DATA_SOURCE 0 hw $0
DATA_SOURCE 1 data $1
HARD_MAX 1 data 4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte

drivers/spi/spi-orion.c orion_spi_mode_set() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 1 data 4
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
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-orion.c orion_spi_mode_set() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 4
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
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-orion.c orion_spi_reset() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 0 hw->base 4096-ptr_max
PARAM_VALUE 1 data 32
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw->axi_clk (-1),1-s32max
BUF_SIZE 0 hw->clk (-1),1-s32max
BUF_SIZE 0 hw->dev 1616
BUF_SIZE 0 hw->devdata (-1),32
BUF_SIZE 0 hw->host 2864-5728
DATA_SOURCE 0 hw $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte

drivers/spi/spi-orion.c orion_spi_set_cs() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 1 data 0
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
HALF_LOCKED2 &host->io_mutex
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_setbits() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 4
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
DATA_SOURCE 0 hw $0
DATA_SOURCE 1 data $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
HALF_LOCKED2 &host->io_mutex
HALF_LOCKED2 &spi->controller->io_mutex
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_wait_till_ready() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 16
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
DATA_SOURCE 0 hw $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_write_read_16bit() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 8
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_write_read_16bit() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 12
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_write_read_16bit() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 16
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_write_read_8bit() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 8
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_write_read_8bit() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 12
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/spi/spi-orion.c orion_spi_write_read_8bit() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 16
BUF_SIZE 0 hw s32min-(-2),1-s32max
BUF_SIZE 0 hw s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hw unit_byte
LOCK2 &host->io_mutex
HALF_LOCKED2 &host->dev.driver_data->op_lock
TYPE_LOCK (struct spi_controller)->io_mutex

drivers/net/ethernet/micrel/ksz884x.c eeprom_read() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 2
BUF_SIZE 0 hw (-1),1424
BUF_SIZE 0 hw (-1),1424
BUF_SIZE 0 hw->ksz_switch (-1),368
BUF_SIZE 0 hw->parent (-1),2320
CAPPED_DATA 2 reg 1
DATA_SOURCE 0 hw $0
DATA_SOURCE 2 reg $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 reg 0-255[c]

drivers/net/ethernet/micrel/ksz884x.c eeprom_write() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 0
PARAM_VALUE 2 reg 48
DATA_SOURCE 0 hw $0
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/micrel/ksz884x.c eeprom_write() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 3
PARAM_VALUE 2 reg 0-63
DATA_SOURCE 0 hw $0
DATA_SOURCE 2 reg $1
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/micrel/ksz884x.c eeprom_write() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 1
PARAM_VALUE 2 reg 0-63
DATA_SOURCE 0 hw $0
DATA_SOURCE 2 reg $1
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/micrel/ksz884x.c eeprom_write() -> spi_reg()

Type Parameter Key Value
PARAM_VALUE 0 hw 4096-ptr_max
PARAM_VALUE 1 data 0
PARAM_VALUE 2 reg 0
DATA_SOURCE 0 hw $0
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex