| /linux/drivers/gpu/drm/tests/ |
| H A 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 …]
|
| /linux/kernel/livepatch/ |
| H 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/ |
| H A 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() 89 drm_atomic_helper_cleanup_planes(dev, old_state); in vkms_atomic_commit_tail()
|
| /linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | tt.c | 233 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/include/drm/ |
| H A D | drm_atomic.h | 163 struct drm_colorop_state *state, *old_state, *new_state; member 184 struct drm_plane_state *old_state, *new_state; member 205 struct drm_crtc_state *old_state, *new_state; member 239 struct drm_connector_state *old_state, *new_state; member 416 struct drm_private_state *old_state, *new_state; member 759 return state->crtcs[drm_crtc_index(crtc)].old_state; in drm_atomic_get_old_crtc_state() 788 return state->planes[drm_plane_index(plane)].old_state; in drm_atomic_get_old_plane_state() 818 return state->colorops[drm_colorop_index(colorop)].old_state; in drm_atomic_get_old_colorop_state() 853 return state->connectors[index].old_state; in drm_atomic_get_old_connector_state() 958 (old_connector_state) = (__state)->connectors[__i].old_state, \ [all …]
|
| /linux/arch/powerpc/kvm/ |
| H 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() 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 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/drivers/video/backlight/ |
| H A D | pandora_bl.c | 35 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 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/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_kms.c | 89 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/net/smc/ |
| H A D | smc_close.c | 199 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 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()
|
| /linux/net/ceph/ |
| H A D | messenger.c | 283 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() 305 int old_state; con_sock_state_connected() local 316 int old_state; con_sock_state_closing() local 329 int old_state; con_sock_state_closed() local [all...] |
| /linux/net/netfilter/ |
| H A D | nf_conntrack_proto_tcp.c | 919 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/mediatek/ |
| H A D | mtk_plane.c | 52 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()
|
| /linux/drivers/infiniband/hw/usnic/ |
| H A 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()
|
| /linux/drivers/gpu/drm/arm/ |
| H A 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()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | drm.c | 65 struct drm_atomic_state *old_state) in tegra_atomic_post_commit() argument 71 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) in tegra_atomic_post_commit() 72 tegra_crtc_atomic_post_commit(crtc, old_state); in tegra_atomic_post_commit() 75 static void tegra_atomic_commit_tail(struct drm_atomic_state *old_state) in tegra_atomic_commit_tail() argument 77 struct drm_device *drm = old_state->dev; in tegra_atomic_commit_tail() 83 drm_atomic_helper_commit_modeset_disables(drm, old_state); in tegra_atomic_commit_tail() 84 tegra_display_hub_atomic_commit(drm, old_state); in tegra_atomic_commit_tail() 85 drm_atomic_helper_commit_planes(drm, old_state, 0); in tegra_atomic_commit_tail() 86 drm_atomic_helper_commit_modeset_enables(drm, old_state); in tegra_atomic_commit_tail() 87 drm_atomic_helper_commit_hw_done(old_state); in tegra_atomic_commit_tail() [all …]
|
| /linux/sound/soc/sof/ |
| H A D | pm.c | 78 u32 old_state = sdev->dsp_power_state.state; in sof_resume() local 117 old_state == SOF_DSP_PM_D0) { in sof_resume() 203 u32 old_state = sdev->dsp_power_state.state; in sof_suspend() local 218 if (tplg_ops && tplg_ops->tear_down_all_pipelines && (old_state == SOF_DSP_PM_D0)) in sof_suspend()
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_pipe.c | 17 struct mdp5_hw_pipe_state *old_state, *new_state; in mdp5_pipe_assign() local 27 old_state = &old_global_state->hwpipe; in mdp5_pipe_assign() 41 old_state->hwpipe_to_plane[cur->idx]) in mdp5_pipe_assign()
|
| /linux/drivers/gpu/drm/logicvc/ |
| H A D | logicvc_crtc.c | 42 struct drm_crtc_state *old_state = in logicvc_crtc_atomic_begin() local 51 if (drm_crtc->state->event && old_state->active) { in logicvc_crtc_atomic_begin() 67 struct drm_crtc_state *old_state = in logicvc_crtc_atomic_enable() local 142 if (drm_crtc->state->event && !old_state->active) { in logicvc_crtc_atomic_enable()
|
| /linux/drivers/gpu/drm/kmb/ |
| H A D | kmb_crtc.c | 69 struct drm_atomic_state *old_state) in kmb_crtc_set_mode() argument 78 kmb_dsi_mode_set(kmb->kmb_dsi, m, kmb->sys_clk_mhz, old_state); in kmb_crtc_set_mode() 149 struct drm_crtc_state *old_state = drm_atomic_get_old_crtc_state(state, crtc); in kmb_crtc_atomic_disable() local 152 drm_atomic_helper_disable_planes_on_crtc(old_state, false); in kmb_crtc_atomic_disable()
|
| /linux/drivers/video/fbdev/ |
| H A D | sa1100fb.c | 867 u_int old_state; in set_ctrlr_state() local 871 old_state = fbi->state; in set_ctrlr_state() 876 if (old_state == C_STARTUP && state == C_REENABLE) in set_ctrlr_state() 885 if (old_state != C_DISABLE && old_state != C_DISABLE_PM) { in set_ctrlr_state() 896 if (old_state != C_DISABLE) { in set_ctrlr_state() 900 if (old_state != C_DISABLE_CLKCHANGE) in set_ctrlr_state() 911 if (old_state == C_DISABLE_CLKCHANGE) { in set_ctrlr_state() 923 if (old_state == C_ENABLE) { in set_ctrlr_state() 936 if (old_state != C_DISABLE_PM) in set_ctrlr_state() 945 if (old_state != C_ENABLE) { in set_ctrlr_state()
|
| /linux/drivers/gpu/drm/bridge/analogix/ |
| H A D | analogix_dp_core.c | 1126 struct drm_atomic_state *old_state) in analogix_dp_bridge_atomic_pre_enable() argument 1132 crtc = analogix_dp_get_new_crtc(dp, old_state); in analogix_dp_bridge_atomic_pre_enable() 1136 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_pre_enable() 1181 struct drm_atomic_state *old_state) in analogix_dp_bridge_atomic_enable() argument 1189 crtc = analogix_dp_get_new_crtc(dp, old_state); in analogix_dp_bridge_atomic_enable() 1193 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_enable() 1241 struct drm_atomic_state *old_state) in analogix_dp_bridge_atomic_disable() argument 1249 new_crtc = analogix_dp_get_new_crtc(dp, old_state); in analogix_dp_bridge_atomic_disable() 1253 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, new_crtc); in analogix_dp_bridge_atomic_disable() 1262 old_crtc = analogix_dp_get_old_crtc(dp, old_state); in analogix_dp_bridge_atomic_disable() [all …]
|
| /linux/drivers/power/supply/ |
| H A D | bq25980_charger.c | 814 struct bq25980_state old_state; in bq25980_state_changed() local 817 old_state = bq->state; in bq25980_state_changed() 820 return (old_state.dischg != new_state->dischg || in bq25980_state_changed() 821 old_state.ovp != new_state->ovp || in bq25980_state_changed() 822 old_state.ocp != new_state->ocp || in bq25980_state_changed() 823 old_state.online != new_state->online || in bq25980_state_changed() 824 old_state.wdt != new_state->wdt || in bq25980_state_changed() 825 old_state.tflt != new_state->tflt || in bq25980_state_changed() 826 old_state.ce != new_state->ce || in bq25980_state_changed() 827 old_state.hiz != new_state->hiz || in bq25980_state_changed() [all …]
|