Documented in 1 files:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_apu_thermal_cap() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_baseboard_temp_metrics() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_gpu_metrics() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_gpuboard_temp_metrics() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pcie_bw() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->asic_funcs 4096-ptr_max
PARAM_VALUE 0 adev->asic_funcs->get_pcie_usage 2778292913995440128,4066088729990766592,5710479215937961984,6120172722620002304,6172166272833646592
DATA_SOURCE 0 adev r drm_to_adev
BIT_INFO 0 adev->flags 0x0,0xfffffffffffdffff
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pm_metrics() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_power_dpm_force_performance_level() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_power_dpm_state() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_cur_state() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_dpm_clock() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_features() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_mclk_od() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_num_states() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_od_clk_voltage() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_power_profile_mode() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_sclk_od() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_get_pp_table() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
DATA_SOURCE 0 adev r drm_to_adev
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/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_get_fan1_enable() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_get_fan1_input() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_get_fan1_target() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_get_pwm1() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_get_pwm1_enable() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_hwmon_show_power_cap_generic() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
BUF_SIZE 0 adev s32min-(-2),1-s32max
BUF_SIZE 0 adev s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 adev unit_byte
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_pm_get_sensor_generic() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
PARAM_VALUE 0 adev->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
PARAM_VALUE 0 adev->gfx.rlc.reg_funcs->rreg32 5984948403122016256,7348076598167969792,7496899883983585280
PARAM_VALUE 0 adev->gfx.rlc.reg_funcs->wreg32 0,3835863049997778944,6594968210358161408
PARAM_VALUE 0 adev->gfxhub.funcs->get_xgmi_info 0,591011708383666176,6240322534601723904
PARAM_VALUE 0 adev->init_lvl->hwini_ip_block_mask 31,262143
PARAM_VALUE 0 adev->init_lvl->level 0-2
PARAM_VALUE 0 adev->kfd.pgmap.ops->folio_free 0,1125799360645222400,2314884282337259520,3487804881100709888,4287620441410408448,4432558333617348608
PARAM_VALUE 0 adev->kfd.pgmap.ops->folio_split 0,5255345146419240960,5445675113818132480,7854188800798580736
PARAM_VALUE 0 adev->kfd.pgmap.ops->memory_failure 0,2757462696692920320,6443617840133206016
PARAM_VALUE 0 adev->kfd.pgmap.ops->migrate_to_ram 0,892366893655998464,2045318714023669760,8762592014959497216,9113542883503599616
PARAM_VALUE 0 adev->mmhub.funcs->get_xgmi_info 0,3251155557669371904
PARAM_VALUE 0 adev->powerplay.pp_funcs->get_fan_control_mode 0,269902989626343424,6799924949047029760,8965680090050658304
PARAM_VALUE 0 adev->powerplay.pp_funcs->get_fan_speed_pwm 0,949052965584723968,8684434810990202880,8782241162523725824
PARAM_VALUE 0 adev->powerplay.pp_funcs->get_fan_speed_rpm 0,564470365470998528,646471993693171712
PARAM_VALUE 0 adev->powerplay.pp_funcs->set_fan_control_mode 0,2054862503527694336,6269073642420400128,9140711355158667264
PARAM_VALUE 0 adev->powerplay.pp_funcs->set_fan_speed_pwm 0,3365152260725776384,3958417287569940480,7034998035647074304
PARAM_VALUE 0 adev->powerplay.pp_funcs->set_fan_speed_rpm 0,1869929291142197248,4303623251682213888
PARAM_VALUE 0 adev->psp.adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->psp.adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 *adev->doorbell_index.sdma_engine 0-4294967295
PARAM_VALUE 0 *adev->enforce_isolation 0-4294967295
BUF_SIZE 0 adev s32min-(-1),1-s32max
BUF_SIZE 0 adev s32min-(-1),1-s32max
BUF_SIZE 0 adev->dev (-1),1616
BUF_SIZE 0 adev->pm.int_hwmon_dev (-1),1616
BUF_SIZE 0 adev->reset_domain (-1),192
DATA_SOURCE 0 adev $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 adev->gmc.xgmi.node_segment_size 0,16777216-2199006478336[c]
HOST_DATA 0 adev->hive->kobj.kref.refcount.refs.counter s32min-s32max
HOST_DATA 0 adev->pdev->acs_capabilities 0-u16max
HOST_DATA 0 adev->pdev->bus->bridge_ctl 0-u16max
HOST_DATA 0 adev->pdev->bus->parent->bridge_ctl 0-u16max
HOST_DATA 0 adev->pdev->class 0-16777215
HOST_DATA 0 adev->pdev->current_state 0-3[c]
HOST_DATA 0 adev->pdev->devcap 0-u32max
HOST_DATA 0 adev->pdev->devfn 0-503[c]
HOST_DATA 0 adev->pdev->device 0-u16max
HOST_DATA 0 adev->pdev->eetlp_prefix_max 0-7[c]
HOST_DATA 0 adev->pdev->fm_enabled 0-1[c]
HOST_DATA 0 adev->pdev->hdr_type 0-255[c]
HOST_DATA 0 adev->pdev->ide_cfg 0-1[c]
HOST_DATA 0 adev->pdev->ide_tee_limit 0-1[c]
HOST_DATA 0 adev->pdev->irq 0-255
HOST_DATA 0 adev->pdev->is_cxl 0-1
HOST_DATA 0 adev->pdev->multifunction 0-1[c]
HOST_DATA 0 adev->pdev->nr_ide_mem 0-255[c]
HOST_DATA 0 adev->pdev->pcie_flags_reg 0-u16max
HOST_DATA 0 adev->pdev->pcie_mpss 0-7[c]
HOST_DATA 0 adev->pdev->physfn->acs_capabilities 0-u16max
HOST_DATA 0 adev->pdev->physfn->bus->bridge_ctl 0-u16max
HOST_DATA 0 adev->pdev->physfn->bus->parent->bridge_ctl 0-u16max
HOST_DATA 0 adev->pdev->physfn->class 0-16777215
HOST_DATA 0 adev->pdev->physfn->current_state 0-3[c]
HOST_DATA 0 adev->pdev->physfn->devcap 0-u32max
HOST_DATA 0 adev->pdev->physfn->devfn 1-503[c]
HOST_DATA 0 adev->pdev->physfn->device 0-u16max
HOST_DATA 0 adev->pdev->physfn->eetlp_prefix_max 0-7[c]
HOST_DATA 0 adev->pdev->physfn->fm_enabled 0-1[c]
HOST_DATA 0 adev->pdev->physfn->hdr_type 0-255[c]
HOST_DATA 0 adev->pdev->physfn->ide_cfg 0-1[c]
HOST_DATA 0 adev->pdev->physfn->ide_tee_limit 0-1[c]
HOST_DATA 0 adev->pdev->physfn->irq 0-255
HOST_DATA 0 adev->pdev->physfn->is_cxl 0-1
HOST_DATA 0 adev->pdev->physfn->multifunction 0-1[c]
HOST_DATA 0 adev->pdev->physfn->nr_ide_mem 0-255[c]
HOST_DATA 0 adev->pdev->physfn->pcie_flags_reg 0-u16max
HOST_DATA 0 adev->pdev->physfn->pcie_mpss 0-7[c]
HOST_DATA 0 adev->pdev->physfn->pin 0
HOST_DATA 0 adev->pdev->physfn->pme_support 0-31[c]
HOST_DATA 0 adev->pdev->physfn->ptm_granularity 0-255[c]
HOST_DATA 0 adev->pdev->physfn->revision 0-255
HOST_DATA 0 adev->pdev->physfn->subsystem_device 0-u16max
HOST_DATA 0 adev->pdev->physfn->subsystem_vendor 0-u16max
HOST_DATA 0 adev->pdev->physfn->supported_speeds 0,2-254[c]
HOST_DATA 0 adev->pdev->physfn->transparent 0[c]
HOST_DATA 0 adev->pdev->physfn->vendor 0-u16max
HOST_DATA 0 adev->pdev->pin 0
HOST_DATA 0 adev->pdev->pme_support 0-31[c]
HOST_DATA 0 adev->pdev->ptm_granularity 0-255[c]
HOST_DATA 0 adev->pdev->revision 0-255
HOST_DATA 0 adev->pdev->subsystem_device 0-u16max
HOST_DATA 0 adev->pdev->subsystem_vendor 0-u16max
HOST_DATA 0 adev->pdev->supported_speeds 0,2-254[c]
HOST_DATA 0 adev->pdev->transparent 0[c]
HOST_DATA 0 adev->pdev->vendor 0-u16max
HOST_DATA 0 adev->psp.sos.fw_version 0-u32max
HOST_DATA 0 adev->virt.fw_reserve.checksum_key 0-u32max
HOST_DATA 0 adev->virt.init_data_header.offset 0-u32max
HOST_DATA 0 adev->virt.init_data_header.size_kb 0-u32max
HOST_DATA 0 *adev->pdev->dev.driver_data s64min-s64max
HOST_DATA 0 *adev->pdev->physfn->dev.driver_data s64min-s64max
NO_OVERFLOW_SIMPLE 0 adev->nbio.ras_controller_irq.num_types
NO_OVERFLOW_SIMPLE 0 adev->nbio.ras_err_event_athub_irq.num_types
NO_OVERFLOW_SIMPLE 0 adev->psp.cmd_buf_mem->cmd.cmd_setup_tmr.buf_size
NO_OVERFLOW_SIMPLE 0 adev->rmmio_size
UNITS 0 adev unit_byte
HALF_LOCKED2 &of->mutex

drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c amdgpu_retrieve_od_settings() -> amdgpu_pm_get_access_if_active()

Type Parameter Key Value
DATA_SOURCE 0 adev $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex