Home
last modified time | relevance | path

Searched refs:smu_dpm (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/powerplay/
Dvega20_ppt.c344 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_allocate_dpm_context() local
346 if (smu_dpm->dpm_context) in vega20_allocate_dpm_context()
349 smu_dpm->dpm_context = kzalloc(sizeof(struct vega20_dpm_table), in vega20_allocate_dpm_context()
351 if (!smu_dpm->dpm_context) in vega20_allocate_dpm_context()
354 if (smu_dpm->golden_dpm_context) in vega20_allocate_dpm_context()
357 smu_dpm->golden_dpm_context = kzalloc(sizeof(struct vega20_dpm_table), in vega20_allocate_dpm_context()
359 if (!smu_dpm->golden_dpm_context) in vega20_allocate_dpm_context()
362 smu_dpm->dpm_context_size = sizeof(struct vega20_dpm_table); in vega20_allocate_dpm_context()
364 smu_dpm->dpm_current_power_state = kzalloc(sizeof(struct smu_power_state), in vega20_allocate_dpm_context()
366 if (!smu_dpm->dpm_current_power_state) in vega20_allocate_dpm_context()
[all …]
Darcturus_ppt.c307 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in arcturus_allocate_dpm_context() local
309 if (smu_dpm->dpm_context) in arcturus_allocate_dpm_context()
312 smu_dpm->dpm_context = kzalloc(sizeof(struct arcturus_dpm_table), in arcturus_allocate_dpm_context()
314 if (!smu_dpm->dpm_context) in arcturus_allocate_dpm_context()
317 if (smu_dpm->golden_dpm_context) in arcturus_allocate_dpm_context()
320 smu_dpm->golden_dpm_context = kzalloc(sizeof(struct arcturus_dpm_table), in arcturus_allocate_dpm_context()
322 if (!smu_dpm->golden_dpm_context) in arcturus_allocate_dpm_context()
325 smu_dpm->dpm_context_size = sizeof(struct arcturus_dpm_table); in arcturus_allocate_dpm_context()
327 smu_dpm->dpm_current_power_state = kzalloc(sizeof(struct smu_power_state), in arcturus_allocate_dpm_context()
329 if (!smu_dpm->dpm_current_power_state) in arcturus_allocate_dpm_context()
[all …]
Dsmu_v11_0.c408 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in smu_v11_0_init_dpm_context() local
410 if (smu_dpm->dpm_context || smu_dpm->dpm_context_size != 0) in smu_v11_0_init_dpm_context()
418 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in smu_v11_0_fini_dpm_context() local
420 if (!smu_dpm->dpm_context || smu_dpm->dpm_context_size == 0) in smu_v11_0_fini_dpm_context()
423 kfree(smu_dpm->dpm_context); in smu_v11_0_fini_dpm_context()
424 kfree(smu_dpm->golden_dpm_context); in smu_v11_0_fini_dpm_context()
425 kfree(smu_dpm->dpm_current_power_state); in smu_v11_0_fini_dpm_context()
426 kfree(smu_dpm->dpm_request_power_state); in smu_v11_0_fini_dpm_context()
427 smu_dpm->dpm_context = NULL; in smu_v11_0_fini_dpm_context()
428 smu_dpm->golden_dpm_context = NULL; in smu_v11_0_fini_dpm_context()
[all …]
Dnavi10_ppt.c567 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in navi10_allocate_dpm_context() local
569 if (smu_dpm->dpm_context) in navi10_allocate_dpm_context()
572 smu_dpm->dpm_context = kzalloc(sizeof(struct smu_11_0_dpm_context), in navi10_allocate_dpm_context()
574 if (!smu_dpm->dpm_context) in navi10_allocate_dpm_context()
577 smu_dpm->dpm_context_size = sizeof(struct smu_11_0_dpm_context); in navi10_allocate_dpm_context()
584 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in navi10_set_default_dpm_table() local
586 struct smu_11_0_dpm_context *dpm_context = smu_dpm->dpm_context; in navi10_set_default_dpm_table()
Damdgpu_smu.c754 smu->smu_dpm.dpm_level, in smu_late_init()
870 smu->smu_dpm.dpm_level = AMD_DPM_FORCED_LEVEL_AUTO; in smu_sw_init()
871 smu->smu_dpm.requested_dpm_level = AMD_DPM_FORCED_LEVEL_AUTO; in smu_sw_init()
1531 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in smu_enable_umd_pstate()
1609 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in smu_adjust_power_state_dynamic()
1693 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in smu_switch_power_profile()
1727 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in smu_get_performance_level()
1742 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in smu_force_performance_level()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pm.c3008 struct smu_dpm_context *smu_dpm = &adev->smu.smu_dpm; in amdgpu_pm_compute_clocks() local
3010 smu_dpm->dpm_level, in amdgpu_pm_compute_clocks()
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/inc/
Damdgpu_smu.h351 struct smu_dpm_context smu_dpm; member