Lines Matching refs:uapi
547 return drm_atomic_crtc_needs_modeset(&state->uapi); in needs_modeset()
678 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in i9xx_select_p2_div()
714 struct drm_device *dev = crtc_state->uapi.crtc->dev; in i9xx_find_best_dpll()
772 struct drm_device *dev = crtc_state->uapi.crtc->dev; in pnv_find_best_dpll()
828 struct drm_device *dev = crtc_state->uapi.crtc->dev; in g4x_find_best_dpll()
922 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in vlv_find_best_dpll()
982 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in chv_find_best_dpll()
1089 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_wait_for_pipe_off()
1559 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_disable_pll()
1652 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_enable_pch_transcoder()
1810 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in intel_crtc_max_vblank_count()
1830 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_crtc_vblank_on()
1840 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_crtc_vblank_off()
1848 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_pipe()
1906 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_disable_pipe()
2210 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_uses_fence()
2524 struct intel_plane *intel_plane = to_intel_plane(state->uapi.plane); in intel_plane_compute_aligned_offset()
2809 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_can_remap()
2849 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_needs_remap()
2858 if (!plane_state->uapi.visible) in intel_plane_needs_remap()
3152 to_i915(plane_state->uapi.plane->dev); in intel_plane_remap_gtt()
3167 src_x = plane_state->uapi.src.x1 >> 16; in intel_plane_remap_gtt()
3168 src_y = plane_state->uapi.src.y1 >> 16; in intel_plane_remap_gtt()
3169 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_plane_remap_gtt()
3170 src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_plane_remap_gtt()
3175 drm_rect_translate(&plane_state->uapi.src, in intel_plane_remap_gtt()
3180 drm_rect_rotate(&plane_state->uapi.src, in intel_plane_remap_gtt()
3301 drm_rect_rotate(&plane_state->uapi.src, in intel_plane_compute_gtt()
3529 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_set_plane_visible()
3531 plane_state->uapi.visible = visible; in intel_set_plane_visible()
3534 crtc_state->uapi.plane_mask |= drm_plane_mask(&plane->base); in intel_set_plane_visible()
3536 crtc_state->uapi.plane_mask &= ~drm_plane_mask(&plane->base); in intel_set_plane_visible()
3541 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in fixup_active_planes()
3552 crtc_state->uapi.plane_mask) in fixup_active_planes()
3689 intel_state->uapi.src = drm_plane_state_src(plane_state); in intel_find_initial_plane_obj()
3690 intel_state->uapi.dst = drm_plane_state_dest(plane_state); in intel_find_initial_plane_obj()
3887 struct drm_i915_private *dev_priv = to_i915(plane_state->uapi.plane->dev); in skl_check_main_surface()
3890 int x = plane_state->uapi.src.x1 >> 16; in skl_check_main_surface()
3891 int y = plane_state->uapi.src.y1 >> 16; in skl_check_main_surface()
3892 int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_check_main_surface()
3893 int h = drm_rect_height(&plane_state->uapi.src) >> 16; in skl_check_main_surface()
3988 drm_rect_translate_to(&plane_state->uapi.src, in skl_check_main_surface()
3996 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in skl_check_nv12_aux_surface()
4002 int x = plane_state->uapi.src.x1 >> 17; in skl_check_nv12_aux_surface()
4003 int y = plane_state->uapi.src.y1 >> 17; in skl_check_nv12_aux_surface()
4004 int w = drm_rect_width(&plane_state->uapi.src) >> 17; in skl_check_nv12_aux_surface()
4005 int h = drm_rect_height(&plane_state->uapi.src) >> 17; in skl_check_nv12_aux_surface()
4061 int src_x = plane_state->uapi.src.x1 >> 16; in skl_check_ccs_aux_surface()
4062 int src_y = plane_state->uapi.src.y1 >> 16; in skl_check_ccs_aux_surface()
4110 if (!plane_state->uapi.visible) in skl_check_plane_surface()
4219 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_plane_ctl_crtc()
4239 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl()
4311 to_i915(plane_state->uapi.plane->dev); in i9xx_check_plane_surface()
4321 if (!plane_state->uapi.visible) in i9xx_check_plane_surface()
4324 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
4325 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface()
4326 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface()
4344 drm_rect_translate_to(&plane_state->uapi.src, in i9xx_check_plane_surface()
4350 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
4351 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
4388 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_plane_check()
4395 ret = drm_atomic_helper_check_plane_state(&plane_state->uapi, in i9xx_plane_check()
4396 &crtc_state->uapi, in i9xx_plane_check()
4408 if (!plane_state->uapi.visible) in i9xx_plane_check()
4429 int crtc_x = plane_state->uapi.dst.x1; in i9xx_update_plane()
4430 int crtc_y = plane_state->uapi.dst.y1; in i9xx_update_plane()
4431 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_update_plane()
4432 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_update_plane()
4581 struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->uapi.crtc); in skl_detach_scalers()
4786 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in skl_plane_ctl_crtc()
4805 to_i915(plane_state->uapi.plane->dev); in skl_plane_ctl()
4842 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in glk_plane_color_ctl_crtc()
4861 to_i915(plane_state->uapi.plane->dev); in glk_plane_color_ctl()
4863 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in glk_plane_color_ctl()
5482 struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_fdi_pll_enable()
5642 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in lpt_program_iclkip()
5755 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_pch_transcoder_set_timings()
5803 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ivb_update_fdi_bc_bifurcation()
5833 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_get_crtc_new_encoder()
5866 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_pch_enable()
5949 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in lpt_pch_enable()
6069 to_intel_crtc(crtc_state->uapi.crtc); in skl_update_scaler()
6189 to_intel_plane(plane_state->uapi.plane); in skl_update_scaler_plane()
6193 bool force_detach = !fb || !plane_state->uapi.visible; in skl_update_scaler_plane()
6204 drm_rect_width(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane()
6205 drm_rect_height(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane()
6206 drm_rect_width(&plane_state->uapi.dst), in skl_update_scaler_plane()
6207 drm_rect_height(&plane_state->uapi.dst), in skl_update_scaler_plane()
6271 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in skl_scaler_disable()
6280 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in skl_pfit_enable()
6332 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_pfit_enable()
6360 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_enable_ips()
6397 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_disable_ips()
6437 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in hsw_pre_update_disable_ips()
6453 (new_crtc_state->uapi.color_mgmt_changed || in hsw_pre_update_disable_ips()
6464 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in hsw_post_update_enable_ips()
6480 (new_crtc_state->uapi.color_mgmt_changed || in hsw_post_update_enable_ips()
6497 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in needs_nv12_wa()
6511 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in needs_scalerclk_wa()
6671 if (old_plane_state->uapi.visible) in intel_crtc_disable_planes()
6911 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_disable_primary_plane()
7050 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_set_linetime_wm()
7060 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_set_frame_start_delay()
7165 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in ilk_pfit_disable()
7249 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_pfit_enable()
7412 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in get_crtc_power_domains()
7429 crtc_state->uapi.encoder_mask) { in get_crtc_power_domains()
7447 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in modeset_get_crtc_power_domains()
7530 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_set_pll_dividers()
7593 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in i9xx_pfit_disable()
7681 if (plane_state->uapi.visible) in intel_crtc_disable_noatomic()
7713 drm_atomic_set_mode_for_crtc(&crtc_state->uapi, NULL) < 0); in intel_crtc_disable_noatomic()
7714 crtc_state->uapi.active = false; in intel_crtc_disable_noatomic()
7715 crtc_state->uapi.connector_mask = 0; in intel_crtc_disable_noatomic()
7716 crtc_state->uapi.encoder_mask = 0; in intel_crtc_disable_noatomic()
7822 struct drm_atomic_state *state = pipe_config->uapi.state; in ilk_check_fdi_lanes()
7949 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_crtc_state_ips_capable()
7979 to_i915(crtc_state->uapi.crtc->dev); in hsw_compute_ips_config()
7981 to_intel_atomic_state(crtc_state->uapi.state); in hsw_compute_ips_config()
8051 if (drm_WARN_ON(crtc_state->uapi.crtc->dev, in ilk_pipe_pixel_rate()
8061 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in intel_crtc_compute_pixel_rate()
8302 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_pch_transcoder_set_m_n()
8330 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_cpu_transcoder_set_m_n()
8371 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in intel_dp_set_m_n()
8811 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_set_pipe_timings()
8869 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_set_pipe_src_size()
8882 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in intel_pipe_is_interlaced()
8978 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_set_pipeconf()
9200 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in chv_crtc_compute_clock()
9222 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in vlv_crtc_compute_clock()
9250 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_get_pfit_config()
9445 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_get_pipe_color_config()
10091 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_set_pipeconf()
10148 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_set_pipeconf()
10171 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in bdw_set_pipemisc()
10360 to_intel_atomic_state(crtc_state->uapi.state); in ilk_crtc_compute_clock()
10503 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in skl_get_pfit_config()
10675 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in ilk_get_pfit_config()
10822 to_intel_atomic_state(crtc_state->uapi.state); in hsw_crtc_compute_clock()
11325 to_i915(plane_state->uapi.plane->dev); in intel_cursor_base()
11340 int x = plane_state->uapi.dst.x1; in intel_cursor_position()
11341 int y = plane_state->uapi.dst.y1; in intel_cursor_position()
11362 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
11363 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
11364 int height = drm_rect_height(&plane_state->uapi.dst); in intel_cursor_size_ok()
11373 to_i915(plane_state->uapi.plane->dev); in intel_cursor_check_surface()
11383 if (!plane_state->uapi.visible) in intel_cursor_check_surface()
11386 src_x = plane_state->uapi.src.x1 >> 16; in intel_cursor_check_surface()
11387 src_y = plane_state->uapi.src.y1 >> 16; in intel_cursor_check_surface()
11403 drm_rect_translate_to(&plane_state->uapi.src, in intel_cursor_check_surface()
11409 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
11410 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
11426 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in intel_check_cursor()
11434 ret = drm_atomic_helper_check_plane_state(&plane_state->uapi, in intel_check_cursor()
11435 &crtc_state->uapi, in intel_check_cursor()
11443 plane_state->uapi.src = drm_plane_state_src(&plane_state->uapi); in intel_check_cursor()
11444 plane_state->uapi.dst = drm_plane_state_dest(&plane_state->uapi); in intel_check_cursor()
11450 if (!plane_state->uapi.visible) in intel_check_cursor()
11488 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
11501 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in i845_check_cursor()
11516 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
11517 drm_rect_height(&plane_state->uapi.dst)); in i845_check_cursor()
11521 drm_WARN_ON(&i915->drm, plane_state->uapi.visible && in i845_check_cursor()
11549 if (plane_state && plane_state->uapi.visible) { in i845_update_cursor()
11550 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_update_cursor()
11551 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_update_cursor()
11624 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in i9xx_cursor_ctl_crtc()
11647 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_ctl()
11653 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
11664 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
11677 to_i915(plane_state->uapi.plane->dev); in i9xx_cursor_size_ok()
11678 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
11679 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
11715 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in i9xx_check_cursor()
11733 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
11734 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor()
11738 drm_WARN_ON(&dev_priv->drm, plane_state->uapi.visible && in i9xx_check_cursor()
11742 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
11746 drm_rect_width(&plane_state->uapi.dst)); in i9xx_check_cursor()
11761 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
11781 if (plane_state && plane_state->uapi.visible) { in i9xx_update_cursor()
11782 unsigned width = drm_rect_width(&plane_state->uapi.dst); in i9xx_update_cursor()
11783 unsigned height = drm_rect_height(&plane_state->uapi.dst); in i9xx_update_cursor()
12040 crtc_state->uapi.active = true; in intel_get_load_detect_pipe()
12042 ret = drm_atomic_set_mode_for_crtc(&crtc_state->uapi, in intel_get_load_detect_pipe()
12268 __drm_atomic_helper_crtc_state_reset(&crtc_state->uapi, &crtc->base); in intel_crtc_state_reset()
12352 if (new->uapi.visible != cur->uapi.visible) in intel_wm_need_update()
12360 drm_rect_width(&new->uapi.src) != drm_rect_width(&cur->uapi.src) || in intel_wm_need_update()
12361 drm_rect_height(&new->uapi.src) != drm_rect_height(&cur->uapi.src) || in intel_wm_need_update()
12362 drm_rect_width(&new->uapi.dst) != drm_rect_width(&cur->uapi.dst) || in intel_wm_need_update()
12363 drm_rect_height(&new->uapi.dst) != drm_rect_height(&cur->uapi.dst)) in intel_wm_need_update()
12371 int src_w = drm_rect_width(&state->uapi.src) >> 16; in needs_scaling()
12372 int src_h = drm_rect_height(&state->uapi.src) >> 16; in needs_scaling()
12373 int dst_w = drm_rect_width(&state->uapi.dst); in needs_scaling()
12374 int dst_h = drm_rect_height(&state->uapi.dst); in needs_scaling()
12384 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_plane_atomic_calc_changes()
12385 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_atomic_calc_changes()
12399 was_visible = old_plane_state->uapi.visible; in intel_plane_atomic_calc_changes()
12400 visible = plane_state->uapi.visible; in intel_plane_atomic_calc_changes()
12558 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in icl_check_nv12_planes()
12560 struct intel_atomic_state *state = to_intel_atomic_state(crtc_state->uapi.state); in icl_check_nv12_planes()
12577 if (plane_state->planar_slave && !plane_state->uapi.visible) { in icl_check_nv12_planes()
12634 linked_state->uapi.src = plane_state->uapi.src; in icl_check_nv12_planes()
12635 linked_state->uapi.dst = plane_state->uapi.dst; in icl_check_nv12_planes()
12656 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in c8_planes_changed()
12658 to_intel_atomic_state(new_crtc_state->uapi.state); in c8_planes_changed()
12698 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in skl_linetime_wm()
12769 crtc_state->uapi.color_mgmt_changed = true; in intel_crtc_atomic_check()
12772 crtc_state->uapi.color_mgmt_changed) { in intel_crtc_atomic_check()
12867 struct drm_i915_private *i915 = to_i915(pipe_config->uapi.crtc->dev); in compute_sink_pipe_bpp()
12909 struct drm_atomic_state *state = pipe_config->uapi.state; in compute_baseline_pipe_bpp()
12957 struct drm_i915_private *i915 = to_i915(pipe_config->uapi.crtc->dev); in intel_dump_m_n_config()
13048 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_dump_plane_state()
13057 yesno(plane_state->uapi.visible)); in intel_dump_plane_state()
13066 yesno(plane_state->uapi.visible)); in intel_dump_plane_state()
13069 if (plane_state->uapi.visible) in intel_dump_plane_state()
13072 DRM_RECT_FP_ARG(&plane_state->uapi.src), in intel_dump_plane_state()
13073 DRM_RECT_ARG(&plane_state->uapi.dst)); in intel_dump_plane_state()
13080 struct intel_crtc *crtc = to_intel_crtc(pipe_config->uapi.crtc); in intel_dump_pipe_config()
13294 crtc_state->hw.enable = crtc_state->uapi.enable; in intel_crtc_copy_uapi_to_hw_state()
13295 crtc_state->hw.active = crtc_state->uapi.active; in intel_crtc_copy_uapi_to_hw_state()
13296 crtc_state->hw.mode = crtc_state->uapi.mode; in intel_crtc_copy_uapi_to_hw_state()
13297 crtc_state->hw.adjusted_mode = crtc_state->uapi.adjusted_mode; in intel_crtc_copy_uapi_to_hw_state()
13303 crtc_state->uapi.enable = crtc_state->hw.enable; in intel_crtc_copy_hw_to_uapi_state()
13304 crtc_state->uapi.active = crtc_state->hw.active; in intel_crtc_copy_hw_to_uapi_state()
13305 drm_WARN_ON(crtc_state->uapi.crtc->dev, in intel_crtc_copy_hw_to_uapi_state()
13306 drm_atomic_set_mode_for_crtc(&crtc_state->uapi, &crtc_state->hw.mode) < 0); in intel_crtc_copy_hw_to_uapi_state()
13308 crtc_state->uapi.adjusted_mode = crtc_state->hw.adjusted_mode; in intel_crtc_copy_hw_to_uapi_state()
13311 drm_property_replace_blob(&crtc_state->uapi.degamma_lut, in intel_crtc_copy_hw_to_uapi_state()
13313 drm_property_replace_blob(&crtc_state->uapi.gamma_lut, in intel_crtc_copy_hw_to_uapi_state()
13315 drm_property_replace_blob(&crtc_state->uapi.ctm, in intel_crtc_copy_hw_to_uapi_state()
13322 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_crtc_prepare_cleared_state()
13338 saved_state->uapi = crtc_state->uapi; in intel_crtc_prepare_cleared_state()
13360 struct drm_crtc *crtc = pipe_config->uapi.crtc; in intel_modeset_pipe_config()
13361 struct drm_atomic_state *state = pipe_config->uapi.state; in intel_modeset_pipe_config()
13362 struct drm_i915_private *i915 = to_i915(pipe_config->uapi.crtc->dev); in intel_modeset_pipe_config()
13500 to_intel_atomic_state(crtc_state->uapi.state); in intel_modeset_pipe_config_late()
13501 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_modeset_pipe_config_late()
13695 struct drm_i915_private *dev_priv = to_i915(current_config->uapi.crtc->dev); in intel_pipe_config_compare()
13696 struct intel_crtc *crtc = to_intel_crtc(pipe_config->uapi.crtc); in intel_pipe_config_compare()
14312 struct drm_atomic_state *state = old_crtc_state->uapi.state; in verify_crtc_state()
14314 __drm_atomic_helper_crtc_destroy_state(&old_crtc_state->uapi); in verify_crtc_state()
14317 old_crtc_state->uapi.state = state; in verify_crtc_state()
14384 plane_state->uapi.visible); in intel_verify_planes()
14504 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_crtc_update_active_timings()
14687 new_crtc_state->uapi.mode_changed = false; in intel_crtc_check_fastset()
14904 new_crtc_state->uapi.mode_changed = true; in intel_atomic_check()
14963 new_crtc_state->uapi.mode_changed = true; in intel_atomic_check()
14975 new_crtc_state->uapi.mode_changed = true; in intel_atomic_check()
15094 crtc_state->uapi.color_mgmt_changed) { in intel_atomic_prepare_commit()
15132 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_fastset()
15189 if (new_crtc_state->uapi.color_mgmt_changed || in commit_pipe_config()
15239 (new_crtc_state->uapi.color_mgmt_changed || in intel_update_crtc()
15604 if (modeset && !new_crtc_state->hw.active && new_crtc_state->uapi.event) { in intel_atomic_commit_tail()
15607 new_crtc_state->uapi.event); in intel_atomic_commit_tail()
15610 new_crtc_state->uapi.event = NULL; in intel_atomic_commit_tail()
15643 (new_crtc_state->uapi.color_mgmt_changed || in intel_atomic_commit_tail()
15923 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_pin_fb()
15989 to_intel_atomic_state(new_plane_state->uapi.state); in intel_prepare_plane_fb()
16023 if (new_plane_state->uapi.fence) { /* explicit fencing */ in intel_prepare_plane_fb()
16025 new_plane_state->uapi.fence, in intel_prepare_plane_fb()
16048 if (!new_plane_state->uapi.fence) { /* implicit fencing */ in intel_prepare_plane_fb()
16067 new_plane_state->uapi.fence); in intel_prepare_plane_fb()
16105 to_intel_atomic_state(old_plane_state->uapi.state); in intel_cleanup_plane_fb()
16245 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
16246 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
16254 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
16255 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
16256 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
16257 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
16258 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
16259 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
16272 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update()
16274 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update()
16275 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update()
16276 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update()
16277 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update()
16278 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update()
16279 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
16280 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update()
16281 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update()
16301 plane->base.state = &new_plane_state->uapi; in intel_legacy_cursor_update()
16315 if (new_plane_state->uapi.visible) in intel_legacy_cursor_update()
16324 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
16326 intel_plane_destroy_state(&plane->base, &new_plane_state->uapi); in intel_legacy_cursor_update()
16328 intel_plane_destroy_state(&plane->base, &old_plane_state->uapi); in intel_legacy_cursor_update()
16654 crtc->base.state = &crtc_state->uapi; in intel_crtc_alloc()
17764 crtc_state->uapi.color_mgmt_changed = true; in intel_initial_commit()
17780 crtc_state->uapi.mode_changed = true; in intel_initial_commit()
18224 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_sanitize_frame_start_delay()
18291 if (plane_state->uapi.visible && in intel_sanitize_crtc()
18341 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in has_bogus_dpll_config()
18482 __drm_atomic_helper_crtc_destroy_state(&crtc_state->uapi); in intel_modeset_readout_hw_state()
18550 crtc_state->uapi.connector_mask |= in intel_modeset_readout_hw_state()
18552 crtc_state->uapi.encoder_mask |= in intel_modeset_readout_hw_state()
18610 if (plane_state->uapi.visible) in intel_modeset_readout_hw_state()
18617 if (plane_state->uapi.visible && plane->min_cdclk) { in intel_modeset_readout_hw_state()