Home
last modified time | relevance | path

Searched refs:sclk_table (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dsmu7_hwmgr.c746 &data->dpm_table.sclk_table, in smu7_reset_dpm_tables()
809 data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].value = in smu7_setup_dpm_tables_v0()
903 data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].value = in smu7_setup_dpm_tables_v1()
906 data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].enabled = in smu7_setup_dpm_tables_v1()
4085 struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); in smu7_find_dpm_states_clocks_in_dpm_table() local
4099 if (i >= sclk_table->count) { in smu7_find_dpm_states_clocks_in_dpm_table()
4963 struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); in smu7_print_clock_levels() local
5085 struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); in smu7_get_sclk_od() local
5088 int value = sclk_table->dpm_levels[sclk_table->count - 1].value; in smu7_get_sclk_od()
5412 struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); in smu7_get_max_high_clocks() local
[all …]
H A Dprocess_pptables_v1_0.c407 phm_ppt_v1_clock_voltage_dependency_table *sclk_table; in get_sclk_voltage_dependency_table() local
418 sclk_table = kzalloc(struct_size(sclk_table, entries, tonga_table->ucNumEntries), in get_sclk_voltage_dependency_table()
420 if (!sclk_table) in get_sclk_voltage_dependency_table()
423 sclk_table->count = (uint32_t)tonga_table->ucNumEntries; in get_sclk_voltage_dependency_table()
431 entries, sclk_table, i); in get_sclk_voltage_dependency_table()
447 sclk_table = kzalloc(struct_size(sclk_table, entries, polaris_table->ucNumEntries), in get_sclk_voltage_dependency_table()
449 if (!sclk_table) in get_sclk_voltage_dependency_table()
452 sclk_table->count = (uint32_t)polaris_table->ucNumEntries; in get_sclk_voltage_dependency_table()
460 entries, sclk_table, i); in get_sclk_voltage_dependency_table()
470 *pp_tonga_sclk_dep_table = sclk_table; in get_sclk_voltage_dependency_table()
H A Dsmu7_hwmgr.h104 struct smu7_single_dpm_table sclk_table; member
H A Dvega10_hwmgr.c3439 struct vega10_single_dpm_table *sclk_table = &(data->dpm_table.gfx_table); in vega10_find_dpm_states_clocks_in_dpm_table() local
3451 for (i = 0; i < sclk_table->count; i++) { in vega10_find_dpm_states_clocks_in_dpm_table()
3452 if (sclk == sclk_table->dpm_levels[i].value) in vega10_find_dpm_states_clocks_in_dpm_table()
3456 if (i >= sclk_table->count) { in vega10_find_dpm_states_clocks_in_dpm_table()
3457 if (sclk > sclk_table->dpm_levels[i-1].value) { in vega10_find_dpm_states_clocks_in_dpm_table()
3459 sclk_table->dpm_levels[i-1].value = sclk; in vega10_find_dpm_states_clocks_in_dpm_table()
4705 count = sclk_table->count; in vega10_emit_clock_levels()
4708 i, sclk_table->dpm_levels[i].value / 100, in vega10_emit_clock_levels()
4850 count = sclk_table->count; in vega10_print_clock_levels()
4853 i, sclk_table->dpm_levels[i].value / 100, in vega10_print_clock_levels()
[all …]
H A Dsmu8_hwmgr.c1571 struct phm_clock_voltage_dependency_table *sclk_table = in smu8_print_clock_levels() local
1584 for (i = 0; i < sclk_table->count; i++) in smu8_print_clock_levels()
1586 i, sclk_table->entries[i].clk / 100, in smu8_print_clock_levels()
H A Dvega12_hwmgr.c2701 struct vega12_single_dpm_table *sclk_table = &(data->dpm_table.gfx_table);
2704 int value = sclk_table->dpm_levels[sclk_table->count - 1].value;
H A Dvega20_hwmgr.c1480 struct vega20_single_dpm_table *sclk_table = in vega20_get_sclk_od() local
1484 int value = sclk_table->dpm_levels[sclk_table->count - 1].value; in vega20_get_sclk_od()
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dvegam_smumgr.c888 for (i = 0; i < dpm_table->sclk_table.count; i++) { in vegam_populate_all_graphic_levels()
891 dpm_table->sclk_table.dpm_levels[i].value, in vegam_populate_all_graphic_levels()
909 (uint8_t)dpm_table->sclk_table.count; in vegam_populate_all_graphic_levels()
913 for (i = 0; i < dpm_table->sclk_table.count; i++) in vegam_populate_all_graphic_levels()
922 for (i = 0; i < dpm_table->sclk_table.count; i++) in vegam_populate_all_graphic_levels()
947 for (i = 2; i < dpm_table->sclk_table.count; i++) in vegam_populate_all_graphic_levels()
1290 hw_data->dpm_table.sclk_table.dpm_levels[i].value, in vegam_program_memory_timing_parameters()
1509 for (i = 0; i < sclk_table->count; i++) { in vegam_populate_clock_stretcher_data_table()
1511 sclk_table->entries[i].cks_enable << i; in vegam_populate_clock_stretcher_data_table()
1628 for (i = 0; i < sclk_table->count; i++) { in vegam_populate_avfs_parameters()
[all …]
H A Dpolaris10_smumgr.c1067 for (i = 0; i < dpm_table->sclk_table.count; i++) { in polaris10_populate_all_graphic_levels()
1070 dpm_table->sclk_table.dpm_levels[i].value, in polaris10_populate_all_graphic_levels()
1084 dpm_table->sclk_table.dpm_levels[0].value, in polaris10_populate_all_graphic_levels()
1098 (uint8_t)dpm_table->sclk_table.count; in polaris10_populate_all_graphic_levels()
1111 for (i = 0; i < dpm_table->sclk_table.count; i++) in polaris10_populate_all_graphic_levels()
1136 for (i = 2; i < dpm_table->sclk_table.count; i++) in polaris10_populate_all_graphic_levels()
1498 for (i = 0; i < hw_data->dpm_table.sclk_table.count; i++) { in polaris10_program_memory_timing_parameters()
1501 hw_data->dpm_table.sclk_table.dpm_levels[i].value, in polaris10_program_memory_timing_parameters()
1587 result = phm_find_boot_level(&(data->dpm_table.sclk_table), in polaris10_populate_smc_boot_level()
1671 for (i = 0; i < sclk_table->count; i++) { in polaris10_populate_clock_stretcher_data_table()
[all …]
H A Dfiji_smumgr.c1022 for (i = 0; i < dpm_table->sclk_table.count; i++) { in fiji_populate_all_graphic_levels()
1024 dpm_table->sclk_table.dpm_levels[i].value, in fiji_populate_all_graphic_levels()
1042 (uint8_t)dpm_table->sclk_table.count; in fiji_populate_all_graphic_levels()
1051 for (i = 0; i < dpm_table->sclk_table.count; i++) in fiji_populate_all_graphic_levels()
1076 for (i = 2; i < dpm_table->sclk_table.count; i++) in fiji_populate_all_graphic_levels()
1316 data->dpm_table.sclk_table.dpm_levels[0].value; in fiji_populate_smc_acpi_level()
1532 for (i = 0; i < data->dpm_table.sclk_table.count; i++) { in fiji_program_memory_timing_parameters()
1535 data->dpm_table.sclk_table.dpm_levels[i].value, in fiji_program_memory_timing_parameters()
1609 phm_find_boot_level(&(data->dpm_table.sclk_table), in fiji_populate_smc_boot_level()
1700 for (i = 0; i < sclk_table->count; i++) { in fiji_populate_clock_stretcher_data_table()
[all …]
H A Dtonga_smumgr.c710 for (i = 0; i < dpm_table->sclk_table.count; i++) { in tonga_populate_all_graphic_levels()
712 dpm_table->sclk_table.dpm_levels[i].value, in tonga_populate_all_graphic_levels()
726 if (dpm_table->sclk_table.count > 1) in tonga_populate_all_graphic_levels()
731 (uint8_t)dpm_table->sclk_table.count; in tonga_populate_all_graphic_levels()
740 for (i = 0; i < dpm_table->sclk_table.count; i++) { in tonga_populate_all_graphic_levels()
770 for (i = 2; i < dpm_table->sclk_table.count; i++) in tonga_populate_all_graphic_levels()
1497 for (i = 0; i < data->dpm_table.sclk_table.count; i++) { in tonga_program_memory_timing_parameters()
1620 for (i = 0; i < sclk_table->count; i++) { in tonga_populate_clock_stretcher_data_table()
1622 sclk_table->entries[i].cks_enable << i; in tonga_populate_clock_stretcher_data_table()
1625 (sclk_table->entries[i].clk/100) / 10000) * 1000 / in tonga_populate_clock_stretcher_data_table()
[all …]
H A Diceland_smumgr.c980 for (i = 0; i < dpm_table->sclk_table.count; i++) { in iceland_populate_all_graphic_levels()
982 dpm_table->sclk_table.dpm_levels[i].value, in iceland_populate_all_graphic_levels()
996 if (dpm_table->sclk_table.count > 1) in iceland_populate_all_graphic_levels()
997 smu_data->smc_state_table.GraphicsLevel[dpm_table->sclk_table.count-1].DisplayWatermark = in iceland_populate_all_graphic_levels()
1001 (uint8_t)dpm_table->sclk_table.count; in iceland_populate_all_graphic_levels()
1003 phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); in iceland_populate_all_graphic_levels()
1026 for (i = 2; i < dpm_table->sclk_table.count; i++) { in iceland_populate_all_graphic_levels()
1621 for (i = 0; i < data->dpm_table.sclk_table.count; i++) { in iceland_program_memory_timing_parameters()
1624 (hwmgr, data->dpm_table.sclk_table.dpm_levels[i].value, in iceland_program_memory_timing_parameters()
1657 result = phm_find_boot_level(&(data->dpm_table.sclk_table), in iceland_populate_smc_boot_level()
H A Dci_smumgr.c486 for (i = 0; i < dpm_table->sclk_table.count; i++) { in ci_populate_all_graphic_levels()
488 dpm_table->sclk_table.dpm_levels[i].value, in ci_populate_all_graphic_levels()
494 if (i == (dpm_table->sclk_table.count - 1)) in ci_populate_all_graphic_levels()
501 smu_data->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; in ci_populate_all_graphic_levels()
503 phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); in ci_populate_all_graphic_levels()
1660 for (i = 0; i < data->dpm_table.sclk_table.count; i++) { in ci_program_memory_timing_parameters()
1663 (hwmgr, data->dpm_table.sclk_table.dpm_levels[i].value, in ci_program_memory_timing_parameters()
1696 result = phm_find_boot_level(&(data->dpm_table.sclk_table), in ci_populate_smc_boot_level()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dci_dpm.c3425 &pi->dpm_table.sclk_table, in ci_setup_default_dpm_tables()
3440 pi->dpm_table.sclk_table.count = 0; in ci_setup_default_dpm_tables()
3443 (pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count-1].value != in ci_setup_default_dpm_tables()
3445 pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count].value = in ci_setup_default_dpm_tables()
3447 pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count].enabled = in ci_setup_default_dpm_tables()
3449 pi->dpm_table.sclk_table.count++; in ci_setup_default_dpm_tables()
3726 &pi->dpm_table.sclk_table, in ci_trim_dpm_states()
3821 struct ci_single_dpm_table *sclk_table = &pi->dpm_table.sclk_table; in ci_find_dpm_states_clocks_in_dpm_table() local
3829 for (i = 0; i < sclk_table->count; i++) { in ci_find_dpm_states_clocks_in_dpm_table()
3834 if (i >= sclk_table->count) { in ci_find_dpm_states_clocks_in_dpm_table()
[all …]
H A Dci_dpm.h69 struct ci_single_dpm_table sclk_table; member