/linux/drivers/gpu/drm/selftests/ |
A D | test-drm_damage_helper.c | 109 struct drm_plane_state old_state; \ 115 mock_setup(&old_state); \ 148 set_plane_src(&old_state, 0x3fffe, 0x3fffe, in igt_damage_iter_no_damage_fractional_src() 193 set_plane_src(&old_state, 0x3fffe, 0x3fffe, in igt_damage_iter_no_damage_fractional_src_moved() 217 mock_setup(&old_state); in igt_damage_iter_no_damage_not_visible() 254 struct drm_plane_state old_state; in igt_damage_iter_no_damage_no_fb() local 263 mock_setup(&old_state); in igt_damage_iter_no_damage_no_fb() 389 set_plane_src(&old_state, 0x40002, 0x40002, in igt_damage_iter_single_damage_fractional_src() 417 set_plane_src(&old_state, 0x40002, 0x40002, in igt_damage_iter_single_damage_intersect_fractional_src() 446 set_plane_src(&old_state, 0x40002, 0x40002, in igt_damage_iter_single_damage_outside_fractional_src() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_atomic_helper.c | 1003 return old_state->active || in crtc_needs_disable() 1033 old_state, in disable_outputs() 1293 disable_outputs(dev, old_state); in drm_atomic_helper_commit_modeset_disables() 1298 crtc_set_mode(dev, old_state); in drm_atomic_helper_commit_modeset_disables() 1479 struct drm_atomic_state *old_state) in drm_atomic_helper_wait_for_vblanks() argument 1490 if (old_state->legacy_cursor_update) in drm_atomic_helper_wait_for_vblanks() 1547 crtc = old_state->crtcs[i].ptr; in drm_atomic_helper_wait_for_flip_done() 1558 if (old_state->fake_commit) in drm_atomic_helper_wait_for_flip_done() 1677 drm_atomic_state_put(old_state); in commit_tail() 2324 if (old_state->fake_commit) { in drm_atomic_helper_commit_hw_done() [all …]
|
/linux/drivers/gpu/drm/armada/ |
A D | armada_overlay.c | 89 old_state->visible, new_state->visible); in armada_drm_overlay_plane_atomic_update() 100 if (armada_src_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update() 103 if (armada_dst_yx(old_state) != val) in armada_drm_overlay_plane_atomic_update() 106 if (armada_dst_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update() 109 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_overlay_plane_atomic_update() 111 old_state->fb != new_state->fb || in armada_drm_overlay_plane_atomic_update() 178 armada_spu_contrast(old_state) != val) in armada_drm_overlay_plane_atomic_update() 188 armada_csc(old_state) != val) in armada_drm_overlay_plane_atomic_update() 230 if (!old_state->crtc) in armada_drm_overlay_plane_atomic_disable() 235 old_state->crtc->base.id, old_state->crtc->name, in armada_drm_overlay_plane_atomic_disable() [all …]
|
A D | armada_plane.c | 157 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() 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() 237 if (!old_state->crtc) in armada_drm_primary_plane_atomic_disable() 242 old_state->crtc->base.id, old_state->crtc->name, in armada_drm_primary_plane_atomic_disable() 243 old_state->fb->base.id); in armada_drm_primary_plane_atomic_disable() [all …]
|
/linux/kernel/livepatch/ |
A D | state.c | 88 struct klp_state *old_state) in klp_is_state_compatible() argument 92 state = klp_get_state(patch, old_state->id); in klp_is_state_compatible() 98 return state->version >= old_state->version; in klp_is_state_compatible() 109 struct klp_state *old_state; in klp_is_patch_compatible() local 112 klp_for_each_state(old_patch, old_state) { in klp_is_patch_compatible() 113 if (!klp_is_state_compatible(patch, old_state)) in klp_is_patch_compatible()
|
/linux/drivers/gpu/drm/vkms/ |
A D | vkms_drv.c | 63 static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state) in vkms_atomic_commit_tail() argument 65 struct drm_device *dev = old_state->dev; in vkms_atomic_commit_tail() 70 drm_atomic_helper_commit_modeset_disables(dev, old_state); in vkms_atomic_commit_tail() 72 drm_atomic_helper_commit_planes(dev, old_state, 0); in vkms_atomic_commit_tail() 74 drm_atomic_helper_commit_modeset_enables(dev, old_state); in vkms_atomic_commit_tail() 76 drm_atomic_helper_fake_vblank(old_state); in vkms_atomic_commit_tail() 78 drm_atomic_helper_commit_hw_done(old_state); in vkms_atomic_commit_tail() 80 drm_atomic_helper_wait_for_flip_done(dev, old_state); in vkms_atomic_commit_tail() 82 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail() 89 drm_atomic_helper_cleanup_planes(dev, old_state); in vkms_atomic_commit_tail()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A 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() 301 tt->state = old_state; in iwl_legacy_tt_handler() 311 tt->state = old_state; 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() 382 if (old_state != in iwl_advance_tt_handler() 443 tt->state = old_state; in iwl_advance_tt_handler() [all …]
|
/linux/drivers/gpu/drm/virtio/ |
A D | virtgpu_plane.c | 179 if (old_state->crtc) in virtio_gpu_primary_plane_update() 180 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_primary_plane_update() 201 if (plane->state->fb != old_state->fb || in virtio_gpu_primary_plane_update() 202 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update() 203 plane->state->src_h != old_state->src_h || in virtio_gpu_primary_plane_update() 204 plane->state->src_x != old_state->src_x || in virtio_gpu_primary_plane_update() 205 plane->state->src_y != old_state->src_y || in virtio_gpu_primary_plane_update() 269 struct drm_plane_state *old_state) in virtio_gpu_plane_cleanup_fb() argument 297 if (old_state->crtc) in virtio_gpu_cursor_plane_update() 298 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_cursor_plane_update() [all …]
|
/linux/arch/powerpc/kvm/ |
A D | book3s_hv_rm_xics.c | 242 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 246 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 412 union kvmppc_icp_state old_state, new_state; in icp_rm_down_cppr() local 445 old_state = new_state = READ_ONCE(icp->state); in icp_rm_down_cppr() 485 union kvmppc_icp_state old_state, new_state; in xics_rm_h_xirr() local 504 old_state = new_state = READ_ONCE(icp->state); in xics_rm_h_xirr() 506 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in xics_rm_h_xirr() 507 if (!old_state.xisr) in xics_rm_h_xirr() 524 union kvmppc_icp_state old_state, new_state; in xics_rm_h_ipi() local 587 if (mfrr > old_state.mfrr) { in xics_rm_h_ipi() [all …]
|
A D | book3s_xics.c | 339 union kvmppc_icp_state old_state, new_state; in icp_try_to_deliver() local 516 union kvmppc_icp_state old_state, new_state; in icp_down_cppr() local 588 union kvmppc_icp_state old_state, new_state; in kvmppc_h_xirr() local 605 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in kvmppc_h_xirr() 606 if (!old_state.xisr) in kvmppc_h_xirr() 622 union kvmppc_icp_state old_state, new_state; in kvmppc_h_ipi() local 687 if (mfrr > old_state.mfrr) { in kvmppc_h_ipi() 723 union kvmppc_icp_state old_state, new_state; in kvmppc_h_cppr() local 1168 old_state = READ_ONCE(icp->state); in kvmppc_xics_set_icp() 1170 if (new_state.mfrr <= old_state.mfrr) { in kvmppc_xics_set_icp() [all …]
|
/linux/include/drm/ |
A D | drm_atomic.h | 162 struct drm_plane_state *state, *old_state, *new_state; member 167 struct drm_crtc_state *state, *old_state, *new_state; member 185 struct drm_connector_state *state, *old_state, *new_state; member 326 struct drm_private_state *state, *old_state, *new_state; member 542 return state->crtcs[drm_crtc_index(crtc)].old_state; in drm_atomic_get_old_crtc_state() 589 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state() 647 return state->connectors[index].old_state; in drm_atomic_get_old_connector_state() 808 (old_crtc_state) = (__state)->crtcs[__i].old_state, \ 831 (old_crtc_state) = (__state)->crtcs[__i].old_state, 1)) 873 (old_plane_state) = (__state)->planes[__i].old_state,\ [all …]
|
A D | drm_atomic_helper.h | 68 struct drm_atomic_state *old_state); 71 struct drm_atomic_state *old_state); 75 struct drm_atomic_state *old_state); 83 struct drm_atomic_state *old_state); 95 struct drm_atomic_state *old_state);
|
A D | drm_dp_mst_helper.h | 900 struct drm_dp_mst_topology_state **old_state, in __drm_dp_mst_state_iter_get() argument 910 if (old_state) in __drm_dp_mst_state_iter_get() 911 *old_state = to_dp_mst_topology_state(objs_state->old_state); in __drm_dp_mst_state_iter_get() 933 #define for_each_oldnew_mst_mgr_in_state(__state, mgr, old_state, new_state, __i) \ argument 935 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), &(new_state), (__i))) 950 #define for_each_old_mst_mgr_in_state(__state, mgr, old_state, __i) \ argument 952 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), NULL, (__i)))
|
/linux/drivers/gpu/drm/imx/dcss/ |
A D | dcss-plane.c | 247 struct drm_plane_state *old_state) in dcss_plane_needs_setup() argument 250 struct drm_framebuffer *old_fb = old_state->fb; in dcss_plane_needs_setup() 252 return state->crtc_x != old_state->crtc_x || in dcss_plane_needs_setup() 253 state->crtc_y != old_state->crtc_y || in dcss_plane_needs_setup() 254 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup() 255 state->crtc_h != old_state->crtc_h || in dcss_plane_needs_setup() 256 state->src_x != old_state->src_x || in dcss_plane_needs_setup() 257 state->src_y != old_state->src_y || in dcss_plane_needs_setup() 258 state->src_w != old_state->src_w || in dcss_plane_needs_setup() 259 state->src_h != old_state->src_h || in dcss_plane_needs_setup() [all …]
|
/linux/drivers/video/backlight/ |
A 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()
|
/linux/drivers/input/keyboard/ |
A 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() 298 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix() 307 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix() 330 u16 old_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_stuck_irq() local [all …]
|
/linux/drivers/gpu/drm/tidss/ |
A D | tidss_kms.c | 27 static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state) in tidss_atomic_commit_tail() argument 29 struct drm_device *ddev = old_state->dev; in tidss_atomic_commit_tail() 37 drm_atomic_helper_commit_modeset_disables(ddev, old_state); in tidss_atomic_commit_tail() 38 drm_atomic_helper_commit_planes(ddev, old_state, 0); in tidss_atomic_commit_tail() 39 drm_atomic_helper_commit_modeset_enables(ddev, old_state); in tidss_atomic_commit_tail() 41 drm_atomic_helper_commit_hw_done(old_state); in tidss_atomic_commit_tail() 43 drm_atomic_helper_wait_for_flip_done(ddev, old_state); in tidss_atomic_commit_tail() 45 drm_atomic_helper_cleanup_planes(ddev, old_state); in tidss_atomic_commit_tail()
|
/linux/drivers/gpu/drm/omapdrm/ |
A D | omap_drv.c | 48 struct drm_atomic_state *old_state) in omap_atomic_wait_for_completion() argument 69 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() 100 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail() 102 drm_atomic_helper_commit_modeset_enables(dev, old_state); in omap_atomic_commit_tail() 105 drm_atomic_helper_commit_hw_done(old_state); in omap_atomic_commit_tail() 113 omap_atomic_wait_for_completion(dev, old_state); in omap_atomic_commit_tail() [all …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_kms.c | 72 static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) in komeda_kms_commit_tail() argument 74 struct drm_device *dev = old_state->dev; in komeda_kms_commit_tail() 77 drm_atomic_helper_commit_modeset_disables(dev, old_state); in komeda_kms_commit_tail() 79 drm_atomic_helper_commit_planes(dev, old_state, in komeda_kms_commit_tail() 82 drm_atomic_helper_commit_modeset_enables(dev, old_state); in komeda_kms_commit_tail() 84 drm_atomic_helper_commit_hw_done(old_state); in komeda_kms_commit_tail() 86 drm_atomic_helper_wait_for_flip_done(dev, old_state); in komeda_kms_commit_tail() 90 drm_atomic_helper_cleanup_planes(dev, old_state); in komeda_kms_commit_tail()
|
/linux/drivers/gpu/drm/gud/ |
A D | gud_connector.c | 292 struct drm_connector_state *old_state; in gud_connector_atomic_check() local 298 old_state = drm_atomic_get_old_connector_state(state, connector); in gud_connector_atomic_check() 301 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check() 302 old_state->tv.margins.right != new_state->tv.margins.right || in gud_connector_atomic_check() 303 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check() 305 old_state->tv.mode != new_state->tv.mode || in gud_connector_atomic_check() 306 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check() 307 old_state->tv.contrast != new_state->tv.contrast || in gud_connector_atomic_check() 309 old_state->tv.overscan != new_state->tv.overscan || in gud_connector_atomic_check() 310 old_state->tv.saturation != new_state->tv.saturation || in gud_connector_atomic_check() [all …]
|
/linux/net/smc/ |
A D | smc_close.c | 195 int old_state; in smc_close_active() local 204 old_state = sk->sk_state; in smc_close_active() 300 if (old_state != sk->sk_state) in smc_close_active() 358 int old_state; in smc_close_passive_work() local 361 old_state = sk->sk_state; in smc_close_passive_work() 425 if (old_state != sk->sk_state) { in smc_close_passive_work() 444 int old_state; in smc_close_shutdown_write() local 452 old_state = sk->sk_state; in smc_close_shutdown_write() 490 if (old_state != sk->sk_state) in smc_close_shutdown_write()
|
/linux/net/ceph/ |
A D | messenger.c | 281 int old_state; in con_sock_state_init() local 284 if (WARN_ON(old_state != CON_SOCK_STATE_NEW)) in con_sock_state_init() 292 int old_state; in con_sock_state_connecting() local 303 int old_state; in con_sock_state_connected() local 314 int old_state; in con_sock_state_closing() local 318 old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closing() 319 old_state != CON_SOCK_STATE_CLOSING)) in con_sock_state_closing() 327 int old_state; in con_sock_state_closed() local 331 old_state != CON_SOCK_STATE_CLOSING && in con_sock_state_closed() 332 old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closed() [all …]
|
/linux/drivers/gpu/drm/exynos/ |
A D | exynos_drm_plane.c | 158 struct drm_plane_state *old_state) in exynos_drm_plane_destroy_state() argument 161 to_exynos_plane_state(old_state); in exynos_drm_plane_destroy_state() 162 __drm_atomic_helper_plane_destroy_state(old_state); in exynos_drm_plane_destroy_state() 272 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, plane); in exynos_plane_atomic_disable() local 274 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(old_state->crtc); in exynos_plane_atomic_disable() 276 if (!old_state->crtc) in exynos_plane_atomic_disable()
|
/linux/drivers/gpu/drm/i915/display/ |
A 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
|
/linux/drivers/infiniband/hw/usnic/ |
A D | usnic_ib_qp_grp.c | 396 enum ib_qp_state old_state; in usnic_ib_qp_grp_modify() local 400 old_state = qp_grp->state; in usnic_ib_qp_grp_modify() 406 switch (old_state) { in usnic_ib_qp_grp_modify() 425 switch (old_state) { in usnic_ib_qp_grp_modify() 468 switch (old_state) { in usnic_ib_qp_grp_modify() 477 switch (old_state) { in usnic_ib_qp_grp_modify() 490 switch (old_state) { in usnic_ib_qp_grp_modify() 520 usnic_ib_qp_grp_state_to_string(old_state), in usnic_ib_qp_grp_modify() 525 usnic_ib_qp_grp_state_to_string(old_state), in usnic_ib_qp_grp_modify()
|