| /Linux-v5.4/drivers/gpu/drm/selftests/ |
| D | test-drm_damage_helper.c | 76 struct drm_plane_state old_state; in igt_damage_iter_no_damage() local 92 set_plane_src(&old_state, 0, 0, fb.width << 16, fb.height << 16); in igt_damage_iter_no_damage() 94 drm_atomic_helper_damage_iter_init(&iter, &old_state, &state); in igt_damage_iter_no_damage() 107 struct drm_plane_state old_state; in igt_damage_iter_no_damage_fractional_src() local 123 set_plane_src(&old_state, 0x3fffe, 0x3fffe, in igt_damage_iter_no_damage_fractional_src() 127 drm_atomic_helper_damage_iter_init(&iter, &old_state, &state); in igt_damage_iter_no_damage_fractional_src() 140 struct drm_plane_state old_state; in igt_damage_iter_no_damage_src_moved() local 156 set_plane_src(&old_state, 0, 0, 1024 << 16, 768 << 16); in igt_damage_iter_no_damage_src_moved() 159 drm_atomic_helper_damage_iter_init(&iter, &old_state, &state); in igt_damage_iter_no_damage_src_moved() 172 struct drm_plane_state old_state; in igt_damage_iter_no_damage_fractional_src_moved() local [all …]
|
| /Linux-v5.4/drivers/gpu/drm/armada/ |
| D | armada_plane.c | 98 struct drm_plane_state *old_state) in armada_drm_plane_cleanup_fb() argument 102 old_state->fb ? old_state->fb->base.id : 0); in armada_drm_plane_cleanup_fb() 104 if (old_state->fb) in armada_drm_plane_cleanup_fb() 105 drm_framebuffer_put(old_state->fb); in armada_drm_plane_cleanup_fb() 159 struct drm_plane_state *old_state) in armada_drm_primary_plane_atomic_update() argument 176 old_state->visible, state->visible); in armada_drm_primary_plane_atomic_update() 182 if (!old_state->visible && state->visible) { in armada_drm_primary_plane_atomic_update() 189 if (armada_src_hw(old_state) != val) in armada_drm_primary_plane_atomic_update() 192 if (armada_dst_yx(old_state) != val) in armada_drm_primary_plane_atomic_update() 195 if (armada_dst_hw(old_state) != val) in armada_drm_primary_plane_atomic_update() [all …]
|
| D | armada_overlay.c | 69 struct drm_plane_state *old_state) in armada_drm_overlay_plane_atomic_update() argument 86 old_state->visible, state->visible); in armada_drm_overlay_plane_atomic_update() 92 if (!old_state->visible && state->visible) in armada_drm_overlay_plane_atomic_update() 97 if (armada_src_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update() 100 if (armada_dst_yx(old_state) != val) in armada_drm_overlay_plane_atomic_update() 103 if (armada_dst_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update() 106 if (old_state->src.x1 != state->src.x1 || in armada_drm_overlay_plane_atomic_update() 107 old_state->src.y1 != state->src.y1 || in armada_drm_overlay_plane_atomic_update() 108 old_state->fb != state->fb || in armada_drm_overlay_plane_atomic_update() 153 } else if (old_state->visible != state->visible) { in armada_drm_overlay_plane_atomic_update() [all …]
|
| /Linux-v5.4/net/wimax/ |
| D | stack.c | 88 enum wimax_st new_state, enum wimax_st old_state, in wimax_gnl_re_state_change_alloc() argument 97 wimax_dev, new_state, old_state); in wimax_gnl_re_state_change_alloc() 113 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_OLD, old_state); in wimax_gnl_re_state_change_alloc() 130 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc() 137 wimax_dev, new_state, old_state, result); in wimax_gnl_re_state_change_alloc() 175 void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, in __check_new_state() argument 180 old_state, new_state); in __check_new_state() 192 enum wimax_st old_state = wimax_dev->state; in __wimax_state_change() local 197 wimax_dev, new_state, old_state); in __wimax_state_change() 204 if (old_state == new_state) in __wimax_state_change() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/ |
| D | drm_atomic_helper.c | 965 crtc_needs_disable(struct drm_crtc_state *old_state, in crtc_needs_disable() argument 973 return drm_atomic_crtc_effectively_active(old_state); in crtc_needs_disable() 980 return old_state->active || in crtc_needs_disable() 981 (old_state->self_refresh_active && !new_state->enable) || in crtc_needs_disable() 986 disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state) in disable_outputs() argument 994 for_each_oldnew_connector_in_state(old_state, connector, old_conn_state, new_conn_state, i) { in disable_outputs() 1003 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, old_conn_state->crtc); in disable_outputs() 1007 old_state, in disable_outputs() 1033 drm_atomic_bridge_disable(encoder->bridge, old_state); in disable_outputs() 1038 funcs->atomic_disable(encoder, old_state); in disable_outputs() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/vkms/ |
| D | vkms_drv.c | 69 static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state) in vkms_atomic_commit_tail() argument 71 struct drm_device *dev = old_state->dev; in vkms_atomic_commit_tail() 76 drm_atomic_helper_commit_modeset_disables(dev, old_state); in vkms_atomic_commit_tail() 78 drm_atomic_helper_commit_planes(dev, old_state, 0); in vkms_atomic_commit_tail() 80 drm_atomic_helper_commit_modeset_enables(dev, old_state); in vkms_atomic_commit_tail() 82 drm_atomic_helper_fake_vblank(old_state); in vkms_atomic_commit_tail() 84 drm_atomic_helper_commit_hw_done(old_state); in vkms_atomic_commit_tail() 86 drm_atomic_helper_wait_for_vblanks(dev, old_state); in vkms_atomic_commit_tail() 88 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail() 95 drm_atomic_helper_cleanup_planes(dev, old_state); in vkms_atomic_commit_tail()
|
| D | vkms_plane.c | 45 struct drm_plane_state *old_state) in vkms_plane_destroy_state() argument 47 struct vkms_plane_state *vkms_state = to_vkms_plane_state(old_state); in vkms_plane_destroy_state() 61 __drm_atomic_helper_plane_destroy_state(old_state); in vkms_plane_destroy_state() 92 struct drm_plane_state *old_state) in vkms_plane_atomic_update() argument 162 struct drm_plane_state *old_state) in vkms_cleanup_fb() argument 166 if (!old_state->fb) in vkms_cleanup_fb() 169 gem_obj = drm_gem_fb_get_obj(old_state->fb, 0); in vkms_cleanup_fb()
|
| /Linux-v5.4/drivers/rtc/ |
| D | rtc-bd70528.c | 51 int enable, int *old_state) in bd70528_set_wake() argument 60 if (old_state) { in bd70528_set_wake() 62 *old_state |= BD70528_WAKE_STATE_BIT; in bd70528_set_wake() 64 *old_state &= ~BD70528_WAKE_STATE_BIT; in bd70528_set_wake() 66 if (!enable == !(*old_state & BD70528_WAKE_STATE_BIT)) in bd70528_set_wake() 80 int enable, int *old_state) in bd70528_set_elapsed_tmr() argument 102 if (old_state) { in bd70528_set_elapsed_tmr() 104 *old_state |= BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr() 106 *old_state &= ~BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr() 108 if ((!enable) == (!(*old_state & BD70528_ELAPSED_STATE_BIT))) in bd70528_set_elapsed_tmr() [all …]
|
| /Linux-v5.4/include/drm/ |
| D | drm_atomic.h | 151 struct drm_plane_state *state, *old_state, *new_state; member 156 struct drm_crtc_state *state, *old_state, *new_state; member 174 struct drm_connector_state *state, *old_state, *new_state; member 295 struct drm_private_state *state, *old_state, *new_state; member 499 return state->crtcs[drm_crtc_index(crtc)].old_state; in drm_atomic_get_old_crtc_state() 546 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state() 604 return state->connectors[index].old_state; in drm_atomic_get_old_connector_state() 696 (old_connector_state) = (__state)->connectors[__i].old_state, \ 717 (old_connector_state) = (__state)->connectors[__i].old_state, 1)) 757 (old_crtc_state) = (__state)->crtcs[__i].old_state, \ [all …]
|
| 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); 80 struct drm_atomic_state *old_state); 92 struct drm_atomic_state *old_state);
|
| D | drm_dp_mst_helper.h | 698 struct drm_dp_mst_topology_state **old_state, in __drm_dp_mst_state_iter_get() argument 708 if (old_state) in __drm_dp_mst_state_iter_get() 709 *old_state = to_dp_mst_topology_state(objs_state->old_state); in __drm_dp_mst_state_iter_get() 731 #define for_each_oldnew_mst_mgr_in_state(__state, mgr, old_state, new_state, __i) \ argument 733 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), &(new_state), (__i))) 748 #define for_each_old_mst_mgr_in_state(__state, mgr, old_state, __i) \ argument 750 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), NULL, (__i)))
|
| /Linux-v5.4/drivers/net/wireless/intel/iwlwifi/dvm/ |
| D | tt.c | 249 enum iwl_tt_state old_state; in iwl_legacy_tt_handler() local 261 old_state = tt->state; in iwl_legacy_tt_handler() 277 if (tt->state != old_state) { in iwl_legacy_tt_handler() 297 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler() 304 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler() 306 tt->state = old_state; in iwl_legacy_tt_handler() 316 tt->state = old_state; in iwl_legacy_tt_handler() 318 } else if (old_state == IWL_TI_CT_KILL) { in iwl_legacy_tt_handler() 356 enum iwl_tt_state old_state; in iwl_advance_tt_handler() local 359 old_state = tt->state; in iwl_advance_tt_handler() [all …]
|
| /Linux-v5.4/arch/powerpc/kvm/ |
| D | book3s_hv_rm_xics.c | 249 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 253 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 279 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_try_to_deliver() 419 union kvmppc_icp_state old_state, new_state; in icp_rm_down_cppr() local 452 old_state = new_state = READ_ONCE(icp->state); in icp_rm_down_cppr() 476 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_down_cppr() 492 union kvmppc_icp_state old_state, new_state; in xics_rm_h_xirr() local 511 old_state = new_state = READ_ONCE(icp->state); in xics_rm_h_xirr() 513 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in xics_rm_h_xirr() 514 if (!old_state.xisr) in xics_rm_h_xirr() [all …]
|
| D | book3s_xics.c | 339 union kvmppc_icp_state old_state, new_state; in icp_try_to_deliver() local 346 old_state = new_state = READ_ONCE(icp->state); in icp_try_to_deliver() 372 } while (!icp_try_update(icp, old_state, new_state, false)); in icp_try_to_deliver() 516 union kvmppc_icp_state old_state, new_state; in icp_down_cppr() local 549 old_state = new_state = READ_ONCE(icp->state); in icp_down_cppr() 575 } while (!icp_try_update(icp, old_state, new_state, true)); in icp_down_cppr() 588 union kvmppc_icp_state old_state, new_state; in kvmppc_h_xirr() local 603 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_xirr() 605 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in kvmppc_h_xirr() 606 if (!old_state.xisr) in kvmppc_h_xirr() [all …]
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/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 …]
|
| /Linux-v5.4/drivers/gpu/drm/virtio/ |
| D | virtgpu_plane.c | 91 struct drm_plane_state *old_state) in virtio_gpu_primary_plane_update() argument 102 if (old_state->crtc) in virtio_gpu_primary_plane_update() 103 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_primary_plane_update() 166 struct drm_plane_state *old_state) in virtio_gpu_cursor_cleanup_fb() argument 181 struct drm_plane_state *old_state) in virtio_gpu_cursor_plane_update() argument 193 if (old_state->crtc) in virtio_gpu_cursor_plane_update() 194 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_cursor_plane_update() 206 if (bo && bo->dumb && (plane->state->fb != old_state->fb)) { in virtio_gpu_cursor_plane_update() 224 if (plane->state->fb != old_state->fb) { in virtio_gpu_cursor_plane_update()
|
| /Linux-v5.4/drivers/gpu/drm/omapdrm/ |
| D | omap_drv.c | 46 struct drm_atomic_state *old_state) in omap_atomic_wait_for_completion() argument 53 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in omap_atomic_wait_for_completion() 65 static void omap_atomic_commit_tail(struct drm_atomic_state *old_state) in omap_atomic_commit_tail() argument 67 struct drm_device *dev = old_state->dev; in omap_atomic_commit_tail() 73 drm_atomic_helper_commit_modeset_disables(dev, old_state); in omap_atomic_commit_tail() 87 drm_atomic_helper_commit_modeset_enables(dev, old_state); in omap_atomic_commit_tail() 88 omap_atomic_wait_for_completion(dev, old_state); in omap_atomic_commit_tail() 90 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail() 92 drm_atomic_helper_commit_hw_done(old_state); in omap_atomic_commit_tail() 99 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/arm/display/komeda/ |
| D | komeda_kms.c | 79 static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) in komeda_kms_commit_tail() argument 81 struct drm_device *dev = old_state->dev; in komeda_kms_commit_tail() 83 drm_atomic_helper_commit_modeset_disables(dev, old_state); in komeda_kms_commit_tail() 85 drm_atomic_helper_commit_planes(dev, old_state, in komeda_kms_commit_tail() 88 drm_atomic_helper_commit_modeset_enables(dev, old_state); in komeda_kms_commit_tail() 90 drm_atomic_helper_wait_for_flip_done(dev, old_state); in komeda_kms_commit_tail() 92 drm_atomic_helper_commit_hw_done(old_state); in komeda_kms_commit_tail() 94 drm_atomic_helper_cleanup_planes(dev, old_state); in komeda_kms_commit_tail()
|
| /Linux-v5.4/drivers/gpu/drm/tilcdc/ |
| D | tilcdc_plane.c | 27 struct drm_plane_state *old_state = plane->state; in tilcdc_plane_atomic_check() local 65 if (state->fb && old_state->fb && in tilcdc_plane_atomic_check() 66 state->fb->format != old_state->fb->format) { in tilcdc_plane_atomic_check() 77 struct drm_plane_state *old_state) in tilcdc_plane_atomic_update() argument
|
| /Linux-v5.4/net/smc/ |
| D | smc_close.c | 183 int old_state; in smc_close_active() local 191 old_state = sk->sk_state; in smc_close_active() 284 if (old_state != sk->sk_state) in smc_close_active() 342 int old_state; in smc_close_passive_work() local 345 old_state = sk->sk_state; in smc_close_passive_work() 415 if (old_state != sk->sk_state) { in smc_close_passive_work() 434 int old_state; in smc_close_shutdown_write() local 442 old_state = sk->sk_state; in smc_close_shutdown_write() 484 if (old_state != sk->sk_state) in smc_close_shutdown_write()
|
| /Linux-v5.4/drivers/gpu/drm/exynos/ |
| 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() 253 struct drm_plane_state *old_state) in exynos_plane_atomic_update() argument 267 struct drm_plane_state *old_state) in exynos_plane_atomic_disable() argument 270 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(old_state->crtc); in exynos_plane_atomic_disable() 272 if (!old_state->crtc) in exynos_plane_atomic_disable()
|
| /Linux-v5.4/drivers/gpu/drm/vboxvideo/ |
| D | vbox_mode.c | 282 struct drm_plane_state *old_state) in vbox_primary_atomic_update() argument 293 struct drm_plane_state *old_state) in vbox_primary_atomic_disable() argument 295 struct drm_crtc *crtc = old_state->crtc; in vbox_primary_atomic_disable() 298 vbox_crtc_set_base_and_mode(crtc, old_state->fb, in vbox_primary_atomic_disable() 299 old_state->src_x >> 16, in vbox_primary_atomic_disable() 300 old_state->src_y >> 16); in vbox_primary_atomic_disable() 321 struct drm_plane_state *old_state) in vbox_primary_cleanup_fb() argument 325 if (!old_state->fb) in vbox_primary_cleanup_fb() 328 gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(old_state->fb)->obj); in vbox_primary_cleanup_fb() 383 struct drm_plane_state *old_state) in vbox_cursor_atomic_update() argument [all …]
|
| /Linux-v5.4/drivers/gpu/drm/sun4i/ |
| D | sun4i_crtc.c | 61 struct drm_crtc_state *old_state) in sun4i_crtc_atomic_begin() argument 78 engine->ops->atomic_begin(engine, old_state); in sun4i_crtc_atomic_begin() 82 struct drm_crtc_state *old_state) in sun4i_crtc_atomic_flush() argument 104 struct drm_crtc_state *old_state) in sun4i_crtc_atomic_disable() argument 125 struct drm_crtc_state *old_state) in sun4i_crtc_atomic_enable() argument
|
| /Linux-v5.4/drivers/gpu/drm/mediatek/ |
| D | mtk_drm_plane.c | 50 struct mtk_plane_state *old_state = to_mtk_plane_state(plane->state); in mtk_plane_duplicate_state() local 61 state->pending = old_state->pending; in mtk_plane_duplicate_state() 105 struct drm_plane_state *old_state) in mtk_plane_atomic_update() argument 140 struct drm_plane_state *old_state) in mtk_plane_atomic_disable() argument
|