Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/scsi/hisi_sas/hisi_sas_main.c hisi_sas_sdev_configure() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
BUF_SIZE 0 sdev (-1),4232-s32max
BUF_SIZE 0 sdev (-1),4232-s32max
BUF_SIZE 0 sdev->inquiry 36-255
DATA_SOURCE 0 sdev $0
NOSPEC 0 sdev->channel
NOSPEC 0 sdev->id
NOSPEC 0 sdev->sdev_target->channel
NOSPEC 0 sdev->sdev_target->id
TERMINATED 0 sdev->rev 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sdev->budget_map.depth 1-4095[c]
USER_DATA 0 sdev->channel 1-s32max[c]
USER_DATA 0 sdev->id 0-s32max[c]
USER_DATA 0 sdev->lun 0-18446744073709551614[c]
USER_DATA 0 sdev->queue_depth 1-4095[c]
USER_DATA 0 sdev->request_queue->queue_depth 1-4095[c]
USER_DATA 0 sdev->sdev_target->channel 1-s32max[c]
USER_DATA 0 sdev->sdev_target->id 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->async_depth
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_requests
LOCK2 &shost->scan_mutex
LOCK2 0 &sdev->request_queue->limits_lock
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct request_queue)->limits_lock

drivers/scsi/hisi_sas/hisi_sas_main.c hisi_sas_sdev_init() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->sdev_target 4096-ptr_max
BUF_SIZE 0 sdev 4232-s32max
BUF_SIZE 0 sdev 4232-s32max
CAPPED_DATA 0 sdev->host->tag_set.nr_hw_queues 1
CAPPED_DATA 0 sdev->request_queue->limits.max_hw_wzeroes_unmap_sectors 1
DATA_SOURCE 0 sdev $0
NOSPEC 0 sdev->channel
NOSPEC 0 sdev->id
NOSPEC 0 sdev->lun
NOSPEC 0 sdev->sdev_target->channel
NOSPEC 0 sdev->sdev_target->id
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sdev->budget_map.depth 1-4095[c]
USER_DATA 0 sdev->channel 1-s32max[c]
USER_DATA 0 sdev->id 0-s32max[c]
USER_DATA 0 sdev->lun 0-18446744073709551614[c]
USER_DATA 0 sdev->queue_depth 1-4095[c]
USER_DATA 0 sdev->request_queue->queue_depth 1-4095[c]
USER_DATA 0 sdev->sdev_target->channel 1-s32max[c]
USER_DATA 0 sdev->sdev_target->id 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sdev->budget_map.depth
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->async_depth
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_hw_queues
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_requests
LOCK2 &shost->scan_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex

drivers/scsi/libsas/sas_ata.c cmd_to_domain_dev() -> sdev_to_domain_dev()

Type Parameter Key Value
UNITS 0 sdev unit_byte

drivers/scsi/libsas/sas_ata.c sas_ata_attr_is_visible() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/scsi/libsas/sas_ata.c sas_ncq_prio_enable_show() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/libsas/sas_ata.c sas_ncq_prio_enable_store() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/libsas/sas_ata.c sas_ncq_prio_supported_show() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/libsas/sas_discover.c cmd_to_domain_dev() -> sdev_to_domain_dev()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sdev unit_byte
HALF_LOCKED2 &khd->lock

drivers/scsi/libsas/sas_scsi_host.c cmd_to_domain_dev() -> sdev_to_domain_dev()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sdev unit_byte

drivers/scsi/libsas/sas_scsi_host.c sas_change_queue_depth() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
BUF_SIZE 0 sdev (-1),4232-s32max
BUF_SIZE 0 sdev (-1),4232-s32max
BUF_SIZE 0 sdev->inquiry (-1),36-255
DATA_SOURCE 0 sdev $0
NOSPEC 0 sdev->channel
NOSPEC 0 sdev->id
NOSPEC 0 sdev->sdev_target->channel
NOSPEC 0 sdev->sdev_target->id
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sdev->budget_map.depth 1-4095[c]
USER_DATA 0 sdev->channel 1-s32max[c]
USER_DATA 0 sdev->id 0-s32max[c]
USER_DATA 0 sdev->lun 0-18446744073709551614[c]
USER_DATA 0 sdev->queue_depth 1-4095[c]
USER_DATA 0 sdev->request_queue->queue_depth 1-4095[c]
USER_DATA 0 sdev->sdev_target->channel 1-s32max[c]
USER_DATA 0 sdev->sdev_target->id 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->async_depth
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_hw_queues
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_requests
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &shost->scan_mutex
HALF_LOCKED2 0 &sdev->request_queue->limits_lock

drivers/scsi/libsas/sas_scsi_host.c sas_ioctl() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
DATA_SOURCE 0 sdev $0
HALF_LOCKED2 &cd->lock

drivers/scsi/libsas/sas_scsi_host.c sas_sdev_configure() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
BUF_SIZE 0 sdev (-1),4232-s32max
BUF_SIZE 0 sdev (-1),4232-s32max
BUF_SIZE 0 sdev->inquiry 36-255
DATA_SOURCE 0 sdev $0
NOSPEC 0 sdev->channel
NOSPEC 0 sdev->id
NOSPEC 0 sdev->sdev_target->channel
NOSPEC 0 sdev->sdev_target->id
TERMINATED 0 sdev->rev 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sdev->budget_map.depth 1-4095[c]
USER_DATA 0 sdev->channel 1-s32max[c]
USER_DATA 0 sdev->id 0-s32max[c]
USER_DATA 0 sdev->lun 0-18446744073709551614[c]
USER_DATA 0 sdev->queue_depth 1-4095[c]
USER_DATA 0 sdev->request_queue->queue_depth 1-4095[c]
USER_DATA 0 sdev->sdev_target->channel 1-s32max[c]
USER_DATA 0 sdev->sdev_target->id 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->async_depth
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_hw_queues
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_requests
LOCK2 &shost->scan_mutex
LOCK2 0 &sdev->request_queue->limits_lock
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct request_queue)->limits_lock

drivers/scsi/libsas/sas_scsi_host.c sas_sdev_init() -> sdev_to_domain_dev()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->sdev_target 4096-ptr_max
BUF_SIZE 0 sdev 4232-s32max
BUF_SIZE 0 sdev 4232-s32max
CAPPED_DATA 0 sdev->host->tag_set.nr_hw_queues 1
CAPPED_DATA 0 sdev->request_queue->limits.max_hw_wzeroes_unmap_sectors 1
DATA_SOURCE 0 sdev $0
NOSPEC 0 sdev->channel
NOSPEC 0 sdev->id
NOSPEC 0 sdev->lun
NOSPEC 0 sdev->sdev_target->channel
NOSPEC 0 sdev->sdev_target->id
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sdev->budget_map.depth 1-4095[c]
USER_DATA 0 sdev->channel 1-s32max[c]
USER_DATA 0 sdev->id 0-s32max[c]
USER_DATA 0 sdev->lun 0-18446744073709551614[c]
USER_DATA 0 sdev->queue_depth 1-4095[c]
USER_DATA 0 sdev->request_queue->queue_depth 1-4095[c]
USER_DATA 0 sdev->sdev_target->channel 1-s32max[c]
USER_DATA 0 sdev->sdev_target->id 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->async_depth
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_hw_queues
NO_OVERFLOW_SIMPLE 0 sdev->request_queue->nr_requests
LOCK2 &shost->scan_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex