Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/scsi/mpi3mr/mpi3mr_transport.c mpi3mr_remove_device_by_sas_address() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->bsg_dev.kobj.parent->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | mrioc->bsg_dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | mrioc->bsg_dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | mrioc->pci_err_recovery | 0 |
| PARAM_VALUE | 0 | mrioc->pdev->dev.cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | mrioc->pdev->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | mrioc->reset_in_progress | 0 |
| PARAM_VALUE | 0 | mrioc->tgtdev_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->dev_spec.sas_sata_inf.hba_port | 1-u64max |
| PARAM_VALUE | 1 | tgtdev->dev_type | 0 |
| PARAM_VALUE | 1 | tgtdev->host_exposed | 1-255 |
| PARAM_VALUE | 1 | tgtdev->list.next | 4096-ptr_max |
| CAPPED_DATA | 0 | mrioc->pdev->dev.cma_area->nranges | 1 |
| CAPPED_DATA | 1 | tgtdev->dev_spec.sas_sata_inf.hba_port | 1 |
| CAPPED_DATA | 1 | tgtdev->dev_spec.sas_sata_inf.sas_address | 1 |
| CAPPED_DATA | 1 | &tgtdev->list | 1 |
| DATA_SOURCE | 0 | mrioc | $0 |
| DATA_SOURCE | 1 | tgtdev | r __mpi3mr_get_tgtdev_by_addr |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | mrioc->pdev->acs_capabilities | 0-u16max |
| HOST_DATA | 0 | mrioc->pdev->bus->bridge_ctl | 0-u16max |
| HOST_DATA | 0 | mrioc->pdev->class | 0-16777215 |
| HOST_DATA | 0 | mrioc->pdev->current_state | 0-3[c] |
| HOST_DATA | 0 | mrioc->pdev->devcap | 0-u32max |
| HOST_DATA | 0 | mrioc->pdev->devfn | 0-503[c] |
| HOST_DATA | 0 | mrioc->pdev->device | 0-u16max |
| HOST_DATA | 0 | mrioc->pdev->eetlp_prefix_max | 0-7[c] |
| HOST_DATA | 0 | mrioc->pdev->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | mrioc->pdev->hdr_type | 0-255[c] |
| HOST_DATA | 0 | mrioc->pdev->ide_cfg | 0-1[c] |
| HOST_DATA | 0 | mrioc->pdev->ide_tee_limit | 0-1[c] |
| HOST_DATA | 0 | mrioc->pdev->irq | 0-255 |
| HOST_DATA | 0 | mrioc->pdev->is_cxl | 0-1 |
| HOST_DATA | 0 | mrioc->pdev->multifunction | 0-1[c] |
| HOST_DATA | 0 | mrioc->pdev->nr_ide_mem | 0-255[c] |
| HOST_DATA | 0 | mrioc->pdev->pcie_flags_reg | 0-u16max |
| HOST_DATA | 0 | mrioc->pdev->pcie_mpss | 0-7[c] |
| HOST_DATA | 0 | mrioc->pdev->physfn->fm_enabled | 0-1[c] |
| HOST_DATA | 0 | mrioc->pdev->physfn->irq | 0-255 |
| HOST_DATA | 0 | mrioc->pdev->pin | 0 |
| HOST_DATA | 0 | mrioc->pdev->ptm_granularity | 0-255[c] |
| HOST_DATA | 0 | mrioc->pdev->revision | 0-255 |
| HOST_DATA | 0 | mrioc->pdev->subsystem_device | 0-u16max |
| HOST_DATA | 0 | mrioc->pdev->subsystem_vendor | 0-u16max |
| HOST_DATA | 0 | mrioc->pdev->supported_speeds | 0,2-254[c] |
| HOST_DATA | 0 | mrioc->pdev->transparent | 0[c] |
| HOST_DATA | 0 | mrioc->pdev->vendor | 0-u16max |
| HOST_DATA | 0 | mrioc->saved_fault_code | 0-u16max |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->admin_reply_q_sz | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->admin_req_q_sz | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->bsg_queue->queue_hw_ctx | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->bsg_queue->stats | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->chain_buf_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->chain_buf_pool->dev->cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->ioctl_dma_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->ioctl_dma_pool->dev->cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->pdev->dev.cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->pel_seqnum_sz | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->reply_buf_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->reply_buf_pool->dev->cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->reply_free_q_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->reply_free_q_pool->dev->cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->sas_hba.num_phys | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->sense_buf_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->sense_buf_pool->dev->cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->sense_buf_q_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->sense_buf_q_pool->dev->cma_area->available_count | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->trace_buf_pool->allocation | |
| NO_OVERFLOW_SIMPLE | 0 | mrioc->trace_buf_pool->dev->cma_area->available_count | |
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_devinfochg_evt_bh() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->shost->prot_capabilities | 0-119 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 0 |
| PARAM_VALUE | 0 | mrioc->tgtdev_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->unrecoverable | 0 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->dev_spec.pcie_inf.abort_to | 60-255 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.pcie_inf.reset_to | 60-255 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.abort_to | 60-255 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.reset_to | 60-255 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.tg | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.tg->high | 0-134215680 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.tg->id | 0-65534 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.tg->low | 0-134215680 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.tg_high | 0-134215680 |
| PARAM_VALUE | 1 | tgtdev->dev_spec.vd_inf.tg_low | 0-134215680 |
| PARAM_VALUE | 1 | tgtdev->host_exposed | 1-255 |
| PARAM_VALUE | 1 | tgtdev->is_hidden | 1,8 |
| PARAM_VALUE | 1 | tgtdev->non_stl | 1 |
| PARAM_VALUE | 1 | tgtdev->perst_id | 0-65534 |
| PARAM_VALUE | 1 | tgtdev->starget | 0,4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->dev_handle | 0-u16max |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->dev_type | 0-255 |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->io_throttle_enabled | 0-255 |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->perst_id | 0-65534 |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->throttle_group->high | 0-134215680 |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->throttle_group->id | 0-65534 |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->throttle_group->low | 0-134215680 |
| PARAM_VALUE | 1 | tgtdev->starget->hostdata->wslen | 0,256,2048 |
| PARAM_VALUE | 1 | tgtdev->wslen | 0,256,2048 |
| DATA_SOURCE | 0 | mrioc | $0 |
| DATA_SOURCE | 1 | tgtdev | r mpi3mr_get_tgtdev_by_handle |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_devstatuschg_evt_bh() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 0 |
| PARAM_VALUE | 0 | mrioc->tgtdev_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->unrecoverable | 0 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| CAPPED_DATA | 1 | tgtdev->dev_handle | 1 |
| DATA_SOURCE | 0 | mrioc | $0 |
| DATA_SOURCE | 1 | tgtdev | r mpi3mr_get_tgtdev_by_handle |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_pcietopochg_evt_bh() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 0 |
| PARAM_VALUE | 0 | mrioc->tgtdev_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->unrecoverable | 0 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->host_exposed | 1-255 |
| CAPPED_DATA | 1 | tgtdev->dev_handle | 1 |
| DATA_SOURCE | 0 | mrioc | $0 |
| DATA_SOURCE | 1 | tgtdev | r mpi3mr_get_tgtdev_by_handle |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_refresh_tgtdevs() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->pci_err_recovery | 0 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 0 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->dev_handle | u16max |
| PARAM_VALUE | 1 | tgtdev->host_exposed | 1-255 |
| CAPPED_DATA | 0 | &mrioc->tgtdev_list | 1 |
| CAPPED_DATA | 1 | &tgtdev->list | 1 |
| DATA_SOURCE | 0 | mrioc | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_refresh_tgtdevs() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->pci_err_recovery | 0 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 0 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->dev_handle | 0-65534 |
| CAPPED_DATA | 0 | &mrioc->tgtdev_list | 1 |
| CAPPED_DATA | 1 | &tgtdev->list | 1 |
| DATA_SOURCE | 0 | mrioc | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_remove() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->block_on_pci_err | 0 |
| PARAM_VALUE | 0 | mrioc->bsg_dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | mrioc->bsg_queue | 0 |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->fwevt_worker_thread | 0 |
| PARAM_VALUE | 0 | mrioc->is_driver_loading | 0 |
| PARAM_VALUE | 0 | mrioc->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->reset_in_progress | 0 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 1 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| CAPPED_DATA | 0 | &mrioc->tgtdev_list | 1 |
| CAPPED_DATA | 1 | &tgtdev->list | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_sastopochg_evt_bh() -> mpi3mr_remove_tgtdev_from_host()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mrioc | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->current_event->list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mrioc->fwevt_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->stop_drv_processing | 0 |
| PARAM_VALUE | 0 | mrioc->tgtdev_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mrioc->unrecoverable | 0-1 |
| PARAM_VALUE | 1 | tgtdev | 4096-ptr_max |
| PARAM_VALUE | 1 | tgtdev->host_exposed | 1-255 |
| CAPPED_DATA | 1 | tgtdev->dev_handle | 1 |
| DATA_SOURCE | 0 | mrioc | $0 |
| DATA_SOURCE | 1 | tgtdev | r mpi3mr_get_tgtdev_by_handle |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |