Searched refs:uvd_table (Results 1 – 5 of 5) sorted by relevance
449 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in smu8_upload_pptable_to_smu() local471 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()1713 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in smu8_read_sensor() local1757 vclk = uvd_table->entries[uvd_index].vclk; in smu8_read_sensor()1769 dclk = uvd_table->entries[uvd_index].dclk; in smu8_read_sensor()
1210 struct phm_uvd_clock_voltage_dependency_table *uvd_table; in get_uvd_clock_voltage_limit_table() local1212 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()
1525 struct phm_uvd_clock_voltage_dependency_table *uvd_table = in ci_populate_smc_uvd_level() local1528 table->UvdLevelCount = (uint8_t)(uvd_table->count); in ci_populate_smc_uvd_level()1532 uvd_table->entries[count].vclk; in ci_populate_smc_uvd_level()1534 uvd_table->entries[count].dclk; in ci_populate_smc_uvd_level()1536 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() local2871 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()
1784 struct radeon_uvd_clock_voltage_dependency_table *uvd_table = in kv_patch_voltage_values() local1793 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()
2054 struct amdgpu_uvd_clock_voltage_dependency_table *uvd_table = in kv_patch_voltage_values() local2063 if (uvd_table->count) { in kv_patch_voltage_values()2064 for (i = 0; i < uvd_table->count; i++) in kv_patch_voltage_values()2065 uvd_table->entries[i].v = in kv_patch_voltage_values()2067 uvd_table->entries[i].v); in kv_patch_voltage_values()