Home
last modified time | relevance | path

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

/drivers/gpu/drm/radeon/
Dkv_dpm.c555 struct radeon_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid2_to_vid7() local
559 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid2_to_vid7()
560 if (vid_2bit < vddc_sclk_table->count) in kv_convert_vid2_to_vid7()
561 return vddc_sclk_table->entries[vid_2bit].v; in kv_convert_vid2_to_vid7()
563 return vddc_sclk_table->entries[vddc_sclk_table->count - 1].v; in kv_convert_vid2_to_vid7()
577 struct radeon_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid7_to_vid2() local
581 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid7_to_vid2()
582 for (i = 0; i < vddc_sclk_table->count; i++) { in kv_convert_vid7_to_vid2()
583 if (vddc_sclk_table->entries[i].v == vid_7bit) in kv_convert_vid7_to_vid2()
586 return vddc_sclk_table->count - 1; in kv_convert_vid7_to_vid2()
/drivers/gpu/drm/amd/amdgpu/
Dkv_dpm.c77 struct amdgpu_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid2_to_vid7() local
81 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid2_to_vid7()
82 if (vid_2bit < vddc_sclk_table->count) in kv_convert_vid2_to_vid7()
83 return vddc_sclk_table->entries[vid_2bit].v; in kv_convert_vid2_to_vid7()
85 return vddc_sclk_table->entries[vddc_sclk_table->count - 1].v; in kv_convert_vid2_to_vid7()
99 struct amdgpu_clock_voltage_dependency_table *vddc_sclk_table = in kv_convert_vid7_to_vid2() local
103 if (vddc_sclk_table && vddc_sclk_table->count) { in kv_convert_vid7_to_vid2()
104 for (i = 0; i < vddc_sclk_table->count; i++) { in kv_convert_vid7_to_vid2()
105 if (vddc_sclk_table->entries[i].v == vid_7bit) in kv_convert_vid7_to_vid2()
108 return vddc_sclk_table->count - 1; in kv_convert_vid7_to_vid2()