Searched refs:mclk_levels (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | fiji_smumgr.c | 2562 struct SMU73_Discrete_MemoryLevel *mclk_levels = in fiji_update_dpm_settings() local 2611 if (mclk_levels[i].ActivityLevel != in fiji_update_dpm_settings() 2613 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in fiji_update_dpm_settings() 2619 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in fiji_update_dpm_settings() 2623 if (mclk_levels[i].UpHyst != setting->mclk_up_hyst || in fiji_update_dpm_settings() 2624 mclk_levels[i].DownHyst != setting->mclk_down_hyst) { in fiji_update_dpm_settings() 2625 mclk_levels[i].UpHyst = setting->mclk_up_hyst; in fiji_update_dpm_settings() 2626 mclk_levels[i].DownHyst = setting->mclk_down_hyst; in fiji_update_dpm_settings() 2633 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpHyst, sizeof(uint8_t)); in fiji_update_dpm_settings() 2634 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownHyst, sizeof(uint8_t)); in fiji_update_dpm_settings()
|
D | polaris10_smumgr.c | 2600 struct SMU74_Discrete_MemoryLevel *mclk_levels = in polaris10_update_dpm_settings() local 2649 if (mclk_levels[i].ActivityLevel != in polaris10_update_dpm_settings() 2651 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in polaris10_update_dpm_settings() 2657 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in polaris10_update_dpm_settings() 2661 if (mclk_levels[i].UpHyst != setting->mclk_up_hyst || in polaris10_update_dpm_settings() 2662 mclk_levels[i].DownHyst != setting->mclk_down_hyst) { in polaris10_update_dpm_settings() 2663 mclk_levels[i].UpHyst = setting->mclk_up_hyst; in polaris10_update_dpm_settings() 2664 mclk_levels[i].DownHyst = setting->mclk_down_hyst; in polaris10_update_dpm_settings() 2671 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpHyst, sizeof(uint8_t)); in polaris10_update_dpm_settings() 2672 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownHyst, sizeof(uint8_t)); in polaris10_update_dpm_settings()
|
D | ci_smumgr.c | 2774 struct SMU7_Discrete_MemoryLevel *mclk_levels = in ci_update_dpm_settings() local 2823 if (mclk_levels[i].ActivityLevel != in ci_update_dpm_settings() 2825 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in ci_update_dpm_settings() 2831 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in ci_update_dpm_settings() 2835 if (mclk_levels[i].UpH != setting->mclk_up_hyst || in ci_update_dpm_settings() 2836 mclk_levels[i].DownH != setting->mclk_down_hyst) { in ci_update_dpm_settings() 2837 mclk_levels[i].UpH = setting->mclk_up_hyst; in ci_update_dpm_settings() 2838 mclk_levels[i].DownH = setting->mclk_down_hyst; in ci_update_dpm_settings() 2845 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpH, sizeof(uint8_t)); in ci_update_dpm_settings() 2846 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownH, sizeof(uint8_t)); in ci_update_dpm_settings()
|
D | tonga_smumgr.c | 3161 struct SMU72_Discrete_MemoryLevel *mclk_levels = in tonga_update_dpm_settings() local 3210 if (mclk_levels[i].ActivityLevel != in tonga_update_dpm_settings() 3212 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in tonga_update_dpm_settings() 3218 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in tonga_update_dpm_settings() 3222 if (mclk_levels[i].UpHyst != setting->mclk_up_hyst || in tonga_update_dpm_settings() 3223 mclk_levels[i].DownHyst != setting->mclk_down_hyst) { in tonga_update_dpm_settings() 3224 mclk_levels[i].UpHyst = setting->mclk_up_hyst; in tonga_update_dpm_settings() 3225 mclk_levels[i].DownHyst = setting->mclk_down_hyst; in tonga_update_dpm_settings() 3232 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpHyst, sizeof(uint8_t)); in tonga_update_dpm_settings() 3233 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownHyst, sizeof(uint8_t)); in tonga_update_dpm_settings()
|