Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/scsi/megaraid.c mega_build_cmd() -> mega_build_sglist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->logdrv_chan | 4096-ptr_max |
| PARAM_VALUE | 1 | scb | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->device | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->flags | 0-s32max |
| PARAM_VALUE | 1 | scb->cmd->resid_len | 0 |
| PARAM_VALUE | 1 | scb->cmd->submitter | 0-1 |
| PARAM_VALUE | 1 | scb->dma_direction | 2 |
| PARAM_VALUE | 1 | scb->dma_type | u16max |
| PARAM_VALUE | 1 | scb->pthru | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->pthru->ars | 1 |
| PARAM_VALUE | 1 | scb->pthru->islogical | 1 |
| PARAM_VALUE | 1 | scb->pthru->reqsenselen | 14 |
| PARAM_VALUE | 1 | scb->pthru->timeout | 0 |
| PARAM_VALUE | 1 | scb->raw_mbox | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->raw_mbox->m_out.cmd | 3,195 |
| PARAM_VALUE | 1 | scb->state | 1 |
| PARAM_VALUE | 2 | buf | 4096-ptr_max |
| PARAM_VALUE | 3 | len | 4096-ptr_max |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | scb | r mega_allocate_scb |
| FUZZY_MAX | 1 | scb->raw_mbox->m_out.cmd | 195 |
| PARAM_COMPARE | 0 | &adapter->free_list | != $0->free_list.next |
| HARD_MAX | 1 | scb->raw_mbox->m_out.cmd | 195 |
| MEM_ZERO | 2 | buf | |
| MEM_ZERO | 3 | len | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | irq_flags | ||
| LOCK2 | shost->host_lock | ||
| LOCK2 | 0 | &adapter->lock | |
| HALF_LOCKED2 | &sdev->state_mutex | ||
| TYPE_LOCK | (struct adapter_t)->lock |
drivers/scsi/megaraid.c mega_build_cmd() -> mega_build_sglist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->logdrv_chan | 4096-ptr_max |
| PARAM_VALUE | 1 | scb | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->device | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->flags | 0-s32max |
| PARAM_VALUE | 1 | scb->cmd->resid_len | 0 |
| PARAM_VALUE | 1 | scb->cmd->submitter | 0-1 |
| PARAM_VALUE | 1 | scb->dma_direction | 1-2 |
| PARAM_VALUE | 1 | scb->dma_type | u16max |
| PARAM_VALUE | 1 | scb->raw_mbox | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->raw_mbox->m_out.cmd | 1-2,167-168 |
| PARAM_VALUE | 1 | scb->state | 1 |
| PARAM_VALUE | 2 | buf | 4096-ptr_max |
| PARAM_VALUE | 3 | len | 8939449190824251392 |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | scb | r mega_allocate_scb |
| FUZZY_MAX | 1 | scb->dma_direction | 2 |
| FUZZY_MAX | 1 | scb->raw_mbox->m_out.cmd | 168 |
| PARAM_COMPARE | 0 | &adapter->free_list | != $0->free_list.next |
| HARD_MAX | 1 | scb->dma_direction | 2 |
| HARD_MAX | 1 | scb->raw_mbox->m_out.cmd | 168 |
| MEM_ZERO | 2 | buf | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | irq_flags | ||
| LOCK2 | shost->host_lock | ||
| LOCK2 | 0 | &adapter->lock | |
| HALF_LOCKED2 | &sdev->state_mutex | ||
| TYPE_LOCK | (struct adapter_t)->lock |
drivers/scsi/megaraid.c mega_prepare_extpassthru() -> mega_build_sglist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->logdrv_chan | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->support_ext_cdb | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | scb | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->device | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->flags | 0-s32max |
| PARAM_VALUE | 1 | scb->cmd->resid_len | 0 |
| PARAM_VALUE | 1 | scb->cmd->submitter | 0-1 |
| PARAM_VALUE | 1 | scb->dma_direction | 0 |
| PARAM_VALUE | 1 | scb->dma_type | u16max |
| PARAM_VALUE | 1 | scb->epthru | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->epthru->ars | 1 |
| PARAM_VALUE | 1 | scb->epthru->islogical | 0 |
| PARAM_VALUE | 1 | scb->epthru->logdrv | 0-7 |
| PARAM_VALUE | 1 | scb->epthru->reqsenselen | 14 |
| PARAM_VALUE | 1 | scb->epthru->timeout | 2 |
| PARAM_VALUE | 1 | scb->state | 1 |
| PARAM_VALUE | 2 | buf | 4096-ptr_max |
| PARAM_VALUE | 3 | len | 4096-ptr_max |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | scb | $1 |
| MEM_ZERO | 2 | buf | |
| MEM_ZERO | 3 | len | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | irq_flags | ||
| LOCK2 | shost->host_lock | ||
| LOCK2 | 0 | &adapter->lock | |
| HALF_LOCKED2 | &sdev->state_mutex | ||
| TYPE_LOCK | (struct adapter_t)->lock |
drivers/scsi/megaraid.c mega_prepare_passthru() -> mega_build_sglist()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adapter | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->free_list.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->logdrv_chan | 4096-ptr_max |
| PARAM_VALUE | 0 | adapter->support_ext_cdb | 0 |
| PARAM_VALUE | 1 | scb | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->device | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->cmd->flags | 0-s32max |
| PARAM_VALUE | 1 | scb->cmd->resid_len | 0 |
| PARAM_VALUE | 1 | scb->cmd->submitter | 0-1 |
| PARAM_VALUE | 1 | scb->dma_direction | 0 |
| PARAM_VALUE | 1 | scb->dma_type | u16max |
| PARAM_VALUE | 1 | scb->pthru | 4096-ptr_max |
| PARAM_VALUE | 1 | scb->pthru->ars | 1 |
| PARAM_VALUE | 1 | scb->pthru->islogical | 0 |
| PARAM_VALUE | 1 | scb->pthru->logdrv | 0-7 |
| PARAM_VALUE | 1 | scb->pthru->reqsenselen | 14 |
| PARAM_VALUE | 1 | scb->pthru->timeout | 2 |
| PARAM_VALUE | 1 | scb->state | 1 |
| PARAM_VALUE | 2 | buf | 4096-ptr_max |
| PARAM_VALUE | 3 | len | 4096-ptr_max |
| DATA_SOURCE | 0 | adapter | $0 |
| DATA_SOURCE | 1 | scb | $1 |
| MEM_ZERO | 2 | buf | |
| MEM_ZERO | 3 | len | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | irq_flags | ||
| LOCK2 | shost->host_lock | ||
| LOCK2 | 0 | &adapter->lock | |
| HALF_LOCKED2 | &sdev->state_mutex | ||
| TYPE_LOCK | (struct adapter_t)->lock |