Home
last modified time | relevance | path

Searched refs:vddc_sclk_table (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/radeon/
Dkv_dpm.c398 struct radeon_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid2_to_vid7() local
402 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid2_to_vid7()
403 if (vid_2bit < vddc_sclk_table->count) in kv_convert_vid2_to_vid7()
404 return vddc_sclk_table->entries[vid_2bit].v; in kv_convert_vid2_to_vid7()
406 return vddc_sclk_table->entries[vddc_sclk_table->count - 1].v; in kv_convert_vid2_to_vid7()
420 struct radeon_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid7_to_vid2() local
424 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid7_to_vid2()
425 for (i = 0; i < vddc_sclk_table->count; i++) { in kv_convert_vid7_to_vid2()
426 if (vddc_sclk_table->entries[i].v == vid_7bit) in kv_convert_vid7_to_vid2()
429 return vddc_sclk_table->count - 1; in kv_convert_vid7_to_vid2()
/linux-5.19.10/drivers/gpu/drm/amd/pm/legacy-dpm/
Dkv_dpm.c76 struct amdgpu_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid2_to_vid7() local
80 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid2_to_vid7()
81 if (vid_2bit < vddc_sclk_table->count) in kv_convert_vid2_to_vid7()
82 return vddc_sclk_table->entries[vid_2bit].v; in kv_convert_vid2_to_vid7()
84 return vddc_sclk_table->entries[vddc_sclk_table->count - 1].v; in kv_convert_vid2_to_vid7()
98 struct amdgpu_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid7_to_vid2() local
102 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid7_to_vid2()
103 for (i = 0; i < vddc_sclk_table->count; i++) { in kv_convert_vid7_to_vid2()
104 if (vddc_sclk_table->entries[i].v == vid_7bit) in kv_convert_vid7_to_vid2()
107 return vddc_sclk_table->count - 1; in kv_convert_vid7_to_vid2()