Home
last modified time | relevance | path

Searched refs:new_crtc_state (Results 1 – 25 of 58) sorted by relevance

123

/linux/drivers/gpu/drm/
H A Ddrm_atomic_helper.c420 struct drm_crtc_state *new_crtc_state; in mode_fixup() local
426 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
427 if (!new_crtc_state->mode_changed && in mode_fixup()
428 !new_crtc_state->connectors_changed) in mode_fixup()
431 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
444 new_crtc_state = in mode_fixup()
456 new_crtc_state, in mode_fixup()
464 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
473 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
474 &new_crtc_state->adjusted_mode); in mode_fixup()
[all …]
H A Ddrm_blend.c514 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
524 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos()
525 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos()
529 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
530 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
531 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos()
533 new_crtc_state); in drm_atomic_normalize_zpos()
H A Ddrm_atomic.c378 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument
380 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check()
390 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check()
402 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
410 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
427 if (new_crtc_state->event && in drm_atomic_crtc_check()
428 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check()
1401 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local
1410 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in drm_atomic_check_only()
1411 if (new_crtc_state->enable) in drm_atomic_check_only()
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display.c512 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state) in intel_enable_transcoder() argument
514 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_transcoder()
516 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_transcoder()
530 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_transcoder()
535 if (new_crtc_state->has_pch_encoder) { in intel_enable_transcoder()
571 new_crtc_state->dsc.compression_enable) { in intel_enable_transcoder()
588 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_transcoder()
1079 #define is_enabling(feature, old_crtc_state, new_crtc_state) \ argument
1080 ((!(old_crtc_state)->feature || intel_crtc_needs_modeset(new_crtc_state)) && \
1081 (new_crtc_state)->feature)
[all …]
H A Dintel_vblank.c601 const struct intel_crtc_state *new_crtc_state, in intel_vblank_evade_init() argument
604 struct intel_display *display = to_intel_display(new_crtc_state); in intel_vblank_evade_init()
605 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_vblank_evade_init()
613 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_vblank_evade_init()
621 if (intel_crtc_needs_modeset(new_crtc_state)) in intel_vblank_evade_init()
622 crtc_state = new_crtc_state; in intel_vblank_evade_init()
630 drm_WARN_ON(crtc->base.dev, intel_crtc_needs_modeset(new_crtc_state) || in intel_vblank_evade_init()
631 new_crtc_state->update_m_n || new_crtc_state->update_lrr); in intel_vblank_evade_init()
654 if (intel_color_uses_dsb(new_crtc_state) || in intel_vblank_evade_init()
655 new_crtc_state->update_m_n || new_crtc_state->update_lrr) in intel_vblank_evade_init()
H A Dskl_watermark.c450 struct intel_crtc_state *new_crtc_state; in intel_compute_sagv_mask() local
456 new_crtc_state, i) { in intel_compute_sagv_mask()
457 struct skl_pipe_wm *pipe_wm = &new_crtc_state->wm.skl.optimal; in intel_compute_sagv_mask()
484 intel_crtc_can_enable_sagv(new_crtc_state); in intel_compute_sagv_mask()
486 if (intel_crtc_can_enable_sagv(new_crtc_state)) in intel_compute_sagv_mask()
2446 struct intel_crtc_state *new_crtc_state = in skl_ddb_add_affected_planes() local
2455 &new_crtc_state->wm.skl.plane_ddb[plane_id]) && in skl_ddb_add_affected_planes()
2457 &new_crtc_state->wm.skl.plane_ddb_y[plane_id])) in skl_ddb_add_affected_planes()
2460 if (new_crtc_state->do_async_flip) { in skl_ddb_add_affected_planes()
2470 new_crtc_state->update_planes |= BIT(plane_id); in skl_ddb_add_affected_planes()
[all …]
H A Dintel_display.h335 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
339 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
343 #define for_each_new_intel_crtc_in_state_reverse(__state, crtc, new_crtc_state, __i) \ argument
347 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
360 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
365 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
369 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument
374 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
459 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state);
H A Dintel_pmdemand.c150 const struct intel_crtc_state *new_crtc_state; in intel_pmdemand_update_max_ddiclk() local
154 for_each_new_intel_crtc_in_state(state, crtc, new_crtc_state, i) in intel_pmdemand_update_max_ddiclk()
157 new_crtc_state->port_clock); in intel_pmdemand_update_max_ddiclk()
264 const struct intel_crtc_state *new_crtc_state, *old_crtc_state; in intel_pmdemand_needs_update() local
298 new_crtc_state, i) in intel_pmdemand_needs_update()
299 if (new_crtc_state->port_clock != old_crtc_state->port_clock) in intel_pmdemand_needs_update()
/linux/drivers/gpu/drm/bridge/
H A Dpanel.c158 struct drm_crtc_state *new_crtc_state; in panel_bridge_atomic_disable() local
164 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in panel_bridge_atomic_disable()
165 if (new_crtc_state && new_crtc_state->self_refresh_active) in panel_bridge_atomic_disable()
178 struct drm_crtc_state *new_crtc_state; in panel_bridge_atomic_post_disable() local
184 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in panel_bridge_atomic_post_disable()
185 if (new_crtc_state && new_crtc_state->self_refresh_active) in panel_bridge_atomic_post_disable()
/linux/drivers/gpu/drm/vkms/
H A Dvkms_drv.c128 struct drm_crtc_state *new_crtc_state; in vkms_atomic_check() local
131 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vkms_atomic_check()
132 if (!new_crtc_state->gamma_lut || !new_crtc_state->color_mgmt_changed) in vkms_atomic_check()
135 if (new_crtc_state->gamma_lut->length / sizeof(struct drm_color_lut *) in vkms_atomic_check()
/linux/drivers/gpu/drm/mgag200/
H A Dmgag200_mode.c473 struct drm_crtc_state *new_crtc_state = NULL; in mgag200_primary_plane_helper_atomic_check() local
478 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_crtc); in mgag200_primary_plane_helper_atomic_check()
480 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in mgag200_primary_plane_helper_atomic_check()
493 new_crtc_state->mode_changed = true; /* update PLL settings */ in mgag200_primary_plane_helper_atomic_check()
495 new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_primary_plane_helper_atomic_check()
605 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_crtc_helper_atomic_check() local
606 struct drm_property_blob *new_gamma_lut = new_crtc_state->gamma_lut; in mgag200_crtc_helper_atomic_check()
609 if (!new_crtc_state->enable) in mgag200_crtc_helper_atomic_check()
612 ret = drm_atomic_helper_check_crtc_primary_plane(new_crtc_state); in mgag200_crtc_helper_atomic_check()
616 if (new_crtc_state->mode_changed) { in mgag200_crtc_helper_atomic_check()
[all …]
H A Dmgag200_g200eh3.c24 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200eh3_pixpllc_atomic_check() local
25 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200eh3_pixpllc_atomic_check()
26 long clock = new_crtc_state->mode.clock; in mgag200_g200eh3_pixpllc_atomic_check()
H A Dmgag200_g200ew3.c31 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200ew3_pixpllc_atomic_check() local
32 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200ew3_pixpllc_atomic_check()
33 long clock = new_crtc_state->mode.clock; in mgag200_g200ew3_pixpllc_atomic_check()
H A Dmgag200_g200se.c121 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200se_00_pixpllc_atomic_check() local
122 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200se_00_pixpllc_atomic_check()
123 long clock = new_crtc_state->mode.clock; in mgag200_g200se_00_pixpllc_atomic_check()
205 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200se_04_pixpllc_atomic_check() local
206 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200se_04_pixpllc_atomic_check()
207 long clock = new_crtc_state->mode.clock; in mgag200_g200se_04_pixpllc_atomic_check()
H A Dmgag200_g200eh.c49 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200eh_pixpllc_atomic_check() local
50 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200eh_pixpllc_atomic_check()
51 long clock = new_crtc_state->mode.clock; in mgag200_g200eh_pixpllc_atomic_check()
H A Dmgag200_vga_bmc.c30 struct drm_crtc_state *new_crtc_state, in mgag200_vga_bmc_encoder_atomic_check() argument
34 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_vga_bmc_encoder_atomic_check()
/linux/drivers/gpu/drm/msm/
H A Dmsm_atomic.c186 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in msm_atomic_check() local
191 new_crtc_state, i) { in msm_atomic_check()
192 if ((old_crtc_state->ctm && !new_crtc_state->ctm) || in msm_atomic_check()
193 (!old_crtc_state->ctm && new_crtc_state->ctm)) { in msm_atomic_check()
194 new_crtc_state->mode_changed = true; in msm_atomic_check()
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dcrc.c274 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_init_notifier_contexts() local
278 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_init_notifier_contexts()
280 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_init_notifier_contexts()
298 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_release_notifier_contexts() local
302 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_release_notifier_contexts()
304 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_release_notifier_contexts()
384 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in nv50_crc_atomic_check_outp() local
391 new_crtc_state, i) { in nv50_crc_atomic_check_outp()
393 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_check_outp()
H A Ddisp.c2165 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local
2190 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2191 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
2197 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2273 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2274 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
2285 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2290 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail()
2324 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2325 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
[all …]
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_plane.c54 struct drm_crtc_state *new_crtc_state; in lsdc_primary_atomic_check() local
59 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in lsdc_primary_atomic_check()
62 new_crtc_state, in lsdc_primary_atomic_check()
272 struct drm_crtc_state *new_crtc_state; in ls7a1000_cursor_plane_atomic_check() local
289 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a1000_cursor_plane_atomic_check()
292 new_crtc_state, in ls7a1000_cursor_plane_atomic_check()
345 struct drm_crtc_state *new_crtc_state; in ls7a2000_cursor_plane_atomic_check() local
368 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a2000_cursor_plane_atomic_check()
371 new_crtc_state, in ls7a2000_cursor_plane_atomic_check()
/linux/include/drm/
H A Ddrm_atomic.h875 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
884 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
885 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
918 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
925 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
926 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
/linux/drivers/gpu/drm/gud/
H A Dgud_pipe.c451 struct drm_crtc_state *new_crtc_state) in gud_pipe_check() argument
455 const struct drm_display_mode *mode = &new_crtc_state->mode; in gud_pipe_check()
471 new_crtc_state->mode_changed = true; in gud_pipe_check()
474 new_crtc_state->mode_changed = true; in gud_pipe_check()
476 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed) in gud_pipe_check()
480 if (hweight32(new_crtc_state->connector_mask) != 1) in gud_pipe_check()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_crtc.c565 static int amdgpu_dm_crtc_count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) in amdgpu_dm_crtc_count_crtc_active_planes() argument
567 struct drm_atomic_state *state = new_crtc_state->state; in amdgpu_dm_crtc_count_crtc_active_planes()
571 drm_for_each_plane_mask(plane, state->dev, new_crtc_state->plane_mask) { in amdgpu_dm_crtc_count_crtc_active_planes()
598 struct drm_crtc_state *new_crtc_state) in amdgpu_dm_crtc_update_crtc_active_planes() argument
601 to_dm_crtc_state(new_crtc_state); in amdgpu_dm_crtc_update_crtc_active_planes()
609 amdgpu_dm_crtc_count_crtc_active_planes(new_crtc_state); in amdgpu_dm_crtc_update_crtc_active_planes()
/linux/drivers/gpu/drm/rockchip/
H A Danalogix_dp-rockchip.c224 struct drm_crtc_state *new_crtc_state = NULL; in rockchip_dp_drm_encoder_disable() local
232 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in rockchip_dp_drm_encoder_disable()
234 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_disable()
/linux/drivers/gpu/drm/tiny/
H A Dofdrm.c768 struct drm_crtc_state *new_crtc_state = NULL; in ofdrm_primary_plane_helper_atomic_check() local
773 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_plane_state->crtc); in ofdrm_primary_plane_helper_atomic_check()
775 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in ofdrm_primary_plane_helper_atomic_check()
794 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_plane_state->crtc); in ofdrm_primary_plane_helper_atomic_check()
796 new_ofdrm_crtc_state = to_ofdrm_crtc_state(new_crtc_state); in ofdrm_primary_plane_helper_atomic_check()
904 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in ofdrm_crtc_helper_atomic_check() local
907 if (!new_crtc_state->enable) in ofdrm_crtc_helper_atomic_check()
910 ret = drm_atomic_helper_check_crtc_primary_plane(new_crtc_state); in ofdrm_crtc_helper_atomic_check()
914 if (new_crtc_state->color_mgmt_changed) { in ofdrm_crtc_helper_atomic_check()
915 struct drm_property_blob *gamma_lut = new_crtc_state->gamma_lut; in ofdrm_crtc_helper_atomic_check()

123