Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/ufs/core/ufshcd.c ufshcd_devfreq_scale() -> ufshcd_scale_gear()

Type Parameter Key Value
PARAM_VALUE 0 hba 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.next->next 1-u64max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.prev->next 1-u64max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 hba->clk_gating.ungate_work.lockdep_map->name 0-255
PARAM_VALUE 0 hba->clk_scaling.is_allowed 1
PARAM_VALUE 0 hba->clk_scaling.is_suspended 0
PARAM_VALUE 0 hba->clk_scaling_lock.dep_map->name 0-255
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->type 0-1
PARAM_VALUE 0 hba->clk_scaling_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hba->host 4096-ptr_max
PARAM_VALUE 0 hba->host->host_lock->rlock.dep_map->name 0-255
PARAM_VALUE 0 hba->host->scan_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->scan_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hba->host->scan_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hba->host->scan_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->lock.owner 0,(-1)
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->lock.owner_cpu 0,u32max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->sda_is_static 1
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_barrier_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_barrier_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_cb_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_cb_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq 18446744073709551216
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq_needed 0,4-u64max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq_needed_exp 18446744073709551216
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_size_state 0-1,8
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp->sda 1-u64max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp->srcu_sup 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->work.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->work.work.entry.prev->prev 2076614606316732416
PARAM_VALUE 0 hba->host_sem.first_waiter->up 0-1
PARAM_VALUE 0 hba->ufs_device_wlun->sdev_gendev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 hba->ufshcd_state 1
PARAM_VALUE 0 hba->vops 0,4096-ptr_max
PARAM_VALUE 0 hba->wb_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->wb_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hba->wb_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hba->wb_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 2 scale_up 0
BUF_SIZE 0 hba s32min-(-2),1-s32max
BUF_SIZE 0 hba s32min-(-2),1-s32max
DATA_SOURCE 0 hba $0
DATA_SOURCE 1 target_gear r ufshcd_vops_freq_to_gear_speed
BIT_INFO 0 hba->eh_flags 0x0,0xfffffffe
RX_PATH
TASK_NOT_RUNNING
UNITS 0 hba unit_byte
LOCK2 &devfreq->lock
LOCK2 0 &hba->clk_scaling_lock
LOCK2 0 &hba->host->scan_mutex
LOCK2 0 &hba->wb_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct devfreq)->lock
TYPE_LOCK (struct ufs_hba)->clk_scaling_lock
TYPE_LOCK (struct ufs_hba)->wb_mutex

drivers/ufs/core/ufshcd.c ufshcd_devfreq_scale() -> ufshcd_scale_gear()

Type Parameter Key Value
PARAM_VALUE 0 hba 4096-ptr_max
PARAM_VALUE 0 hba->caps 8192-u32max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.next->next 1-u64max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.prev->next 1-u64max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 hba->clk_gating.ungate_work.lockdep_map->name 0-255
PARAM_VALUE 0 hba->clk_scaling.is_allowed 1
PARAM_VALUE 0 hba->clk_scaling.is_suspended 0
PARAM_VALUE 0 hba->clk_scaling_lock.dep_map->name 0-255
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->type 0-1
PARAM_VALUE 0 hba->clk_scaling_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hba->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 hba->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 hba->eh_work.entry.next 4096-ptr_max
PARAM_VALUE 0 hba->eh_work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->host 4096-ptr_max
PARAM_VALUE 0 hba->host->host_lock->rlock.dep_map->name 0-255
PARAM_VALUE 0 hba->host->scan_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->scan_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hba->host->scan_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hba->host->scan_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->lock.owner 0,(-1)
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->lock.owner_cpu 0,u32max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->sda_is_static 1
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_barrier_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_barrier_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_cb_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_cb_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq 18446744073709551216
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq_needed 0,4-u64max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq_needed_exp 18446744073709551216
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_size_state 0-1,8
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp->sda 1-u64max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp->srcu_sup 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->work.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->work.work.entry.prev->prev 2076614606316732416
PARAM_VALUE 0 hba->host_sem.first_waiter->up 0-1
PARAM_VALUE 0 hba->ufs_device_wlun->sdev_gendev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 hba->vops 0,4096-ptr_max
PARAM_VALUE 0 hba->wb_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->wb_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hba->wb_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hba->wb_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 2 scale_up 1
BUF_SIZE 0 hba s32min-(-2),1-s32max
BUF_SIZE 0 hba s32min-(-2),1-s32max
DATA_SOURCE 0 hba $0
BIT_INFO 0 hba->eh_flags 0x0,0xfffffffe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 hba unit_byte
UNITS 1 target_gear unit_array_size
LOCK2 &devfreq->lock
LOCK2 0 &hba->clk_scaling_lock
LOCK2 0 &hba->host->scan_mutex
LOCK2 0 &hba->wb_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct devfreq)->lock
TYPE_LOCK (struct ufs_hba)->clk_scaling_lock
TYPE_LOCK (struct ufs_hba)->wb_mutex

drivers/ufs/core/ufshcd.c ufshcd_devfreq_scale() -> ufshcd_scale_gear()

Type Parameter Key Value
PARAM_VALUE 0 hba 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.next->next 1-u64max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.prev->next 1-u64max
PARAM_VALUE 0 hba->clk_gating.gate_work.work.entry.prev->prev 1-u64max
PARAM_VALUE 0 hba->clk_gating.ungate_work.lockdep_map->name 0-255
PARAM_VALUE 0 hba->clk_scaling.is_allowed 1
PARAM_VALUE 0 hba->clk_scaling_lock.dep_map->name 0-255
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 hba->clk_scaling_lock.first_waiter->type 0-1
PARAM_VALUE 0 hba->clk_scaling_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 hba->host 4096-ptr_max
PARAM_VALUE 0 hba->host->host_lock->rlock.dep_map->name 0-255
PARAM_VALUE 0 hba->host->scan_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->scan_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hba->host->scan_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hba->host->scan_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->lock.owner 0,(-1)
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->lock.owner_cpu 0,u32max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->sda_is_static 1
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_barrier_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_barrier_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_cb_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_cb_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_mutex.magic 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq 18446744073709551216
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq_needed 0,4-u64max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_gp_seq_needed_exp 18446744073709551216
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_size_state 0-1,8
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp->sda 1-u64max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->srcu_ssp->srcu_sup 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->work.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 hba->host->tag_set.srcu->srcu_sup->work.work.entry.prev->prev 2076614606316732416
PARAM_VALUE 0 hba->host_sem.first_waiter->up 0-1
PARAM_VALUE 0 hba->pm_qos_req.qos->list.node_list.next 4096-ptr_max
PARAM_VALUE 0 hba->ufs_device_wlun->sdev_gendev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 hba->ufshcd_state 1
PARAM_VALUE 0 hba->vops 0,4096-ptr_max
PARAM_VALUE 0 hba->wb_mutex.dep_map->name 0-255
PARAM_VALUE 0 hba->wb_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 hba->wb_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 hba->wb_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 2 scale_up 1
BUF_SIZE 0 hba s32min-(-2),1-s32max
BUF_SIZE 0 hba s32min-(-2),1-s32max
DATA_SOURCE 0 hba $0
DATA_SOURCE 1 target_gear r ufshcd_vops_freq_to_gear_speed
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 hba->clk_scaling.is_enabled 0
USER_DATA 0 hba->pm_qos_req.node.prio 0-s32max
UNITS 0 hba unit_byte
LOCK2 0 &hba->clk_scaling_lock
LOCK2 0 &hba->host->scan_mutex
LOCK2 0 &hba->wb_mutex
HALF_LOCKED2 &devfreq->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 0 &hba->host_sem
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct ufs_hba)->clk_scaling_lock
TYPE_LOCK (struct ufs_hba)->wb_mutex