Home
last modified time | relevance | path

Searched refs:vid_7bit (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/radeon/
Dsumo_dpm.c1536 return vid_mapping_table->entries[i].vid_7bit; in sumo_convert_vid2_to_vid7()
1539 return vid_mapping_table->entries[vid_mapping_table->num_entries - 1].vid_7bit; in sumo_convert_vid2_to_vid7()
1545 u32 vid_7bit)
1550 if (vid_mapping_table->entries[i].vid_7bit == vid_7bit)
1562 u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid_2bit); in sumo_convert_voltage_index_to_value() local
1564 if (vid_7bit > 0x7C) in sumo_convert_voltage_index_to_value()
1567 return (15500 - vid_7bit * 125 + 5) / 10; in sumo_convert_voltage_index_to_value()
1622 vid_mapping_table->entries[table[i].usVoltageIndex].vid_7bit = in sumo_construct_vid_mapping_table()
1630 if (vid_mapping_table->entries[i].vid_7bit == 0) { in sumo_construct_vid_mapping_table()
1632 if (vid_mapping_table->entries[j].vid_7bit != 0) { in sumo_construct_vid_mapping_table()
[all …]
Dsumo_dpm.h62 u16 vid_7bit; member
Dkv_dpm.c410 return vid_mapping_table->entries[i].vid_7bit; in kv_convert_vid2_to_vid7()
412 return vid_mapping_table->entries[vid_mapping_table->num_entries - 1].vid_7bit; in kv_convert_vid2_to_vid7()
418 u32 vid_7bit) in kv_convert_vid7_to_vid2() argument
426 if (vddc_sclk_table->entries[i].v == vid_7bit) in kv_convert_vid7_to_vid2()
432 if (vid_mapping_table->entries[i].vid_7bit == vid_7bit) in kv_convert_vid7_to_vid2()
Dtrinity_dpm.c595 u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid); in trinity_set_vid() local
601 value |= VID(vid_7bit); in trinity_set_vid()
1268 u32 vid_7bit = sumo_convert_vid2_to_vid7(rdev, &pi->sys_info.vid_mapping_table, vid_2bit); in trinity_convert_voltage_index_to_value() local
1271 u32 delta = vid_7bit * step + 50; in trinity_convert_voltage_index_to_value()
/linux-5.19.10/drivers/gpu/drm/amd/pm/legacy-dpm/
Dkv_dpm.h39 u16 vid_7bit; member
Dkv_dpm.c88 return vid_mapping_table->entries[i].vid_7bit; in kv_convert_vid2_to_vid7()
90 return vid_mapping_table->entries[vid_mapping_table->num_entries - 1].vid_7bit; in kv_convert_vid2_to_vid7()
96 u32 vid_7bit) in kv_convert_vid7_to_vid2() argument
104 if (vddc_sclk_table->entries[i].v == vid_7bit) in kv_convert_vid7_to_vid2()
110 if (vid_mapping_table->entries[i].vid_7bit == vid_7bit) in kv_convert_vid7_to_vid2()
167 vid_mapping_table->entries[table[i].usVoltageIndex].vid_7bit = in sumo_construct_vid_mapping_table()
175 if (vid_mapping_table->entries[i].vid_7bit == 0) { in sumo_construct_vid_mapping_table()
177 if (vid_mapping_table->entries[j].vid_7bit != 0) { in sumo_construct_vid_mapping_table()
180 vid_mapping_table->entries[j].vid_7bit = 0; in sumo_construct_vid_mapping_table()