Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/ata/libata-scsi.c, line 5329
- drivers/firewire/sbp2.c, line 864
- drivers/scsi/scsi_scan.c
- drivers/ufs/core/ufshcd.c
Smatch caller information:
drivers/ufs/core/ufshcd.c ufshcd_scsi_add_wlus() -> __scsi_add_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | shost | 4096-ptr_max |
| PARAM_VALUE | 0 | shost->host_lock | 4096-ptr_max |
| PARAM_VALUE | 0 | shost->host_lock->rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | channel | 0 |
| PARAM_VALUE | 2 | id | 0 |
| PARAM_VALUE | 3 | lun | 49488 |
| PARAM_VALUE | 4 | hostdata | 0 |
drivers/ufs/core/ufshcd.c ufshcd_scsi_add_wlus() -> __scsi_add_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | shost | 4096-ptr_max |
| PARAM_VALUE | 0 | shost->host_lock | 4096-ptr_max |
| PARAM_VALUE | 0 | shost->host_lock->rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | shost->scan_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | shost->scan_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | shost->scan_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | shost->scan_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | shost->scan_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | shost->shost_gendev.power.runtime_status | 0,2 |
| PARAM_VALUE | 0 | shost->shost_gendev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | channel | 0 |
| PARAM_VALUE | 2 | id | 0 |
| PARAM_VALUE | 3 | lun | 49476 |
| PARAM_VALUE | 4 | hostdata | 0 |
drivers/ufs/core/ufshcd.c ufshcd_scsi_add_wlus() -> __scsi_add_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | shost | 4096-ptr_max |
| PARAM_VALUE | 0 | shost->host_lock | 4096-ptr_max |
| PARAM_VALUE | 0 | shost->host_lock->rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | shost->scan_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | shost->scan_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | shost->scan_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | shost->scan_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | shost->scan_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | shost->shost_gendev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | channel | 0 |
| PARAM_VALUE | 2 | id | 0 |
| PARAM_VALUE | 3 | lun | 49456 |
| PARAM_VALUE | 4 | hostdata | 0 |
drivers/firewire/sbp2.c sbp2_login() -> __scsi_add_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | shost | 4096-ptr_max |
| PARAM_VALUE | 1 | channel | 0 |
| PARAM_VALUE | 2 | id | 0 |
| PARAM_VALUE | 3 | lun | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 4 | hostdata | 4096-ptr_max |
| HALF_LOCKED2 | &pool->lock |
drivers/ata/libata-scsi.c ata_scsi_scan_host() -> __scsi_add_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | shost->shost_gendev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 3 | lun | 0 |
| PARAM_VALUE | 4 | hostdata | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ap->scsi_scan_mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/scsi/scsi_scan.c scsi_add_device() -> __scsi_add_device()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_gendev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_gendev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_gendev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_gendev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_gendev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | shost->pseudo_sdev->sdev_gendev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | shost->shost_dev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | shost->shost_gendev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 4 | hostdata | 0 |
| BUF_SIZE | 0 | shost | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | shost | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | shost->hostt | (-1),360 |
| DATA_SOURCE | 0 | shost | $0 |
| DATA_SOURCE | 1 | channel | $1 |
| DATA_SOURCE | 2 | id | $2 |
| DATA_SOURCE | 3 | lun | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | shost->irq | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | shost->pseudo_sdev->request_queue->async_depth | |
| NO_OVERFLOW_SIMPLE | 0 | shost->pseudo_sdev->request_queue->limits.max_discard_sectors | |
| NO_OVERFLOW_SIMPLE | 0 | shost->pseudo_sdev->request_queue->limits.max_open_zones | |
| NO_OVERFLOW_SIMPLE | 0 | shost->pseudo_sdev->request_queue->nr_requests | |
| NO_OVERFLOW_SIMPLE | 2 | id | |
| UNITS | 0 | shost | unit_byte |
| UNITS | 2 | id | unit_array_size |
| HALF_LOCKED2 | &ctrl_info->scan_mutex | ||
| HALF_LOCKED2 | &dev->scan_mutex | ||
| HALF_LOCKED2 | &dir->i_rwsem | ||
| HALF_LOCKED2 | &mhba->sas_discovery_mutex | ||
| HALF_LOCKED2 | global &xenwatch_mutex |