Lines Matching refs:new_wm
1326 struct g4x_wm_values new_wm = {}; in g4x_program_watermarks() local
1328 g4x_merge_wm(dev_priv, &new_wm); in g4x_program_watermarks()
1330 if (memcmp(old_wm, &new_wm, sizeof(new_wm)) == 0) in g4x_program_watermarks()
1333 if (is_disabling(old_wm->cxsr, new_wm.cxsr, true)) in g4x_program_watermarks()
1336 g4x_write_wm_values(dev_priv, &new_wm); in g4x_program_watermarks()
1338 if (is_enabling(old_wm->cxsr, new_wm.cxsr, true)) in g4x_program_watermarks()
1341 *old_wm = new_wm; in g4x_program_watermarks()
1951 struct vlv_wm_values new_wm = {}; in vlv_program_watermarks() local
1953 vlv_merge_wm(dev_priv, &new_wm); in vlv_program_watermarks()
1955 if (memcmp(old_wm, &new_wm, sizeof(new_wm)) == 0) in vlv_program_watermarks()
1958 if (is_disabling(old_wm->level, new_wm.level, VLV_WM_LEVEL_DDR_DVFS)) in vlv_program_watermarks()
1961 if (is_disabling(old_wm->level, new_wm.level, VLV_WM_LEVEL_PM5)) in vlv_program_watermarks()
1964 if (is_disabling(old_wm->cxsr, new_wm.cxsr, true)) in vlv_program_watermarks()
1967 vlv_write_wm_values(dev_priv, &new_wm); in vlv_program_watermarks()
1969 if (is_enabling(old_wm->cxsr, new_wm.cxsr, true)) in vlv_program_watermarks()
1972 if (is_enabling(old_wm->level, new_wm.level, VLV_WM_LEVEL_PM5)) in vlv_program_watermarks()
1975 if (is_enabling(old_wm->level, new_wm.level, VLV_WM_LEVEL_DDR_DVFS)) in vlv_program_watermarks()
1978 *old_wm = new_wm; in vlv_program_watermarks()