Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dprocesspptables.c1293 struct phm_acp_clock_voltage_dependency_table *acp_table; in get_acp_clock_voltage_limit_table() local
1295 acp_table = kzalloc(struct_size(acp_table, entries, table->numEntries), in get_acp_clock_voltage_limit_table()
1297 if (!acp_table) in get_acp_clock_voltage_limit_table()
1300 acp_table->count = (unsigned long)table->numEntries; in get_acp_clock_voltage_limit_table()
1303 acp_table->entries[i].v = (unsigned long)le16_to_cpu(table->entries[i].usVoltage); in get_acp_clock_voltage_limit_table()
1304 acp_table->entries[i].acpclk = ((unsigned long)table->entries[i].ucACPClockHigh << 16) in get_acp_clock_voltage_limit_table()
1308 *ptable = acp_table; in get_acp_clock_voltage_limit_table()
Dsmu8_hwmgr.c447 struct phm_acp_clock_voltage_dependency_table *acp_table = in smu8_upload_pptable_to_smu() local
469 PP_ASSERT_WITH_CODE((acp_table->count <= SMU8_MAX_HARDWARE_POWERLEVELS), in smu8_upload_pptable_to_smu()
497 (i < acp_table->count) ? (uint8_t)acp_table->entries[i].v : 0; in smu8_upload_pptable_to_smu()
499 (i < acp_table->count) ? acp_table->entries[i].acpclk : 0; in smu8_upload_pptable_to_smu()
/linux-5.19.10/drivers/gpu/drm/radeon/
Dkv_dpm.c1790 struct radeon_clock_voltage_dependency_table *acp_table = in kv_patch_voltage_values() local
1814 if (acp_table->count) { in kv_patch_voltage_values()
1815 for (i = 0; i < acp_table->count; i++) in kv_patch_voltage_values()
1816 acp_table->entries[i].v = in kv_patch_voltage_values()
1818 acp_table->entries[i].v); in kv_patch_voltage_values()
/linux-5.19.10/drivers/gpu/drm/amd/pm/legacy-dpm/
Dkv_dpm.c2060 struct amdgpu_clock_voltage_dependency_table *acp_table = in kv_patch_voltage_values() local
2084 if (acp_table->count) { in kv_patch_voltage_values()
2085 for (i = 0; i < acp_table->count; i++) in kv_patch_voltage_values()
2086 acp_table->entries[i].v = in kv_patch_voltage_values()
2088 acp_table->entries[i].v); in kv_patch_voltage_values()
/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dci_smumgr.c1598 struct phm_acp_clock_voltage_dependency_table *acp_table = in ci_populate_smc_acp_level() local
1601 table->AcpLevelCount = (uint8_t)(acp_table->count); in ci_populate_smc_acp_level()
1605 table->AcpLevel[count].Frequency = acp_table->entries[count].acpclk; in ci_populate_smc_acp_level()
1606 table->AcpLevel[count].MinVoltage = acp_table->entries[count].v; in ci_populate_smc_acp_level()