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/pci/endpoint/functions/pci-epf-vntb.c epf_ntb_epc_cleanup() -> epf_ntb_mw_bar_clear()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->cmd_handler.work.lockdep_map->name | 0-255 |
| PARAM_VALUE | 0 | ntb->epf->header->interrupt_pin | 0-255 |
| PARAM_VALUE | 0 | ntb->peer_db_pending.counter | 0 |
| PARAM_VALUE | 0 | ntb->peer_db_work.lockdep_map->name | 0-255 |
| PARAM_VALUE | 0 | *ntb->epf_ntb_bar | s32min-s32max |
| PARAM_VALUE | 0 | *ntb->reg->db_data | 0-4294967295 |
| PARAM_VALUE | 0 | *ntb->reg->db_offset | 0-4294967295 |
| BUF_SIZE | 0 | ntb | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ntb | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | &ntb->peer_db_work | 1 |
| DATA_SOURCE | 0 | ntb | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ntb->db_count | |
| UNITS | 0 | ntb | unit_byte |
| HALF_LOCKED2 | &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_epc_init() -> epf_ntb_mw_bar_clear()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->db_count | 3-32 |
| PARAM_VALUE | 0 | ntb->epf | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->db_msg | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->epc | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->epc->dev.parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | ntb->epf->epc->dev.parent->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->epc->dev.parent->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | ntb->epf->epc->dev.parent->msi.data | 1-u64max |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ntb->epf->epc->max_functions | 1-255 |
| PARAM_VALUE | 0 | ntb->epf->func_no | 0-254 |
| PARAM_VALUE | 0 | ntb->epf->header->interrupt_pin | 0-255 |
| PARAM_VALUE | 0 | ntb->epf->num_db | 0 |
| PARAM_VALUE | 0 | ntb->epf->vfunc_no | 0-1 |
| PARAM_VALUE | 0 | ntb->epf_db | 1-ptr_max |
| PARAM_VALUE | 0 | ntb->num_mws | 1-s32max |
| PARAM_VALUE | 0 | ntb->reg | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->reg->db_entry_size | 0,4 |
| PARAM_VALUE | 0 | ntb->reg->num_mws | 1-s32max |
| PARAM_VALUE | 0 | ntb->reg->spad_offset | 308 |
| PARAM_VALUE | 0 | *ntb->epf_ntb_bar | s32min-s32max |
| PARAM_VALUE | 0 | *ntb->reg->db_data | 0-4294967295 |
| PARAM_VALUE | 0 | *ntb->reg->db_offset | 0-4294967295 |
| PARAM_VALUE | 1 | num_mws | 1-s32max |
| BUF_SIZE | 0 | ntb | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ntb | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | ntb | 1 |
| CAPPED_DATA | 0 | ntb->db_count | 1 |
| CAPPED_DATA | 0 | ntb->epf | 1 |
| CAPPED_DATA | 0 | ntb->epf->func_no | 1 |
| CAPPED_DATA | 0 | ntb->epf->vfunc_no | 1 |
| CAPPED_DATA | 0 | ntb->num_mws | 1 |
| CAPPED_DATA | 1 | num_mws | 1 |
| DATA_SOURCE | 0 | ntb | $0 |
| PARAM_COMPARE | 0 | ntb->epf->epc->max_functions | > $0->epf->func_no |
| CONSTRAINT | 0 | ntb->epf->func_no | <2180 |
| HARD_MAX | 0 | ntb->db_count | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ntb->db_count | |
| UNITS | 0 | ntb | 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-vntb.c epf_ntb_mw_bar_init() -> epf_ntb_mw_bar_clear()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ntb | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->db_count | 3-32 |
| PARAM_VALUE | 0 | ntb->epf | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->bar | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->db_msg | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->dev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->dev.class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->dev.driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->epc | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->epf->epc->dev.parent->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | ntb->epf->epc->lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | ntb->epf->epc->max_functions | 1-255 |
| PARAM_VALUE | 0 | ntb->epf->func_no | 0-254 |
| PARAM_VALUE | 0 | ntb->epf->num_db | 0 |
| PARAM_VALUE | 0 | ntb->epf_db | 1-ptr_max |
| PARAM_VALUE | 0 | ntb->epf_ntb_bar | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->mws_size | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->num_mws | 1-s32max |
| PARAM_VALUE | 0 | ntb->reg | 4096-ptr_max |
| PARAM_VALUE | 0 | ntb->reg->db_entry_size | 0,4 |
| PARAM_VALUE | 0 | ntb->reg->num_mws | 1-s32max |
| PARAM_VALUE | 0 | ntb->reg->spad_offset | 308 |
| PARAM_VALUE | 0 | *ntb->epf_ntb_bar | s32min-s32max |
| PARAM_VALUE | 0 | *ntb->reg->db_data | 0-4294967295 |
| PARAM_VALUE | 0 | *ntb->reg->db_offset | 0-4294967295 |
| PARAM_VALUE | 1 | num_mws | 0-2147483646 |
| BUF_SIZE | 0 | ntb | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ntb | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | ntb | 1 |
| CAPPED_DATA | 0 | ntb->db_count | 1 |
| CAPPED_DATA | 0 | ntb->epf | 1 |
| CAPPED_DATA | 0 | ntb->epf->func_no | 1 |
| CAPPED_DATA | 0 | ntb->epf->vfunc_no | 1 |
| CAPPED_DATA | 1 | num_mws | 1 |
| DATA_SOURCE | 0 | ntb | $0 |
| PARAM_COMPARE | 0 | ntb->epf->epc->max_functions | > $0->epf->func_no |
| PARAM_COMPARE | 1 | num_mws | < $0->num_mws |
| HARD_MAX | 0 | ntb->db_count | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | ntb->db_count | |
| UNITS | 0 | ntb | unit_byte |
| LOCK2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &epf->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct pci_epf)->lock |