Home
last modified time | relevance | path

Searched refs:pp_funcs (Results 1 – 16 of 16) sorted by relevance

/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_dpm.h259 ((adev)->powerplay.pp_funcs->pre_set_power_state((adev)->powerplay.pp_handle))
262 ((adev)->powerplay.pp_funcs->set_power_state((adev)->powerplay.pp_handle))
265 ((adev)->powerplay.pp_funcs->post_set_power_state((adev)->powerplay.pp_handle))
268 ((adev)->powerplay.pp_funcs->display_configuration_changed((adev)->powerplay.pp_handle))
271 ((adev)->powerplay.pp_funcs->print_power_state((adev)->powerplay.pp_handle, (ps)))
274 ((adev)->powerplay.pp_funcs->vblank_too_short((adev)->powerplay.pp_handle))
277 ((adev)->powerplay.pp_funcs->enable_bapm((adev)->powerplay.pp_handle, (e)))
280 ((adev)->powerplay.pp_funcs->set_fan_control_mode((adev)->powerplay.pp_handle, (m)))
283 ((adev)->powerplay.pp_funcs->get_fan_control_mode((adev)->powerplay.pp_handle))
286 ((adev)->powerplay.pp_funcs->set_fan_speed_percent((adev)->powerplay.pp_handle, (s)))
[all …]
H A Damdgpu_dpm.c926 return (adev)->powerplay.pp_funcs->get_sclk((adev)->powerplay.pp_handle, (low)); in amdgpu_dpm_get_sclk()
944 return (adev)->powerplay.pp_funcs->get_mclk((adev)->powerplay.pp_handle, (low)); in amdgpu_dpm_get_mclk()
958 } else if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_powergating_by_smu()
959 adev->powerplay.pp_funcs->set_powergating_by_smu) { in amdgpu_dpm_set_powergating_by_smu()
987 ret = ((adev)->powerplay.pp_funcs->set_powergating_by_smu( in amdgpu_dpm_set_powergating_by_smu()
997 else if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_powergating_by_smu()
998 adev->powerplay.pp_funcs->set_powergating_by_smu) in amdgpu_dpm_set_powergating_by_smu()
999 ret = ((adev)->powerplay.pp_funcs->set_powergating_by_smu( in amdgpu_dpm_set_powergating_by_smu()
1008 if (adev->powerplay.pp_funcs && in amdgpu_dpm_set_powergating_by_smu()
1009 adev->powerplay.pp_funcs->set_powergating_by_smu) in amdgpu_dpm_set_powergating_by_smu()
[all …]
H A Damdgpu_pm.c101 if (adev->powerplay.pp_funcs->enable_bapm) in amdgpu_pm_acpi_event_handler()
118 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->read_sensor) in amdgpu_dpm_read_sensor()
119 ret = adev->powerplay.pp_funcs->read_sensor((adev)->powerplay.pp_handle, in amdgpu_dpm_read_sensor()
183 } else if (adev->powerplay.pp_funcs->get_current_power_state) { in amdgpu_get_dpm_state()
227 } else if (adev->powerplay.pp_funcs->dispatch_tasks) { in amdgpu_set_dpm_state()
320 else if (adev->powerplay.pp_funcs->get_performance_level) in amdgpu_get_dpm_forced_performance_level()
382 else if (adev->powerplay.pp_funcs->get_performance_level) in amdgpu_set_dpm_forced_performance_level()
410 } else if (adev->powerplay.pp_funcs->force_performance_level) { in amdgpu_set_dpm_forced_performance_level()
452 } else if (adev->powerplay.pp_funcs->get_pp_num_states) in amdgpu_get_pp_num_states()
492 } else if (adev->powerplay.pp_funcs->get_current_power_state in amdgpu_get_pp_cur_state()
[all …]
H A Damdgpu_acp.c146 if (adev->powerplay.pp_funcs && in acp_poweroff()
147 adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_poweroff()
167 if (adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_poweron()
559 if (adev->powerplay.pp_funcs && in acp_set_powergating_state()
560 adev->powerplay.pp_funcs->set_powergating_by_smu) in acp_set_powergating_state()
H A Damdgpu_smu_v11_0_i2c.c518 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access) in smu_v11_0_i2c_bus_lock()
522 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access(adev->powerplay.pp_handle, true)) in smu_v11_0_i2c_bus_lock()
534 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access) in smu_v11_0_i2c_bus_unlock()
538 if (!adev->powerplay.pp_funcs->smu_i2c_bus_access(adev->powerplay.pp_handle, in smu_v11_0_i2c_bus_unlock()
H A Damdgpu_vi.c1532 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1551 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1570 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1585 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1598 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1613 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
1628 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in vi_common_set_clockgating_state_by_smu()
H A Damdgpu_amdkfd.c414 else if (adev->powerplay.pp_funcs) { in amdgpu_amdkfd_get_local_mem_info()
439 else if (adev->powerplay.pp_funcs) in amdgpu_amdkfd_get_max_engine_clock_in_mhz()
H A Damdgpu_mmhub_v1_0.c305 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->set_powergating_by_smu) in mmhub_v1_0_update_power_gating()
H A Damdgpu_sdma_v4_0.c1913 if ((adev->asic_type == CHIP_RAVEN && adev->powerplay.pp_funcs && in sdma_v4_0_hw_init()
1914 adev->powerplay.pp_funcs->set_powergating_by_smu) || in sdma_v4_0_hw_init()
1942 if ((adev->asic_type == CHIP_RAVEN && adev->powerplay.pp_funcs in sdma_v4_0_hw_fini()
1943 && adev->powerplay.pp_funcs->set_powergating_by_smu) || in sdma_v4_0_hw_fini()
H A Damdgpu_gfx_v8_0.c5336 adev->powerplay.pp_funcs->set_powergating_by_smu) in gfx_v8_0_enable_gfx_static_mg_power_gating()
5851 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_tonga_update_gfx_clock_gating()
5873 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_tonga_update_gfx_clock_gating()
5903 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5923 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5945 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5961 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
5976 if (adev->powerplay.pp_funcs->set_clockgating_by_smu) in gfx_v8_0_polaris_update_gfx_clock_gating()
H A Damdgpu.h717 const struct amd_pm_funcs *pp_funcs; member
H A Damdgpu_device.c2212 adev->powerplay.pp_funcs && in amdgpu_device_enable_mgpu_fan_boost()
2213 adev->powerplay.pp_funcs->enable_mgpu_fan_boost) { in amdgpu_device_enable_mgpu_fan_boost()
H A Damdgpu_kv_dpm.c2979 adev->powerplay.pp_funcs = &kv_dpm_funcs; in kv_dpm_early_init()
H A Damdgpu_si_dpm.c7930 adev->powerplay.pp_funcs = &si_dpm_funcs; in si_dpm_early_init()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_pp_smu.c110 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->display_configuration_change) in dm_pp_apply_display_requirements()
111 adev->powerplay.pp_funcs->display_configuration_change( in dm_pp_apply_display_requirements()
347 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_clock_by_type) { in dm_pp_get_clock_levels_by_type()
348 if (adev->powerplay.pp_funcs->get_clock_by_type(pp_handle, in dm_pp_get_clock_levels_by_type()
365 if (adev->powerplay.pp_funcs && adev->powerplay.pp_funcs->get_display_mode_validation_clocks) { in dm_pp_get_clock_levels_by_type()
366 if (adev->powerplay.pp_funcs->get_display_mode_validation_clocks( in dm_pp_get_clock_levels_by_type()
430 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in dm_pp_get_clock_levels_by_type_with_latency() local
433 if (pp_funcs && pp_funcs->get_clock_by_type_with_latency) { in dm_pp_get_clock_levels_by_type_with_latency()
434 ret = pp_funcs->get_clock_by_type_with_latency(pp_handle, in dm_pp_get_clock_levels_by_type_with_latency()
460 const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; in dm_pp_get_clock_levels_by_type_with_voltage() local
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/
H A Damdgpu_amd_powerplay.c64 adev->powerplay.pp_funcs = &pp_dpm_funcs; in amd_powerplay_create()