Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/scsi/libsas/sas_expander.c sas_ex_disable_phy() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->rphy->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->link.tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->tdev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 phy_id 0-254
PARAM_VALUE 2 phy_func 3
PARAM_VALUE 3 rates 0
BUF_SIZE 0 dev->rphy (-1),1680
CAPPED_DATA 0 dev->ex_dev.num_phys 1
CAPPED_DATA 1 phy_id 1
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 phy_id $1
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dev->rphy->q->nr_hw_queues
UNITS 1 phy_id unit_array_size

drivers/scsi/libsas/sas_expander.c sas_ex_discover_dev() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->tdev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 1 phy_id 0-254
PARAM_VALUE 2 phy_func 1
PARAM_VALUE 3 rates 0
CAPPED_DATA 1 phy_id 1
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 phy_id $1
FUZZY_MAX 1 phy_id 0
UNITS 1 phy_id unit_array_size
HALF_LOCKED2 &ha->disco_mutex

drivers/scsi/libsas/sas_ata.c sas_ata_add_dev() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.parent->kset->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.parent->kset->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.parent->kset->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.parent->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.parent->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 dev->ex_dev.parent_port->dev.parent->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 dev->min_linkrate 0-4294967294
PARAM_VALUE 0 dev->parent 0,4096-ptr_max
PARAM_VALUE 0 dev->parent->ex_dev.cmd_mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 dev->parent->ex_dev.cmd_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->parent->ex_dev.cmd_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 dev->parent->ex_dev.cmd_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 dev->parent->ex_dev.cmd_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 dev->parent->ex_dev.cmd_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->parent->port->ha->dev->power.request 0-4
PARAM_VALUE 0 dev->parent->port->ha->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 dev->parent->port->ha->dev->power.runtime_status 0,2
PARAM_VALUE 0 dev->parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->port 4096-ptr_max
PARAM_VALUE 0 dev->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->link.tdev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->link.tdev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 dev->sata_dev.ap->link.tdev.p->dead 0-1
PARAM_VALUE 0 dev->sata_dev.ap->link.tdev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 dev->sata_dev.ap->link.tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->tdev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->tdev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 dev->sata_dev.ap->tdev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 dev->sata_dev.ap->tdev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 dev->sata_dev.ap->tdev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 dev->sata_dev.ap->tdev.p->dead 0-1
PARAM_VALUE 0 dev->sata_dev.ap->tdev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 dev->sata_dev.ap->tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 phy_id 0-254
PARAM_VALUE 2 phy_func 1
PARAM_VALUE 3 rates 3211590940037312512
PARAM_VALUE 3 rates->maximum_linkrate 0-4294967294
PARAM_VALUE 3 rates->minimum_linkrate 0-4294967294
CAPPED_DATA 0 dev->ex_dev.num_phys 1
CAPPED_DATA 0 dev->min_linkrate 1
CAPPED_DATA 1 phy_id 1
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 phy_id $3
FUZZY_MAX 1 phy_id 0
UNITS 1 phy_id unit_array_size
HALF_LOCKED2 &ha->disco_mutex

drivers/scsi/libsas/sas_init.c sas_phy_enable() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev 0,4096-ptr_max
PARAM_VALUE 0 dev->rphy 4096-ptr_max
PARAM_VALUE 2 phy_func 3
PARAM_VALUE 3 rates 0
DATA_SOURCE 0 dev r sas_find_dev_by_rphy
UNITS 1 phy_id unit_array_size
HALF_LOCKED2 &pool->lock

drivers/scsi/libsas/sas_init.c sas_phy_reset() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev 0,4096-ptr_max
PARAM_VALUE 0 dev->rphy 4096-ptr_max
PARAM_VALUE 2 phy_func 1-2
PARAM_VALUE 3 rates 0
DATA_SOURCE 0 dev r sas_find_dev_by_rphy
FUZZY_MAX 2 phy_func 2
HARD_MAX 2 phy_func 2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 phy_id unit_array_size

drivers/scsi/libsas/sas_init.c sas_set_phy_speed() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev 0,4096-ptr_max
PARAM_VALUE 0 dev->rphy 4096-ptr_max
PARAM_VALUE 2 phy_func 1
PARAM_VALUE 3 rates 1746286536265719808,8489245564099506176
CAPPED_DATA 3 rates->maximum_linkrate 1
CAPPED_DATA 3 rates->minimum_linkrate 1
DATA_SOURCE 0 dev r sas_find_dev_by_rphy
DATA_SOURCE 3 rates $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 phy_id unit_array_size
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/libsas/sas_init.c transport_sas_phy_reset() -> sas_smp_phy_control()

Type Parameter Key Value
PARAM_VALUE 0 dev 0,4096-ptr_max
PARAM_VALUE 0 dev->rphy 4096-ptr_max
PARAM_VALUE 2 phy_func 1-2
PARAM_VALUE 3 rates 0
DATA_SOURCE 0 dev r sas_find_dev_by_rphy
FUZZY_MAX 2 phy_func 2
HARD_MAX 2 phy_func 2
UNITS 1 phy_id unit_array_size
HALF_LOCKED2 &pool->lock