Home
last modified time | relevance | path

Searched refs:uvd_table (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dsmu8_hwmgr.c449 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in smu8_upload_pptable_to_smu() local
471 PP_ASSERT_WITH_CODE((uvd_table->count <= SMU8_MAX_HARDWARE_POWERLEVELS), in smu8_upload_pptable_to_smu()
511 (i < uvd_table->count) ? (uint8_t)uvd_table->entries[i].v : 0; in smu8_upload_pptable_to_smu()
513 (i < uvd_table->count) ? uvd_table->entries[i].vclk : 0; in smu8_upload_pptable_to_smu()
523 (i < uvd_table->count) ? (uint8_t)uvd_table->entries[i].v : 0; in smu8_upload_pptable_to_smu()
525 (i < uvd_table->count) ? uvd_table->entries[i].dclk : 0; in smu8_upload_pptable_to_smu()
1736 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in smu8_read_sensor() local
1780 vclk = uvd_table->entries[uvd_index].vclk; in smu8_read_sensor()
1792 dclk = uvd_table->entries[uvd_index].dclk; in smu8_read_sensor()
H A Dprocesspptables.c1210 struct phm_uvd_clock_voltage_dependency_table *uvd_table; in get_uvd_clock_voltage_limit_table() local
1212 uvd_table = kzalloc(struct_size(uvd_table, entries, table->numEntries), in get_uvd_clock_voltage_limit_table()
1214 if (!uvd_table) in get_uvd_clock_voltage_limit_table()
1217 uvd_table->count = table->numEntries; in get_uvd_clock_voltage_limit_table()
1222 uvd_table->entries[i].v = (unsigned long)le16_to_cpu(table->entries[i].usVoltage); in get_uvd_clock_voltage_limit_table()
1223 uvd_table->entries[i].vclk = ((unsigned long)entry->ucVClkHigh << 16) in get_uvd_clock_voltage_limit_table()
1225 uvd_table->entries[i].dclk = ((unsigned long)entry->ucDClkHigh << 16) in get_uvd_clock_voltage_limit_table()
1229 *ptable = uvd_table; in get_uvd_clock_voltage_limit_table()
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dci_smumgr.c1524 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in ci_populate_smc_uvd_level() local
1527 table->UvdLevelCount = (uint8_t)(uvd_table->count); in ci_populate_smc_uvd_level()
1531 uvd_table->entries[count].vclk; in ci_populate_smc_uvd_level()
1533 uvd_table->entries[count].dclk; in ci_populate_smc_uvd_level()
1535 uvd_table->entries[count].v * VOLTAGE_SCALE; in ci_populate_smc_uvd_level()
2861 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in ci_update_uvd_smc_table() local
2871 if (PP_CAP(PHM_PlatformCaps_UVDDPM) || uvd_table->count <= 0) in ci_update_uvd_smc_table()
2874 smu_data->smc_state_table.UvdBootLevel = uvd_table->count - 1; in ci_update_uvd_smc_table()
2881 for (i = uvd_table->count - 1; i >= 0; i--) { in ci_update_uvd_smc_table()
2882 if (uvd_table->entries[i].v <= max_vddc) in ci_update_uvd_smc_table()
/linux/drivers/gpu/drm/radeon/
H A Dkv_dpm.c1783 struct radeon_uvd_clock_voltage_dependency_table *uvd_table = in kv_patch_voltage_values() local
1792 if (uvd_table->count) { in kv_patch_voltage_values()
1793 for (i = 0; i < uvd_table->count; i++) in kv_patch_voltage_values()
1794 uvd_table->entries[i].v = in kv_patch_voltage_values()
1796 uvd_table->entries[i].v); in kv_patch_voltage_values()