Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/nvme/target/pci-epf.c, line 2186
- drivers/pci/endpoint/functions/pci-epf-ntb.c, line 1073
- drivers/pci/endpoint/functions/pci-epf-test.c
- drivers/pci/endpoint/functions/pci-epf-vntb.c
- drivers/pci/endpoint/pci-epf-core.c, line 347
Smatch caller information:
drivers/nvme/target/pci-epf.c nvmet_pci_epf_configure_bar() -> pci_epf_alloc_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | epf | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->bar | 4096-ptr_max |
| PARAM_VALUE | 2 | bar | 0 |
| PARAM_VALUE | 3 | epc_features | 4096-ptr_max |
| PARAM_VALUE | 3 | epc_features->bar | 4096-ptr_max |
| PARAM_VALUE | 4 | type | 0 |
| BUF_SIZE | 3 | epc_features | (-1),208 |
| BUF_SIZE | 3 | epc_features | (-1),208 |
| CAPPED_DATA | 1 | size | 1 |
| CAPPED_DATA | 1 | size | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | size | unit_byte |
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |
drivers/pci/endpoint/functions/pci-epf-ntb.c epf_ntb_config_spad_bar_alloc() -> pci_epf_alloc_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | epf | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->dev.devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->func_no | 0-254 |
| PARAM_VALUE | 0 | epf->sec_epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->sec_epc_func_no | 0-254 |
| PARAM_VALUE | 3 | epc_features | 4096-ptr_max |
| PARAM_VALUE | 3 | epc_features->bar | 4096-ptr_max |
| PARAM_VALUE | 4 | type | 0-1 |
| CAPPED_DATA | 0 | epf->func_no | 1 |
| CAPPED_DATA | 0 | epf->sec_epc_func_no | 1 |
| CAPPED_DATA | 0 | epf->vfunc_no | 1 |
| DATA_SOURCE | 4 | type | $1 |
| FUZZY_MAX | 4 | type | 1 |
| HARD_MAX | 4 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | size | unit_byte |
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |
drivers/pci/endpoint/functions/pci-epf-test.c pci_epf_test_alloc_space() -> pci_epf_alloc_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | epf | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->driver->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->driver->owner | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | epf->epc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | epf->epc->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | epf->epc->max_functions | 1-255 |
| PARAM_VALUE | 0 | epf->epc->max_vfs | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->func_no | 0-63 |
| PARAM_VALUE | 0 | epf->sec_epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->sec_epc->list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->sec_epc->list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | epf->sec_epc_func_no | 0-63 |
| PARAM_VALUE | 1 | size | 128-1056880 |
| PARAM_VALUE | 3 | epc_features | 4096-ptr_max |
| PARAM_VALUE | 4 | type | 0 |
| CAPPED_DATA | 0 | epf->func_no | 1 |
| CAPPED_DATA | 0 | epf->vfunc_no | 1 |
| DATA_SOURCE | 0 | epf | $0 |
| CONSTRAINT | 0 | epf | <2180 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| HALF_LOCKED2 | 0 | &epf->lock | |
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |
drivers/pci/endpoint/functions/pci-epf-test.c pci_epf_test_alloc_space() -> pci_epf_alloc_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | epf | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->driver->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->driver->owner | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->dev.parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | epf->epc->list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | epf->epc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | epf->epc->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | epf->epc->max_functions | 1-255 |
| PARAM_VALUE | 0 | epf->epc->max_vfs | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->func_no | 0-63 |
| PARAM_VALUE | 0 | epf->sec_epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->sec_epc->list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | epf->sec_epc->list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | epf->sec_epc_func_no | 0-63 |
| PARAM_VALUE | 2 | bar | 0-5 |
| PARAM_VALUE | 3 | epc_features | 4096-ptr_max |
| PARAM_VALUE | 3 | epc_features->bar | 4096-ptr_max |
| PARAM_VALUE | 4 | type | 0 |
| CAPPED_DATA | 0 | epf->func_no | 1 |
| CAPPED_DATA | 0 | epf->vfunc_no | 1 |
| CAPPED_DATA | 2 | bar | 1 |
| DATA_SOURCE | 0 | epf | $0 |
| DATA_SOURCE | 2 | bar | r pci_epc_get_next_free_bar |
| CONSTRAINT | 0 | epf | <2180 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | size | unit_byte |
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| HALF_LOCKED2 | 0 | &epf->lock | |
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |
drivers/pci/endpoint/functions/pci-epf-vntb.c epf_ntb_config_spad_bar_alloc() -> pci_epf_alloc_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | epf | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc | 0,4096-u64max |
| PARAM_VALUE | 1 | size | 0-u32max |
| PARAM_VALUE | 4 | type | 0 |
| BUF_SIZE | 3 | epc_features | (-1),208 |
| BUF_SIZE | 3 | epc_features | (-1),208 |
| DATA_SOURCE | 3 | epc_features | r pci_epc_get_features |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |
drivers/pci/endpoint/functions/pci-epf-vntb.c epf_ntb_db_bar_init() -> pci_epf_alloc_space()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | epf | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->bar | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->db_msg | 0 |
| PARAM_VALUE | 0 | epf->epc | 4096-ptr_max |
| PARAM_VALUE | 0 | epf->epc->dev.parent->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | epf->epc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | epf->epc->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | epf->epc->max_functions | 1-255 |
| PARAM_VALUE | 0 | epf->func_no | 0-254 |
| PARAM_VALUE | 0 | epf->num_db | 0 |
| PARAM_VALUE | 0 | *epf->epc->dev.driver_data->bar_to_atu | 0-64 |
| PARAM_VALUE | 1 | size | 12-128 |
| PARAM_VALUE | 4 | type | 0 |
| BUF_SIZE | 3 | epc_features | (-1),208 |
| BUF_SIZE | 3 | epc_features | (-1),208 |
| CAPPED_DATA | 0 | epf | 1 |
| CAPPED_DATA | 0 | epf->func_no | 1 |
| CAPPED_DATA | 0 | epf->vfunc_no | 1 |
| CAPPED_DATA | 1 | size | 1 |
| CAPPED_DATA | 1 | size | 1 |
| DATA_SOURCE | 3 | epc_features | r pci_epc_get_features |
| FUZZY_MAX | 1 | size | 128 |
| PARAM_COMPARE | 0 | epf->epc->max_functions | > $0->func_no |
| HARD_MAX | 1 | size | 128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |