Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 20 files:

Smatch caller information:

drivers/pci/controller/vmd.c vmd_enable_domain() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 6622972360543592448
PARAM_VALUE 0 resources->next 6622972360543592448
PARAM_VALUE 0 resources->prev 6622972360543592448
BUF_SIZE 1 res 192
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/pci/controller/pci-hyperv.c hv_pci_allocate_bridge_windows() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->flags 2097152-s32max
BIT_INFO 1 res->flags 0x200000,0x7fffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hbus->state_lock
TYPE_LOCK (struct hv_pcibus_device)->state_lock

drivers/pci/controller/pci-hyperv.c hv_pci_allocate_bridge_windows() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->flags 2097152-s32max
BIT_INFO 1 res->flags 0x200000,0x7fffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &hbus->state_lock
TYPE_LOCK (struct hv_pcibus_device)->state_lock

drivers/acpi/pci_root.c acpi_pci_root_create() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->flags 4096
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &acpi_scan_lock

drivers/pci/probe.c pci_scan_bus() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 5442475811486187520
PARAM_VALUE 0 resources->next 5442475811486187520
PARAM_VALUE 0 resources->prev 5442475811486187520
PARAM_VALUE 1 res 8636791340006543360
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dir->i_rwsem
HALF_LOCKED2 &epf->lock
TYPE_LOCK (struct inode)->i_rwsem
TYPE_LOCK (struct pci_epf)->lock

drivers/pci/probe.c pci_scan_bus() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 5442475811486187520
PARAM_VALUE 0 resources->next 5442475811486187520
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 2936731392875139072
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dir->i_rwsem
HALF_LOCKED2 &epf->lock
TYPE_LOCK (struct inode)->i_rwsem
TYPE_LOCK (struct pci_epf)->lock

drivers/pci/probe.c pci_scan_bus() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 5442475811486187520
PARAM_VALUE 0 resources->next 5442475811486187520
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 8024065898660700160
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dir->i_rwsem
HALF_LOCKED2 &epf->lock
TYPE_LOCK (struct inode)->i_rwsem
TYPE_LOCK (struct pci_epf)->lock

arch/x86/pci/bus_numa.c x86_pci_root_bus_resources() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->start 0-s32max,18446744071562067968-u64max
CAPPED_DATA 0 resources 1
DATA_SOURCE 0 resources $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 res->start 0[c]

arch/x86/pci/bus_numa.c x86_pci_root_bus_resources() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
CAPPED_DATA 0 resources 1
DATA_SOURCE 0 resources $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

arch/x86/pci/bus_numa.c x86_pci_root_bus_resources() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 4096-ptr_max
PARAM_VALUE 1 res 8636791340006543360
DATA_SOURCE 0 resources $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

arch/x86/pci/bus_numa.c x86_pci_root_bus_resources() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 0 resources->prev->next 4096-ptr_max
PARAM_VALUE 0 resources->prev->next->next 4096-ptr_max
PARAM_VALUE 1 res 2936731392875139072
DATA_SOURCE 0 resources $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/pci/xen-pcifront.c pcifront_scan_root() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 2973231238818701312
PARAM_VALUE 0 resources->next 2973231238818701312
PARAM_VALUE 0 resources->prev 2973231238818701312
PARAM_VALUE 1 res 8636791340006543360
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &xenwatch_mutex

drivers/pci/xen-pcifront.c pcifront_scan_root() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 2973231238818701312
PARAM_VALUE 0 resources->next 2973231238818701312
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 2936731392875139072
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &xenwatch_mutex

drivers/pci/xen-pcifront.c pcifront_scan_root() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 2973231238818701312
PARAM_VALUE 0 resources->next 2973231238818701312
PARAM_VALUE 0 resources->prev 0,4096-ptr_max
PARAM_VALUE 1 res 5006365045268578304
PARAM_VALUE 1 res->child 0
PARAM_VALUE 1 res->desc 0
PARAM_VALUE 1 res->end 255
PARAM_VALUE 1 res->flags 4096
PARAM_VALUE 1 res->name 0
PARAM_VALUE 1 res->parent 0
PARAM_VALUE 1 res->sibling 0
PARAM_VALUE 1 res->start 0
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &xenwatch_mutex

drivers/pci/of.c devm_of_pci_get_host_bridge_resources() -> pci_add_resource()

Type Parameter Key Value
PARAM_VALUE 0 resources 4096-ptr_max
PARAM_VALUE 0 resources->next 4096-ptr_max
PARAM_VALUE 0 resources->prev 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->end 0-255
PARAM_VALUE 1 res->flags 4096
PARAM_VALUE 1 res->start 0-u32max
BUF_SIZE 1 res 64
DATA_SOURCE 0 resources $1
DATA_SOURCE 1 res r devm_kzalloc
FUZZY_MAX 1 res->end 255
FUZZY_MAX 1 res->start 0
MEM_ZERO 1 res
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL