Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/libsas/sas_expander.c sas_ex_discover_end_dev() -> sas_ex_get_linkrate()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.parent->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.parent->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.parent->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->parent 0,4096-ptr_max
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.dep_map->name 0-255
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 parent->parent->port->ha->dev->power.request 0-4
PARAM_VALUE 0 parent->parent->port->ha->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 parent->parent->port->ha->dev->power.runtime_status 0,2
PARAM_VALUE 0 parent->parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->port 4096-ptr_max
PARAM_VALUE 0 parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.p->dead 0-1
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->tdev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->tdev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.p->dead 0-1
PARAM_VALUE 0 parent->sata_dev.ap->tdev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 child 4096-ptr_max
PARAM_VALUE 1 child->hashed_sas_addr 4096-ptr_max
PARAM_VALUE 1 child->kref.refcount.refs.counter 1
PARAM_VALUE 1 child->parent 4096-ptr_max
PARAM_VALUE 1 child->parent->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 1 child->parent->parent 0,4096-ptr_max
PARAM_VALUE 1 child->parent->port 4096-ptr_max
PARAM_VALUE 1 child->port 4096-ptr_max
PARAM_VALUE 1 child->sas_addr 4096-ptr_max
PARAM_VALUE 2 parent_phy 4096-ptr_max
PARAM_VALUE 2 parent_phy->attached_sata_host 0
PARAM_VALUE 2 parent_phy->attached_sata_ps 0
PARAM_VALUE 2 parent_phy->port 1-u64max
BUF_SIZE 1 child 576
BUF_SIZE 2 parent_phy->port (-1),1824
CAPPED_DATA 0 parent->ex_dev.num_phys 1
CAPPED_DATA 1 child->parent->ex_dev.num_phys 1
DATA_SOURCE 0 parent $0
DATA_SOURCE 1 child r sas_alloc_device
NOCHECK_CALL
HALF_LOCKED2 &ha->disco_mutex

drivers/scsi/libsas/sas_expander.c sas_ex_discover_expander() -> sas_ex_get_linkrate()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.parent->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.parent->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->ex_dev.parent_port->dev.parent->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->parent 0,4096-ptr_max
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.dep_map->name 0-255
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 parent->parent->ex_dev.cmd_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 parent->parent->port->ha->dev->power.request 0-4
PARAM_VALUE 0 parent->parent->port->ha->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 parent->parent->port->ha->dev->power.runtime_status 0,2
PARAM_VALUE 0 parent->parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->port 4096-ptr_max
PARAM_VALUE 0 parent->port->disc.fanout_sas_addr 4096-ptr_max
PARAM_VALUE 0 parent->port->ha->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->rphy 4096-ptr_max
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.p->dead 0-1
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->link.tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->tdev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 parent->sata_dev.ap->tdev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.p->dead 0-1
PARAM_VALUE 0 parent->sata_dev.ap->tdev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 parent->sata_dev.ap->tdev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 child 4096-ptr_max
PARAM_VALUE 1 child->dev_type 2-3
PARAM_VALUE 1 child->hashed_sas_addr 4096-ptr_max
PARAM_VALUE 1 child->kref.refcount.refs.counter 1
PARAM_VALUE 1 child->parent 4096-ptr_max
PARAM_VALUE 1 child->parent->ex_dev.ex_phy 4096-ptr_max
PARAM_VALUE 1 child->parent->parent 0,4096-ptr_max
PARAM_VALUE 1 child->parent->port 4096-ptr_max
PARAM_VALUE 1 child->parent->rphy 4096-ptr_max
PARAM_VALUE 1 child->port 4096-ptr_max
PARAM_VALUE 1 child->rphy 0,4096-ptr_max
PARAM_VALUE 1 child->rphy->identify.device_type 2-3
PARAM_VALUE 1 child->sas_addr 4096-ptr_max
PARAM_VALUE 2 parent_phy 4096-ptr_max
PARAM_VALUE 2 parent_phy->attached_dev_type 2-3
PARAM_VALUE 2 parent_phy->port 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.devres_head.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.devres_head.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_pools.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_pools.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.dma_io_tlb_pools.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.dma_pools.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.dma_pools.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.dma_pools.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.flags 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.fwnode->dev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.fwnode->dev->fwnode 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.fwnode->dev->p 1-u64max
PARAM_VALUE 2 parent_phy->port->dev.fwnode->dev->power.set_latency_tolerance 5740181548905971712
PARAM_VALUE 2 parent_phy->port->dev.fwnode->suppliers.next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.fwnode->suppliers.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.kobj.sd->active.counter (-2147483647)
PARAM_VALUE 2 parent_phy->port->dev.links.consumers.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.consumers.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.consumers.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.suppliers.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.suppliers.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.links.suppliers.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.p->klist_children.get 2213798222526185472
PARAM_VALUE 2 parent_phy->port->dev.p->klist_children.put 3126867300421632000
PARAM_VALUE 2 parent_phy->port->dev.p->knode_bus.n_ref.refcount.refs.counter 1
PARAM_VALUE 2 parent_phy->port->dev.p->knode_class.n_ref.refcount.refs.counter 1
PARAM_VALUE 2 parent_phy->port->dev.p->knode_parent.n_ref.refcount.refs.counter 1
PARAM_VALUE 2 parent_phy->port->dev.physical_location->horizontal_position 0-3
PARAM_VALUE 2 parent_phy->port->dev.physical_location->panel 0-7
PARAM_VALUE 2 parent_phy->port->dev.physical_location->vertical_position 0-3
PARAM_VALUE 2 parent_phy->port->dev.power.entry.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.power.wait_queue.head.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.power.wait_queue.head.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->dev.power.wait_queue.head.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list.next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list.next->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list.prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list_mutex.dep_map->name 0-255
PARAM_VALUE 2 parent_phy->port->phy_list_mutex.first_waiter 0
PARAM_VALUE 2 parent_phy->port->phy_list_mutex.magic 4096-ptr_max
PARAM_VALUE 2 parent_phy->port->phy_list_mutex.osq.tail.counter 0
PARAM_VALUE 2 parent_phy->port->phy_list_mutex.owner.counter 0
PARAM_VALUE 2 parent_phy->port->port_identifier 0-254
PARAM_VALUE 2 parent_phy->routing_attr 1-u32max
BUF_SIZE 1 child 576
BUF_SIZE 1 child->rphy (-1),1680
BUF_SIZE 2 parent_phy->port (-1),1824
CAPPED_DATA 0 parent->ex_dev.num_phys 1
CAPPED_DATA 1 child->parent->ex_dev.num_phys 1
DATA_SOURCE 0 parent $0
DATA_SOURCE 1 child r sas_alloc_device
PARAM_COMPARE 2 &parent_phy->port->phy_list == $2->port->phy_list.next
NOCHECK_CALL
HALF_LOCKED2 &ha->disco_mutex