Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/scsi/libsas/sas_event.c sas_drain_work() -> __sas_drain_work()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ha | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | ha->drain_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter | 0,4096-5159360019465732095,5159360019465732097-ptr_max |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ha->drain_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner_cpu | u32max |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | &ha->drain_mutex | 1 |
| DATA_SOURCE | 0 | ha | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ha | unit_byte |
| LOCK2 | 0 | &ha->drain_mutex | |
| HALF_LOCKED2 | &d->event_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct sas_ha_struct)->drain_mutex |
drivers/scsi/libsas/sas_init.c sas_disable_events() -> __sas_drain_work()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ha | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->drain_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ha->drain_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ha->lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ha->dev | (-1),1616 |
| BUF_SIZE | 0 | ha->sas_addr | (-1),8 |
| BUF_SIZE | 0 | ha->sas_ha_name | (-1),9,15 |
| BUF_SIZE | 0 | ha->shost | (-1),4600-s32max |
| CAPPED_DATA | 0 | &ha->drain_mutex | 1 |
| DATA_SOURCE | 0 | ha | $0 |
| STR_LEN | 0 | ha->sas_ha_name | (-1),8,14 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ha | unit_byte |
| LOCK2 | 0 | &ha->drain_mutex | |
| TYPE_LOCK | (struct sas_ha_struct)->drain_mutex |
drivers/scsi/libsas/sas_init.c sas_suspend_ha() -> __sas_drain_work()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ha | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->defer_q.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | ha->dev->power.runtime_status | 0,2 |
| PARAM_VALUE | 0 | ha->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | ha->disco_q | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->disco_q->nr_drainers | s32min-s32max |
| PARAM_VALUE | 0 | ha->disco_q->nr_pwqs_to_flush.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ha->event_q | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->event_q->nr_drainers | s32min-s32max |
| PARAM_VALUE | 0 | ha->event_q->nr_pwqs_to_flush.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->shost | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->shost->host_self_blocked | 1 |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | ha->event_q | 1 |
| CAPPED_DATA | 0 | ha->num_phys | 1 |
| CAPPED_DATA | 0 | &ha->drain_mutex | 1 |
| DATA_SOURCE | 0 | ha | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ha | unit_byte |
| LOCK2 | 0 | &ha->drain_mutex | |
| TYPE_LOCK | (struct sas_ha_struct)->drain_mutex |
drivers/scsi/libsas/sas_init.c sas_unregister_ha() -> __sas_drain_work()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ha | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->defer_q.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | ha->dev->power.runtime_status | 0,2 |
| PARAM_VALUE | 0 | ha->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | ha->disco_q | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->disco_q->nr_drainers | s32min-s32max |
| PARAM_VALUE | 0 | ha->disco_q->nr_pwqs_to_flush.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ha->drain_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ha->event_q | 4096-ptr_max |
| PARAM_VALUE | 0 | ha->event_q->nr_drainers | s32min-s32max |
| PARAM_VALUE | 0 | ha->event_q->nr_pwqs_to_flush.counter | s32min-s32max |
| PARAM_VALUE | 0 | ha->lock.rlock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ha | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ha->dev | (-1),1616 |
| BUF_SIZE | 0 | ha->sas_addr | (-1),8 |
| BUF_SIZE | 0 | ha->sas_ha_name | (-1),9,15 |
| BUF_SIZE | 0 | ha->shost | (-1),4600-s32max |
| CAPPED_DATA | 0 | ha->event_q | 1 |
| CAPPED_DATA | 0 | ha->num_phys | 1 |
| CAPPED_DATA | 0 | &ha->drain_mutex | 1 |
| DATA_SOURCE | 0 | ha | $0 |
| STR_LEN | 0 | ha->sas_ha_name | (-1),8,14 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | ha | unit_byte |
| LOCK2 | 0 | &ha->drain_mutex | |
| HALF_LOCKED2 | &_dev->mutex | ||
| TYPE_LOCK | (struct sas_ha_struct)->drain_mutex |