Home
last modified time | relevance | path

Searched refs:old_state (Results 1 – 25 of 243) sorted by relevance

12345678910

/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
Dtest-drm_damage_helper.c76 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/armada/
Darmada_plane.c98 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 …]
Darmada_overlay.c69 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 …]
/kernel/linux/linux-5.10/net/wimax/
Dstack.c88 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_atomic_helper.c988 crtc_needs_disable(struct drm_crtc_state *old_state, in crtc_needs_disable() argument
996 return drm_atomic_crtc_effectively_active(old_state); in crtc_needs_disable()
1003 if (old_state->self_refresh_active && in crtc_needs_disable()
1004 old_state->crtc != new_state->crtc) in crtc_needs_disable()
1013 return old_state->active || in crtc_needs_disable()
1014 (old_state->self_refresh_active && !new_state->enable) || in crtc_needs_disable()
1019 disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state) in disable_outputs() argument
1027 for_each_oldnew_connector_in_state(old_state, connector, old_conn_state, new_conn_state, i) { in disable_outputs()
1037 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, old_conn_state->crtc); in disable_outputs()
1041 old_state, in disable_outputs()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vkms/
Dvkms_drv.c68 static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state) in vkms_atomic_commit_tail() argument
70 struct drm_device *dev = old_state->dev; in vkms_atomic_commit_tail()
75 drm_atomic_helper_commit_modeset_disables(dev, old_state); in vkms_atomic_commit_tail()
77 drm_atomic_helper_commit_planes(dev, old_state, 0); in vkms_atomic_commit_tail()
79 drm_atomic_helper_commit_modeset_enables(dev, old_state); in vkms_atomic_commit_tail()
81 drm_atomic_helper_fake_vblank(old_state); in vkms_atomic_commit_tail()
83 drm_atomic_helper_commit_hw_done(old_state); in vkms_atomic_commit_tail()
85 drm_atomic_helper_wait_for_flip_done(dev, old_state); in vkms_atomic_commit_tail()
87 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail()
94 drm_atomic_helper_cleanup_planes(dev, old_state); in vkms_atomic_commit_tail()
Dvkms_plane.c45 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()
/kernel/linux/linux-5.10/kernel/livepatch/
Dstate.c88 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_plane.c130 struct drm_plane_state *old_state) in virtio_gpu_primary_plane_update() argument
140 if (old_state->crtc) in virtio_gpu_primary_plane_update()
141 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_primary_plane_update()
155 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update()
162 if (plane->state->fb != old_state->fb || in virtio_gpu_primary_plane_update()
163 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update()
164 plane->state->src_h != old_state->src_h || in virtio_gpu_primary_plane_update()
165 plane->state->src_x != old_state->src_x || in virtio_gpu_primary_plane_update()
166 plane->state->src_y != old_state->src_y || in virtio_gpu_primary_plane_update()
231 struct drm_plane_state *old_state) in virtio_gpu_cursor_plane_update() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dtt.c249 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c246 struct drm_plane_state *old_state) in dcss_plane_needs_setup() argument
249 struct drm_framebuffer *old_fb = old_state->fb; in dcss_plane_needs_setup()
251 return state->crtc_x != old_state->crtc_x || in dcss_plane_needs_setup()
252 state->crtc_y != old_state->crtc_y || in dcss_plane_needs_setup()
253 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup()
254 state->crtc_h != old_state->crtc_h || in dcss_plane_needs_setup()
255 state->src_x != old_state->src_x || in dcss_plane_needs_setup()
256 state->src_y != old_state->src_y || in dcss_plane_needs_setup()
257 state->src_w != old_state->src_w || in dcss_plane_needs_setup()
258 state->src_h != old_state->src_h || in dcss_plane_needs_setup()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_atomic.h160 struct drm_plane_state *state, *old_state, *new_state; member
165 struct drm_crtc_state *state, *old_state, *new_state; member
183 struct drm_connector_state *state, *old_state, *new_state; member
304 struct drm_private_state *state, *old_state, *new_state; member
508 return state->crtcs[drm_crtc_index(crtc)].old_state; in drm_atomic_get_old_crtc_state()
555 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state()
613 return state->connectors[index].old_state; in drm_atomic_get_old_connector_state()
709 (old_connector_state) = (__state)->connectors[__i].old_state, \
731 (old_connector_state) = (__state)->connectors[__i].old_state, 1))
774 (old_crtc_state) = (__state)->crtcs[__i].old_state, \
[all …]
Ddrm_atomic_helper.h68 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);
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-bd70528.c61 int enable, int *old_state) in bd70528_set_wake() argument
70 if (old_state) { in bd70528_set_wake()
72 *old_state |= BD70528_WAKE_STATE_BIT; in bd70528_set_wake()
74 *old_state &= ~BD70528_WAKE_STATE_BIT; in bd70528_set_wake()
76 if (!enable == !(*old_state & BD70528_WAKE_STATE_BIT)) in bd70528_set_wake()
90 int enable, int *old_state) in bd70528_set_elapsed_tmr() argument
112 if (old_state) { in bd70528_set_elapsed_tmr()
114 *old_state |= BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr()
116 *old_state &= ~BD70528_ELAPSED_STATE_BIT; in bd70528_set_elapsed_tmr()
118 if ((!enable) == (!(*old_state & BD70528_ELAPSED_STATE_BIT))) in bd70528_set_elapsed_tmr()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_rm_xics.c249 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 …]
Dbook3s_xics.c339 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 …]
/kernel/linux/linux-5.10/drivers/video/backlight/
Dpandora_bl.c36 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/
Dtidss_kms.c25 static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state) in tidss_atomic_commit_tail() argument
27 struct drm_device *ddev = old_state->dev; in tidss_atomic_commit_tail()
34 drm_atomic_helper_commit_modeset_disables(ddev, old_state); in tidss_atomic_commit_tail()
35 drm_atomic_helper_commit_planes(ddev, old_state, 0); in tidss_atomic_commit_tail()
36 drm_atomic_helper_commit_modeset_enables(ddev, old_state); in tidss_atomic_commit_tail()
38 drm_atomic_helper_commit_hw_done(old_state); in tidss_atomic_commit_tail()
39 drm_atomic_helper_wait_for_flip_done(ddev, old_state); in tidss_atomic_commit_tail()
41 drm_atomic_helper_cleanup_planes(ddev, old_state); in tidss_atomic_commit_tail()
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dpmic8xxx-keypad.c172 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/
Dkomeda_kms.c73 static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) in komeda_kms_commit_tail() argument
75 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_wait_for_flip_done(dev, old_state); in komeda_kms_commit_tail()
86 drm_atomic_helper_commit_hw_done(old_state); in komeda_kms_commit_tail()
88 drm_atomic_helper_cleanup_planes(dev, old_state); in komeda_kms_commit_tail()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Domap_drv.c48 struct drm_atomic_state *old_state) in omap_atomic_wait_for_completion() argument
55 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in omap_atomic_wait_for_completion()
67 static void omap_atomic_commit_tail(struct drm_atomic_state *old_state) in omap_atomic_commit_tail() argument
69 struct drm_device *dev = old_state->dev; in omap_atomic_commit_tail()
75 drm_atomic_helper_commit_modeset_disables(dev, old_state); in omap_atomic_commit_tail()
89 drm_atomic_helper_commit_modeset_enables(dev, old_state); in omap_atomic_commit_tail()
90 omap_atomic_wait_for_completion(dev, old_state); in omap_atomic_commit_tail()
92 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail()
94 drm_atomic_helper_commit_hw_done(old_state); in omap_atomic_commit_tail()
101 drm_atomic_helper_commit_planes(dev, old_state, 0); in omap_atomic_commit_tail()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/tilcdc/
Dtilcdc_plane.c27 struct drm_plane_state *old_state = plane->state; in tilcdc_plane_atomic_check() local
65 if (old_state->fb && state->fb->format != old_state->fb->format) { in tilcdc_plane_atomic_check()
76 struct drm_plane_state *old_state) in tilcdc_plane_atomic_update() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_plane.c158 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()
/kernel/linux/linux-5.10/net/smc/
Dsmc_close.c195 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun4i_crtc.c61 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

12345678910