dpm_table 408 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = NULL; dpm_table 411 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 414 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 429 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 444 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 459 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 473 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c memcpy(smu_dpm->golden_dpm_context, dpm_table, dpm_table 539 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = NULL; dpm_table 543 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 544 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c gfx_table = &(dpm_table->gfx_table); dpm_table 545 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c mem_table = &(dpm_table->mem_table); dpm_table 564 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_single_dpm_table *dpm_table) dpm_table 568 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c count = (dpm_table->count > MAX_NUM_CLOCKS) ? MAX_NUM_CLOCKS : dpm_table->count; dpm_table 573 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->dpm_levels[i].value * 1000; dpm_table 594 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = NULL; dpm_table 596 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 606 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 628 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 650 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 672 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 698 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = dpm_table 705 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 720 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 735 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 754 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table; dpm_table 764 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table = smu->smu_dpm.dpm_context; dpm_table 768 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 795 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 822 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 849 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 1190 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = dpm_table 1197 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_level = arcturus_find_highest_dpm_level(&(dpm_table->gfx_table)); dpm_table 1199 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_level = arcturus_find_lowest_dpm_level(&(dpm_table->gfx_table)); dpm_table 1201 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_state.soft_min_level = dpm_table 1202 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_state.soft_max_level = dpm_table 1203 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_levels[soft_level].value; dpm_table 1207 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_level = arcturus_find_highest_dpm_level(&(dpm_table->mem_table)); dpm_table 1209 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_level = arcturus_find_lowest_dpm_level(&(dpm_table->mem_table)); dpm_table 1211 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->mem_table.dpm_state.soft_min_level = dpm_table 1212 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->mem_table.dpm_state.soft_max_level = dpm_table 1213 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->mem_table.dpm_levels[soft_level].value; dpm_table 1217 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_level = arcturus_find_highest_dpm_level(&(dpm_table->soc_table)); dpm_table 1219 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_level = arcturus_find_lowest_dpm_level(&(dpm_table->soc_table)); dpm_table 1221 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_state.soft_min_level = dpm_table 1222 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_state.soft_max_level = dpm_table 1223 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_levels[soft_level].value; dpm_table 1244 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = dpm_table 1250 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_min_level = arcturus_find_lowest_dpm_level(&(dpm_table->gfx_table)); dpm_table 1251 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_max_level = arcturus_find_highest_dpm_level(&(dpm_table->gfx_table)); dpm_table 1252 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_state.soft_min_level = dpm_table 1253 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_levels[soft_min_level].value; dpm_table 1254 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_state.soft_max_level = dpm_table 1255 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_levels[soft_max_level].value; dpm_table 1258 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_min_level = arcturus_find_lowest_dpm_level(&(dpm_table->mem_table)); dpm_table 1259 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_max_level = arcturus_find_highest_dpm_level(&(dpm_table->mem_table)); dpm_table 1260 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->mem_table.dpm_state.soft_min_level = dpm_table 1261 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_levels[soft_min_level].value; dpm_table 1262 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->mem_table.dpm_state.soft_max_level = dpm_table 1263 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->gfx_table.dpm_levels[soft_max_level].value; dpm_table 1266 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_min_level = arcturus_find_lowest_dpm_level(&(dpm_table->soc_table)); dpm_table 1267 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_max_level = arcturus_find_highest_dpm_level(&(dpm_table->soc_table)); dpm_table 1268 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_state.soft_min_level = dpm_table 1269 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_levels[soft_min_level].value; dpm_table 1270 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_state.soft_max_level = dpm_table 1271 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c dpm_table->soc_table.dpm_levels[soft_max_level].value; dpm_table 1295 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct arcturus_dpm_table *dpm_table = dpm_table 1304 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c gfx_dpm_table = &dpm_table->gfx_table; dpm_table 1305 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c mem_dpm_table = &dpm_table->mem_table; dpm_table 1306 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soc_dpm_table = &dpm_table->soc_table; dpm_table 554 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_reset_single_dpm_table(&data->dpm_table.pcie_speed_table, dpm_table 565 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, i - 1, dpm_table 571 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.pcie_speed_table.count = max_entry - 1; dpm_table 575 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 0, dpm_table 580 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 1, dpm_table 585 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 2, dpm_table 590 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 3, dpm_table 595 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 4, dpm_table 600 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, 5, dpm_table 606 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.pcie_speed_table.count = 6; dpm_table 610 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (i = 0; i <= data->dpm_table.pcie_speed_table.count; i++) dpm_table 611 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, i, dpm_table 616 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_setup_pcie_table_entry(&data->dpm_table.pcie_speed_table, dpm_table 617 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.pcie_speed_table.count, dpm_table 630 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c memset(&(data->dpm_table), 0x00, sizeof(data->dpm_table)); dpm_table 633 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &data->dpm_table.sclk_table, dpm_table 638 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &data->dpm_table.mclk_table, dpm_table 643 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &data->dpm_table.vddc_table, dpm_table 648 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &data->dpm_table.vddci_table, dpm_table 653 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &data->dpm_table.mvdd_table, dpm_table 691 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.count = 0; dpm_table 694 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (i == 0 || data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count-1].value != dpm_table 696 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].value = dpm_table 698 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].enabled = (i == 0) ? 1 : 0; dpm_table 699 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.count++; dpm_table 706 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.count = 0; dpm_table 708 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (i == 0 || data->dpm_table.mclk_table.dpm_levels[data->dpm_table.mclk_table.count-1].value != dpm_table 710 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.dpm_levels[data->dpm_table.mclk_table.count].value = dpm_table 712 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.dpm_levels[data->dpm_table.mclk_table.count].enabled = (i == 0) ? 1 : 0; dpm_table 713 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.count++; dpm_table 719 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddc_table.dpm_levels[i].value = allowed_vdd_mclk_table->entries[i].v; dpm_table 720 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddc_table.dpm_levels[i].param1 = std_voltage_table->entries[i].Leakage; dpm_table 722 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddc_table.dpm_levels[i].enabled = 1; dpm_table 725 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddc_table.count = allowed_vdd_sclk_table->count; dpm_table 731 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddci_table.dpm_levels[i].value = allowed_vdd_mclk_table->entries[i].v; dpm_table 732 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddci_table.dpm_levels[i].enabled = 1; dpm_table 734 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.vddci_table.count = allowed_vdd_mclk_table->count; dpm_table 745 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mvdd_table.dpm_levels[i].value = allowed_vdd_mclk_table->entries[i].v; dpm_table 746 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mvdd_table.dpm_levels[i].enabled = 1; dpm_table 748 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mvdd_table.count = allowed_vdd_mclk_table->count; dpm_table 785 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.count = 0; dpm_table 787 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (i == 0 || data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count - 1].value != dpm_table 790 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].value = dpm_table 793 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.dpm_levels[data->dpm_table.sclk_table.count].enabled = dpm_table 795 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.count++; dpm_table 801 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.count = 0; dpm_table 803 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (i == 0 || data->dpm_table.mclk_table.dpm_levels dpm_table 804 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c [data->dpm_table.mclk_table.count - 1].value != dpm_table 806 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.dpm_levels[data->dpm_table.mclk_table.count].value = dpm_table 808 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.dpm_levels[data->dpm_table.mclk_table.count].enabled = dpm_table 810 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.count++; dpm_table 906 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (i = 0; i < data->dpm_table.sclk_table.count; i++) { dpm_table 908 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.sclk_table.dpm_levels[i].value) { dpm_table 914 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (i = 0; i < data->dpm_table.mclk_table.count; i++) { dpm_table 916 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c data->dpm_table.mclk_table.dpm_levels[i].value) { dpm_table 960 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c memcpy(&(data->golden_dpm_table), &(data->dpm_table), dpm_table 2795 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c *pcie_mask = data->dpm_table.pcie_speed_table.count - 1; dpm_table 3599 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); dpm_table 3602 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *mclk_table = &(data->dpm_table.mclk_table); dpm_table 3652 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 3660 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 3661 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (dpm_table->sclk_table.dpm_levels[i].value == max_sclk) dpm_table 3662 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c return (uint16_t) ((i >= dpm_table->pcie_speed_table.count) ? dpm_table 3663 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->pcie_speed_table.dpm_levels dpm_table 3664 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c [dpm_table->pcie_speed_table.count - 1].value : dpm_table 3665 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->pcie_speed_table.dpm_levels[i].value); dpm_table 3759 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 3769 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (count = 0; count < dpm_table->sclk_table.count; count++) { dpm_table 3770 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->sclk_table.dpm_levels[count].enabled = odn_sclk_table->entries[count].enabled; dpm_table 3771 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->sclk_table.dpm_levels[count].value = odn_sclk_table->entries[count].clock; dpm_table 3776 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (count = 0; count < dpm_table->mclk_table.count; count++) { dpm_table 3777 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->mclk_table.dpm_levels[count].enabled = odn_mclk_table->entries[count].enabled; dpm_table 3778 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->mclk_table.dpm_levels[count].value = odn_mclk_table->entries[count].clock; dpm_table 3803 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *dpm_table, dpm_table 3810 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 3813 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c && (dpm_table->dpm_levels[i].value < low_limit dpm_table 3814 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c || dpm_table->dpm_levels[i].value > high_limit)) dpm_table 3815 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->dpm_levels[i].enabled = false; dpm_table 3817 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c dpm_table->dpm_levels[i].enabled = true; dpm_table 3836 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &(data->dpm_table.sclk_table), dpm_table 3841 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c &(data->dpm_table.mclk_table), dpm_table 3864 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_get_dpm_level_enable_mask_value(&data->dpm_table.sclk_table); dpm_table 3866 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_get_dpm_level_enable_mask_value(&data->dpm_table.mclk_table); dpm_table 3868 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c phm_get_dpm_level_enable_mask_value(&data->dpm_table.pcie_speed_table); dpm_table 4445 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); dpm_table 4446 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *mclk_table = &(data->dpm_table.mclk_table); dpm_table 4447 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *pcie_table = &(data->dpm_table.pcie_speed_table); dpm_table 4569 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); dpm_table 4611 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *mclk_table = &(data->dpm_table.mclk_table); dpm_table 4777 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *sclk_table = &(data->dpm_table.sclk_table); dpm_table 4778 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c struct smu7_single_dpm_table *mclk_table = &(data->dpm_table.mclk_table); dpm_table 204 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h struct smu7_dpm_table dpm_table; dpm_table 350 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; dpm_table 352 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c dpm_table->count = count > max ? max : count; dpm_table 354 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c for (i = 0; i < dpm_table->count; i++) dpm_table 355 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c dpm_table->dpm_level[i].enabled = false; dpm_table 365 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; dpm_table 366 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c dpm_table->dpm_level[index].value = pcie_gen; dpm_table 367 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c dpm_table->dpm_level[index].param1 = pcie_lanes; dpm_table 368 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c dpm_table->dpm_level[index].enabled = 1; dpm_table 375 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; dpm_table 377 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c for (i = dpm_table->count; i > 0; i--) { dpm_table 379 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c if (dpm_table->dpm_level[i - 1].enabled) dpm_table 447 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c struct vi_dpm_table *dpm_table = (struct vi_dpm_table *)table; dpm_table 449 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c for (i = 0; i < dpm_table->count; i++) { dpm_table 450 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c if (value == dpm_table->dpm_level[i].value) { dpm_table 1224 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table, dpm_table 1229 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->count = 0; dpm_table 1232 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (i == 0 || dpm_table->dpm_levels[dpm_table->count - 1].value <= dpm_table 1234 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].value = dpm_table 1236 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].enabled = true; dpm_table 1237 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->count++; dpm_table 1244 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_pcie_table *pcie_table = &(data->dpm_table.pcie_table); dpm_table 1295 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table; dpm_table 1337 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 1339 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1342 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1344 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 1346 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1350 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count-1].value; dpm_table 1351 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1354 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.count = 0; dpm_table 1355 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 1357 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1361 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count-1].value; dpm_table 1362 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1364 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.eclk_table.count = 0; dpm_table 1365 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.eclk_table); dpm_table 1367 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (i == 0 || dpm_table->dpm_levels dpm_table 1368 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c [dpm_table->count - 1].value <= dpm_table 1370 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].value = dpm_table 1372 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].enabled = dpm_table 1374 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->count++; dpm_table 1377 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1379 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.vclk_table.count = 0; dpm_table 1380 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.dclk_table.count = 0; dpm_table 1381 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.vclk_table); dpm_table 1383 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (i == 0 || dpm_table->dpm_levels dpm_table 1384 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c [dpm_table->count - 1].value <= dpm_table 1386 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].value = dpm_table 1388 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].enabled = dpm_table 1390 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->count++; dpm_table 1393 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1395 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.dclk_table); dpm_table 1397 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (i == 0 || dpm_table->dpm_levels dpm_table 1398 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c [dpm_table->count - 1].value <= dpm_table 1400 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].value = dpm_table 1402 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[dpm_table->count].enabled = dpm_table 1404 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->count++; dpm_table 1407 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1410 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.dcef_table); dpm_table 1412 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1415 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1417 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.pixel_table); dpm_table 1419 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1422 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1424 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.display_table); dpm_table 1426 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1429 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1431 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.phy_table); dpm_table 1433 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table, dpm_table 1436 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 1450 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c memcpy(&(data->golden_dpm_table), &(data->dpm_table), dpm_table 1509 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.pcie_table); dpm_table 1666 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table = &(data->dpm_table.gfx_table); dpm_table 1670 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 1672 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].value, dpm_table 1682 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, dpm_table 1693 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 1694 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 1696 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].value, dpm_table 1706 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, dpm_table 1814 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table = dpm_table 1815 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.mem_table); dpm_table 1819 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 1821 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].value, dpm_table 1832 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, dpm_table 1952 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table = &(data->dpm_table.eclk_table); dpm_table 1956 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 1958 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].value, dpm_table 1968 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[j].value, dpm_table 2016 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.vclk_table); dpm_table 2018 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.dclk_table); dpm_table 3290 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *sclk_table = &(data->dpm_table.gfx_table); dpm_table 3293 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *mclk_table = &(data->dpm_table.mem_table); dpm_table 3333 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_dpm_table *dpm_table = &data->dpm_table; dpm_table 3342 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (count = 0; count < dpm_table->gfx_table.count; count++) dpm_table 3343 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->gfx_table.dpm_levels[count].value = odn_clk_table->entries[count].clk; dpm_table 3348 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (count = 0; count < dpm_table->mem_table.count; count++) dpm_table 3349 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->mem_table.dpm_levels[count].value = odn_clk_table->entries[count].clk; dpm_table 3374 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table, dpm_table 3379 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 3380 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if ((dpm_table->dpm_levels[i].value < low_limit) || dpm_table 3381 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c (dpm_table->dpm_levels[i].value > high_limit)) dpm_table 3382 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].enabled = false; dpm_table 3384 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].enabled = true; dpm_table 3390 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table, dpm_table 3396 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 3397 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if ((dpm_table->dpm_levels[i].value < low_limit) || dpm_table 3398 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c (dpm_table->dpm_levels[i].value > high_limit)) dpm_table 3399 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].enabled = false; dpm_table 3401 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].enabled = false; dpm_table 3403 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].enabled = true; dpm_table 3421 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.soc_table), dpm_table 3426 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.gfx_table), dpm_table 3432 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &(data->dpm_table.mem_table), dpm_table 3496 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level) { dpm_table 3500 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 3507 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level) { dpm_table 3518 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 3525 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level) { dpm_table 3529 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level = dpm_table 3545 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level) { dpm_table 3549 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 3556 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level) { dpm_table 3560 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 3567 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level) { dpm_table 3571 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level = dpm_table 3594 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 3596 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 3598 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 3600 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 3602 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.soc_table)); dpm_table 3604 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.soc_table)); dpm_table 3613 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.gfx_table.dpm_levels[i].enabled = true; dpm_table 3617 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.dpm_levels[i].enabled = true; dpm_table 3620 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.soc_table.dpm_levels[i].enabled = true; dpm_table 3772 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_dpm_table *dpm_table = &data->dpm_table; dpm_table 3785 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (mclk_idx < dpm_table->mem_table.count) { dpm_table 3786 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c *((uint32_t *)value) = dpm_table->mem_table.dpm_levels[mclk_idx].value; dpm_table 3914 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table = dpm_table 3915 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &data->dpm_table.dcef_table; dpm_table 3935 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 3936 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (dpm_table->dpm_levels[i].value == min_clocks.dcefClock) dpm_table 3940 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c if (i < dpm_table->count) { dpm_table 3942 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c clock_req.clock_freq_in_khz = dpm_table->dpm_levels[i].value * 10; dpm_table 3957 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level= idx; dpm_table 3969 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 3972 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 3991 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 3994 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 4013 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 4015 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 4017 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_lowest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 4019 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c vega10_find_highest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 4471 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *sclk_table = &(data->dpm_table.gfx_table); dpm_table 4472 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *mclk_table = &(data->dpm_table.mem_table); dpm_table 4473 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *soc_table = &(data->dpm_table.soc_table); dpm_table 4474 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dcef_table = &(data->dpm_table.dcef_table); dpm_table 4475 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_pcie_table *pcie_table = &(data->dpm_table.pcie_table); dpm_table 4751 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *sclk_table = &(data->dpm_table.gfx_table); dpm_table 4802 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *mclk_table = &(data->dpm_table.mem_table); dpm_table 5033 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &data->dpm_table.gfx_table; dpm_table 5035 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &data->dpm_table.soc_table; dpm_table 5037 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c &data->dpm_table.mem_table; dpm_table 5090 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table = &data->golden_dpm_table.mem_table; dpm_table 5105 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c for (i = 0; i < dpm_table->count; i++) { dpm_table 5119 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &data->dpm_table.soc_table; dpm_table 5127 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].value = podn_vdd_dep_on_socclk->entries[i].clk; dpm_table 5131 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[i].value = dep_table->entries[i].clk; dpm_table 5142 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[podn_vdd_dep_on_socclk->count - 1].value = dpm_table 5161 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c struct vega10_single_dpm_table *dpm_table; dpm_table 5177 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &data->dpm_table.gfx_table; dpm_table 5181 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table = &data->dpm_table.mem_table; dpm_table 5185 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c memcpy(&(data->dpm_table), &(data->golden_dpm_table), sizeof(struct vega10_dpm_table)); dpm_table 5210 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c dpm_table->dpm_levels[input_level].value = input_clk; dpm_table 311 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h struct vega10_dpm_table dpm_table; dpm_table 519 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table, PPCLK_e clk_id) dpm_table 529 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = num_of_levels; dpm_table 536 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[i].value = clk; dpm_table 537 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[i].enabled = true; dpm_table 556 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table; dpm_table 559 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c memset(&data->dpm_table, 0, sizeof(data->dpm_table)); dpm_table 562 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 564 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_SOCCLK); dpm_table 569 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 570 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.soc_clock / 100; dpm_table 572 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 575 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 577 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_GFXCLK); dpm_table 582 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 583 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.gfx_clock / 100; dpm_table 585 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 588 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 590 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_UCLK); dpm_table 595 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 596 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.mem_clock / 100; dpm_table 598 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 601 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.eclk_table); dpm_table 603 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_ECLK); dpm_table 608 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 609 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.eclock / 100; dpm_table 611 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 614 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.vclk_table); dpm_table 616 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_VCLK); dpm_table 621 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 622 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.vclock / 100; dpm_table 624 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 627 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.dclk_table); dpm_table 629 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_DCLK); dpm_table 634 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 635 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.dclock / 100; dpm_table 637 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 640 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.dcef_table); dpm_table 642 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_DCEFCLK); dpm_table 647 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 1; dpm_table 648 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.dcef_clock / 100; dpm_table 650 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 653 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.pixel_table); dpm_table 655 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_PIXCLK); dpm_table 660 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 0; dpm_table 661 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 664 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.display_table); dpm_table 666 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_DISPCLK); dpm_table 671 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 0; dpm_table 672 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 675 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.phy_table); dpm_table 677 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ret = vega12_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_PHYCLK); dpm_table 682 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->count = 0; dpm_table 683 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 686 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c memcpy(&(data->golden_dpm_table), &(data->dpm_table), dpm_table 696 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table = &(data->dpm_table.gfx_table); dpm_table 705 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (dpm_table->count > 2) dpm_table 706 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_level = dpm_table->count - 2; dpm_table 707 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c else if (dpm_table->count == 2) dpm_table 713 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[min_level].value; dpm_table 1045 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.gfx_table.dpm_state.soft_min_level; dpm_table 1054 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.mem_table.dpm_state.soft_min_level; dpm_table 1061 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.mem_table.dpm_state.hard_min_level; dpm_table 1070 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.vclk_table.dpm_state.soft_min_level; dpm_table 1078 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.dclk_table.dpm_state.soft_min_level; dpm_table 1088 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.eclk_table.dpm_state.soft_min_level; dpm_table 1098 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.soc_table.dpm_state.soft_min_level; dpm_table 1108 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c min_freq = data->dpm_table.dcef_table.dpm_state.hard_min_level; dpm_table 1128 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c max_freq = data->dpm_table.gfx_table.dpm_state.soft_max_level; dpm_table 1138 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c max_freq = data->dpm_table.mem_table.dpm_state.soft_max_level; dpm_table 1148 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c max_freq = data->dpm_table.vclk_table.dpm_state.soft_max_level; dpm_table 1156 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c max_freq = data->dpm_table.dclk_table.dpm_state.soft_max_level; dpm_table 1165 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c max_freq = data->dpm_table.eclk_table.dpm_state.soft_max_level; dpm_table 1175 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c max_freq = data->dpm_table.soc_table.dpm_state.soft_max_level; dpm_table 1516 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_level = vega12_find_highest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 1518 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 1519 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 1520 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_level].value; dpm_table 1522 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_level = vega12_find_highest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 1524 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 1525 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 1526 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_level].value; dpm_table 1545 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_level = vega12_find_lowest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 1547 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 1548 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 1549 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_level].value; dpm_table 1551 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_level = vega12_find_lowest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 1553 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 1554 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 1555 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_level].value; dpm_table 1586 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *gfx_dpm_table = &(data->dpm_table.gfx_table); dpm_table 1587 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *mem_dpm_table = &(data->dpm_table.mem_table); dpm_table 1588 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *soc_dpm_table = &(data->dpm_table.soc_table); dpm_table 1716 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table; dpm_table 1721 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 1722 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ucount = (dpm_table->count > MAX_NUM_CLOCKS) ? dpm_table 1723 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c MAX_NUM_CLOCKS : dpm_table->count; dpm_table 1727 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 1749 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table; dpm_table 1753 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 1754 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ucount = (dpm_table->count > MAX_NUM_CLOCKS) ? dpm_table 1755 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c MAX_NUM_CLOCKS : dpm_table->count; dpm_table 1758 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c clocks->data[i].clocks_in_khz = dpm_table->dpm_levels[i].value * 1000; dpm_table 1759 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->mclk_latency_table.entries[i].frequency = dpm_table->dpm_levels[i].value * 100; dpm_table 1762 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c vega12_get_mem_latency(hwmgr, dpm_table->dpm_levels[i].value); dpm_table 1776 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table; dpm_table 1782 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.dcef_table); dpm_table 1783 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ucount = (dpm_table->count > MAX_NUM_CLOCKS) ? dpm_table 1784 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c MAX_NUM_CLOCKS : dpm_table->count; dpm_table 1788 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 1804 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table; dpm_table 1810 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 1811 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c ucount = (dpm_table->count > MAX_NUM_CLOCKS) ? dpm_table 1812 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c MAX_NUM_CLOCKS : dpm_table->count; dpm_table 1816 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 1892 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 1893 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_min_level].value; dpm_table 1894 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 1895 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_max_level].value; dpm_table 1912 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 1913 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_min_level].value; dpm_table 1914 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 1915 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_max_level].value; dpm_table 1933 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (soft_max_level >= data->dpm_table.soc_table.count) { dpm_table 1936 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.soc_table.count - 1); dpm_table 1940 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level = dpm_table 1941 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_min_level].value; dpm_table 1942 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level = dpm_table 1943 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_max_level].value; dpm_table 1960 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (hard_min_level >= data->dpm_table.dcef_table.count) { dpm_table 1963 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.dcef_table.count - 1); dpm_table 1967 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.dcef_table.dpm_state.hard_min_level = dpm_table 1968 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->dpm_table.dcef_table.dpm_levels[hard_min_level].value; dpm_table 2174 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table; dpm_table 2185 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 2186 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2187 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2188 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2189 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2192 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (VEGA12_UMD_PSTATE_GFXCLK_LEVEL < dpm_table->count) { dpm_table 2193 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_GFXCLK_LEVEL].value; dpm_table 2194 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_GFXCLK_LEVEL].value; dpm_table 2198 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2199 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[0].value; dpm_table 2203 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2204 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2209 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 2210 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2211 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2212 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2213 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2216 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (VEGA12_UMD_PSTATE_MCLK_LEVEL < dpm_table->count) { dpm_table 2217 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_MCLK_LEVEL].value; dpm_table 2218 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_MCLK_LEVEL].value; dpm_table 2222 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2223 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[0].value; dpm_table 2227 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2228 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2233 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (dpm_table->dpm_state.hard_min_level < (hwmgr->display_config->min_mem_set_clock / 100)) dpm_table 2234 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = hwmgr->display_config->min_mem_set_clock / 100; dpm_table 2238 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2241 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (dpm_table->dpm_levels[i].value >= (hwmgr->display_config->min_mem_set_clock / 100)) { dpm_table 2242 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[i].value; dpm_table 2250 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2253 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.vclk_table); dpm_table 2254 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2255 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2256 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2257 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2260 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (VEGA12_UMD_PSTATE_UVDCLK_LEVEL < dpm_table->count) { dpm_table 2261 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2262 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2266 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2267 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2272 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.dclk_table); dpm_table 2273 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2274 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2275 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2276 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2279 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (VEGA12_UMD_PSTATE_UVDCLK_LEVEL < dpm_table->count) { dpm_table 2280 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2281 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2285 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2286 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2291 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 2292 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2293 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2294 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2295 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2298 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (VEGA12_UMD_PSTATE_SOCCLK_LEVEL < dpm_table->count) { dpm_table 2299 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_SOCCLK_LEVEL].value; dpm_table 2300 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_SOCCLK_LEVEL].value; dpm_table 2304 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2305 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2310 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table = &(data->dpm_table.eclk_table); dpm_table 2311 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2312 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2313 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2314 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2317 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (VEGA12_UMD_PSTATE_VCEMCLK_LEVEL < dpm_table->count) { dpm_table 2318 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_VCEMCLK_LEVEL].value; dpm_table 2319 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA12_UMD_PSTATE_VCEMCLK_LEVEL].value; dpm_table 2323 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2324 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2332 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *dpm_table) dpm_table 2338 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c PP_ASSERT_WITH_CODE(dpm_table->count > 0, dpm_table 2341 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c PP_ASSERT_WITH_CODE(dpm_table->count <= NUM_UCLK_DPM_LEVELS, dpm_table 2345 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2348 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c (PPCLK_UCLK << 16 ) | dpm_table->dpm_state.hard_min_level)), dpm_table 2365 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c &data->dpm_table.mem_table); dpm_table 2480 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_dpm_table *dpm_table = &(data->dpm_table); dpm_table 2483 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c for (i = 0; i < dpm_table->gfx_table.count; i++) { dpm_table 2484 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (dpm_table->gfx_table.dpm_levels[i].enabled && dpm_table 2485 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->gfx_table.dpm_levels[i].value >= min_sclk) { dpm_table 2491 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c for (i = 0; i < dpm_table->mem_table.count; i++) { dpm_table 2492 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c if (dpm_table->mem_table.dpm_levels[i].enabled && dpm_table 2493 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c dpm_table->mem_table.dpm_levels[i].value >= min_mclk) { dpm_table 2511 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *sclk_table = &(data->dpm_table.gfx_table); dpm_table 2532 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c struct vega12_single_dpm_table *mclk_table = &(data->dpm_table.mem_table); dpm_table 314 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h struct vega12_dpm_table dpm_table; dpm_table 560 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table, PPCLK_e clk_id) dpm_table 570 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = num_of_levels; dpm_table 577 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[i].value = clk; dpm_table 578 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[i].enabled = true; dpm_table 588 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table; dpm_table 591 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 593 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_GFXCLK); dpm_table 598 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 599 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.gfx_clock / 100; dpm_table 609 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table; dpm_table 612 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 614 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_UCLK); dpm_table 619 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 620 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.mem_clock / 100; dpm_table 638 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table; dpm_table 641 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c memset(&data->dpm_table, 0, sizeof(data->dpm_table)); dpm_table 644 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 646 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_SOCCLK); dpm_table 651 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 652 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.soc_clock / 100; dpm_table 654 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 657 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 661 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 664 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 668 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 671 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.eclk_table); dpm_table 673 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_ECLK); dpm_table 678 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 679 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.eclock / 100; dpm_table 681 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 684 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.vclk_table); dpm_table 686 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_VCLK); dpm_table 691 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 692 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.vclock / 100; dpm_table 694 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 697 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.dclk_table); dpm_table 699 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_DCLK); dpm_table 704 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 705 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.dclock / 100; dpm_table 707 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 710 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.dcef_table); dpm_table 712 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_DCEFCLK); dpm_table 717 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 718 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.dcef_clock / 100; dpm_table 720 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 723 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.pixel_table); dpm_table 725 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_PIXCLK); dpm_table 730 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 0; dpm_table 731 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 734 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.display_table); dpm_table 736 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_DISPCLK); dpm_table 741 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 0; dpm_table 742 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 745 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.phy_table); dpm_table 747 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_PHYCLK); dpm_table 752 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 0; dpm_table 753 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 756 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.fclk_table); dpm_table 758 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ret = vega20_setup_single_dpm_table(hwmgr, dpm_table, PPCLK_FCLK); dpm_table 763 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->count = 1; dpm_table 764 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[0].value = data->vbios_boot_state.fclock / 100; dpm_table 766 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_init_dpm_state(&(dpm_table->dpm_state)); dpm_table 769 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c memcpy(&(data->golden_dpm_table), &(data->dpm_table), dpm_table 1040 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[data->dpm_table.mem_table.count - 2].value; dpm_table 1443 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c &(data->dpm_table.gfx_table); dpm_table 1489 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c &(data->dpm_table.mem_table); dpm_table 1534 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *gfx_table = &(data->dpm_table.gfx_table); dpm_table 1535 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *mem_table = &(data->dpm_table.mem_table); dpm_table 1802 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.gfx_table.dpm_state.soft_min_level; dpm_table 1812 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.mem_table.dpm_state.soft_min_level; dpm_table 1822 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.vclk_table.dpm_state.soft_min_level; dpm_table 1830 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.dclk_table.dpm_state.soft_min_level; dpm_table 1841 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.eclk_table.dpm_state.soft_min_level; dpm_table 1852 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.soc_table.dpm_state.soft_min_level; dpm_table 1863 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.fclk_table.dpm_state.soft_min_level; dpm_table 1874 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c min_freq = data->dpm_table.dcef_table.dpm_state.hard_min_level; dpm_table 1895 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.gfx_table.dpm_state.soft_max_level; dpm_table 1906 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.mem_table.dpm_state.soft_max_level; dpm_table 1917 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.vclk_table.dpm_state.soft_max_level; dpm_table 1925 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.dclk_table.dpm_state.soft_max_level; dpm_table 1935 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.eclk_table.dpm_state.soft_max_level; dpm_table 1946 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.soc_table.dpm_state.soft_max_level; dpm_table 1957 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c max_freq = data->dpm_table.fclk_table.dpm_state.soft_max_level; dpm_table 2294 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table = dpm_table 2295 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c &data->dpm_table.mem_table; dpm_table 2320 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = min_clocks.memoryClock / 100; dpm_table 2323 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c (PPCLK_UCLK << 16 ) | dpm_table->dpm_state.hard_min_level)), dpm_table 2338 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_level = vega20_find_highest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 2340 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 2341 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 2342 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_level].value; dpm_table 2344 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_level = vega20_find_highest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 2346 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 2347 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 2348 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_level].value; dpm_table 2350 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_level = vega20_find_highest_dpm_level(&(data->dpm_table.soc_table)); dpm_table 2352 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level = dpm_table 2353 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level = dpm_table 2354 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_level].value; dpm_table 2380 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_level = vega20_find_lowest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 2382 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 2383 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 2384 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_level].value; dpm_table 2386 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_level = vega20_find_lowest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 2388 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 2389 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 2390 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_level].value; dpm_table 2392 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_level = vega20_find_lowest_dpm_level(&(data->dpm_table.soc_table)); dpm_table 2394 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level = dpm_table 2395 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level = dpm_table 2396 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_level].value; dpm_table 2425 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_find_lowest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 2427 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_find_highest_dpm_level(&(data->dpm_table.gfx_table)); dpm_table 2429 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 2430 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_min_level].value; dpm_table 2431 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 2432 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_max_level].value; dpm_table 2436 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_find_lowest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 2438 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_find_highest_dpm_level(&(data->dpm_table.mem_table)); dpm_table 2440 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 2441 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_min_level].value; dpm_table 2442 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 2443 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_max_level].value; dpm_table 2447 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_find_lowest_dpm_level(&(data->dpm_table.soc_table)); dpm_table 2449 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_find_highest_dpm_level(&(data->dpm_table.soc_table)); dpm_table 2451 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level = dpm_table 2452 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_min_level].value; dpm_table 2453 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level = dpm_table 2454 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_max_level].value; dpm_table 2477 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *gfx_dpm_table = &(data->dpm_table.gfx_table); dpm_table 2478 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *mem_dpm_table = &(data->dpm_table.mem_table); dpm_table 2479 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *soc_dpm_table = &(data->dpm_table.soc_table); dpm_table 2518 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (soft_max_level >= data->dpm_table.gfx_table.count) { dpm_table 2521 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.count - 1); dpm_table 2525 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_min_level = dpm_table 2526 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_min_level].value; dpm_table 2527 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_state.soft_max_level = dpm_table 2528 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.gfx_table.dpm_levels[soft_max_level].value; dpm_table 2545 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (soft_max_level >= data->dpm_table.mem_table.count) { dpm_table 2548 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.count - 1); dpm_table 2552 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_min_level = dpm_table 2553 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_min_level].value; dpm_table 2554 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_state.soft_max_level = dpm_table 2555 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.mem_table.dpm_levels[soft_max_level].value; dpm_table 2573 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (soft_max_level >= data->dpm_table.soc_table.count) { dpm_table 2576 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.count - 1); dpm_table 2580 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_min_level = dpm_table 2581 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_min_level].value; dpm_table 2582 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_state.soft_max_level = dpm_table 2583 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.soc_table.dpm_levels[soft_max_level].value; dpm_table 2601 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (soft_max_level >= data->dpm_table.fclk_table.count) { dpm_table 2604 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.fclk_table.count - 1); dpm_table 2608 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.fclk_table.dpm_state.soft_min_level = dpm_table 2609 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.fclk_table.dpm_levels[soft_min_level].value; dpm_table 2610 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.fclk_table.dpm_state.soft_max_level = dpm_table 2611 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.fclk_table.dpm_levels[soft_max_level].value; dpm_table 2628 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (hard_min_level >= data->dpm_table.dcef_table.count) { dpm_table 2631 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.dcef_table.count - 1); dpm_table 2635 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.dcef_table.dpm_state.hard_min_level = dpm_table 2636 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->dpm_table.dcef_table.dpm_levels[hard_min_level].value; dpm_table 2758 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table = &(data->dpm_table.gfx_table); dpm_table 2764 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c count = (dpm_table->count > MAX_NUM_CLOCKS) ? MAX_NUM_CLOCKS : dpm_table->count; dpm_table 2769 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 2786 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table = &(data->dpm_table.mem_table); dpm_table 2792 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c count = (dpm_table->count > MAX_NUM_CLOCKS) ? MAX_NUM_CLOCKS : dpm_table->count; dpm_table 2798 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 2801 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c vega20_get_mem_latency(hwmgr, dpm_table->dpm_levels[i].value); dpm_table 2811 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table = &(data->dpm_table.dcef_table); dpm_table 2817 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c count = (dpm_table->count > MAX_NUM_CLOCKS) ? MAX_NUM_CLOCKS : dpm_table->count; dpm_table 2822 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 2833 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table = &(data->dpm_table.soc_table); dpm_table 2839 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c count = (dpm_table->count > MAX_NUM_CLOCKS) ? MAX_NUM_CLOCKS : dpm_table->count; dpm_table 2844 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_levels[i].value * 1000; dpm_table 3264 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c &(data->dpm_table.fclk_table); dpm_table 3478 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table) dpm_table 3484 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c PP_ASSERT_WITH_CODE(dpm_table->count > 0, dpm_table 3487 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c PP_ASSERT_WITH_CODE(dpm_table->count <= NUM_UCLK_DPM_LEVELS, dpm_table 3491 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3494 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c (PPCLK_UCLK << 16 ) | dpm_table->dpm_state.hard_min_level)), dpm_table 3505 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table = &(data->dpm_table.fclk_table); dpm_table 3509 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c PP_ASSERT_WITH_CODE(dpm_table->count > 0, dpm_table 3512 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c PP_ASSERT_WITH_CODE(dpm_table->count <= NUM_FCLK_DPM_LEVELS, dpm_table 3516 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3519 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c (PPCLK_FCLK << 16 ) | dpm_table->dpm_state.soft_min_level)), dpm_table 3536 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c &data->dpm_table.mem_table); dpm_table 3632 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c struct vega20_single_dpm_table *dpm_table; dpm_table 3644 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.gfx_table); dpm_table 3645 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3646 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3647 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3648 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3651 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (VEGA20_UMD_PSTATE_GFXCLK_LEVEL < dpm_table->count) { dpm_table 3652 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_GFXCLK_LEVEL].value; dpm_table 3653 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_GFXCLK_LEVEL].value; dpm_table 3657 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3658 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[0].value; dpm_table 3662 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3663 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3668 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.mem_table); dpm_table 3669 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3670 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3671 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3672 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3675 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (VEGA20_UMD_PSTATE_MCLK_LEVEL < dpm_table->count) { dpm_table 3676 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_MCLK_LEVEL].value; dpm_table 3677 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_MCLK_LEVEL].value; dpm_table 3681 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3682 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[0].value; dpm_table 3686 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3687 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3692 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (dpm_table->dpm_state.hard_min_level < (hwmgr->display_config->min_mem_set_clock / 100)) dpm_table 3693 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = hwmgr->display_config->min_mem_set_clock / 100; dpm_table 3697 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3700 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (dpm_table->dpm_levels[i].value >= (hwmgr->display_config->min_mem_set_clock / 100)) { dpm_table 3701 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[i].value; dpm_table 3709 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3712 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c (dpm_table->dpm_state.hard_min_level == dpm_table->dpm_levels[dpm_table->count - 1].value)) || dpm_table 3713 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c hwmgr->display_config->min_mem_set_clock / 100 >= dpm_table->dpm_levels[dpm_table->count - 1].value) dpm_table 3719 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.fclk_table); dpm_table 3720 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3721 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3722 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3723 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3725 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3728 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.vclk_table); dpm_table 3729 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3730 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3731 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3732 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3735 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (VEGA20_UMD_PSTATE_UVDCLK_LEVEL < dpm_table->count) { dpm_table 3736 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 3737 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 3741 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3742 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3747 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.dclk_table); dpm_table 3748 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3749 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3750 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3751 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3754 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (VEGA20_UMD_PSTATE_UVDCLK_LEVEL < dpm_table->count) { dpm_table 3755 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 3756 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 3760 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3761 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3766 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.soc_table); dpm_table 3767 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3768 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3769 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3770 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3773 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (VEGA20_UMD_PSTATE_SOCCLK_LEVEL < dpm_table->count) { dpm_table 3774 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_SOCCLK_LEVEL].value; dpm_table 3775 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_SOCCLK_LEVEL].value; dpm_table 3779 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3780 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3785 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table = &(data->dpm_table.eclk_table); dpm_table 3786 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 3787 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3788 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 3789 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.hard_max_level = VG20_CLOCK_MAX_DEFAULT; dpm_table 3792 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c if (VEGA20_UMD_PSTATE_VCEMCLK_LEVEL < dpm_table->count) { dpm_table 3793 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_VCEMCLK_LEVEL].value; dpm_table 3794 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_VCEMCLK_LEVEL].value; dpm_table 3798 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 3799 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 437 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.h struct vega20_dpm_table dpm_table; dpm_table 474 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 484 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 486 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 492 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if (i == (dpm_table->sclk_table.count - 1)) dpm_table 499 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c smu_data->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; dpm_table 501 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 718 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c SMU7_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); dpm_table 724 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 256)); dpm_table 725 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); dpm_table 727 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->DTETjOffset = 0; dpm_table 728 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->GpuTjMax = (uint8_t)(data->thermal_temp_setting.temperature_high / PP_TEMPERATURE_UNITS_PER_CENTIGRADES); dpm_table 729 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->GpuTjHyst = 8; dpm_table 731 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->DTEAmbientTempBase = defaults->dte_ambient_temp_base; dpm_table 734 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->PPM_PkgPwrLimit = (uint16_t)ppm->dgpu_tdp * 256 / 1000; dpm_table 735 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->PPM_TemperatureLimit = (uint16_t)ppm->tj_max * 256; dpm_table 737 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->PPM_PkgPwrLimit = 0; dpm_table 738 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->PPM_TemperatureLimit = 0; dpm_table 741 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_PkgPwrLimit); dpm_table 742 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_TemperatureLimit); dpm_table 744 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->BAPM_TEMP_GRADIENT = PP_HOST_TO_SMC_UL(defaults->bapm_temp_gradient); dpm_table 751 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*def1); dpm_table 752 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c dpm_table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*def2); dpm_table 998 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 1003 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { dpm_table 1005 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 1007 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c (uint8_t)encode_pcie_lane_width(dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 1014 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c (uint8_t)dpm_table->pcie_speed_table.count; dpm_table 1016 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 1302 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 1314 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 1315 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), dpm_table 1317 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c result = ci_populate_single_memory_level(hwmgr, dpm_table->mclk_table.dpm_levels[i].value, dpm_table 1327 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if ((dpm_table->mclk_table.count >= 2) dpm_table 1337 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c smu_data->smc_state_table.MemoryDpmLevelCount = (uint8_t)dpm_table->mclk_table.count; dpm_table 1338 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c data->dpm_level_enable_mask.mclk_dpm_enable_mask = phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 1339 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c smu_data->smc_state_table.MemoryLevel[dpm_table->mclk_table.count-1].DisplayWatermark = PPSMC_DISPLAY_WATERMARK_HIGH; dpm_table 1658 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0; i < data->dpm_table.sclk_table.count; i++) { dpm_table 1659 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { dpm_table 1661 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c (hwmgr, data->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 1662 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 1694 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c result = phm_find_boot_level(&(data->dpm_table.sclk_table), dpm_table 1704 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c result = phm_find_boot_level(&(data->dpm_table.mclk_table), dpm_table 1794 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0; i < data->dpm_table.mclk_table.count; i++) { dpm_table 1797 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c data->dpm_table.mclk_table.dpm_levels[i].value, dpm_table 1830 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c sizeof(SMU7_Discrete_MCRegisterSet) * data->dpm_table.mclk_table.count, dpm_table 2052 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE((1 <= data->dpm_table.pcie_speed_table.count), dpm_table 2056 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c table->PCIeBootLinkLevel = (uint8_t)data->dpm_table.pcie_speed_table.count; dpm_table 492 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c SMU73_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); dpm_table 504 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->DefaultTdp = PP_HOST_TO_SMC_US( dpm_table 506 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TargetTdp = PP_HOST_TO_SMC_US( dpm_table 513 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->GpuTjMax = (uint8_t)(cac_dtp_table->usTargetOperatingTemp); dpm_table 514 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->GpuTjHyst = 8; dpm_table 516 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->DTEAmbientTempBase = defaults->DTEAmbientTempBase; dpm_table 519 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitEdge = PP_HOST_TO_SMC_US( dpm_table 521 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitHotspot = PP_HOST_TO_SMC_US( dpm_table 523 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitLiquid1 = PP_HOST_TO_SMC_US( dpm_table 525 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitLiquid2 = PP_HOST_TO_SMC_US( dpm_table 527 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitVrVddc = PP_HOST_TO_SMC_US( dpm_table 529 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitVrMvdd = PP_HOST_TO_SMC_US( dpm_table 531 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->TemperatureLimitPlx = PP_HOST_TO_SMC_US( dpm_table 534 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainEdge = PP_HOST_TO_SMC_US( dpm_table 536 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainHotspot = PP_HOST_TO_SMC_US( dpm_table 538 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainLiquid = PP_HOST_TO_SMC_US( dpm_table 540 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainVrVddc = PP_HOST_TO_SMC_US( dpm_table 542 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainVrMvdd = PP_HOST_TO_SMC_US( dpm_table 544 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainPlx = PP_HOST_TO_SMC_US( dpm_table 546 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->FanGainHbm = PP_HOST_TO_SMC_US( dpm_table 549 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Liquid1_I2C_address = cac_dtp_table->ucLiquid1_I2C_address; dpm_table 550 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Liquid2_I2C_address = cac_dtp_table->ucLiquid2_I2C_address; dpm_table 551 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Vr_I2C_address = cac_dtp_table->ucVr_I2C_address; dpm_table 552 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Plx_I2C_address = cac_dtp_table->ucPlx_I2C_address; dpm_table 555 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Liquid_I2C_LineSCL = uc_scl; dpm_table 556 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Liquid_I2C_LineSDA = uc_sda; dpm_table 559 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Vr_I2C_LineSCL = uc_scl; dpm_table 560 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Vr_I2C_LineSDA = uc_sda; dpm_table 563 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Plx_I2C_LineSCL = uc_scl; dpm_table 564 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->Plx_I2C_LineSDA = uc_sda; dpm_table 832 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 838 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { dpm_table 840 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 842 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 850 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c (uint8_t)dpm_table->pcie_speed_table.count; dpm_table 852 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 1008 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 1012 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint8_t pcie_entry_cnt = (uint8_t) data->dpm_table.pcie_speed_table.count; dpm_table 1026 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 1028 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 1042 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c levels[dpm_table->sclk_table.count - 1].DisplayWatermark = dpm_table 1046 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c (uint8_t)dpm_table->sclk_table.count; dpm_table 1048 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 1055 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) dpm_table 1080 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 2; i < dpm_table->sclk_table.count; i++) dpm_table 1227 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 1238 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 1239 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), dpm_table 1243 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c dpm_table->mclk_table.dpm_levels[i].value, dpm_table 1261 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c (uint8_t)dpm_table->mclk_table.count; dpm_table 1263 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 1265 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c levels[dpm_table->mclk_table.count - 1].DisplayWatermark = dpm_table 1320 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c data->dpm_table.sclk_table.dpm_levels[0].value; dpm_table 1378 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c data->dpm_table.mclk_table.dpm_levels[0].value; dpm_table 1399 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c data->dpm_table.mclk_table.dpm_levels[0].value, dpm_table 1537 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (i = 0; i < data->dpm_table.sclk_table.count; i++) { dpm_table 1538 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { dpm_table 1540 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c data->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 1541 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 1615 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c result = phm_find_boot_level(&(data->dpm_table.sclk_table), dpm_table 1619 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c result = phm_find_boot_level(&(data->dpm_table.mclk_table), dpm_table 767 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 772 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { dpm_table 774 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 776 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c (uint8_t)encode_pcie_lane_width(dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 788 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c (uint8_t)dpm_table->pcie_speed_table.count; dpm_table 790 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 963 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 980 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 982 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 996 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if (dpm_table->sclk_table.count > 1) dpm_table 997 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c smu_data->smc_state_table.GraphicsLevel[dpm_table->sclk_table.count-1].DisplayWatermark = dpm_table 1001 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c (uint8_t)dpm_table->sclk_table.count; dpm_table 1003 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 1026 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 2; i < dpm_table->sclk_table.count; i++) { dpm_table 1350 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 1361 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 1362 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), dpm_table 1364 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c result = iceland_populate_single_memory_level(hwmgr, dpm_table->mclk_table.dpm_levels[i].value, dpm_table 1382 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c smu_data->smc_state_table.MemoryDpmLevelCount = (uint8_t)dpm_table->mclk_table.count; dpm_table 1383 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c data->dpm_level_enable_mask.mclk_dpm_enable_mask = phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 1385 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c smu_data->smc_state_table.MemoryLevel[dpm_table->mclk_table.count-1].DisplayWatermark = PPSMC_DISPLAY_WATERMARK_HIGH; dpm_table 1621 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0; i < data->dpm_table.sclk_table.count; i++) { dpm_table 1622 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { dpm_table 1624 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c (hwmgr, data->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 1625 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 1657 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c result = phm_find_boot_level(&(data->dpm_table.sclk_table), dpm_table 1667 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c result = phm_find_boot_level(&(data->dpm_table.mclk_table), dpm_table 1761 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0; i < data->dpm_table.mclk_table.count; i++) { dpm_table 1764 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c data->dpm_table.mclk_table.dpm_levels[i].value, dpm_table 1798 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c sizeof(SMU71_Discrete_MCRegisterSet) * data->dpm_table.mclk_table.count, dpm_table 1854 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c SMU71_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); dpm_table 1866 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 256)); dpm_table 1867 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usConfigurableTDP * 256)); dpm_table 1870 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->DTETjOffset = 0; dpm_table 1872 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->GpuTjMax = (uint8_t)(data->thermal_temp_setting.temperature_high / PP_TEMPERATURE_UNITS_PER_CENTIGRADES); dpm_table 1873 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->GpuTjHyst = 8; dpm_table 1875 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->DTEAmbientTempBase = defaults->dte_ambient_temp_base; dpm_table 1879 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->PPM_PkgPwrLimit = (uint16_t)ppm->dgpu_tdp * 256 / 1000; dpm_table 1880 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->PPM_TemperatureLimit = (uint16_t)ppm->tj_max * 256; dpm_table 1882 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->PPM_PkgPwrLimit = 0; dpm_table 1883 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->PPM_TemperatureLimit = 0; dpm_table 1886 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_PkgPwrLimit); dpm_table 1887 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c CONVERT_FROM_HOST_TO_SMC_US(dpm_table->PPM_TemperatureLimit); dpm_table 1889 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->BAPM_TEMP_GRADIENT = PP_HOST_TO_SMC_UL(defaults->bapm_temp_gradient); dpm_table 1896 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*def1); dpm_table 1897 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c dpm_table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*def2); dpm_table 771 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 776 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { dpm_table 778 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 780 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 788 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c (uint8_t)dpm_table->pcie_speed_table.count; dpm_table 792 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 981 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; dpm_table 985 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c uint8_t pcie_entry_cnt = (uint8_t) hw_data->dpm_table.pcie_speed_table.count; dpm_table 1001 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 1004 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 1019 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c (uint8_t)dpm_table->sclk_table.count; dpm_table 1021 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 1029 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) dpm_table 1054 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 2; i < dpm_table->sclk_table.count; i++) dpm_table 1128 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; dpm_table 1139 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 1140 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), dpm_table 1144 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c dpm_table->mclk_table.dpm_levels[i].value, dpm_table 1146 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c if (i == dpm_table->mclk_table.count - 1) { dpm_table 1163 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c (uint8_t)dpm_table->mclk_table.count; dpm_table 1165 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 1262 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c data->dpm_table.mclk_table.dpm_levels[0].value, dpm_table 1370 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 0; i < hw_data->dpm_table.sclk_table.count; i++) { dpm_table 1371 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (j = 0; j < hw_data->dpm_table.mclk_table.count; j++) { dpm_table 1373 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c hw_data->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 1374 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c hw_data->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 1377 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c result = atomctrl_set_ac_timing_ai(hwmgr, hw_data->dpm_table.mclk_table.dpm_levels[j].value, j); dpm_table 1459 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c result = phm_find_boot_level(&(data->dpm_table.sclk_table), dpm_table 1463 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c result = phm_find_boot_level(&(data->dpm_table.mclk_table), dpm_table 1988 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c for (i = 0; i <= hw_data->dpm_table.pcie_speed_table.count; i++) { dpm_table 510 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 515 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { dpm_table 517 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 519 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c (uint8_t)encode_pcie_lane_width(dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 531 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c (uint8_t)dpm_table->pcie_speed_table.count; dpm_table 533 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 691 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 693 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint8_t pcie_entry_count = (uint8_t) data->dpm_table.pcie_speed_table.count; dpm_table 710 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 712 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 726 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c if (dpm_table->sclk_table.count > 1) dpm_table 727 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c smu_data->smc_state_table.GraphicsLevel[dpm_table->sclk_table.count-1].DisplayWatermark = dpm_table 731 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c (uint8_t)dpm_table->sclk_table.count; dpm_table 733 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 740 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 770 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 2; i < dpm_table->sclk_table.count; i++) dpm_table 1091 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 1107 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 1108 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), dpm_table 1113 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->mclk_table.dpm_levels[i].value, dpm_table 1130 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c smu_data->smc_state_table.MemoryDpmLevelCount = (uint8_t)dpm_table->mclk_table.count; dpm_table 1131 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c data->dpm_level_enable_mask.mclk_dpm_enable_mask = phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 1133 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c smu_data->smc_state_table.MemoryLevel[dpm_table->mclk_table.count-1].DisplayWatermark = PPSMC_DISPLAY_WATERMARK_HIGH; dpm_table 1497 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0; i < data->dpm_table.sclk_table.count; i++) { dpm_table 1498 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (j = 0; j < data->dpm_table.mclk_table.count; j++) { dpm_table 1500 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c (hwmgr, data->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 1501 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c data->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 1533 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c result = phm_find_boot_level(&(data->dpm_table.sclk_table), dpm_table 1545 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c result = phm_find_boot_level(&(data->dpm_table.mclk_table), dpm_table 1831 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c SMU72_Discrete_DpmTable *dpm_table = &(smu_data->smc_state_table); dpm_table 1838 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->DefaultTdp = PP_HOST_TO_SMC_US( dpm_table 1840 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->TargetTdp = PP_HOST_TO_SMC_US( dpm_table 1847 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->GpuTjMax = (uint8_t)(cac_dtp_table->usTargetOperatingTemp); dpm_table 1848 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->GpuTjHyst = 8; dpm_table 1850 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->DTEAmbientTempBase = defaults->dte_ambient_temp_base; dpm_table 1852 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->BAPM_TEMP_GRADIENT = dpm_table 1860 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->BAPMTI_R[i][j][k] = dpm_table 1862 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c dpm_table->BAPMTI_RC[i][j][k] = dpm_table 2140 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c for (i = 0; i < data->dpm_table.mclk_table.count; i++) { dpm_table 2143 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c data->dpm_table.mclk_table.dpm_levels[i].value, dpm_table 2180 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c data->dpm_table.mclk_table.count, dpm_table 2346 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c PP_ASSERT_WITH_CODE((1 <= data->dpm_table.pcie_speed_table.count), dpm_table 2350 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c table->PCIeBootLinkLevel = (uint8_t) (data->dpm_table.pcie_speed_table.count); dpm_table 573 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c struct smu7_dpm_table *dpm_table = &data->dpm_table; dpm_table 578 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) { dpm_table 580 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c (uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 582 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 590 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c (uint8_t)dpm_table->pcie_speed_table.count; dpm_table 594 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 865 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; dpm_table 869 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c uint8_t pcie_entry_cnt = (uint8_t) hw_data->dpm_table.pcie_speed_table.count; dpm_table 885 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 888 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 906 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c (uint8_t)dpm_table->sclk_table.count; dpm_table 908 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 910 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) dpm_table 919 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i < dpm_table->sclk_table.count; i++) dpm_table 944 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 2; i < dpm_table->sclk_table.count; i++) dpm_table 1035 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c struct smu7_dpm_table *dpm_table = &hw_data->dpm_table; dpm_table 1046 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 1047 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c PP_ASSERT_WITH_CODE((0 != dpm_table->mclk_table.dpm_levels[i].value), dpm_table 1051 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c dpm_table->mclk_table.dpm_levels[i].value, dpm_table 1064 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c (uint8_t)dpm_table->mclk_table.count; dpm_table 1066 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 1068 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i < dpm_table->mclk_table.count; i++) dpm_table 1072 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c levels[dpm_table->mclk_table.count - 1].DisplayWatermark = dpm_table 1177 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c data->dpm_table.mclk_table.dpm_levels[0].value, dpm_table 1296 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i < hw_data->dpm_table.sclk_table.count; i++) { dpm_table 1297 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (j = 0; j < hw_data->dpm_table.mclk_table.count; j++) { dpm_table 1299 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c hw_data->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 1300 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c hw_data->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 1383 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c result = phm_find_boot_level(&(data->dpm_table.sclk_table), dpm_table 1387 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c result = phm_find_boot_level(&(data->dpm_table.mclk_table), dpm_table 2040 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c PP_ASSERT_WITH_CODE(hw_data->dpm_table.pcie_speed_table.count >= 1, dpm_table 2044 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c hw_data->dpm_table.pcie_speed_table.count; dpm_table 2109 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c for (i = 0; i <= hw_data->dpm_table.pcie_speed_table.count; i++) { dpm_table 716 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 719 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 722 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 738 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 754 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 770 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->eclk_table); dpm_table 785 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->vclk_table); dpm_table 800 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->dclk_table); dpm_table 815 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->dcef_table); dpm_table 831 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->pixel_table); dpm_table 846 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->display_table); dpm_table 861 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->phy_table); dpm_table 876 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 890 drivers/gpu/drm/amd/powerplay/vega20_ppt.c memcpy(smu_dpm->golden_dpm_context, dpm_table, dpm_table 899 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 903 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 904 drivers/gpu/drm/amd/powerplay/vega20_ppt.c gfx_table = &(dpm_table->gfx_table); dpm_table 905 drivers/gpu/drm/amd/powerplay/vega20_ppt.c mem_table = &(dpm_table->mem_table); dpm_table 924 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_single_dpm_table *dpm_table) dpm_table 928 drivers/gpu/drm/amd/powerplay/vega20_ppt.c count = (dpm_table->count > MAX_NUM_CLOCKS) ? MAX_NUM_CLOCKS : dpm_table->count; dpm_table 933 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_levels[i].value * 1000; dpm_table 951 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 958 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 968 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 989 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 1010 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 1031 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 1046 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->dcef_table); dpm_table 1137 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 1186 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table; dpm_table 1191 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu->smu_dpm.dpm_context; dpm_table 1195 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 1210 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 1225 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 1240 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 1255 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->dcef_table); dpm_table 1274 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table; dpm_table 1290 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu->smu_dpm.dpm_context; dpm_table 1294 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 1321 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 1348 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 1375 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->fclk_table); dpm_table 1403 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->dcef_table); dpm_table 1450 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 1452 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 1458 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 1462 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 1466 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->dcef_table); dpm_table 1470 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->soc_table); dpm_table 1753 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 1759 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 1764 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 1768 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 1992 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = (struct vega20_dpm_table *)smu->smu_dpm.dpm_context; dpm_table 2000 drivers/gpu/drm/amd/powerplay/vega20_ppt.c gfx_dpm_table = &dpm_table->gfx_table; dpm_table 2001 drivers/gpu/drm/amd/powerplay/vega20_ppt.c mem_dpm_table = &dpm_table->mem_table; dpm_table 2002 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soc_dpm_table = &dpm_table->soc_table; dpm_table 2031 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_single_dpm_table *dpm_table) dpm_table 2039 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (dpm_table->count <= 0) { dpm_table 2044 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (dpm_table->count > NUM_UCLK_DPM_LEVELS) { dpm_table 2049 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2052 drivers/gpu/drm/amd/powerplay/vega20_ppt.c (PPCLK_UCLK << 16) | dpm_table->dpm_state.hard_min_level); dpm_table 2065 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = smu->smu_dpm.dpm_context; dpm_table 2072 drivers/gpu/drm/amd/powerplay/vega20_ppt.c &dpm_table->mem_table); dpm_table 2107 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_single_dpm_table *dpm_table; dpm_table 2117 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = &(dpm_ctx->gfx_table); dpm_table 2118 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2119 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2120 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2121 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2123 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (VEGA20_UMD_PSTATE_GFXCLK_LEVEL < dpm_table->count) { dpm_table 2124 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_GFXCLK_LEVEL].value; dpm_table 2125 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_GFXCLK_LEVEL].value; dpm_table 2129 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2130 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[0].value; dpm_table 2134 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2135 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2139 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = &(dpm_ctx->mem_table); dpm_table 2140 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2141 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2142 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2143 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2145 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (VEGA20_UMD_PSTATE_MCLK_LEVEL < dpm_table->count) { dpm_table 2146 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_MCLK_LEVEL].value; dpm_table 2147 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_MCLK_LEVEL].value; dpm_table 2151 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2152 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[0].value; dpm_table 2156 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2157 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2161 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (dpm_table->dpm_state.hard_min_level < (smu->display_config->min_mem_set_clock / 100)) dpm_table 2162 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = smu->display_config->min_mem_set_clock / 100; dpm_table 2166 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2169 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (dpm_table->dpm_levels[i].value >= (smu->display_config->min_mem_set_clock / 100)) { dpm_table 2170 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[i].value; dpm_table 2178 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2181 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = &(dpm_ctx->vclk_table); dpm_table 2182 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2183 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2184 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2185 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2187 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (VEGA20_UMD_PSTATE_UVDCLK_LEVEL < dpm_table->count) { dpm_table 2188 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2189 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2193 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2194 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2198 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = &(dpm_ctx->dclk_table); dpm_table 2199 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2200 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2201 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2202 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2204 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (VEGA20_UMD_PSTATE_UVDCLK_LEVEL < dpm_table->count) { dpm_table 2205 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2206 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_UVDCLK_LEVEL].value; dpm_table 2210 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2211 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2215 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = &(dpm_ctx->soc_table); dpm_table 2216 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2217 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2218 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2219 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2221 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (VEGA20_UMD_PSTATE_SOCCLK_LEVEL < dpm_table->count) { dpm_table 2222 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_SOCCLK_LEVEL].value; dpm_table 2223 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_SOCCLK_LEVEL].value; dpm_table 2227 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2228 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2232 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = &(dpm_ctx->eclk_table); dpm_table 2233 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[0].value; dpm_table 2234 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2235 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[0].value; dpm_table 2236 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.hard_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2238 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (VEGA20_UMD_PSTATE_VCEMCLK_LEVEL < dpm_table->count) { dpm_table 2239 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_VCEMCLK_LEVEL].value; dpm_table 2240 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[VEGA20_UMD_PSTATE_VCEMCLK_LEVEL].value; dpm_table 2244 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2245 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->dpm_state.soft_max_level = dpm_table->dpm_levels[dpm_table->count - 1].value; dpm_table 2253 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = smu->smu_dpm.dpm_context; dpm_table 2254 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_single_dpm_table *memtable = &dpm_table->mem_table; dpm_table 2344 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = dpm_table 2348 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_level = vega20_find_highest_dpm_level(&(dpm_table->gfx_table)); dpm_table 2350 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_level = vega20_find_lowest_dpm_level(&(dpm_table->gfx_table)); dpm_table 2352 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_state.soft_min_level = dpm_table 2353 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_state.soft_max_level = dpm_table 2354 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_levels[soft_level].value; dpm_table 2357 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_level = vega20_find_highest_dpm_level(&(dpm_table->mem_table)); dpm_table 2359 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_level = vega20_find_lowest_dpm_level(&(dpm_table->mem_table)); dpm_table 2361 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->mem_table.dpm_state.soft_min_level = dpm_table 2362 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->mem_table.dpm_state.soft_max_level = dpm_table 2363 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->mem_table.dpm_levels[soft_level].value; dpm_table 2366 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_level = vega20_find_highest_dpm_level(&(dpm_table->soc_table)); dpm_table 2368 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_level = vega20_find_lowest_dpm_level(&(dpm_table->soc_table)); dpm_table 2370 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_state.soft_min_level = dpm_table 2371 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_state.soft_max_level = dpm_table 2372 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_levels[soft_level].value; dpm_table 2395 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = dpm_table 2398 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_min_level = vega20_find_lowest_dpm_level(&(dpm_table->gfx_table)); dpm_table 2399 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_max_level = vega20_find_highest_dpm_level(&(dpm_table->gfx_table)); dpm_table 2400 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_state.soft_min_level = dpm_table 2401 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_levels[soft_min_level].value; dpm_table 2402 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_state.soft_max_level = dpm_table 2403 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_levels[soft_max_level].value; dpm_table 2405 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_min_level = vega20_find_lowest_dpm_level(&(dpm_table->mem_table)); dpm_table 2406 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_max_level = vega20_find_highest_dpm_level(&(dpm_table->mem_table)); dpm_table 2407 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->mem_table.dpm_state.soft_min_level = dpm_table 2408 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_levels[soft_min_level].value; dpm_table 2409 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->mem_table.dpm_state.soft_max_level = dpm_table 2410 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->gfx_table.dpm_levels[soft_max_level].value; dpm_table 2412 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_min_level = vega20_find_lowest_dpm_level(&(dpm_table->soc_table)); dpm_table 2413 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_max_level = vega20_find_highest_dpm_level(&(dpm_table->soc_table)); dpm_table 2414 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_state.soft_min_level = dpm_table 2415 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_levels[soft_min_level].value; dpm_table 2416 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_state.soft_max_level = dpm_table 2417 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table->soc_table.dpm_levels[soft_max_level].value; dpm_table 2544 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 2555 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 2560 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 2567 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 2620 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct vega20_dpm_table *dpm_table = NULL; dpm_table 2629 drivers/gpu/drm/amd/powerplay/vega20_ppt.c dpm_table = smu_dpm->dpm_context; dpm_table 2685 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->mem_table); dpm_table 2811 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table = &(dpm_table->gfx_table); dpm_table 435 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_DpmTable *dpm_table = &pi->smc_state_table; dpm_table 443 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->DefaultTdp = cac_tdp_table->tdp * 256; dpm_table 444 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->TargetTdp = cac_tdp_table->configurable_tdp * 256; dpm_table 446 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->DTETjOffset = (u8)pi->dte_tj_offset; dpm_table 447 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->GpuTjMax = dpm_table 449 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->GpuTjHyst = 8; dpm_table 451 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->DTEAmbientTempBase = pt_defaults->dte_ambient_temp_base; dpm_table 454 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->PPM_PkgPwrLimit = cpu_to_be16((u16)ppm->dgpu_tdp * 256 / 1000); dpm_table 455 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->PPM_TemperatureLimit = cpu_to_be16((u16)ppm->tj_max * 256); dpm_table 457 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->PPM_PkgPwrLimit = cpu_to_be16(0); dpm_table 458 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->PPM_TemperatureLimit = cpu_to_be16(0); dpm_table 461 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->BAPM_TEMP_GRADIENT = cpu_to_be32(pt_defaults->bapm_temp_gradient); dpm_table 468 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->BAPMTI_R[i][j][k] = cpu_to_be16(*def1); dpm_table 469 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->BAPMTI_RC[i][j][k] = cpu_to_be16(*def2); dpm_table 2555 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < pi->dpm_table.sclk_table.count; i++) { dpm_table 2556 drivers/gpu/drm/radeon/ci_dpm.c for (j = 0; j < pi->dpm_table.mclk_table.count; j++) { dpm_table 2558 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.dpm_levels[i].value, dpm_table 2559 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[j].value, dpm_table 2610 drivers/gpu/drm/radeon/ci_dpm.c static u32 ci_get_dpm_level_enable_mask_value(struct ci_single_dpm_table *dpm_table) dpm_table 2615 drivers/gpu/drm/radeon/ci_dpm.c for (i = dpm_table->count; i > 0; i--) { dpm_table 2617 drivers/gpu/drm/radeon/ci_dpm.c if (dpm_table->dpm_levels[i-1].enabled) dpm_table 2630 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; dpm_table 2633 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < dpm_table->pcie_speed_table.count; i++) { dpm_table 2635 drivers/gpu/drm/radeon/ci_dpm.c (u8)dpm_table->pcie_speed_table.dpm_levels[i].value; dpm_table 2637 drivers/gpu/drm/radeon/ci_dpm.c r600_encode_pci_lane_width(dpm_table->pcie_speed_table.dpm_levels[i].param1); dpm_table 2643 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.LinkLevelCount = (u8)dpm_table->pcie_speed_table.count; dpm_table 2645 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&dpm_table->pcie_speed_table); dpm_table 3279 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; dpm_table 3289 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < dpm_table->sclk_table.count; i++) { dpm_table 3291 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->sclk_table.dpm_levels[i].value, dpm_table 3298 drivers/gpu/drm/radeon/ci_dpm.c if (i == (dpm_table->sclk_table.count - 1)) dpm_table 3304 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; dpm_table 3306 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&dpm_table->sclk_table); dpm_table 3326 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; dpm_table 3336 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < dpm_table->mclk_table.count; i++) { dpm_table 3337 drivers/gpu/drm/radeon/ci_dpm.c if (dpm_table->mclk_table.dpm_levels[i].value == 0) dpm_table 3340 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->mclk_table.dpm_levels[i].value, dpm_table 3348 drivers/gpu/drm/radeon/ci_dpm.c if ((dpm_table->mclk_table.count >= 2) && dpm_table 3358 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryDpmLevelCount = (u8)dpm_table->mclk_table.count; dpm_table 3360 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&dpm_table->mclk_table); dpm_table 3362 drivers/gpu/drm/radeon/ci_dpm.c pi->smc_state_table.MemoryLevel[dpm_table->mclk_table.count - 1].DisplayWatermark = dpm_table 3375 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table* dpm_table, dpm_table 3380 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->count = count; dpm_table 3382 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->dpm_levels[i].enabled = false; dpm_table 3385 drivers/gpu/drm/radeon/ci_dpm.c static void ci_setup_pcie_table_entry(struct ci_single_dpm_table* dpm_table, dpm_table 3388 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->dpm_levels[index].value = pcie_gen; dpm_table 3389 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->dpm_levels[index].param1 = pcie_lanes; dpm_table 3390 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->dpm_levels[index].enabled = true; dpm_table 3409 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.pcie_speed_table, dpm_table 3413 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 0, dpm_table 3417 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 0, dpm_table 3420 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 1, dpm_table 3423 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 2, dpm_table 3426 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 3, dpm_table 3429 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 4, dpm_table 3432 drivers/gpu/drm/radeon/ci_dpm.c ci_setup_pcie_table_entry(&pi->dpm_table.pcie_speed_table, 5, dpm_table 3436 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.pcie_speed_table.count = 6; dpm_table 3461 drivers/gpu/drm/radeon/ci_dpm.c memset(&pi->dpm_table, 0, sizeof(struct ci_dpm_table)); dpm_table 3464 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.sclk_table, dpm_table 3467 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.mclk_table, dpm_table 3470 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.vddc_table, dpm_table 3473 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.vddci_table, dpm_table 3476 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.mvdd_table, dpm_table 3479 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.count = 0; dpm_table 3482 drivers/gpu/drm/radeon/ci_dpm.c (pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count-1].value != dpm_table 3484 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count].value = dpm_table 3486 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.dpm_levels[pi->dpm_table.sclk_table.count].enabled = dpm_table 3488 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.sclk_table.count++; dpm_table 3492 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.count = 0; dpm_table 3495 drivers/gpu/drm/radeon/ci_dpm.c (pi->dpm_table.mclk_table.dpm_levels[pi->dpm_table.mclk_table.count-1].value != dpm_table 3497 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[pi->dpm_table.mclk_table.count].value = dpm_table 3499 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[pi->dpm_table.mclk_table.count].enabled = dpm_table 3501 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.count++; dpm_table 3506 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.dpm_levels[i].value = dpm_table 3508 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.dpm_levels[i].param1 = dpm_table 3510 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.dpm_levels[i].enabled = true; dpm_table 3512 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddc_table.count = allowed_sclk_vddc_table->count; dpm_table 3517 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddci_table.dpm_levels[i].value = dpm_table 3519 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddci_table.dpm_levels[i].enabled = true; dpm_table 3521 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.vddci_table.count = allowed_mclk_table->count; dpm_table 3527 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mvdd_table.dpm_levels[i].value = dpm_table 3529 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mvdd_table.dpm_levels[i].enabled = true; dpm_table 3531 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mvdd_table.count = allowed_mclk_table->count; dpm_table 3629 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_find_boot_level(&pi->dpm_table.sclk_table, dpm_table 3633 drivers/gpu/drm/radeon/ci_dpm.c ret = ci_find_boot_level(&pi->dpm_table.mclk_table, dpm_table 3666 drivers/gpu/drm/radeon/ci_dpm.c table->PCIeBootLinkLevel = pi->dpm_table.pcie_speed_table.count - 1; dpm_table 3704 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *dpm_table, dpm_table 3709 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < dpm_table->count; i++) { dpm_table 3710 drivers/gpu/drm/radeon/ci_dpm.c if ((dpm_table->dpm_levels[i].value < low_limit) || dpm_table 3711 drivers/gpu/drm/radeon/ci_dpm.c (dpm_table->dpm_levels[i].value > high_limit)) dpm_table 3712 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->dpm_levels[i].enabled = false; dpm_table 3714 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->dpm_levels[i].enabled = true; dpm_table 3723 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *pcie_table = &pi->dpm_table.pcie_speed_table; dpm_table 3765 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.sclk_table, dpm_table 3770 drivers/gpu/drm/radeon/ci_dpm.c &pi->dpm_table.mclk_table, dpm_table 3860 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *sclk_table = &pi->dpm_table.sclk_table; dpm_table 3862 drivers/gpu/drm/radeon/ci_dpm.c struct ci_single_dpm_table *mclk_table = &pi->dpm_table.mclk_table; dpm_table 3904 drivers/gpu/drm/radeon/ci_dpm.c struct ci_dpm_table *dpm_table = &pi->dpm_table; dpm_table 3911 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->sclk_table.dpm_levels[dpm_table->sclk_table.count-1].value = sclk; dpm_table 3914 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->mclk_table.dpm_levels[dpm_table->mclk_table.count-1].value = mclk; dpm_table 4179 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&pi->dpm_table.sclk_table); dpm_table 4181 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&pi->dpm_table.mclk_table); dpm_table 4189 drivers/gpu/drm/radeon/ci_dpm.c ci_get_dpm_level_enable_mask_value(&pi->dpm_table.pcie_speed_table); dpm_table 4744 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < pi->dpm_table.mclk_table.count; i++) dpm_table 4746 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.dpm_levels[i].value, dpm_table 4785 drivers/gpu/drm/radeon/ci_dpm.c pi->dpm_table.mclk_table.count, dpm_table 5678 drivers/gpu/drm/radeon/ci_dpm.c SMU7_Discrete_DpmTable *dpm_table; dpm_table 5827 drivers/gpu/drm/radeon/ci_dpm.c dpm_table = &pi->smc_state_table; dpm_table 5831 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->VRHotGpio = gpio.shift; dpm_table 5834 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->VRHotGpio = CISLANDS_UNUSED_GPIO_PIN; dpm_table 5840 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->AcDcGpio = gpio.shift; dpm_table 5843 drivers/gpu/drm/radeon/ci_dpm.c dpm_table->AcDcGpio = CISLANDS_UNUSED_GPIO_PIN; dpm_table 195 drivers/gpu/drm/radeon/ci_dpm.h struct ci_dpm_table dpm_table;