Home
last modified time | relevance | path

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

12345678

/linux/drivers/gpu/drm/tests/
H A Ddrm_damage_helper_test.c23 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 …]
/linux/drivers/gpu/drm/armada/
H A Darmada_overlay.c74 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in armada_drm_overlay_plane_atomic_update() local
92 old_state->visible, new_state->visible); in armada_drm_overlay_plane_atomic_update()
98 if (!old_state->visible && new_state->visible) in armada_drm_overlay_plane_atomic_update()
103 if (armada_src_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update()
106 if (armada_dst_yx(old_state) != val) in armada_drm_overlay_plane_atomic_update()
109 if (armada_dst_hw(old_state) != val) in armada_drm_overlay_plane_atomic_update()
112 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_overlay_plane_atomic_update()
113 old_state->src.y1 != new_state->src.y1 || in armada_drm_overlay_plane_atomic_update()
114 old_state->fb != new_state->fb || in armada_drm_overlay_plane_atomic_update()
161 } else if (old_state->visible != new_state->visible) { in armada_drm_overlay_plane_atomic_update()
[all …]
H A Darmada_plane.c135 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in armada_drm_primary_plane_atomic_update() local
153 old_state->visible, new_state->visible); in armada_drm_primary_plane_atomic_update()
159 if (!old_state->visible && new_state->visible) { in armada_drm_primary_plane_atomic_update()
166 if (armada_src_hw(old_state) != val) in armada_drm_primary_plane_atomic_update()
169 if (armada_dst_yx(old_state) != val) in armada_drm_primary_plane_atomic_update()
172 if (armada_dst_hw(old_state) != val) in armada_drm_primary_plane_atomic_update()
174 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_primary_plane_atomic_update()
175 old_state->src.y1 != new_state->src.y1 || in armada_drm_primary_plane_atomic_update()
176 old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update()
186 if (old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/tidss/
H A Dtidss_kms.c22 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()
41 drm_atomic_helper_commit_encoder_bridge_disable(ddev, old_state); in tidss_atomic_commit_tail()
42 drm_atomic_helper_commit_crtc_disable(ddev, old_state); in tidss_atomic_commit_tail()
43 drm_atomic_helper_commit_encoder_bridge_post_disable(ddev, old_state); in tidss_atomic_commit_tail()
45 drm_atomic_helper_update_legacy_modeset_state(ddev, old_state); in tidss_atomic_commit_tail()
46 drm_atomic_helper_calc_timestamping_constants(old_state); in tidss_atomic_commit_tail()
47 drm_atomic_helper_commit_crtc_set_mode(ddev, old_state); in tidss_atomic_commit_tail()
49 drm_atomic_helper_commit_planes(ddev, old_state, in tidss_atomic_commit_tail()
52 drm_atomic_helper_commit_encoder_bridge_pre_enable(ddev, old_state); in tidss_atomic_commit_tail()
[all …]
/linux/kernel/livepatch/
H A 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()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dtt.c233 enum iwl_tt_state old_state; in iwl_legacy_tt_handler() local
245 old_state = tt->state; in iwl_legacy_tt_handler()
261 if (tt->state != old_state) { in iwl_legacy_tt_handler()
281 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler()
288 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler()
290 tt->state = old_state; in iwl_legacy_tt_handler()
300 tt->state = old_state; in iwl_legacy_tt_handler()
302 } else if (old_state == IWL_TI_CT_KILL) { in iwl_legacy_tt_handler()
340 enum iwl_tt_state old_state; in iwl_advance_tt_handler() local
343 old_state = tt->state; in iwl_advance_tt_handler()
[all …]
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_rm_xics.c242 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()
272 } while (!icp_rm_try_update(icp, old_state, new_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()
469 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_down_cppr()
490 union kvmppc_icp_state old_state, new_state; in xics_rm_h_xirr() local
509 old_state = new_state = READ_ONCE(icp->state); in xics_rm_h_xirr()
511 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); in xics_rm_h_xirr()
512 if (!old_state.xisr) in xics_rm_h_xirr()
[all …]
H A 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 …]
/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-plane.c250 struct drm_plane_state *old_state) in dcss_plane_needs_setup() argument
253 struct drm_framebuffer *old_fb = old_state->fb; in dcss_plane_needs_setup()
255 return state->crtc_x != old_state->crtc_x || in dcss_plane_needs_setup()
256 state->crtc_y != old_state->crtc_y || in dcss_plane_needs_setup()
257 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup()
258 state->crtc_h != old_state->crtc_h || in dcss_plane_needs_setup()
259 state->src_x != old_state->src_x || in dcss_plane_needs_setup()
260 state->src_y != old_state->src_y || in dcss_plane_needs_setup()
261 state->src_w != old_state->src_w || in dcss_plane_needs_setup()
262 state->src_h != old_state->src_h || in dcss_plane_needs_setup()
[all …]
/linux/drivers/video/backlight/
H A Dpandora_bl.c35 unsigned old_state; member
56 if (priv->old_state == PANDORABL_WAS_OFF) in pandora_backlight_update_status()
69 if (priv->old_state == PANDORABL_WAS_OFF) { in pandora_backlight_update_status()
96 priv->old_state = 0; in pandora_backlight_update_status()
98 priv->old_state = PANDORABL_WAS_OFF; in pandora_backlight_update_status()
134 priv->old_state = PANDORABL_WAS_OFF; in pandora_backlight_probe()
/linux/drivers/input/keyboard/
H A 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 …]
/linux/drivers/gpu/drm/omapdrm/
H A Domap_drv.c49 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 …]
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c235 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in virtio_gpu_primary_plane_update() local
245 if (old_state->crtc) in virtio_gpu_primary_plane_update()
246 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_primary_plane_update()
260 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update()
267 if (plane->state->fb != old_state->fb || in virtio_gpu_primary_plane_update()
268 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update()
269 plane->state->src_h != old_state->src_h || in virtio_gpu_primary_plane_update()
270 plane->state->src_x != old_state->src_x || in virtio_gpu_primary_plane_update()
271 plane->state->src_y != old_state->src_y || in virtio_gpu_primary_plane_update()
428 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in virtio_gpu_cursor_plane_update() local
[all …]
/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_kms.c89 static void komeda_kms_commit_tail(struct drm_atomic_state *old_state) in komeda_kms_commit_tail() argument
91 struct drm_device *dev = old_state->dev; in komeda_kms_commit_tail()
94 drm_atomic_helper_commit_modeset_disables(dev, old_state); in komeda_kms_commit_tail()
96 drm_atomic_helper_commit_planes(dev, old_state, in komeda_kms_commit_tail()
99 drm_atomic_helper_commit_modeset_enables(dev, old_state); in komeda_kms_commit_tail()
101 komeda_kms_atomic_commit_hw_done(old_state); in komeda_kms_commit_tail()
103 drm_atomic_helper_wait_for_flip_done(dev, old_state); in komeda_kms_commit_tail()
107 drm_atomic_helper_cleanup_planes(dev, old_state); in komeda_kms_commit_tail()
/linux/drivers/gpu/drm/mgag200/
H A Dmgag200_drv.h263 void (*pixpllc_atomic_update)(struct drm_crtc *crtc, struct drm_atomic_state *old_state);
335 void mgag200_g200wb_pixpllc_atomic_update(struct drm_crtc *crtc, struct drm_atomic_state *old_state
339 void mgag200_g200eh_pixpllc_atomic_update(struct drm_crtc *crtc, struct drm_atomic_state *old_state
369 struct drm_atomic_state *old_state);
373 struct drm_atomic_state *old_state);
399 void mgag200_crtc_helper_atomic_flush(struct drm_crtc *crtc, struct drm_atomic_state *old_state);
400 void mgag200_crtc_helper_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *old_state);
401 void mgag200_crtc_helper_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *old_state);
/linux/drivers/gpu/drm/gud/
H A Dgud_connector.c292 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()
304 old_state->tv.margins.bottom != new_state->tv.margins.bottom || in gud_connector_atomic_check()
305 old_state->tv.legacy_mode != new_state->tv.legacy_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()
308 old_state->tv.flicker_reduction != new_state->tv.flicker_reduction || in gud_connector_atomic_check()
[all …]
/linux/net/smc/
H A Dsmc_close.c199 int old_state; in smc_close_active() local
208 old_state = sk->sk_state; in smc_close_active()
307 if (old_state != sk->sk_state) in smc_close_active()
365 int old_state; in smc_close_passive_work() local
368 old_state = sk->sk_state; in smc_close_passive_work()
432 if (old_state != sk->sk_state) { in smc_close_passive_work()
451 int old_state; in smc_close_shutdown_write() local
459 old_state = sk->sk_state; in smc_close_shutdown_write()
497 if (old_state != sk->sk_state) in smc_close_shutdown_write()
/linux/drivers/bus/mhi/ep/
H A Dsm.c62 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()
/linux/net/ceph/
H A Dmessenger.c283 int old_state; in con_sock_state_init() local
285 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init()
286 if (WARN_ON(old_state != CON_SOCK_STATE_NEW)) in con_sock_state_init()
287 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_init()
288 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_init()
294 int old_state; in con_sock_state_connecting() local
296 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting()
297 if (WARN_ON(old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_connecting()
298 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connecting()
299 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connecting()
[all …]
/linux/include/drm/
H A Ddrm_atomic_helper.h86 struct drm_atomic_state *old_state);
89 struct drm_atomic_state *old_state);
93 struct drm_atomic_state *old_state);
117 struct drm_atomic_state *old_state);
131 struct drm_atomic_state *old_state);
/linux/net/netfilter/
H A Dnf_conntrack_proto_tcp.c919 enum tcp_conntrack old_state; in nf_conntrack_tcp_set_closing() local
927 old_state = ct->proto.tcp.state; in nf_conntrack_tcp_set_closing()
930 if (old_state == TCP_CONNTRACK_CLOSE || in nf_conntrack_tcp_set_closing()
971 enum tcp_conntrack new_state, old_state; in nf_conntrack_tcp_packet() local
990 old_state = ct->proto.tcp.state; in nf_conntrack_tcp_packet()
993 new_state = tcp_conntracks[dir][index][old_state]; in nf_conntrack_tcp_packet()
997 if (old_state < TCP_CONNTRACK_TIME_WAIT) in nf_conntrack_tcp_packet()
1053 old_state = TCP_CONNTRACK_SYN_SENT; in nf_conntrack_tcp_packet()
1103 if (old_state == TCP_CONNTRACK_LAST_ACK) in nf_conntrack_tcp_packet()
1109 if (old_state == TCP_CONNTRACK_SYN_SENT && in nf_conntrack_tcp_packet()
[all …]
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_plane.c160 struct drm_plane_state *old_state) in exynos_drm_plane_destroy_state() argument
163 to_exynos_plane_state(old_state); in exynos_drm_plane_destroy_state()
164 __drm_atomic_helper_plane_destroy_state(old_state); in exynos_drm_plane_destroy_state()
274 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, plane); in exynos_plane_atomic_disable() local
276 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(old_state->crtc); in exynos_plane_atomic_disable()
278 if (!old_state->crtc) in exynos_plane_atomic_disable()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_global_state.c28 (old_obj_state) = (__state)->global_objs[__i].old_state, 1); \
36 (old_obj_state) = (__state)->global_objs[__i].old_state, \
43 struct intel_global_state *state, *old_state, *new_state; member
212 state->global_objs[index].old_state = in intel_atomic_get_global_obj_state()
234 return state->global_objs[i].old_state; in intel_atomic_get_old_global_obj_state()
287 intel_atomic_global_state_put(state->global_objs[i].old_state); in intel_atomic_clear_global_state()
292 state->global_objs[i].old_state = NULL; in intel_atomic_clear_global_state()
/linux/drivers/gpu/drm/imx/ipuv3/
H A Dipuv3-plane.c372 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in ipu_plane_atomic_check() local
377 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 …]
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_plane.c52 struct mtk_plane_state *old_state = to_mtk_plane_state(plane->state); in mtk_plane_duplicate_state() local
63 state->pending = old_state->pending; in mtk_plane_duplicate_state()
268 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in mtk_plane_atomic_disable() local
275 if (old_state && old_state->crtc) in mtk_plane_atomic_disable()
276 mtk_crtc_plane_disable(old_state->crtc, plane); in mtk_plane_atomic_disable()

12345678