Home
last modified time | relevance | path

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

/openbmc/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.c1212 struct phm_uvd_clock_voltage_dependency_table *uvd_table; in get_uvd_clock_voltage_limit_table() local
1214 uvd_table = kzalloc(struct_size(uvd_table, entries, table->numEntries), in get_uvd_clock_voltage_limit_table()
1216 if (!uvd_table) in get_uvd_clock_voltage_limit_table()
1219 uvd_table->count = table->numEntries; in get_uvd_clock_voltage_limit_table()
1224 uvd_table->entries[i].v = (unsigned long)le16_to_cpu(table->entries[i].usVoltage); in get_uvd_clock_voltage_limit_table()
1225 uvd_table->entries[i].vclk = ((unsigned long)entry->ucVClkHigh << 16) in get_uvd_clock_voltage_limit_table()
1227 uvd_table->entries[i].dclk = ((unsigned long)entry->ucDClkHigh << 16) in get_uvd_clock_voltage_limit_table()
1231 *ptable = uvd_table; in get_uvd_clock_voltage_limit_table()
/openbmc/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()
2860 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in ci_update_uvd_smc_table() local
2870 if (PP_CAP(PHM_PlatformCaps_UVDDPM) || uvd_table->count <= 0) in ci_update_uvd_smc_table()
2873 smu_data->smc_state_table.UvdBootLevel = uvd_table->count - 1; in ci_update_uvd_smc_table()
2880 for (i = uvd_table->count - 1; i >= 0; i--) { in ci_update_uvd_smc_table()
2881 if (uvd_table->entries[i].v <= max_vddc) in ci_update_uvd_smc_table()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dkv_dpm.c1784 struct radeon_uvd_clock_voltage_dependency_table *uvd_table = in kv_patch_voltage_values() local
1793 if (uvd_table->count) { in kv_patch_voltage_values()
1794 for (i = 0; i < uvd_table->count; i++) in kv_patch_voltage_values()
1795 uvd_table->entries[i].v = in kv_patch_voltage_values()
1797 uvd_table->entries[i].v); in kv_patch_voltage_values()
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dkv_dpm.c2046 struct amdgpu_uvd_clock_voltage_dependency_table *uvd_table = in kv_patch_voltage_values() local
2055 if (uvd_table->count) { in kv_patch_voltage_values()
2056 for (i = 0; i < uvd_table->count; i++) in kv_patch_voltage_values()
2057 uvd_table->entries[i].v = in kv_patch_voltage_values()
2059 uvd_table->entries[i].v); in kv_patch_voltage_values()