Home
last modified time | relevance | path

Searched refs:vce_table (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dprocesspptables.c1242 struct phm_vce_clock_voltage_dependency_table *vce_table; in get_vce_clock_voltage_limit_table() local
1244 vce_table = kzalloc(struct_size(vce_table, entries, table->numEntries), in get_vce_clock_voltage_limit_table()
1246 if (!vce_table) in get_vce_clock_voltage_limit_table()
1249 vce_table->count = table->numEntries; in get_vce_clock_voltage_limit_table()
1253 vce_table->entries[i].v = (unsigned long)le16_to_cpu(table->entries[i].usVoltage); in get_vce_clock_voltage_limit_table()
1254 vce_table->entries[i].evclk = ((unsigned long)entry->ucEVClkHigh << 16) in get_vce_clock_voltage_limit_table()
1256 vce_table->entries[i].ecclk = ((unsigned long)entry->ucECClkHigh << 16) in get_vce_clock_voltage_limit_table()
1260 *ptable = vce_table; in get_vce_clock_voltage_limit_table()
1656 const ATOM_PPLIB_VCE_State_Table *vce_table = in get_number_of_vce_state_table_entries() local
1659 if (vce_table) in get_number_of_vce_state_table_entries()
[all …]
H A Dsmu8_hwmgr.c451 struct phm_vce_clock_voltage_dependency_table *vce_table = in smu8_upload_pptable_to_smu() local
473 PP_ASSERT_WITH_CODE((vce_table->count <= SMU8_MAX_HARDWARE_POWERLEVELS), in smu8_upload_pptable_to_smu()
536 (i < vce_table->count) ? (uint8_t)vce_table->entries[i].v : 0; in smu8_upload_pptable_to_smu()
538 (i < vce_table->count) ? vce_table->entries[i].ecclk : 0; in smu8_upload_pptable_to_smu()
1733 struct phm_vce_clock_voltage_dependency_table *vce_table = in smu8_read_sensor() local
1804 ecclk = vce_table->entries[vce_index].ecclk; in smu8_read_sensor()
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dci_smumgr.c1565 struct phm_vce_clock_voltage_dependency_table *vce_table = in ci_populate_smc_vce_level() local
1568 table->VceLevelCount = (uint8_t)(vce_table->count); in ci_populate_smc_vce_level()
1572 table->VceLevel[count].Frequency = vce_table->entries[count].evclk; in ci_populate_smc_vce_level()
1574 vce_table->entries[count].v * VOLTAGE_SCALE; in ci_populate_smc_vce_level()
2897 struct phm_vce_clock_voltage_dependency_table *vce_table = in ci_update_vce_smc_table() local
2912 for (i = vce_table->count - 1; i >= 0; i--) { in ci_update_vce_smc_table()
2913 if (vce_table->entries[i].v <= max_vddc) in ci_update_vce_smc_table()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dkv_dpm.c1786 struct radeon_vce_clock_voltage_dependency_table *vce_table = in kv_patch_voltage_values() local
1800 if (vce_table->count) { in kv_patch_voltage_values()
1801 for (i = 0; i < vce_table->count; i++) in kv_patch_voltage_values()
1802 vce_table->entries[i].v = in kv_patch_voltage_values()
1804 vce_table->entries[i].v); in kv_patch_voltage_values()
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dkv_dpm.c2048 struct amdgpu_vce_clock_voltage_dependency_table *vce_table = in kv_patch_voltage_values() local
2062 if (vce_table->count) { in kv_patch_voltage_values()
2063 for (i = 0; i < vce_table->count; i++) in kv_patch_voltage_values()
2064 vce_table->entries[i].v = in kv_patch_voltage_values()
2066 vce_table->entries[i].v); in kv_patch_voltage_values()