Searched refs:wm_state (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | intel_pm.c | 968 struct vlv_wm_state *wm_state = &crtc->wm_state; vlv_compute_fifo() local 982 wm_state->num_active_planes++; for_each_intel_plane_on_crtc() 1007 fifo_extra = DIV_ROUND_UP(fifo_left, wm_state->num_active_planes ?: 1); 1021 wm_state->num_active_planes) for_each_intel_plane_on_crtc() 1034 struct vlv_wm_state *wm_state = &crtc->wm_state; vlv_invert_wms() local 1037 for (level = 0; level < wm_state->num_levels; level++) { vlv_invert_wms() 1042 wm_state->sr[level].plane = sr_fifo_size - wm_state->sr[level].plane; vlv_invert_wms() 1043 wm_state->sr[level].cursor = 63 - wm_state->sr[level].cursor; vlv_invert_wms() 1049 wm_state->wm[level].cursor = plane->wm.fifo_size - for_each_intel_plane_on_crtc() 1050 wm_state->wm[level].cursor; for_each_intel_plane_on_crtc() 1053 wm_state->wm[level].primary = plane->wm.fifo_size - for_each_intel_plane_on_crtc() 1054 wm_state->wm[level].primary; for_each_intel_plane_on_crtc() 1058 wm_state->wm[level].sprite[sprite] = plane->wm.fifo_size - for_each_intel_plane_on_crtc() 1059 wm_state->wm[level].sprite[sprite]; for_each_intel_plane_on_crtc() 1069 struct vlv_wm_state *wm_state = &crtc->wm_state; vlv_compute_wm() local 1074 memset(wm_state, 0, sizeof(*wm_state)); vlv_compute_wm() 1076 wm_state->cxsr = crtc->pipe != PIPE_C && crtc->wm.cxsr_allowed; vlv_compute_wm() 1077 wm_state->num_levels = to_i915(dev)->wm.max_level + 1; vlv_compute_wm() 1079 wm_state->num_active_planes = 0; vlv_compute_wm() 1083 if (wm_state->num_active_planes != 1) vlv_compute_wm() 1084 wm_state->cxsr = false; vlv_compute_wm() 1086 if (wm_state->cxsr) { vlv_compute_wm() 1087 for (level = 0; level < wm_state->num_levels; level++) { vlv_compute_wm() 1088 wm_state->sr[level].plane = sr_fifo_size; vlv_compute_wm() 1089 wm_state->sr[level].cursor = 63; vlv_compute_wm() 1101 for (level = 0; level < wm_state->num_levels; level++) { for_each_intel_plane_on_crtc() 1115 wm_state->wm[level].cursor = wm; for_each_intel_plane_on_crtc() 1118 wm_state->wm[level].primary = wm; for_each_intel_plane_on_crtc() 1122 wm_state->wm[level].sprite[sprite] = wm; for_each_intel_plane_on_crtc() 1127 wm_state->num_levels = level; for_each_intel_plane_on_crtc() 1129 if (!wm_state->cxsr) for_each_intel_plane_on_crtc() 1136 for (level = 0; level < wm_state->num_levels; level++) for_each_intel_plane_on_crtc() 1137 wm_state->sr[level].cursor = for_each_intel_plane_on_crtc() 1138 wm_state->wm[level].cursor; for_each_intel_plane_on_crtc() 1141 for (level = 0; level < wm_state->num_levels; level++) for_each_intel_plane_on_crtc() 1142 wm_state->sr[level].plane = for_each_intel_plane_on_crtc() 1143 min(wm_state->sr[level].plane, for_each_intel_plane_on_crtc() 1144 wm_state->wm[level].primary); for_each_intel_plane_on_crtc() 1148 for (level = 0; level < wm_state->num_levels; level++) for_each_intel_plane_on_crtc() 1149 wm_state->sr[level].plane = for_each_intel_plane_on_crtc() 1150 min(wm_state->sr[level].plane, for_each_intel_plane_on_crtc() 1151 wm_state->wm[level].sprite[sprite]); for_each_intel_plane_on_crtc() 1157 for (level = wm_state->num_levels; level < to_i915(dev)->wm.max_level + 1; level++) { 1158 memset(&wm_state->wm[level], 0, sizeof(wm_state->wm[level])); 1159 memset(&wm_state->sr[level], 0, sizeof(wm_state->sr[level])); 1265 const struct vlv_wm_state *wm_state = &crtc->wm_state; for_each_intel_crtc() local 1270 if (!wm_state->cxsr) for_each_intel_crtc() 1274 wm->level = min_t(int, wm->level, wm_state->num_levels - 1); for_each_intel_crtc() 1284 struct vlv_wm_state *wm_state = &crtc->wm_state; for_each_intel_crtc() local 1290 wm->pipe[pipe] = wm_state->wm[wm->level]; for_each_intel_crtc() 1292 wm->sr = wm_state->sr[wm->level]; for_each_intel_crtc()
|
H A D | intel_drv.h | 591 struct vlv_wm_state wm_state; member in struct:intel_crtc
|
Completed in 149 milliseconds