Searched refs:PP_HOST_TO_SMC_UL (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/inc/ |
D | pp_endian.h | 27 #define PP_HOST_TO_SMC_UL(X) cpu_to_be32(X) macro 33 #define CONVERT_FROM_HOST_TO_SMC_UL(X) ((X) = PP_HOST_TO_SMC_UL(X))
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | ci_smumgr.c | 455 level->MinVddc = PP_HOST_TO_SMC_UL(level->MinVddc * VOLTAGE_SCALE); in ci_populate_single_graphic_level() 744 dpm_table->BAPM_TEMP_GRADIENT = PP_HOST_TO_SMC_UL(defaults->bapm_temp_gradient); in ci_populate_bapm_parameters_in_dpm_table() 1009 table->LinkLevel[i].DownT = PP_HOST_TO_SMC_UL(5); in ci_populate_smc_link_level() 1010 table->LinkLevel[i].UpT = PP_HOST_TO_SMC_UL(30); in ci_populate_smc_link_level() 1276 memory_level->MinVddc = PP_HOST_TO_SMC_UL(memory_level->MinVddc * VOLTAGE_SCALE); in ci_populate_single_memory_level() 1278 memory_level->MinVddci = PP_HOST_TO_SMC_UL(memory_level->MinVddci * VOLTAGE_SCALE); in ci_populate_single_memory_level() 1279 memory_level->MinMvdd = PP_HOST_TO_SMC_UL(memory_level->MinMvdd * VOLTAGE_SCALE); in ci_populate_single_memory_level() 1393 table->ACPILevel.MinVddc = PP_HOST_TO_SMC_UL(data->acpi_vddc * VOLTAGE_SCALE); in ci_populate_smc_acpi_level() 1395 table->ACPILevel.MinVddc = PP_HOST_TO_SMC_UL(data->min_vddc_in_pptable * VOLTAGE_SCALE); in ci_populate_smc_acpi_level() 1451 table->MemoryACPILevel.MinVddci = PP_HOST_TO_SMC_UL(data->acpi_vddci * VOLTAGE_SCALE); in ci_populate_smc_acpi_level() [all …]
|
D | vegam_smumgr.c | 468 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in vegam_populate_smc_mvdd_table() 585 table->LinkLevel[i].DownThreshold = PP_HOST_TO_SMC_UL(5); in vegam_populate_smc_link_level() 586 table->LinkLevel[i].UpThreshold = PP_HOST_TO_SMC_UL(30); in vegam_populate_smc_link_level() 1183 table->MemoryACPILevel.MinMvdd = PP_HOST_TO_SMC_UL(vol_level.Voltage); in vegam_populate_smc_acpi_level() 1277 arb_regs->McArbDramTiming = PP_HOST_TO_SMC_UL(dram_timing); in vegam_populate_memory_timing_parameters() 1278 arb_regs->McArbDramTiming2 = PP_HOST_TO_SMC_UL(dram_timing2); in vegam_populate_memory_timing_parameters() 1279 arb_regs->McArbBurstTime = PP_HOST_TO_SMC_UL(burst_time); in vegam_populate_memory_timing_parameters() 1280 arb_regs->McArbRfshRate = PP_HOST_TO_SMC_UL(rfsh_rate); in vegam_populate_memory_timing_parameters() 1281 arb_regs->McArbMisc3 = PP_HOST_TO_SMC_UL(misc3); in vegam_populate_memory_timing_parameters() 1592 PP_HOST_TO_SMC_UL(avfs_params.ulGB_VDROOP_TABLE_CKSON_a0); in vegam_populate_avfs_parameters() [all …]
|
D | polaris10_smumgr.c | 667 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in polaris10_populate_smc_mvdd_table() 783 table->LinkLevel[i].DownThreshold = PP_HOST_TO_SMC_UL(5); in polaris10_populate_smc_link_level() 784 table->LinkLevel[i].UpThreshold = PP_HOST_TO_SMC_UL(30); in polaris10_populate_smc_link_level() 1266 table->MemoryACPILevel.MinMvdd = PP_HOST_TO_SMC_UL(vol_level.Voltage); in polaris10_populate_smc_acpi_level() 1355 arb_regs->McArbDramTiming = PP_HOST_TO_SMC_UL(dram_timing); in polaris10_populate_memory_timing_parameters() 1356 arb_regs->McArbDramTiming2 = PP_HOST_TO_SMC_UL(dram_timing2); in polaris10_populate_memory_timing_parameters() 1718 table->BTCGB_VDROOP_TABLE[0].a0 = PP_HOST_TO_SMC_UL(avfs_params.ulGB_VDROOP_TABLE_CKSON_a0); in polaris10_populate_avfs_parameters() 1719 table->BTCGB_VDROOP_TABLE[0].a1 = PP_HOST_TO_SMC_UL(avfs_params.ulGB_VDROOP_TABLE_CKSON_a1); in polaris10_populate_avfs_parameters() 1720 table->BTCGB_VDROOP_TABLE[0].a2 = PP_HOST_TO_SMC_UL(avfs_params.ulGB_VDROOP_TABLE_CKSON_a2); in polaris10_populate_avfs_parameters() 1721 table->BTCGB_VDROOP_TABLE[1].a0 = PP_HOST_TO_SMC_UL(avfs_params.ulGB_VDROOP_TABLE_CKSOFF_a0); in polaris10_populate_avfs_parameters() [all …]
|
D | iceland_smumgr.c | 782 PP_HOST_TO_SMC_UL(5); in iceland_populate_smc_link_level() 784 PP_HOST_TO_SMC_UL(30); in iceland_populate_smc_link_level() 944 graphic_level->MinVddc = PP_HOST_TO_SMC_UL(graphic_level->MinVddc * VOLTAGE_SCALE); in iceland_populate_single_graphic_level() 1324 memory_level->MinVddc = PP_HOST_TO_SMC_UL(memory_level->MinVddc * VOLTAGE_SCALE); in iceland_populate_single_memory_level() 1326 memory_level->MinVddci = PP_HOST_TO_SMC_UL(memory_level->MinVddci * VOLTAGE_SCALE); in iceland_populate_single_memory_level() 1327 memory_level->MinMvdd = PP_HOST_TO_SMC_UL(memory_level->MinMvdd * VOLTAGE_SCALE); in iceland_populate_single_memory_level() 1441 table->ACPILevel.MinVddc = PP_HOST_TO_SMC_UL(data->acpi_vddc * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level() 1443 table->ACPILevel.MinVddc = PP_HOST_TO_SMC_UL(data->min_vddc_in_pptable * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level() 1499 table->MemoryACPILevel.MinVddci = PP_HOST_TO_SMC_UL(data->acpi_vddci * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level() 1501 table->MemoryACPILevel.MinVddci = PP_HOST_TO_SMC_UL(data->min_vddci_in_pptable * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level() [all …]
|
D | tonga_smumgr.c | 525 PP_HOST_TO_SMC_UL(5); in tonga_populate_smc_link_level() 527 PP_HOST_TO_SMC_UL(30); in tonga_populate_smc_link_level() 1248 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in tonga_populate_smc_acpi_level() 1271 PP_HOST_TO_SMC_UL(dll_cntl); in tonga_populate_smc_acpi_level() 1273 PP_HOST_TO_SMC_UL(mclk_pwrmgt_cntl); in tonga_populate_smc_acpi_level() 1275 PP_HOST_TO_SMC_UL(data->clock_registers.vMPLL_AD_FUNC_CNTL); in tonga_populate_smc_acpi_level() 1277 PP_HOST_TO_SMC_UL(data->clock_registers.vMPLL_DQ_FUNC_CNTL); in tonga_populate_smc_acpi_level() 1279 PP_HOST_TO_SMC_UL(data->clock_registers.vMPLL_FUNC_CNTL); in tonga_populate_smc_acpi_level() 1281 PP_HOST_TO_SMC_UL(data->clock_registers.vMPLL_FUNC_CNTL_1); in tonga_populate_smc_acpi_level() 1283 PP_HOST_TO_SMC_UL(data->clock_registers.vMPLL_FUNC_CNTL_2); in tonga_populate_smc_acpi_level() [all …]
|
D | fiji_smumgr.c | 845 table->LinkLevel[i].DownThreshold = PP_HOST_TO_SMC_UL(5); in fiji_populate_smc_link_level() 846 table->LinkLevel[i].UpThreshold = PP_HOST_TO_SMC_UL(30); in fiji_populate_smc_link_level() 1405 PP_HOST_TO_SMC_UL(us_mvdd * VOLTAGE_SCALE); in fiji_populate_smc_acpi_level() 1520 arb_regs->McArbDramTiming = PP_HOST_TO_SMC_UL(dram_timing); in fiji_populate_memory_timing_parameters() 1521 arb_regs->McArbDramTiming2 = PP_HOST_TO_SMC_UL(dram_timing2); in fiji_populate_memory_timing_parameters() 2096 table->Smio[i] = PP_HOST_TO_SMC_UL(table->Smio[i]); in fiji_init_smc_table() 2584 tmp = PP_HOST_TO_SMC_UL(cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset)); in fiji_update_dpm_settings() 2586 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset, PP_HOST_TO_SMC_UL(tmp)); in fiji_update_dpm_settings() 2598 tmp = PP_HOST_TO_SMC_UL(cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset)); in fiji_update_dpm_settings() 2601 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, offset, PP_HOST_TO_SMC_UL(tmp)); in fiji_update_dpm_settings() [all …]
|