| /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/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/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/gpu/drm/virtio/ |
| H A D | virtgpu_plane.c | 239 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in virtio_gpu_primary_plane_update() local 249 if (old_state->crtc) in virtio_gpu_primary_plane_update() 250 output = drm_crtc_to_virtio_gpu_output(old_state->crtc); in virtio_gpu_primary_plane_update() 264 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update() 271 if (plane->state->fb != old_state->fb || in virtio_gpu_primary_plane_update() 272 plane->state->src_w != old_state->src_w || in virtio_gpu_primary_plane_update() 273 plane->state->src_h != old_state->src_h || in virtio_gpu_primary_plane_update() 274 plane->state->src_x != old_state->src_x || in virtio_gpu_primary_plane_update() 275 plane->state->src_y != old_state->src_y || in virtio_gpu_primary_plane_update() 432 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/gud/ |
| H 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() 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 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() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_proto_tcp.c | 957 enum tcp_conntrack old_state; in nf_conntrack_tcp_set_closing() local 965 old_state = ct->proto.tcp.state; in nf_conntrack_tcp_set_closing() 968 if (old_state == TCP_CONNTRACK_CLOSE || in nf_conntrack_tcp_set_closing() 1009 enum tcp_conntrack new_state, old_state; in nf_conntrack_tcp_packet() local 1030 old_state = ct->proto.tcp.state; in nf_conntrack_tcp_packet() 1033 new_state = tcp_conntracks[dir][index][old_state]; in nf_conntrack_tcp_packet() 1037 if (old_state < TCP_CONNTRACK_TIME_WAIT) in nf_conntrack_tcp_packet() 1093 old_state = TCP_CONNTRACK_SYN_SENT; in nf_conntrack_tcp_packet() 1143 if (old_state == TCP_CONNTRACK_LAST_ACK) in nf_conntrack_tcp_packet() 1149 if (old_state == TCP_CONNTRACK_SYN_SENT && in nf_conntrack_tcp_packet() [all …]
|
| H A D | nf_conntrack_proto_sctp.c | 333 enum sctp_conntrack new_state, old_state; in nf_conntrack_sctp_packet() local 382 old_state = new_state = SCTP_CONNTRACK_NONE; in nf_conntrack_sctp_packet() 451 old_state = ct->proto.sctp.state; in nf_conntrack_sctp_packet() 452 new_state = sctp_new_state(dir, old_state, sch->type); in nf_conntrack_sctp_packet() 470 if (old_state == SCTP_CONNTRACK_NONE || in nf_conntrack_sctp_packet() 485 old_state == SCTP_CONNTRACK_CLOSED && in nf_conntrack_sctp_packet() 509 if (old_state != new_state) { in nf_conntrack_sctp_packet() 535 old_state, dir, invalid_type); in nf_conntrack_sctp_packet()
|
| /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/imx/lcdc/ |
| H A D | imx-lcdc.c | 138 struct drm_plane_state *old_state, in imx_lcdc_update_hw_registers() argument 157 if (old_state && old_state->crtc && old_state->crtc->enabled) in imx_lcdc_update_hw_registers() 298 struct drm_plane_state *old_state) in imx_lcdc_pipe_update() argument 304 struct drm_framebuffer *old_fb = old_state->fb; in imx_lcdc_pipe_update() 305 struct drm_crtc *old_crtc = old_state->crtc; in imx_lcdc_pipe_update() 313 imx_lcdc_update_hw_registers(pipe, old_state, mode_changed); in imx_lcdc_pipe_update()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_test.c | 581 struct dm_connector_state *old_state; in dm_test_scaling_state_underscan_enabled() local 584 old_state = kunit_kzalloc(test, sizeof(*old_state), GFP_KERNEL); in dm_test_scaling_state_underscan_enabled() 586 KUNIT_ASSERT_NOT_NULL(test, old_state); in dm_test_scaling_state_underscan_enabled() 593 old_state->underscan_enable = false; in dm_test_scaling_state_underscan_enabled() 595 KUNIT_EXPECT_TRUE(test, is_scaling_state_different(new_state, old_state)); in dm_test_scaling_state_underscan_enabled() 604 struct dm_connector_state *old_state; in dm_test_scaling_state_underscan_disabled() local 607 old_state = kunit_kzalloc(test, sizeof(*old_state), GFP_KERNEL); in dm_test_scaling_state_underscan_disabled() 609 KUNIT_ASSERT_NOT_NULL(test, old_state); in dm_test_scaling_state_underscan_disabled() 612 old_state->underscan_enable = true; in dm_test_scaling_state_underscan_disabled() 613 old_state->underscan_hborder = 16; in dm_test_scaling_state_underscan_disabled() [all …]
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_device.h | 513 enum panthor_irq_state old_state; \ 516 old_state = atomic_cmpxchg(&pirq->state, \ 519 if (old_state != PANTHOR_IRQ_STATE_ACTIVE) \ 558 enum panthor_irq_state old_state; \ 560 old_state = atomic_cmpxchg(&pirq->state, \ 563 if (old_state == PANTHOR_IRQ_STATE_PROCESSING) \
|
| /linux/sound/soc/sof/ |
| H A D | pm.c | 166 u32 old_state = sdev->dsp_power_state.state; in sof_resume() 206 old_state == SOF_DSP_PM_D0) { in sof_suspend() 236 u32 old_state = sdev->dsp_power_state.state; in sof_suspend() 251 if (tplg_ops && tplg_ops->tear_down_all_pipelines && (old_state == SOF_DSP_PM_D0)) in sof_suspend() 78 u32 old_state = sdev->dsp_power_state.state; sof_resume() local 203 u32 old_state = sdev->dsp_power_state.state; sof_suspend() local
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_atomic.c | 121 struct drm_connector_state *old_state = in intel_digital_connector_atomic_check() local 124 to_intel_digital_connector_state(old_state); in intel_digital_connector_atomic_check() 127 intel_hdcp_atomic_check(conn, old_state, new_state); in intel_digital_connector_atomic_check() 145 !drm_connector_atomic_hdr_metadata_equal(old_state, new_state)) in intel_digital_connector_atomic_check()
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | rc.c | 472 enum ieee80211_sta_state old_state, in mm81x_rc_sta_state_check() argument 478 if (old_state < new_state && new_state == IEEE80211_STA_ASSOC) { in mm81x_rc_sta_state_check() 481 } else if (old_state > new_state && (old_state == IEEE80211_STA_ASSOC || in mm81x_rc_sta_state_check() 482 old_state == IEEE80211_STA_AUTH)) { in mm81x_rc_sta_state_check() 485 } else if (old_state < new_state && old_state == IEEE80211_STA_NONE && in mm81x_rc_sta_state_check()
|
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | vbox_mode.c | 328 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in vbox_primary_atomic_disable() local 330 struct drm_crtc *crtc = old_state->crtc; in vbox_primary_atomic_disable() 333 vbox_crtc_set_base_and_mode(crtc, old_state->fb, in vbox_primary_atomic_disable() 334 old_state->src_x >> 16, in vbox_primary_atomic_disable() 335 old_state->src_y >> 16); in vbox_primary_atomic_disable() 393 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in vbox_cursor_atomic_update() local 414 if (fb == old_state->fb) in vbox_cursor_atomic_update() 444 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, in vbox_cursor_atomic_disable() local 448 struct vbox_crtc *vbox_crtc = to_vbox_crtc(old_state->crtc); in vbox_cursor_atomic_disable()
|
| /linux/arch/mips/alchemy/common/ |
| H A D | platform.c | 32 unsigned int old_state) in alchemy_8250_pm() argument 38 serial8250_do_pm(port, state, old_state); in alchemy_8250_pm() 41 serial8250_do_pm(port, state, old_state); in alchemy_8250_pm() 45 serial8250_do_pm(port, state, old_state); in alchemy_8250_pm()
|
| /linux/net/dccp/ |
| H A D | proto.c | |
| /linux/drivers/gpu/drm/radeon/ |
| H A D | rs780_dpm.c | 431 struct igp_ps *old_state = rs780_get_ps(old_ps); in rs780_set_engine_clock_scaling() local 434 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_scaling() 435 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_scaling() 449 old_state->sclk_high, false, ¤t_max_dividers); in rs780_set_engine_clock_scaling() 478 struct igp_ps *old_state = rs780_get_ps(old_ps); in rs780_set_engine_clock_spc() local 481 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_spc() 482 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_spc() 497 struct igp_ps *old_state = rs780_get_ps(old_ps); in rs780_activate_engine_clk_scaling() local 499 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_activate_engine_clk_scaling() 500 (new_state->sclk_low == old_state->sclk_low)) in rs780_activate_engine_clk_scaling()
|
| /linux/drivers/net/wan/ |
| H A D | hdlc_ppp.c | 300 int old_state, action; in ppp_cp_event() local 304 old_state = proto->state; in ppp_cp_event() 305 BUG_ON(old_state >= STATES); in ppp_cp_event() 313 action = cp_table[event][old_state]; in ppp_cp_event() 339 if (old_state != OPENED && proto->state == OPENED) { in ppp_cp_event() 350 if (old_state == OPENED && proto->state != OPENED) { in ppp_cp_event() 358 if (old_state != CLOSED && proto->state == CLOSED) in ppp_cp_event()
|