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 new_device_store() -> __spi_add_device()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 0 spi->controller 4096-ptr_max
PARAM_VALUE 0 spi->cs_index_mask 1
PARAM_VALUE 0 spi->dev.bus 8668803128452968448
PARAM_VALUE 0 spi->dev.devres_head.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem 1473117533515866112
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_uses_io_tlb 0
PARAM_VALUE 0 spi->dev.driver_override.name 0,4096-ptr_max
PARAM_VALUE 0 spi->dev.flags 4096-ptr_max
PARAM_VALUE 0 spi->dev.kobj.kref.refcount.refs.counter 1
PARAM_VALUE 0 spi->dev.kobj.kset 0,4096-ptr_max
PARAM_VALUE 0 spi->dev.kobj.ktype 5399513539053756416
PARAM_VALUE 0 spi->dev.kobj.state_add_uevent_sent 0
PARAM_VALUE 0 spi->dev.kobj.state_in_sysfs 0
PARAM_VALUE 0 spi->dev.kobj.state_initialized 1
PARAM_VALUE 0 spi->dev.kobj.state_remove_uevent_sent 0
PARAM_VALUE 0 spi->dev.links.consumers.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.status 0
PARAM_VALUE 0 spi->dev.links.suppliers.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.numa_node (-1)
PARAM_VALUE 0 spi->dev.parent 1-u64max
PARAM_VALUE 0 spi->dev.power.child_count.counter 0
PARAM_VALUE 0 spi->dev.power.deferred_resume 0
PARAM_VALUE 0 spi->dev.power.disable_depth 1
PARAM_VALUE 0 spi->dev.power.early_init 1
PARAM_VALUE 0 spi->dev.power.entry.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.idle_notification 0
PARAM_VALUE 0 spi->dev.power.ignore_children 0
PARAM_VALUE 0 spi->dev.power.is_late_suspended 0
PARAM_VALUE 0 spi->dev.power.is_noirq_suspended 0
PARAM_VALUE 0 spi->dev.power.is_prepared 0
PARAM_VALUE 0 spi->dev.power.is_suspended 0
PARAM_VALUE 0 spi->dev.power.last_status (-1)
PARAM_VALUE 0 spi->dev.power.needs_force_resume 0
PARAM_VALUE 0 spi->dev.power.qos 0
PARAM_VALUE 0 spi->dev.power.request 0
PARAM_VALUE 0 spi->dev.power.request_pending 0
PARAM_VALUE 0 spi->dev.power.runtime_auto 1
PARAM_VALUE 0 spi->dev.power.runtime_error 0
PARAM_VALUE 0 spi->dev.power.runtime_status 2
PARAM_VALUE 0 spi->dev.power.timer_expires 0
PARAM_VALUE 0 spi->dev.power.usage_count.counter 0
PARAM_VALUE 0 spi->dev.power.wait_queue.head.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.release 4233512322993246208
PARAM_VALUE 0 spi->mode 0-524286
PARAM_VALUE 0 spi->num_chipselect 1
PARAM_VALUE 0 spi->pcpu_statistics 4096-ptr_max
PARAM_VALUE 0 *spi->chip_select 0-255
PARAM_VALUE 1 parent 0
BUF_SIZE 0 spi 1792
DATA_SOURCE 0 spi r spi_alloc_device
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 spi->controller->num_chipselect
LOCK2 &ctlr->add_lock
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct spi_controller)->add_lock

drivers/spi/spi.c spi_add_device() -> __spi_add_device()

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 0 spi->controller->add_lock.dep_map->name 0-255
PARAM_VALUE 0 spi->controller->add_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 spi->controller->add_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 spi->controller->add_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 spi->controller->add_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 spi->controller->add_lock.wait_lock.owner (-1)
PARAM_VALUE 0 spi->controller->add_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 spi->dev.kobj->name 0-255
PARAM_VALUE 0 spi->dev.kobj.name 1-u64max
PARAM_VALUE 0 *spi->chip_select 0-255
PARAM_VALUE 1 parent 0
BUF_SIZE 0 spi (-1),1776,1792
BUF_SIZE 0 spi (-1),1776,1792
BUF_SIZE 0 spi->controller (-1),1-s32max
BUF_SIZE 0 spi->controller_data s32min-(-1),1-s32max
BUF_SIZE 0 spi->dev.init_name (-1),50
BUF_SIZE 0 spi->dev.platform_data (-1),32
DATA_SOURCE 0 spi $0
STR_LEN 0 spi->dev.init_name (-1),49
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 spi->controller->num_chipselect 1-32[c]
HOST_DATA 0 spi->controller->num_data_lanes 0-u16max[c]
NO_OVERFLOW_SIMPLE 0 spi->controller->num_chipselect
LOCK2 &ctlr->add_lock
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct spi_controller)->add_lock

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

Type Parameter Key Value
PARAM_VALUE 0 spi 4096-ptr_max
PARAM_VALUE 0 spi->controller 4096-ptr_max
PARAM_VALUE 0 spi->cs_index_mask 1
PARAM_VALUE 0 spi->dev.bus 8668803128452968448
PARAM_VALUE 0 spi->dev.devres_head.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.devres_head.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem 1473117533515866112
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 0 spi->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_io_tlb_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.dma_uses_io_tlb 0
PARAM_VALUE 0 spi->dev.flags 4096-ptr_max
PARAM_VALUE 0 spi->dev.kobj.kref.refcount.refs.counter 1
PARAM_VALUE 0 spi->dev.kobj.kset 0,4096-ptr_max
PARAM_VALUE 0 spi->dev.kobj.ktype 5399513539053756416
PARAM_VALUE 0 spi->dev.kobj.state_in_sysfs 0
PARAM_VALUE 0 spi->dev.kobj.state_initialized 1
PARAM_VALUE 0 spi->dev.links.consumers.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.consumers.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.status 0
PARAM_VALUE 0 spi->dev.links.suppliers.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.links.suppliers.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.numa_node (-1)
PARAM_VALUE 0 spi->dev.parent 1-u64max
PARAM_VALUE 0 spi->dev.power.deferred_resume 0
PARAM_VALUE 0 spi->dev.power.disable_depth 1
PARAM_VALUE 0 spi->dev.power.early_init 1
PARAM_VALUE 0 spi->dev.power.entry.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.idle_notification 0
PARAM_VALUE 0 spi->dev.power.ignore_children 0
PARAM_VALUE 0 spi->dev.power.is_late_suspended 0
PARAM_VALUE 0 spi->dev.power.is_noirq_suspended 0
PARAM_VALUE 0 spi->dev.power.is_prepared 0
PARAM_VALUE 0 spi->dev.power.is_suspended 0
PARAM_VALUE 0 spi->dev.power.last_status (-1)
PARAM_VALUE 0 spi->dev.power.needs_force_resume 0
PARAM_VALUE 0 spi->dev.power.qos 0
PARAM_VALUE 0 spi->dev.power.request 0
PARAM_VALUE 0 spi->dev.power.request_pending 0
PARAM_VALUE 0 spi->dev.power.runtime_auto 1
PARAM_VALUE 0 spi->dev.power.runtime_error 0
PARAM_VALUE 0 spi->dev.power.runtime_status 2
PARAM_VALUE 0 spi->dev.power.timer_expires 0
PARAM_VALUE 0 spi->dev.power.wait_queue.head.next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.next->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.prev->next 4096-ptr_max
PARAM_VALUE 0 spi->dev.power.wait_queue.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 spi->dev.release 4233512322993246208
PARAM_VALUE 0 spi->num_chipselect 1
PARAM_VALUE 0 spi->pcpu_statistics 4096-ptr_max
PARAM_VALUE 0 *spi->chip_select 0-255
PARAM_VALUE 1 parent 4096-ptr_max
PARAM_VALUE 1 parent->controller 4096-ptr_max
PARAM_VALUE 1 parent->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 1 parent->dev.devres_head.prev->next->next 4096-ptr_max
BUF_SIZE 0 spi 1792
DATA_SOURCE 0 spi r spi_alloc_device
DATA_SOURCE 1 parent $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 spi->controller->num_chipselect