Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_erase() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 1 spi->erase_command 1-255
PARAM_VALUE 2 command 6
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 0
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 1 spi->erase_size 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_erase() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 1 spi->erase_command 1-255
PARAM_VALUE 2 command 1-255
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 0
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 1 spi->erase_size 1
DATA_SOURCE 3 address $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_read() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->pci_dev->bus->self->link_bwctrl->cdev 0-s64max
PARAM_VALUE 0 efx->pci_dev->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 efx->pci_dev->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 efx->pci_dev->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 efx->pci_dev->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 efx->pci_dev->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 efx->pci_dev->driver->sriov_get_vf_total_msix 0,3629692746472820736,6488395192013627392
PARAM_VALUE 0 efx->pci_dev->driver->sriov_set_msix_vec_count 0,1923382970702811136,7848935108349911040
PARAM_VALUE 0 efx->pci_dev->link_bwctrl->cdev 0-s64max
PARAM_VALUE 0 efx->pci_dev->p2pdma->p2pmem_published 0-1
PARAM_VALUE 0 efx->type->max_dma_mask 70368744177663
PARAM_VALUE 0 efx->type->max_interrupt_mode 0-1
PARAM_VALUE 0 efx->type->mem_bar 2
PARAM_VALUE 0 efx->type->mem_map_size 4096-ptr_max
PARAM_VALUE 0 efx->type->revision 1-2
PARAM_VALUE 0 efx->type->rx_prefix_size 0,16
PARAM_VALUE 0 efx->type->test_nvram 8620005546470490112
PARAM_VALUE 0 *efx->pci_dev->saved_config_space 0-4294967295
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 2 command 3,11
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 4096-ptr_max
PARAM_VALUE 5 *out 0-255
PARAM_VALUE 6 len 1-16
BUF_SIZE 0 efx s32min-(-1),1-s32max
BUF_SIZE 0 efx s32min-(-1),1-s32max
BUF_SIZE 0 efx->nic_data (-1),3304
BUF_SIZE 1 spi (-1),24
BUF_SIZE 1 spi (-1),24
CAPPED_DATA 2 command 1
CAPPED_DATA 6 len 1
CAPPED_DATA 6 len 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
DATA_SOURCE 2 command r falcon_spi_munge_command
BIT_INFO 2 command 0x3,0xf
NOSPEC 6 len
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 efx->pci_dev->bus->bridge_ctl 0-u16max
HOST_DATA 0 efx->pci_dev->current_state 0-3[c]
HOST_DATA 0 efx->pci_dev->pcie_flags_reg 0-u16max
HOST_DATA 6 len 1-15[c]
USER_DATA 6 len 1-15[c]
UNITS 0 efx unit_byte
UNITS 3 address unit_byte
UNITS 5 out unit_byte
UNITS 6 len unit_byte
USER_PTR 5 out
LOCK2 &nic_data->spi_lock
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_slow_wait() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 2 command 5
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 7414933007326617600
PARAM_VALUE 5 *out 0-255
PARAM_VALUE 6 len 1
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
UNITS 6 len unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_unlock() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 1 spi->erase_command 1-255
PARAM_VALUE 2 command 5
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 5311247400053055488
PARAM_VALUE 6 len 1
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 1 spi->erase_size 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
UNITS 6 len unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_unlock() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 1 spi->erase_command 1-255
PARAM_VALUE 2 command 6
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 0
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 1 spi->erase_size 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_unlock() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 1 spi->erase_command 1-255
PARAM_VALUE 2 command 80
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 0
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 1 spi->erase_size 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_unlock() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 1 spi->erase_command 1-255
PARAM_VALUE 2 command 1
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 5311247400053055488
PARAM_VALUE 4 *in 0-227
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 1
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 1 spi->erase_size 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
UNITS 6 len unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_wait_write() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 2 command 5
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 5181988078980194304
PARAM_VALUE 5 *out 0-255
PARAM_VALUE 6 len 1
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
UNITS 6 len unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_write() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx 4096-ptr_max
PARAM_VALUE 2 command 6
PARAM_VALUE 3 address (-1)
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 0
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 efx unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_write() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx 4096-ptr_max
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 2 command 2,10
PARAM_VALUE 4 in 4096-ptr_max
PARAM_VALUE 4 *in 0-255
PARAM_VALUE 5 out 0
PARAM_VALUE 6 len 0-16
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
CAPPED_DATA 2 command 1
CAPPED_DATA 6 len 1
CAPPED_DATA 6 len 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
DATA_SOURCE 2 command r falcon_spi_munge_command
BIT_INFO 2 command 0x2,0xf
NOSPEC 6 len
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 6 len 1-15[c]
USER_DATA 6 len 1-15[c]
UNITS 0 efx unit_byte
USER_PTR 4 in
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock
TYPE_LOCK (struct falcon_nic_data)->spi_lock

drivers/net/ethernet/sfc/falcon/falcon.c falcon_spi_write() -> falcon_spi_cmd()

Type Parameter Key Value
PARAM_VALUE 0 efx 4096-ptr_max
PARAM_VALUE 0 efx->biu_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 spi 4096-ptr_max
PARAM_VALUE 2 command 3,11
PARAM_VALUE 4 in 0
PARAM_VALUE 5 out 4554384256896163840
PARAM_VALUE 6 len 0-16
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 0 efx s32min-(-2),1-s32max
BUF_SIZE 5 out 16
CAPPED_DATA 2 command 1
CAPPED_DATA 6 len 1
CAPPED_DATA 6 len 1
DATA_SOURCE 0 efx $0
DATA_SOURCE 1 spi $1
DATA_SOURCE 2 command r falcon_spi_munge_command
BIT_INFO 2 command 0x3,0xf
NOSPEC 6 len
NOSPEC 6 len
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 6 len 1-15[c]
USER_DATA 6 len 1-15[c]
UNITS 0 efx unit_byte
LOCK2 &nic_data->spi_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock
TYPE_LOCK (struct falcon_nic_data)->spi_lock