Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/spi/spi.c acpi_spi_device_alloc() -> spi_alloc_device()

Type Parameter Key Value
PARAM_VALUE 0 ctlr 4096-ptr_max
BUF_SIZE 0 ctlr (-1),1-s32max
BUF_SIZE 0 ctlr (-1),1-s32max
DATA_SOURCE 0 ctlr $0
RX_PATH
TASK_NOT_RUNNING

drivers/spi/spi.c new_device_store() -> spi_alloc_device()

Type Parameter Key Value
PARAM_VALUE 0 ctlr 4096-ptr_max
PARAM_VALUE 0 ctlr->num_chipselect 1-u16max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/spi/spi.c of_register_spi_device() -> spi_alloc_device()

Type Parameter Key Value
PARAM_VALUE 0 ctlr 4096-ptr_max
PARAM_VALUE 0 ctlr->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 ctlr->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 ctlr->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 ctlr->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ctlr->dma_tx->router->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ctlr->mem_ops->adjust_op_size 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->dirmap_create 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->dirmap_destroy 0
PARAM_VALUE 0 ctlr->mem_ops->dirmap_read 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->dirmap_write 0,715988303612325888,4273826429031796736,4713989647023087616,5615016919625822208,8023549245281587200
PARAM_VALUE 0 ctlr->mem_ops->exec_op 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->get_name 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->poll_status 0,1805854965638074368,5682553516745547776
PARAM_VALUE 0 ctlr->mem_ops->supports_op 0,4096-ptr_max
BUF_SIZE 0 ctlr (-1),2864-5728
BUF_SIZE 0 ctlr (-1),2864-5728
BUF_SIZE 0 ctlr->dma_rx->slave (-1),1616
BUF_SIZE 0 ctlr->dma_tx->slave (-1),1616
BUF_SIZE 0 ctlr->mem_caps (-1),6
BUF_SIZE 0 ctlr->mem_ops (-1)-0,72
DATA_SOURCE 0 ctlr $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 ctlr->num_chipselect 1-32[c]
HOST_DATA 0 ctlr->num_data_lanes 0-u16max[c]
NO_OVERFLOW_SIMPLE 0 ctlr->kworker->task->dl.pi_se->dl_runtime
NO_OVERFLOW_SIMPLE 0 ctlr->num_chipselect

drivers/spi/spi.c slave_store() -> spi_alloc_device()

Type Parameter Key Value
PARAM_VALUE 0 ctlr 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/spi/spi.c spi_new_ancillary_device() -> spi_alloc_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/spi/spi.c spi_new_device() -> spi_alloc_device()

Type Parameter Key Value
PARAM_VALUE 0 ctlr 4096-ptr_max
PARAM_VALUE 0 ctlr->dev.cma_area->nranges s32min-s32max
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 ctlr->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 ctlr->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 ctlr->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 ctlr->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ctlr->dma_tx->router->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ctlr->mem_ops->adjust_op_size 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->dirmap_create 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->dirmap_destroy 0
PARAM_VALUE 0 ctlr->mem_ops->dirmap_read 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->dirmap_write 0,715988303612325888,4273826429031796736,4713989647023087616,5615016919625822208,8023549245281587200
PARAM_VALUE 0 ctlr->mem_ops->exec_op 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->get_name 0,4096-ptr_max
PARAM_VALUE 0 ctlr->mem_ops->poll_status 0,1805854965638074368,5682553516745547776
PARAM_VALUE 0 ctlr->mem_ops->supports_op 0,4096-ptr_max
PARAM_VALUE 0 *ctlr->last_cs (-128)-127
BUF_SIZE 0 ctlr (-1),64,176,208,272,360,504,696,976,1656,1728,1776,2360,2864-5752
BUF_SIZE 0 ctlr (-1),64,176,208,272,360,504,696,976,1656,1728,1776,2360,2864-5752
BUF_SIZE 0 ctlr->dma_rx->slave (-1),1616
BUF_SIZE 0 ctlr->dma_tx->slave (-1),1616
BUF_SIZE 0 ctlr->mem_caps (-1),6
BUF_SIZE 0 ctlr->mem_ops (-1)-0,72
DATA_SOURCE 0 ctlr $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 ctlr->num_chipselect 1-32[c]
HOST_DATA 0 ctlr->num_data_lanes 0-u16max[c]
NO_OVERFLOW_SIMPLE 0 ctlr->kworker->task->dl.pi_se->dl_runtime
NO_OVERFLOW_SIMPLE 0 ctlr->num_chipselect
HALF_LOCKED2 global &board_lock