Home
last modified time | relevance | path

Searched refs:mclk_levels (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smumgr.c2563 struct SMU73_Discrete_MemoryLevel *mclk_levels = in fiji_update_dpm_settings() local
2612 if (mclk_levels[i].ActivityLevel != in fiji_update_dpm_settings()
2614 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in fiji_update_dpm_settings()
2620 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in fiji_update_dpm_settings()
2624 if (mclk_levels[i].UpHyst != setting->mclk_up_hyst || in fiji_update_dpm_settings()
2625 mclk_levels[i].DownHyst != setting->mclk_down_hyst) { in fiji_update_dpm_settings()
2626 mclk_levels[i].UpHyst = setting->mclk_up_hyst; in fiji_update_dpm_settings()
2627 mclk_levels[i].DownHyst = setting->mclk_down_hyst; in fiji_update_dpm_settings()
2634 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpHyst, sizeof(uint8_t)); in fiji_update_dpm_settings()
2635 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownHyst, sizeof(uint8_t)); in fiji_update_dpm_settings()
Dpolaris10_smumgr.c2476 struct SMU74_Discrete_MemoryLevel *mclk_levels = in polaris10_update_dpm_settings() local
2525 if (mclk_levels[i].ActivityLevel != in polaris10_update_dpm_settings()
2527 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in polaris10_update_dpm_settings()
2533 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in polaris10_update_dpm_settings()
2537 if (mclk_levels[i].UpHyst != setting->mclk_up_hyst || in polaris10_update_dpm_settings()
2538 mclk_levels[i].DownHyst != setting->mclk_down_hyst) { in polaris10_update_dpm_settings()
2539 mclk_levels[i].UpHyst = setting->mclk_up_hyst; in polaris10_update_dpm_settings()
2540 mclk_levels[i].DownHyst = setting->mclk_down_hyst; in polaris10_update_dpm_settings()
2547 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpHyst, sizeof(uint8_t)); in polaris10_update_dpm_settings()
2548 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownHyst, sizeof(uint8_t)); in polaris10_update_dpm_settings()
Dci_smumgr.c2771 struct SMU7_Discrete_MemoryLevel *mclk_levels = in ci_update_dpm_settings() local
2820 if (mclk_levels[i].ActivityLevel != in ci_update_dpm_settings()
2822 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in ci_update_dpm_settings()
2828 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in ci_update_dpm_settings()
2832 if (mclk_levels[i].UpH != setting->mclk_up_hyst || in ci_update_dpm_settings()
2833 mclk_levels[i].DownH != setting->mclk_down_hyst) { in ci_update_dpm_settings()
2834 mclk_levels[i].UpH = setting->mclk_up_hyst; in ci_update_dpm_settings()
2835 mclk_levels[i].DownH = setting->mclk_down_hyst; in ci_update_dpm_settings()
2842 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpH, sizeof(uint8_t)); in ci_update_dpm_settings()
2843 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownH, sizeof(uint8_t)); in ci_update_dpm_settings()
Dtonga_smumgr.c3159 struct SMU72_Discrete_MemoryLevel *mclk_levels = in tonga_update_dpm_settings() local
3208 if (mclk_levels[i].ActivityLevel != in tonga_update_dpm_settings()
3210 mclk_levels[i].ActivityLevel = cpu_to_be16(setting->mclk_activity); in tonga_update_dpm_settings()
3216 …tmp = phm_set_field_to_u32(clk_activity_offset, tmp, mclk_levels[i].ActivityLevel, sizeof(uint16_t… in tonga_update_dpm_settings()
3220 if (mclk_levels[i].UpHyst != setting->mclk_up_hyst || in tonga_update_dpm_settings()
3221 mclk_levels[i].DownHyst != setting->mclk_down_hyst) { in tonga_update_dpm_settings()
3222 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()
3230 tmp = phm_set_field_to_u32(up_hyst_offset, tmp, mclk_levels[i].UpHyst, sizeof(uint8_t)); in tonga_update_dpm_settings()
3231 tmp = phm_set_field_to_u32(down_hyst_offset, tmp, mclk_levels[i].DownHyst, sizeof(uint8_t)); in tonga_update_dpm_settings()