/drivers/gpu/drm/tests/ |
D | drm_damage_helper_test.c | 23 struct drm_plane_state old_state; member 40 mock->old_state.plane = &mock->plane; in drm_damage_helper_init() 127 set_plane_src(&mock->old_state, 0, 0, mock->fb.width << 16, mock->fb.height << 16); in drm_test_damage_iter_no_damage() 129 drm_atomic_helper_damage_iter_init(&iter, &mock->old_state, &mock->state); in drm_test_damage_iter_no_damage() 145 set_plane_src(&mock->old_state, 0x3fffe, 0x3fffe, in drm_test_damage_iter_no_damage_fractional_src() 149 drm_atomic_helper_damage_iter_init(&iter, &mock->old_state, &mock->state); in drm_test_damage_iter_no_damage_fractional_src() 166 set_plane_src(&mock->old_state, 0, 0, 1024 << 16, 768 << 16); in drm_test_damage_iter_no_damage_src_moved() 169 drm_atomic_helper_damage_iter_init(&iter, &mock->old_state, &mock->state); in drm_test_damage_iter_no_damage_src_moved() 185 set_plane_src(&mock->old_state, 0x3fffe, 0x3fffe, in drm_test_damage_iter_no_damage_fractional_src_moved() 189 drm_atomic_helper_damage_iter_init(&iter, &mock->old_state, &mock->state); in drm_test_damage_iter_no_damage_fractional_src_moved() [all …]
|
/drivers/gpu/drm/ |
D | drm_atomic_helper.c | 1091 crtc_needs_disable(struct drm_crtc_state *old_state, in crtc_needs_disable() argument 1099 return drm_atomic_crtc_effectively_active(old_state); in crtc_needs_disable() 1106 if (old_state->self_refresh_active && in crtc_needs_disable() 1107 old_state->crtc != new_state->crtc) in crtc_needs_disable() 1116 return old_state->active || in crtc_needs_disable() 1117 (old_state->self_refresh_active && !new_state->active) || in crtc_needs_disable() 1122 disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state) in disable_outputs() argument 1130 for_each_oldnew_connector_in_state(old_state, connector, old_conn_state, new_conn_state, i) { in disable_outputs() 1142 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, old_conn_state->crtc); in disable_outputs() 1146 old_state, in disable_outputs() [all …]
|
D | drm_bridge.c | 596 struct drm_atomic_state *old_state) in drm_atomic_bridge_chain_disable() argument 610 drm_atomic_get_old_bridge_state(old_state, in drm_atomic_bridge_chain_disable() 627 struct drm_atomic_state *old_state) in drm_atomic_bridge_call_post_disable() argument 629 if (old_state && bridge->funcs->atomic_post_disable) { in drm_atomic_bridge_call_post_disable() 633 drm_atomic_get_old_bridge_state(old_state, in drm_atomic_bridge_call_post_disable() 663 struct drm_atomic_state *old_state) in drm_atomic_bridge_chain_post_disable() argument 710 old_state); in drm_atomic_bridge_chain_post_disable() 715 drm_atomic_bridge_call_post_disable(bridge, old_state); in drm_atomic_bridge_chain_post_disable() 725 struct drm_atomic_state *old_state) in drm_atomic_bridge_call_pre_enable() argument 727 if (old_state && bridge->funcs->atomic_pre_enable) { in drm_atomic_bridge_call_pre_enable() [all …]
|
/drivers/gpu/drm/armada/ |
D | armada_overlay.c | 73 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in armada_drm_overlay_plane_atomic_update() local 91 old_state->visible, new_state->visible); in armada_drm_overlay_plane_atomic_update() 97 if (!old_state->visible && new_state->visible) in armada_drm_overlay_plane_atomic_update() 102 if (armada_src_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update() 105 if (armada_dst_yx(old_state) != val) in armada_drm_overlay_plane_atomic_update() 108 if (armada_dst_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update() 111 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_overlay_plane_atomic_update() 112 old_state->src.y1 != new_state->src.y1 || in armada_drm_overlay_plane_atomic_update() 113 old_state->fb != new_state->fb || in armada_drm_overlay_plane_atomic_update() 160 } else if (old_state->visible != new_state->visible) { in armada_drm_overlay_plane_atomic_update() [all …]
|
D | armada_plane.c | 139 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in armada_drm_primary_plane_atomic_update() local 157 old_state->visible, new_state->visible); in armada_drm_primary_plane_atomic_update() 163 if (!old_state->visible && new_state->visible) { in armada_drm_primary_plane_atomic_update() 170 if (armada_src_hw(old_state) != val) in armada_drm_primary_plane_atomic_update() 173 if (armada_dst_yx(old_state) != val) in armada_drm_primary_plane_atomic_update() 176 if (armada_dst_hw(old_state) != val) in armada_drm_primary_plane_atomic_update() 178 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_primary_plane_atomic_update() 179 old_state->src.y1 != new_state->src.y1 || in armada_drm_primary_plane_atomic_update() 180 old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update() 190 if (old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update() [all …]
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | tt.c | 244 enum iwl_tt_state old_state; in iwl_legacy_tt_handler() local 256 old_state = tt->state; in iwl_legacy_tt_handler() 272 if (tt->state != old_state) { in iwl_legacy_tt_handler() 292 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler() 299 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler() 301 tt->state = old_state; in iwl_legacy_tt_handler() 311 tt->state = old_state; in iwl_legacy_tt_handler() 313 } else if (old_state == IWL_TI_CT_KILL) { in iwl_legacy_tt_handler() 351 enum iwl_tt_state old_state; in iwl_advance_tt_handler() local 354 old_state = tt->state; in iwl_advance_tt_handler() [all …]
|
/drivers/gpu/drm/vkms/ |
D | vkms_drv.c | 64 static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state) in vkms_atomic_commit_tail() argument 66 struct drm_device *dev = old_state->dev; in vkms_atomic_commit_tail() 71 drm_atomic_helper_commit_modeset_disables(dev, old_state); in vkms_atomic_commit_tail() 73 drm_atomic_helper_commit_planes(dev, old_state, 0); in vkms_atomic_commit_tail() 75 drm_atomic_helper_commit_modeset_enables(dev, old_state); in vkms_atomic_commit_tail() 77 drm_atomic_helper_fake_vblank(old_state); in vkms_atomic_commit_tail() 79 drm_atomic_helper_commit_hw_done(old_state); in vkms_atomic_commit_tail() 81 drm_atomic_helper_wait_for_flip_done(dev, old_state); in vkms_atomic_commit_tail() 83 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail() 90 drm_atomic_helper_cleanup_planes(dev, old_state); in vkms_atomic_commit_tail()
|
/drivers/gpu/drm/imx/dcss/ |
D | dcss-plane.c | 249 struct drm_plane_state *old_state) in dcss_plane_needs_setup() argument 252 struct drm_framebuffer *old_fb = old_state->fb; in dcss_plane_needs_setup() 254 return state->crtc_x != old_state->crtc_x || in dcss_plane_needs_setup() 255 state->crtc_y != old_state->crtc_y || in dcss_plane_needs_setup() 256 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup() 257 state->crtc_h != old_state->crtc_h || in dcss_plane_needs_setup() 258 state->src_x != old_state->src_x || in dcss_plane_needs_setup() 259 state->src_y != old_state->src_y || in dcss_plane_needs_setup() 260 state->src_w != old_state->src_w || in dcss_plane_needs_setup() 261 state->src_h != old_state->src_h || in dcss_plane_needs_setup() [all …]
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_plane.c | 217 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in virtio_gpu_primary_plane_update() local 227 if (old_state->crtc) in virtio_gpu_primary_plane_update() 228 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_primary_plane_update() 242 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update() 249 if (plane->state->fb != old_state->fb || in virtio_gpu_primary_plane_update() 250 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update() 251 plane->state->src_h != old_state->src_h || in virtio_gpu_primary_plane_update() 252 plane->state->src_x != old_state->src_x || in virtio_gpu_primary_plane_update() 253 plane->state->src_y != old_state->src_y || in virtio_gpu_primary_plane_update() 334 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in virtio_gpu_cursor_plane_update() local [all …]
|
/drivers/video/backlight/ |
D | pandora_bl.c | 36 unsigned old_state; member 57 if (priv->old_state == PANDORABL_WAS_OFF) in pandora_backlight_update_status() 70 if (priv->old_state == PANDORABL_WAS_OFF) { in pandora_backlight_update_status() 97 priv->old_state = 0; in pandora_backlight_update_status() 99 priv->old_state = PANDORABL_WAS_OFF; in pandora_backlight_update_status() 137 priv->old_state = PANDORABL_WAS_OFF; in pandora_backlight_probe()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_drv.c | 49 struct drm_atomic_state *old_state) in omap_atomic_wait_for_completion() argument 56 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in omap_atomic_wait_for_completion() 68 static void omap_atomic_commit_tail(struct drm_atomic_state *old_state) in omap_atomic_commit_tail() argument 70 struct drm_device *dev = old_state->dev; in omap_atomic_commit_tail() 76 drm_atomic_helper_commit_modeset_disables(dev, old_state); in omap_atomic_commit_tail() 90 drm_atomic_helper_commit_modeset_enables(dev, old_state); in omap_atomic_commit_tail() 91 omap_atomic_wait_for_completion(dev, old_state); in omap_atomic_commit_tail() 93 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail() 95 drm_atomic_helper_commit_hw_done(old_state); in omap_atomic_commit_tail() 102 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail() [all …]
|
D | omap_plane.c | 57 struct drm_plane_state *old_state) in omap_plane_cleanup_fb() argument 59 if (old_state->fb) in omap_plane_cleanup_fb() 60 omap_framebuffer_unpin(old_state->fb); in omap_plane_cleanup_fb() 69 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in omap_plane_atomic_update() local 79 old_omap_state = to_omap_plane_state(old_state); in omap_plane_atomic_update() 175 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in omap_plane_atomic_disable() local 181 old_omap_state = to_omap_plane_state(old_state); in omap_plane_atomic_disable() 192 if (is_omap_plane_dual_overlay(old_state)) { in omap_plane_atomic_disable()
|
/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 172 u16 *old_state) in pmic8xxx_kp_read_matrix() argument 184 if (old_state) { in pmic8xxx_kp_read_matrix() 185 rc = pmic8xxx_kp_read_data(kp, old_state, KEYP_OLD_DATA, in pmic8xxx_kp_read_matrix() 220 u16 *old_state) in __pmic8xxx_kp_scan_matrix() argument 225 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix() 277 u16 old_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local 293 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix() 297 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); in pmic8xxx_kp_scan_matrix() 298 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix() 303 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix() [all …]
|
/drivers/gpu/drm/tidss/ |
D | tidss_kms.c | 22 static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state) in tidss_atomic_commit_tail() argument 24 struct drm_device *ddev = old_state->dev; in tidss_atomic_commit_tail() 31 drm_atomic_helper_commit_modeset_disables(ddev, old_state); in tidss_atomic_commit_tail() 32 drm_atomic_helper_commit_planes(ddev, old_state, 0); in tidss_atomic_commit_tail() 33 drm_atomic_helper_commit_modeset_enables(ddev, old_state); in tidss_atomic_commit_tail() 35 drm_atomic_helper_commit_hw_done(old_state); in tidss_atomic_commit_tail() 36 drm_atomic_helper_wait_for_flip_done(ddev, old_state); in tidss_atomic_commit_tail() 38 drm_atomic_helper_cleanup_planes(ddev, old_state); in tidss_atomic_commit_tail()
|
/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_kms.c | 88 static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) in komeda_kms_commit_tail() argument 90 struct drm_device *dev = old_state->dev; in komeda_kms_commit_tail() 93 drm_atomic_helper_commit_modeset_disables(dev, old_state); in komeda_kms_commit_tail() 95 drm_atomic_helper_commit_planes(dev, old_state, in komeda_kms_commit_tail() 98 drm_atomic_helper_commit_modeset_enables(dev, old_state); in komeda_kms_commit_tail() 100 komeda_kms_atomic_commit_hw_done(old_state); in komeda_kms_commit_tail() 102 drm_atomic_helper_wait_for_flip_done(dev, old_state); in komeda_kms_commit_tail() 106 drm_atomic_helper_cleanup_planes(dev, old_state); in komeda_kms_commit_tail()
|
/drivers/gpu/drm/gud/ |
D | gud_connector.c | 293 struct drm_connector_state *old_state; in gud_connector_atomic_check() local 299 old_state = drm_atomic_get_old_connector_state(state, connector); in gud_connector_atomic_check() 302 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check() 303 old_state->tv.margins.right != new_state->tv.margins.right || in gud_connector_atomic_check() 304 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check() 305 old_state->tv.margins.bottom != new_state->tv.margins.bottom || in gud_connector_atomic_check() 306 old_state->tv.legacy_mode != new_state->tv.legacy_mode || in gud_connector_atomic_check() 307 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check() 308 old_state->tv.contrast != new_state->tv.contrast || in gud_connector_atomic_check() 309 old_state->tv.flicker_reduction != new_state->tv.flicker_reduction || in gud_connector_atomic_check() [all …]
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_drv.h | 277 void (*pixpllc_atomic_update)(struct drm_crtc *crtc, struct drm_atomic_state *old_state); 346 void mgag200_g200wb_pixpllc_atomic_update(struct drm_crtc *crtc, struct drm_atomic_state *old_state… 350 void mgag200_g200eh_pixpllc_atomic_update(struct drm_crtc *crtc, struct drm_atomic_state *old_state… 377 struct drm_atomic_state *old_state); 381 struct drm_atomic_state *old_state); 403 void mgag200_crtc_helper_atomic_flush(struct drm_crtc *crtc, struct drm_atomic_state *old_state); 404 void mgag200_crtc_helper_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *old_state); 405 void mgag200_crtc_helper_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *old_state);
|
/drivers/bus/mhi/ep/ |
D | sm.c | 62 enum mhi_state old_state; in mhi_ep_set_m0_state() local 68 old_state = mhi_cntrl->mhi_state; in mhi_ep_set_m0_state() 69 if (old_state == MHI_STATE_M3) in mhi_ep_set_m0_state() 85 if (old_state == MHI_STATE_READY) { in mhi_ep_set_m0_state()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_plane.c | 159 struct drm_plane_state *old_state) in exynos_drm_plane_destroy_state() argument 162 to_exynos_plane_state(old_state); in exynos_drm_plane_destroy_state() 163 __drm_atomic_helper_plane_destroy_state(old_state); in exynos_drm_plane_destroy_state() 273 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, plane); in exynos_plane_atomic_disable() local 275 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(old_state->crtc); in exynos_plane_atomic_disable() 277 if (!old_state->crtc) in exynos_plane_atomic_disable()
|
/drivers/gpu/drm/imx/ipuv3/ |
D | ipuv3-plane.c | 371 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in ipu_plane_atomic_check() local 376 struct drm_framebuffer *old_fb = old_state->fb; in ipu_plane_atomic_check() 429 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || in ipu_plane_atomic_check() 430 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || in ipu_plane_atomic_check() 472 old_vbo = drm_plane_state_to_vbo(old_state); in ipu_plane_atomic_check() 489 old_ubo = drm_plane_state_to_ubo(old_state); in ipu_plane_atomic_check() 577 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in ipu_plane_atomic_update() local 637 if (!old_state->fb || in ipu_plane_atomic_update() 638 old_state->fb->format->format != fb->format->format || in ipu_plane_atomic_update() 639 old_state->color_encoding != new_state->color_encoding || in ipu_plane_atomic_update() [all …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_qp_grp.c | 395 enum ib_qp_state old_state; in usnic_ib_qp_grp_modify() local 399 old_state = qp_grp->state; in usnic_ib_qp_grp_modify() 405 switch (old_state) { in usnic_ib_qp_grp_modify() 424 switch (old_state) { in usnic_ib_qp_grp_modify() 467 switch (old_state) { in usnic_ib_qp_grp_modify() 476 switch (old_state) { in usnic_ib_qp_grp_modify() 489 switch (old_state) { in usnic_ib_qp_grp_modify() 519 usnic_ib_qp_grp_state_to_string(old_state), in usnic_ib_qp_grp_modify() 524 usnic_ib_qp_grp_state_to_string(old_state), in usnic_ib_qp_grp_modify()
|
/drivers/gpu/drm/i915/display/ |
D | intel_global_state.h | 44 (new_obj_state) = (__state)->global_objs[__i].old_state, 1); \ 52 (old_obj_state) = (__state)->global_objs[__i].old_state, \ 66 struct intel_global_state *state, *old_state, *new_state; member
|
/drivers/gpu/drm/imx/lcdc/ |
D | imx-lcdc.c | 137 struct drm_plane_state *old_state, in imx_lcdc_update_hw_registers() argument 156 if (old_state && old_state->crtc && old_state->crtc->enabled) in imx_lcdc_update_hw_registers() 297 struct drm_plane_state *old_state) in imx_lcdc_pipe_update() argument 303 struct drm_framebuffer *old_fb = old_state->fb; in imx_lcdc_pipe_update() 304 struct drm_crtc *old_crtc = old_state->crtc; in imx_lcdc_pipe_update() 312 imx_lcdc_update_hw_registers(pipe, old_state, mode_changed); in imx_lcdc_pipe_update()
|
/drivers/gpu/drm/arm/ |
D | malidp_crtc.c | 76 struct drm_crtc_state *old_state = drm_atomic_get_old_crtc_state(state, in malidp_crtc_atomic_disable() local 83 drm_atomic_helper_disable_planes_on_crtc(old_state, false); in malidp_crtc_atomic_disable() 448 struct malidp_crtc_state *state, *old_state; in malidp_crtc_duplicate_state() local 453 old_state = to_malidp_crtc_state(crtc->state); in malidp_crtc_duplicate_state() 459 memcpy(state->gamma_coeffs, old_state->gamma_coeffs, in malidp_crtc_duplicate_state() 461 memcpy(state->coloradj_coeffs, old_state->coloradj_coeffs, in malidp_crtc_duplicate_state() 463 memcpy(&state->scaler_config, &old_state->scaler_config, in malidp_crtc_duplicate_state()
|
/drivers/gpu/drm/tilcdc/ |
D | tilcdc_plane.c | 29 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in tilcdc_plane_atomic_check() local 68 if (old_state->fb && new_state->fb->format != old_state->fb->format) { in tilcdc_plane_atomic_check()
|