Searched refs:old_state (Results 1 - 111 of 111) sorted by relevance

/linux-4.4.14/net/wimax/
H A Dstack.c103 enum wimax_st new_state, enum wimax_st old_state, wimax_gnl_re_state_change_alloc()
111 d_fnstart(3, dev, "(wimax_dev %p new_state %u old_state %u)\n", wimax_gnl_re_state_change_alloc()
112 wimax_dev, new_state, old_state); wimax_gnl_re_state_change_alloc()
128 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_OLD, old_state); wimax_gnl_re_state_change_alloc()
144 d_fnend(3, dev, "(wimax_dev %p new_state %u old_state %u) = %p\n", wimax_gnl_re_state_change_alloc()
145 wimax_dev, new_state, old_state, report_skb); wimax_gnl_re_state_change_alloc()
151 d_fnend(3, dev, "(wimax_dev %p new_state %u old_state %u) = %d\n", wimax_gnl_re_state_change_alloc()
152 wimax_dev, new_state, old_state, result); wimax_gnl_re_state_change_alloc()
190 void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, __check_new_state() argument
195 old_state, new_state); __check_new_state()
207 enum wimax_st old_state = wimax_dev->state; __wimax_state_change() local
212 wimax_dev, new_state, old_state); __wimax_state_change()
219 if (old_state == new_state) __wimax_state_change()
223 wimax_dev, new_state, old_state, &header); __wimax_state_change()
226 switch (old_state) { __wimax_state_change()
228 __check_new_state(old_state, new_state, __wimax_state_change()
232 __check_new_state(old_state, new_state, __wimax_state_change()
238 __check_new_state(old_state, new_state, 1 << WIMAX_ST_DOWN); __wimax_state_change()
241 __check_new_state(old_state, new_state, __wimax_state_change()
246 __check_new_state(old_state, new_state, __wimax_state_change()
251 __check_new_state(old_state, new_state, __wimax_state_change()
259 __check_new_state(old_state, new_state, __wimax_state_change()
267 __check_new_state(old_state, new_state, __wimax_state_change()
275 __check_new_state(old_state, new_state, __wimax_state_change()
324 wimax_dev, new_state, old_state); __wimax_state_change()
101 wimax_gnl_re_state_change_alloc( struct wimax_dev *wimax_dev, enum wimax_st new_state, enum wimax_st old_state, void **header) wimax_gnl_re_state_change_alloc() argument
/linux-4.4.14/include/drm/
H A Ddrm_atomic_helper.h46 struct drm_atomic_state *old_state);
50 struct drm_atomic_state *old_state);
55 struct drm_atomic_state *old_state);
63 struct drm_atomic_state *old_state);
164 * @old_state: previous atomic state
175 struct drm_plane_state *old_state) drm_atomic_plane_disabling()
186 * When using the transitional helpers, old_state may be NULL. If so, drm_atomic_plane_disabling()
190 * When using the atomic helpers, old_state won't be NULL. Therefore drm_atomic_plane_disabling()
195 return (!old_state || old_state->crtc) && !plane->state->crtc; drm_atomic_plane_disabling()
174 drm_atomic_plane_disabling(struct drm_plane *plane, struct drm_plane_state *old_state) drm_atomic_plane_disabling() argument
H A Ddrm_plane_helper.h63 const struct drm_plane_state *old_state);
68 struct drm_plane_state *old_state);
70 struct drm_plane_state *old_state);
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
H A Dtt.c261 enum iwl_tt_state old_state; iwl_legacy_tt_handler() local
273 old_state = tt->state; iwl_legacy_tt_handler()
289 if (tt->state != old_state) { iwl_legacy_tt_handler()
309 if (old_state == IWL_TI_CT_KILL) iwl_legacy_tt_handler()
316 if (old_state == IWL_TI_CT_KILL) iwl_legacy_tt_handler()
318 tt->state = old_state; iwl_legacy_tt_handler()
328 tt->state = old_state; iwl_legacy_tt_handler()
330 } else if (old_state == IWL_TI_CT_KILL && iwl_legacy_tt_handler()
368 enum iwl_tt_state old_state; iwl_advance_tt_handler() local
371 old_state = tt->state; iwl_advance_tt_handler()
376 * tt->transaction + ((old_state * (IWL_TI_STATE_MAX - 1)) iwl_advance_tt_handler()
384 ((old_state * (IWL_TI_STATE_MAX - 1)) + i); iwl_advance_tt_handler()
399 if (old_state != iwl_advance_tt_handler()
449 if (old_state == IWL_TI_CT_KILL)
458 if (old_state == IWL_TI_CT_KILL)
460 tt->state = old_state;
465 if (old_state != IWL_TI_CT_KILL &&
473 tt->state = old_state;
476 } else if (old_state == IWL_TI_CT_KILL &&
H A Dmac80211.c864 enum ieee80211_sta_state old_state, iwlagn_mac_sta_state()
875 sta->addr, old_state, new_state); iwlagn_mac_sta_state()
879 if (old_state == IEEE80211_STA_NOTEXIST && iwlagn_mac_sta_state()
882 else if (old_state == IEEE80211_STA_NONE && iwlagn_mac_sta_state()
885 else if (old_state == IEEE80211_STA_AUTH && iwlagn_mac_sta_state()
889 if (old_state == IEEE80211_STA_AUTH && iwlagn_mac_sta_state()
892 else if (old_state == IEEE80211_STA_ASSOC && iwlagn_mac_sta_state()
861 iwlagn_mac_sta_state(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) iwlagn_mac_sta_state() argument
/linux-4.4.14/arch/powerpc/kvm/
H A Dbook3s_hv_rm_xics.c157 union kvmppc_icp_state old_state, new_state; icp_rm_try_to_deliver() local
161 old_state = new_state = READ_ONCE(icp->state); icp_rm_try_to_deliver()
187 } while (!icp_rm_try_update(icp, old_state, new_state)); icp_rm_try_to_deliver()
313 union kvmppc_icp_state old_state, new_state; icp_rm_down_cppr() local
346 old_state = new_state = READ_ONCE(icp->state); icp_rm_down_cppr()
370 } while (!icp_rm_try_update(icp, old_state, new_state)); icp_rm_down_cppr()
386 union kvmppc_icp_state old_state, new_state; kvmppc_rm_h_xirr() local
405 old_state = new_state = READ_ONCE(icp->state); kvmppc_rm_h_xirr()
407 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); kvmppc_rm_h_xirr()
408 if (!old_state.xisr) kvmppc_rm_h_xirr()
414 } while (!icp_rm_try_update(icp, old_state, new_state)); kvmppc_rm_h_xirr()
425 union kvmppc_icp_state old_state, new_state; kvmppc_rm_h_ipi() local
471 old_state = new_state = READ_ONCE(icp->state); kvmppc_rm_h_ipi()
488 if (mfrr > old_state.mfrr) { kvmppc_rm_h_ipi()
492 } while (!icp_rm_try_update(icp, old_state, new_state)); kvmppc_rm_h_ipi()
511 union kvmppc_icp_state old_state, new_state; kvmppc_rm_h_cppr() local
546 old_state = new_state = READ_ONCE(icp->state); kvmppc_rm_h_cppr()
557 } while (!icp_rm_try_update(icp, old_state, new_state)); kvmppc_rm_h_cppr()
H A Dbook3s_xics.c336 union kvmppc_icp_state old_state, new_state; icp_try_to_deliver() local
343 old_state = new_state = READ_ONCE(icp->state); icp_try_to_deliver()
369 } while (!icp_try_update(icp, old_state, new_state, false)); icp_try_to_deliver()
500 union kvmppc_icp_state old_state, new_state; icp_down_cppr() local
533 old_state = new_state = READ_ONCE(icp->state); icp_down_cppr()
559 } while (!icp_try_update(icp, old_state, new_state, true)); icp_down_cppr()
572 union kvmppc_icp_state old_state, new_state; kvmppc_h_xirr() local
588 old_state = new_state = READ_ONCE(icp->state); kvmppc_h_xirr()
590 xirr = old_state.xisr | (((u32)old_state.cppr) << 24); kvmppc_h_xirr()
591 if (!old_state.xisr) kvmppc_h_xirr()
597 } while (!icp_try_update(icp, old_state, new_state, true)); kvmppc_h_xirr()
607 union kvmppc_icp_state old_state, new_state; kvmppc_h_ipi() local
655 old_state = new_state = READ_ONCE(icp->state); kvmppc_h_ipi()
672 if (mfrr > old_state.mfrr) { kvmppc_h_ipi()
676 } while (!icp_try_update(icp, old_state, new_state, local)); kvmppc_h_ipi()
708 union kvmppc_icp_state old_state, new_state; kvmppc_h_cppr() local
742 old_state = new_state = READ_ONCE(icp->state); kvmppc_h_cppr()
753 } while (!icp_try_update(icp, old_state, new_state, true)); kvmppc_h_cppr()
1079 union kvmppc_icp_state old_state, new_state; kvmppc_xics_set_icp() local
1124 * Note that if we displace an interrupt from old_state.xisr, kvmppc_xics_set_icp()
1134 old_state = READ_ONCE(icp->state); kvmppc_xics_set_icp()
1136 if (new_state.mfrr <= old_state.mfrr) { kvmppc_xics_set_icp()
1138 new_state.need_resend = old_state.need_resend; kvmppc_xics_set_icp()
1140 resend = old_state.need_resend; kvmppc_xics_set_icp()
1143 } while (!icp_try_update(icp, old_state, new_state, false)); kvmppc_xics_set_icp()
/linux-4.4.14/drivers/gpu/drm/exynos/
H A Dexynos_drm_plane.c149 struct drm_plane_state *old_state) exynos_plane_atomic_update()
171 struct drm_plane_state *old_state) exynos_plane_atomic_disable()
174 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(old_state->crtc); exynos_plane_atomic_disable()
176 if (!old_state->crtc) exynos_plane_atomic_disable()
148 exynos_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) exynos_plane_atomic_update() argument
170 exynos_plane_atomic_disable(struct drm_plane *plane, struct drm_plane_state *old_state) exynos_plane_atomic_disable() argument
/linux-4.4.14/drivers/input/keyboard/
H A Dcros_ec_keyb.c113 int old_state; cros_ec_keyb_process() local
134 old_state = ckdev->old_kb_state[col] & (1 << row); cros_ec_keyb_process()
135 if (new_state != old_state) { cros_ec_keyb_process()
319 uint8_t old_state[ckdev->cols]; cros_ec_keyb_clear_keyboard() local
333 memcpy(old_state, new_state, sizeof(old_state)); cros_ec_keyb_clear_keyboard()
335 if (0 == memcmp(old_state, new_state, sizeof(old_state))) cros_ec_keyb_clear_keyboard()
H A Dpmic8xxx-keypad.c180 u16 *old_state) pmic8xxx_kp_read_matrix()
192 if (old_state) { pmic8xxx_kp_read_matrix()
193 rc = pmic8xxx_kp_read_data(kp, old_state, KEYP_OLD_DATA, pmic8xxx_kp_read_matrix()
228 u16 *old_state) __pmic8xxx_kp_scan_matrix()
233 int bits_changed = new_state[row] ^ old_state[row]; __pmic8xxx_kp_scan_matrix()
285 u16 old_state[PM8XXX_MAX_ROWS]; pmic8xxx_kp_scan_matrix() local
301 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); pmic8xxx_kp_scan_matrix()
305 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); pmic8xxx_kp_scan_matrix()
306 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); pmic8xxx_kp_scan_matrix()
311 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); pmic8xxx_kp_scan_matrix()
314 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); pmic8xxx_kp_scan_matrix()
315 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); pmic8xxx_kp_scan_matrix()
338 u16 old_state[PM8XXX_MAX_ROWS]; pmic8xxx_kp_stuck_irq() local
342 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); pmic8xxx_kp_stuck_irq()
179 pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, u16 *old_state) pmic8xxx_kp_read_matrix() argument
227 __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, u16 *old_state) __pmic8xxx_kp_scan_matrix() argument
/linux-4.4.14/drivers/scsi/qla2xxx/
H A Dqla_inline.h161 int old_state; qla2x00_set_fcport_state() local
163 old_state = atomic_read(&fcport->state); qla2x00_set_fcport_state()
167 if (old_state && old_state != state) { qla2x00_set_fcport_state()
171 port_state_str[old_state], port_state_str[state], qla2x00_set_fcport_state()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
H A Domap_plane.c72 const struct drm_plane_state *old_state) omap_plane_cleanup_fb()
74 if (old_state->fb) omap_plane_cleanup_fb()
75 omap_framebuffer_unpin(old_state->fb); omap_plane_cleanup_fb()
79 struct drm_plane_state *old_state) omap_plane_atomic_update()
147 struct drm_plane_state *old_state) omap_plane_atomic_disable()
71 omap_plane_cleanup_fb(struct drm_plane *plane, const struct drm_plane_state *old_state) omap_plane_cleanup_fb() argument
78 omap_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) omap_plane_atomic_update() argument
146 omap_plane_atomic_disable(struct drm_plane *plane, struct drm_plane_state *old_state) omap_plane_atomic_disable() argument
H A Domap_drv.c70 struct drm_atomic_state *old_state) omap_atomic_wait_for_completion()
77 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
93 struct drm_atomic_state *old_state = commit->state; omap_atomic_complete() local
98 drm_atomic_helper_commit_modeset_disables(dev, old_state); omap_atomic_complete()
99 drm_atomic_helper_commit_planes(dev, old_state, false); omap_atomic_complete()
100 drm_atomic_helper_commit_modeset_enables(dev, old_state); omap_atomic_complete()
102 omap_atomic_wait_for_completion(dev, old_state); omap_atomic_complete()
104 drm_atomic_helper_cleanup_planes(dev, old_state); omap_atomic_complete()
108 drm_atomic_state_free(old_state); omap_atomic_complete()
69 omap_atomic_wait_for_completion(struct drm_device *dev, struct drm_atomic_state *old_state) omap_atomic_wait_for_completion() argument
/linux-4.4.14/drivers/gpu/drm/msm/
H A Dmsm_atomic.c88 struct drm_atomic_state *old_state) msm_atomic_wait_for_commit_done()
91 struct msm_drm_private *priv = old_state->dev->dev_private; msm_atomic_wait_for_commit_done()
93 int ncrtcs = old_state->dev->mode_config.num_crtc; msm_atomic_wait_for_commit_done()
97 crtc = old_state->crtcs[i]; msm_atomic_wait_for_commit_done()
107 if (old_state->legacy_cursor_update) msm_atomic_wait_for_commit_done()
87 msm_atomic_wait_for_commit_done(struct drm_device *dev, struct drm_atomic_state *old_state) msm_atomic_wait_for_commit_done() argument
/linux-4.4.14/net/mac80211/
H A Ddriver-ops.c113 enum ieee80211_sta_state old_state, drv_sta_state()
124 trace_drv_sta_state(local, sdata, &sta->sta, old_state, new_state); drv_sta_state()
127 old_state, new_state); drv_sta_state()
128 } else if (old_state == IEEE80211_STA_AUTH && drv_sta_state()
133 } else if (old_state == IEEE80211_STA_ASSOC && drv_sta_state()
110 drv_sta_state(struct ieee80211_local *local, struct ieee80211_sub_if_data *sdata, struct sta_info *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) drv_sta_state() argument
H A Dtrace.h777 enum ieee80211_sta_state old_state,
780 TP_ARGS(local, sdata, sta, old_state, new_state),
786 __field(u32, old_state)
794 __entry->old_state = old_state;
801 __entry->old_state, __entry->new_state
H A Ddriver-ops.h524 enum ieee80211_sta_state old_state,
/linux-4.4.14/drivers/xen/xen-pciback/
H A Dconf_space_capability.c118 pci_power_t new_state, old_state; pm_ctrl_write() local
124 old_state = (pci_power_t)(old_value & PCI_PM_CTRL_STATE_MASK); pm_ctrl_write()
/linux-4.4.14/drivers/power/
H A Dbq25890_charger.c498 struct bq25890_state old_state; bq25890_state_changed() local
501 old_state = bq->state; bq25890_state_changed()
504 return (old_state.chrg_status != new_state->chrg_status || bq25890_state_changed()
505 old_state.chrg_fault != new_state->chrg_fault || bq25890_state_changed()
506 old_state.online != new_state->online || bq25890_state_changed()
507 old_state.bat_fault != new_state->bat_fault || bq25890_state_changed()
508 old_state.boost_fault != new_state->boost_fault || bq25890_state_changed()
509 old_state.vsys_status != new_state->vsys_status); bq25890_state_changed()
516 struct bq25890_state old_state; bq25890_handle_state_change() local
519 old_state = bq->state; bq25890_handle_state_change()
527 } else if (!old_state.online) { /* power inserted */ bq25890_handle_state_change()
H A Dbq24257_charger.c612 struct bq24257_state old_state; bq24257_handle_state_change() local
615 old_state = bq->state; bq24257_handle_state_change()
639 } else if (!old_state.power_good) { bq24257_handle_state_change()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_atomic_helper.c576 disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state) disable_outputs() argument
584 for_each_connector_in_state(old_state, connector, old_conn_state, i) { for_each_connector_in_state()
594 old_crtc_state = old_state->crtc_states[drm_crtc_index(old_conn_state->crtc)]; for_each_connector_in_state()
630 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
659 * @old_state: atomic state object with old state structures
671 struct drm_atomic_state *old_state) drm_atomic_helper_update_legacy_modeset_state()
680 for_each_connector_in_state(old_state, connector, old_conn_state, i) { for_each_connector_in_state()
705 for_each_connector_in_state(old_state, connector, old_conn_state, i) { for_each_connector_in_state()
717 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
723 if (drm_atomic_get_existing_plane_state(old_state, primary) && for_each_crtc_in_state()
737 crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *old_state) crtc_set_mode() argument
745 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
761 for_each_connector_in_state(old_state, connector, old_conn_state, i) { for_each_connector_in_state()
796 * @old_state: atomic state object with old state structures
808 struct drm_atomic_state *old_state) drm_atomic_helper_commit_modeset_disables()
810 disable_outputs(dev, old_state); drm_atomic_helper_commit_modeset_disables()
812 drm_atomic_helper_update_legacy_modeset_state(dev, old_state); drm_atomic_helper_commit_modeset_disables()
814 crtc_set_mode(dev, old_state); drm_atomic_helper_commit_modeset_disables()
821 * @old_state: atomic state object with old state structures
833 struct drm_atomic_state *old_state) drm_atomic_helper_commit_modeset_enables()
841 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
864 for_each_connector_in_state(old_state, connector, old_conn_state, i) { for_each_connector_in_state()
917 struct drm_atomic_state *old_state, framebuffer_changed()
924 for_each_plane_in_state(old_state, plane, old_plane_state, i) { for_each_plane_in_state()
939 * @old_state: atomic state object with old state structures
949 struct drm_atomic_state *old_state) drm_atomic_helper_wait_for_vblanks()
955 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
966 if (old_state->legacy_cursor_update) for_each_crtc_in_state()
969 if (!framebuffer_changed(dev, old_state, crtc)) for_each_crtc_in_state()
980 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
1181 * @old_state: atomic state object with old state structures
1189 * It still requires the global state object @old_state to know which planes and
1213 struct drm_atomic_state *old_state, drm_atomic_helper_commit_planes()
1222 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
1236 for_each_plane_in_state(old_state, plane, old_plane_state, i) { for_each_plane_in_state()
1270 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
1308 struct drm_atomic_state *old_state = old_crtc_state->state; drm_atomic_helper_commit_planes_on_crtc() local
1321 drm_atomic_get_existing_plane_state(old_state, plane); drm_atomic_helper_commit_planes_on_crtc()
1347 * @old_state: atomic state object with old state structures
1350 * configuration. Hence the old configuration must be perserved in @old_state to
1357 struct drm_atomic_state *old_state) drm_atomic_helper_cleanup_planes()
1363 for_each_plane_in_state(old_state, plane, plane_state, i) { for_each_plane_in_state()
670 drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, struct drm_atomic_state *old_state) drm_atomic_helper_update_legacy_modeset_state() argument
807 drm_atomic_helper_commit_modeset_disables(struct drm_device *dev, struct drm_atomic_state *old_state) drm_atomic_helper_commit_modeset_disables() argument
832 drm_atomic_helper_commit_modeset_enables(struct drm_device *dev, struct drm_atomic_state *old_state) drm_atomic_helper_commit_modeset_enables() argument
916 framebuffer_changed(struct drm_device *dev, struct drm_atomic_state *old_state, struct drm_crtc *crtc) framebuffer_changed() argument
948 drm_atomic_helper_wait_for_vblanks(struct drm_device *dev, struct drm_atomic_state *old_state) drm_atomic_helper_wait_for_vblanks() argument
1212 drm_atomic_helper_commit_planes(struct drm_device *dev, struct drm_atomic_state *old_state, bool active_only) drm_atomic_helper_commit_planes() argument
1356 drm_atomic_helper_cleanup_planes(struct drm_device *dev, struct drm_atomic_state *old_state) drm_atomic_helper_cleanup_planes() argument
/linux-4.4.14/arch/mips/alchemy/common/
H A Dplatform.c32 unsigned int old_state) alchemy_8250_pm()
38 serial8250_do_pm(port, state, old_state); alchemy_8250_pm()
41 serial8250_do_pm(port, state, old_state); alchemy_8250_pm()
45 serial8250_do_pm(port, state, old_state); alchemy_8250_pm()
31 alchemy_8250_pm(struct uart_port *port, unsigned int state, unsigned int old_state) alchemy_8250_pm() argument
/linux-4.4.14/drivers/staging/iio/cdc/
H A Dad7150.c65 * @old_state: store state from previous event, allowing confirmation
79 int old_state; member in struct:ad7150_chip_info
504 !(chip->old_state & AD7150_STATUS_OUT1)) ad7150_event_handler()
512 (chip->old_state & AD7150_STATUS_OUT1)) ad7150_event_handler()
521 !(chip->old_state & AD7150_STATUS_OUT2)) ad7150_event_handler()
529 (chip->old_state & AD7150_STATUS_OUT2)) ad7150_event_handler()
537 chip->old_state = int_status; ad7150_event_handler()
/linux-4.4.14/drivers/usb/phy/
H A Dphy-mv-usb.c341 int old_state = mvotg->phy.otg->state; mv_otg_update_state() local
343 switch (old_state) { mv_otg_update_state()
415 int old_state; mv_otg_work() local
423 old_state = otg->state; mv_otg_work()
431 if (old_state != mvotg->phy.otg->state) { mv_otg_work()
433 state_string[old_state], mv_otg_work()
439 if (old_state == OTG_STATE_B_PERIPHERAL) mv_otg_work()
453 if (old_state == OTG_STATE_A_WAIT_VFALL) mv_otg_work()
461 if (old_state != OTG_STATE_A_HOST) mv_otg_work()
/linux-4.4.14/drivers/infiniband/hw/usnic/
H A Dusnic_ib_qp_grp.c401 enum ib_qp_state old_state; usnic_ib_qp_grp_modify() local
405 old_state = qp_grp->state; usnic_ib_qp_grp_modify()
412 switch (old_state) { usnic_ib_qp_grp_modify()
431 switch (old_state) { usnic_ib_qp_grp_modify()
474 switch (old_state) { usnic_ib_qp_grp_modify()
483 switch (old_state) { usnic_ib_qp_grp_modify()
496 switch (old_state) { usnic_ib_qp_grp_modify()
526 usnic_ib_qp_grp_state_to_string(old_state), usnic_ib_qp_grp_modify()
531 usnic_ib_qp_grp_state_to_string(old_state), usnic_ib_qp_grp_modify()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_plane.c267 const struct drm_plane_state *old_state) mdp5_plane_cleanup_fb()
271 struct drm_framebuffer *fb = old_state->fb; mdp5_plane_cleanup_fb()
284 struct drm_plane_state *old_state = plane->state; mdp5_plane_atomic_check() local
289 plane_enabled(old_state), plane_enabled(state)); mdp5_plane_atomic_check()
323 if (plane_enabled(state) && plane_enabled(old_state)) { mdp5_plane_atomic_check()
326 if (state->fb->pixel_format != old_state->fb->pixel_format) { mdp5_plane_atomic_check()
330 if (state->src_w != old_state->src_w) { mdp5_plane_atomic_check()
334 if (to_mdp5_plane_state(old_state)->pending) { mdp5_plane_atomic_check()
352 struct drm_plane_state *old_state) mdp5_plane_atomic_update()
266 mdp5_plane_cleanup_fb(struct drm_plane *plane, const struct drm_plane_state *old_state) mdp5_plane_cleanup_fb() argument
351 mdp5_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) mdp5_plane_atomic_update() argument
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Drv6xx_dpm.c1204 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_set_sw_voltage_to_safe() local
1207 safe_voltage = (new_state->low.vddc >= old_state->low.vddc) ? rv6xx_set_sw_voltage_to_safe()
1208 new_state->low.vddc : old_state->low.vddc; rv6xx_set_sw_voltage_to_safe()
1220 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_set_sw_voltage_to_low() local
1223 old_state->low.vddc); rv6xx_set_sw_voltage_to_low()
1234 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_set_safe_backbias() local
1237 (old_state->low.flags & ATOM_PPLIB_R600_FLAGS_BACKBIASENABLE)) rv6xx_set_safe_backbias()
1248 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_set_safe_pcie_gen2() local
1251 (old_state->low.flags & ATOM_PPLIB_R600_FLAGS_PCIEGEN2)) rv6xx_set_safe_pcie_gen2()
1310 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_step_voltage_if_increasing() local
1312 if (new_state->low.vddc > old_state->low.vddc) rv6xx_step_voltage_if_increasing()
1314 old_state->low.vddc, rv6xx_step_voltage_if_increasing()
1325 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_step_voltage_if_decreasing() local
1327 if (new_state->low.vddc < old_state->low.vddc) rv6xx_step_voltage_if_decreasing()
1329 old_state->low.vddc, rv6xx_step_voltage_if_decreasing()
1423 struct rv6xx_ps *old_state = rv6xx_get_ps(old_ps); rv6xx_generate_transition_stepping() local
1427 old_state->low.sclk, rv6xx_generate_transition_stepping()
H A Drs780_dpm.c431 struct igp_ps *old_state = rs780_get_ps(old_ps); rs780_set_engine_clock_scaling() local
434 if ((new_state->sclk_high == old_state->sclk_high) && rs780_set_engine_clock_scaling()
435 (new_state->sclk_low == old_state->sclk_low)) rs780_set_engine_clock_scaling()
449 old_state->sclk_high, false, &current_max_dividers); rs780_set_engine_clock_scaling()
478 struct igp_ps *old_state = rs780_get_ps(old_ps); rs780_set_engine_clock_spc() local
481 if ((new_state->sclk_high == old_state->sclk_high) && rs780_set_engine_clock_spc()
482 (new_state->sclk_low == old_state->sclk_low)) rs780_set_engine_clock_spc()
497 struct igp_ps *old_state = rs780_get_ps(old_ps); rs780_activate_engine_clk_scaling() local
499 if ((new_state->sclk_high == old_state->sclk_high) && rs780_activate_engine_clk_scaling()
500 (new_state->sclk_low == old_state->sclk_low)) rs780_activate_engine_clk_scaling()
/linux-4.4.14/drivers/gpu/drm/fsl-dcu/
H A Dfsl_dcu_drm_plane.c58 struct drm_plane_state *old_state) fsl_dcu_drm_plane_atomic_disable()
78 struct drm_plane_state *old_state) fsl_dcu_drm_plane_atomic_update()
57 fsl_dcu_drm_plane_atomic_disable(struct drm_plane *plane, struct drm_plane_state *old_state) fsl_dcu_drm_plane_atomic_disable() argument
77 fsl_dcu_drm_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) fsl_dcu_drm_plane_atomic_update() argument
/linux-4.4.14/net/ceph/
H A Dmessenger.c329 int old_state; con_sock_state_init() local
331 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); con_sock_state_init()
332 if (WARN_ON(old_state != CON_SOCK_STATE_NEW)) con_sock_state_init()
333 printk("%s: unexpected old state %d\n", __func__, old_state); con_sock_state_init()
334 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, con_sock_state_init()
340 int old_state; con_sock_state_connecting() local
342 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); con_sock_state_connecting()
343 if (WARN_ON(old_state != CON_SOCK_STATE_CLOSED)) con_sock_state_connecting()
344 printk("%s: unexpected old state %d\n", __func__, old_state); con_sock_state_connecting()
345 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, con_sock_state_connecting()
351 int old_state; con_sock_state_connected() local
353 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); con_sock_state_connected()
354 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING)) con_sock_state_connected()
355 printk("%s: unexpected old state %d\n", __func__, old_state); con_sock_state_connected()
356 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, con_sock_state_connected()
362 int old_state; con_sock_state_closing() local
364 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); con_sock_state_closing()
365 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING && con_sock_state_closing()
366 old_state != CON_SOCK_STATE_CONNECTED && con_sock_state_closing()
367 old_state != CON_SOCK_STATE_CLOSING)) con_sock_state_closing()
368 printk("%s: unexpected old state %d\n", __func__, old_state); con_sock_state_closing()
369 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, con_sock_state_closing()
375 int old_state; con_sock_state_closed() local
377 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); con_sock_state_closed()
378 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTED && con_sock_state_closed()
379 old_state != CON_SOCK_STATE_CLOSING && con_sock_state_closed()
380 old_state != CON_SOCK_STATE_CONNECTING && con_sock_state_closed()
381 old_state != CON_SOCK_STATE_CLOSED)) con_sock_state_closed()
382 printk("%s: unexpected old state %d\n", __func__, old_state); con_sock_state_closed()
383 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, con_sock_state_closed()
/linux-4.4.14/drivers/gpu/drm/rcar-du/
H A Drcar_du_kms.c454 struct drm_atomic_state *old_state = commit->state; rcar_du_atomic_complete() local
457 drm_atomic_helper_commit_modeset_disables(dev, old_state); rcar_du_atomic_complete()
458 drm_atomic_helper_commit_modeset_enables(dev, old_state); rcar_du_atomic_complete()
459 drm_atomic_helper_commit_planes(dev, old_state, false); rcar_du_atomic_complete()
461 drm_atomic_helper_wait_for_vblanks(dev, old_state); rcar_du_atomic_complete()
463 drm_atomic_helper_cleanup_planes(dev, old_state); rcar_du_atomic_complete()
465 drm_atomic_state_free(old_state); rcar_du_atomic_complete()
H A Drcar_du_plane.c263 struct drm_plane_state *old_state) rcar_du_plane_atomic_update()
262 rcar_du_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) rcar_du_plane_atomic_update() argument
/linux-4.4.14/drivers/net/wan/
H A Dhdlc_ppp.c307 int old_state, action; ppp_cp_event() local
311 old_state = proto->state; ppp_cp_event()
312 BUG_ON(old_state >= STATES); ppp_cp_event()
320 action = cp_table[event][old_state]; ppp_cp_event()
346 if (old_state != OPENED && proto->state == OPENED) { ppp_cp_event()
357 if (old_state == OPENED && proto->state != OPENED) { ppp_cp_event()
365 if (old_state != CLOSED && proto->state == CLOSED) ppp_cp_event()
/linux-4.4.14/drivers/acpi/
H A Dac.c383 unsigned old_state; acpi_ac_resume() local
392 old_state = ac->state; acpi_ac_resume()
395 if (old_state != ac->state) acpi_ac_resume()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/
H A Dmdp4_plane.c116 const struct drm_plane_state *old_state) mdp4_plane_cleanup_fb()
120 struct drm_framebuffer *fb = old_state->fb; mdp4_plane_cleanup_fb()
137 struct drm_plane_state *old_state) mdp4_plane_atomic_update()
115 mdp4_plane_cleanup_fb(struct drm_plane *plane, const struct drm_plane_state *old_state) mdp4_plane_cleanup_fb() argument
136 mdp4_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) mdp4_plane_atomic_update() argument
/linux-4.4.14/net/irda/ircomm/
H A Dircomm_tty_ioctl.c293 struct ircomm_tty_cb old_state, *state; ircomm_tty_set_serial_info()
300 old_state = *self; ircomm_tty_set_serial_info()
337 if (((old_state.flags & ASYNC_SPD_MASK) != ircomm_tty_set_serial_info()
/linux-4.4.14/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c62 struct drm_plane_state *old_state) virtio_gpu_plane_atomic_update()
61 virtio_gpu_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) virtio_gpu_plane_atomic_update() argument
/linux-4.4.14/net/dccp/
H A Dproto.c256 const int old_state = sk->sk_state; dccp_disconnect() local
258 if (old_state != DCCP_CLOSED) dccp_disconnect()
265 if (old_state == DCCP_LISTEN) { dccp_disconnect()
267 } else if (dccp_need_reset(old_state)) { dccp_disconnect()
270 } else if (old_state == DCCP_REQUESTING) dccp_disconnect()
918 unsigned char old_state; inet_dccp_listen() local
927 old_state = sk->sk_state; inet_dccp_listen()
928 if (!((1 << old_state) & (DCCPF_CLOSED | DCCPF_LISTEN))) inet_dccp_listen()
934 if (old_state != DCCP_LISTEN) { inet_dccp_listen()
H A Dinput.c579 const int old_state = sk->sk_state; dccp_rcv_state_process() local
690 switch (old_state) { dccp_rcv_state_process()
/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_proto_tcp.c823 enum tcp_conntrack new_state, old_state; tcp_packet() local
834 old_state = ct->proto.tcp.state; tcp_packet()
837 new_state = tcp_conntracks[dir][index][old_state]; tcp_packet()
842 if (old_state < TCP_CONNTRACK_TIME_WAIT) tcp_packet()
898 old_state = TCP_CONNTRACK_SYN_SENT; tcp_packet()
949 if (old_state == TCP_CONNTRACK_LAST_ACK) tcp_packet()
957 "state %s ", tcp_conntrack_names[old_state]); tcp_packet()
966 if (nfct_synproxy(ct) && old_state == TCP_CONNTRACK_SYN_SENT && tcp_packet()
977 dir, get_conntrack_index(th), old_state); tcp_packet()
988 if (old_state == TCP_CONNTRACK_LAST_ACK && tcp_packet()
1051 old_state, new_state); tcp_packet()
1054 if (old_state != new_state tcp_packet()
1069 if (new_state != old_state) tcp_packet()
1088 && (old_state == TCP_CONNTRACK_SYN_RECV tcp_packet()
1089 || old_state == TCP_CONNTRACK_ESTABLISHED) tcp_packet()
H A Dnf_conntrack_proto_dccp.c486 u_int8_t type, old_state, new_state; dccp_packet() local
503 old_state = ct->proto.dccp.state; dccp_packet()
504 new_state = dccp_state_table[role][type][old_state]; dccp_packet()
508 if (old_state == CT_DCCP_TIMEWAIT && dccp_packet()
517 if (old_state == CT_DCCP_REQUEST) dccp_packet()
521 if (old_state == CT_DCCP_RESPOND && dccp_packet()
562 if (new_state != old_state) dccp_packet()
H A Dnf_conntrack_proto_sctp.c331 enum sctp_conntrack new_state, old_state; sctp_packet() local
360 old_state = new_state = SCTP_CONNTRACK_NONE; sctp_packet()
395 old_state = ct->proto.sctp.state; for_each_sctp_chunk()
396 new_state = sctp_new_state(dir, old_state, sch->type); for_each_sctp_chunk()
402 dir, sch->type, old_state); for_each_sctp_chunk()
421 if (old_state != new_state) for_each_sctp_chunk()
428 if (old_state == SCTP_CONNTRACK_COOKIE_ECHOED &&
/linux-4.4.14/drivers/video/fbdev/
H A Dsa1100fb.c869 u_int old_state; set_ctrlr_state() local
873 old_state = fbi->state; set_ctrlr_state()
878 if (old_state == C_STARTUP && state == C_REENABLE) set_ctrlr_state()
887 if (old_state != C_DISABLE && old_state != C_DISABLE_PM) { set_ctrlr_state()
898 if (old_state != C_DISABLE) { set_ctrlr_state()
902 if (old_state != C_DISABLE_CLKCHANGE) set_ctrlr_state()
913 if (old_state == C_DISABLE_CLKCHANGE) { set_ctrlr_state()
925 if (old_state == C_ENABLE) { set_ctrlr_state()
938 if (old_state != C_DISABLE_PM) set_ctrlr_state()
947 if (old_state != C_ENABLE) { set_ctrlr_state()
H A Dpxafb.c1524 u_int old_state; set_ctrlr_state() local
1528 old_state = fbi->state; set_ctrlr_state()
1533 if (old_state == C_STARTUP && state == C_REENABLE) set_ctrlr_state()
1542 if (old_state != C_DISABLE && old_state != C_DISABLE_PM) { set_ctrlr_state()
1554 if (old_state != C_DISABLE) { set_ctrlr_state()
1558 if (old_state != C_DISABLE_CLKCHANGE) set_ctrlr_state()
1568 if (old_state == C_DISABLE_CLKCHANGE) { set_ctrlr_state()
1581 if (old_state == C_ENABLE) { set_ctrlr_state()
1595 if (old_state != C_DISABLE_PM) set_ctrlr_state()
1604 if (old_state != C_ENABLE) { set_ctrlr_state()
/linux-4.4.14/drivers/usb/common/
H A Dusb-otg-fsm.c67 static void otg_leave_state(struct otg_fsm *fsm, enum usb_otg_state old_state) otg_leave_state() argument
69 switch (old_state) { otg_leave_state()
/linux-4.4.14/drivers/net/wireless/prism54/
H A Dislpci_dev.c462 islpci_state_t old_state; islpci_upload_fw() local
465 old_state = islpci_set_state(priv, PRV_STATE_BOOT); islpci_upload_fw()
475 islpci_set_state(priv, old_state); islpci_upload_fw()
924 islpci_state_t old_state; islpci_set_state() local
927 old_state = priv->state; islpci_set_state()
941 if (old_state == PRV_STATE_OFF) islpci_set_state()
953 priv->ndev->name, old_state, new_state, priv->state_off); islpci_set_state()
962 return old_state; islpci_set_state()
/linux-4.4.14/drivers/isdn/hisax/
H A Damd7930_fn.c171 u_char index = stateHelper[cs->dc.amd7930.old_state] * 8 + stateHelper[cs->dc.amd7930.ph_state] - 1; Amd7930_new_ph()
176 cs->dc.amd7930.ph_state, cs->dc.amd7930.old_state, message & 0x0f, index); Amd7930_new_ph()
178 cs->dc.amd7930.old_state = cs->dc.amd7930.ph_state; Amd7930_new_ph()
223 cs->dc.amd7930.old_state = 3; Amd7930_new_ph()
756 cs->dc.amd7930.old_state = 0; Amd7930_init()
H A Dhfc_usb.c379 __u8 old_state; s0_state_handler() local
381 old_state = hfc->l1_state; s0_state_handler()
382 if (state == old_state || state < 1 || state > 8) s0_state_handler()
386 old_state, state); s0_state_handler()
406 if (old_state == 7 || old_state == 8) { s0_state_handler()
H A Dhisax.h850 u_char old_state; member in struct:amd7930_chip
/linux-4.4.14/drivers/gpu/drm/tegra/
H A Ddc.c559 struct drm_plane_state *old_state) tegra_plane_atomic_update()
600 struct drm_plane_state *old_state) tegra_plane_atomic_disable()
608 if (!old_state || !old_state->crtc) tegra_plane_atomic_disable()
611 dc = to_tegra_dc(old_state->crtc); tegra_plane_atomic_disable()
709 struct drm_plane_state *old_state) tegra_cursor_atomic_update()
771 struct drm_plane_state *old_state) tegra_cursor_atomic_disable()
777 if (!old_state || !old_state->crtc) tegra_cursor_atomic_disable()
780 dc = to_tegra_dc(old_state->crtc); tegra_cursor_atomic_disable()
558 tegra_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) tegra_plane_atomic_update() argument
599 tegra_plane_atomic_disable(struct drm_plane *plane, struct drm_plane_state *old_state) tegra_plane_atomic_disable() argument
708 tegra_cursor_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) tegra_cursor_atomic_update() argument
770 tegra_cursor_atomic_disable(struct drm_plane *plane, struct drm_plane_state *old_state) tegra_cursor_atomic_disable() argument
/linux-4.4.14/drivers/hsi/clients/
H A Dcmt_speech.c928 static void cs_hsi_data_disable(struct cs_hsi_iface *hi, int old_state) cs_hsi_data_disable() argument
930 if (old_state == CS_STATE_CONFIGURED) { cs_hsi_data_disable()
941 unsigned int old_state = hi->iface_state; cs_hsi_buf_config() local
945 if (old_state == CS_STATE_CONFIGURED) cs_hsi_buf_config()
975 cs_hsi_data_disable(hi, old_state); cs_hsi_buf_config()
979 if (old_state != hi->iface_state) { cs_hsi_buf_config()
987 } else if (old_state == CS_STATE_CONFIGURED) { cs_hsi_buf_config()
/linux-4.4.14/drivers/input/mouse/
H A Dcypress_ps2.c107 enum psmouse_state old_state; cypress_ps2_read_cmd_status() local
112 old_state = psmouse->state; cypress_ps2_read_cmd_status()
133 psmouse->state = old_state; cypress_ps2_read_cmd_status()
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_tpg.c272 u8 old_state = tpg->tpg_state; iscsit_tpg_del_portal_group() local
282 tpg->tpg_state = old_state; iscsit_tpg_del_portal_group()
364 u8 old_state = tpg->tpg_state; iscsit_tpg_disable_portal_group() local
380 tpg->tpg_state = old_state; iscsit_tpg_disable_portal_group()
/linux-4.4.14/drivers/scsi/
H A Dscsi_transport_srp.c342 enum srp_rport_state old_state = rport->state; srp_rport_set_state() local
348 switch (old_state) { srp_rport_set_state()
356 switch (old_state) { srp_rport_set_state()
364 switch (old_state) { srp_rport_set_state()
H A Ddpt_i2o.c731 int old_state; adpt_device_reset() local
748 old_state = d->state; adpt_device_reset()
751 d->state = old_state; adpt_device_reset()
/linux-4.4.14/drivers/mtd/tests/
H A Dpagetest.c98 struct rnd_state old_state = rnd_state; verify_eraseblock() local
118 rnd_state = old_state; verify_eraseblock()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dtenxpress.c360 struct efx_link_state old_state = efx->link_state; tenxpress_phy_poll() local
369 return !efx_link_state_equal(&efx->link_state, &old_state); tenxpress_phy_poll()
H A Dmcdi_port.c476 struct efx_link_state old_state = efx->link_state; efx_mcdi_phy_poll() local
495 return !efx_link_state_equal(&efx->link_state, &old_state); efx_mcdi_phy_poll()
H A Dfalcon.c1468 struct efx_link_state old_state = efx->link_state; falcon_loopback_link_poll() local
1478 return !efx_link_state_equal(&efx->link_state, &old_state); falcon_loopback_link_poll()
/linux-4.4.14/drivers/extcon/
H A Dextcon.c276 u32 old_state; extcon_update_state() local
284 old_state = edev->state; extcon_update_state()
289 if (is_extcon_changed(old_state, edev->state, index, extcon_update_state()
489 * "old_state", not the current state. The current state can be retrieved
576 * "old_state", not the current state. The current state can be retrieved
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
H A Dsched.c1043 enum spu_utilization_state old_state; spuctx_switch_state() local
1053 old_state = ctx->stats.util_state; spuctx_switch_state()
1061 ctx->stats.times[old_state] += delta; spuctx_switch_state()
1062 spu->stats.times[old_state] += delta; spuctx_switch_state()
1066 if (old_state == SPU_UTIL_USER) spuctx_switch_state()
/linux-4.4.14/drivers/isdn/gigaset/
H A Dser-gigaset.c426 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, gigaset_set_modem_ctrl() argument
436 set = new_state & ~old_state; gigaset_set_modem_ctrl()
437 clear = old_state & ~new_state; gigaset_set_modem_ctrl()
H A Dusb-gigaset.c154 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, gigaset_set_modem_ctrl() argument
161 mask = tiocm_to_gigaset(old_state ^ new_state); gigaset_set_modem_ctrl()
H A Dgigaset.h602 int (*set_modem_ctrl)(struct cardstate *cs, unsigned old_state,
H A Dbas-gigaset.c306 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, gigaset_set_modem_ctrl() argument
/linux-4.4.14/fs/hfsplus/
H A Dxattr.c138 int old_state = HFSPLUS_EMPTY_ATTR_TREE; hfsplus_create_attributes_file() local
145 if (old_state != atomic_cmpxchg(&sbi->attr_tree_state, hfsplus_create_attributes_file()
146 old_state, hfsplus_create_attributes_file()
/linux-4.4.14/drivers/staging/unisys/visorinput/
H A Dvisorinput.c471 int old_state = (test_bit(led, visorinput_dev->led) != 0); handle_locking_key() local
473 if (old_state != desired_state) { handle_locking_key()
/linux-4.4.14/drivers/scsi/fnic/
H A Dfnic_fcs.c1189 enum fnic_state old_state; fnic_set_eth_mode() local
1194 old_state = fnic->state; fnic_set_eth_mode()
1195 switch (old_state) { fnic_set_eth_mode()
1208 fnic->state = old_state; fnic_set_eth_mode()
H A Dfnic_scsi.c2566 enum fnic_state old_state; fnic_scsi_abort_io() local
2581 old_state = fnic->state; fnic_scsi_abort_io()
2590 fnic->state = old_state; fnic_scsi_abort_io()
2616 enum fnic_state old_state; fnic_scsi_cleanup() local
2628 old_state = fnic->state; fnic_scsi_cleanup()
2636 fnic->state = old_state; fnic_scsi_cleanup()
/linux-4.4.14/drivers/gpu/drm/vc4/
H A Dvc4_plane.c247 struct drm_plane_state *old_state) vc4_plane_atomic_update()
246 vc4_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) vc4_plane_atomic_update() argument
H A Dvc4_crtc.c365 struct drm_crtc_state *old_state) vc4_crtc_atomic_flush()
364 vc4_crtc_atomic_flush(struct drm_crtc *crtc, struct drm_crtc_state *old_state) vc4_crtc_atomic_flush() argument
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_atomic_plane.c190 struct drm_plane_state *old_state) intel_plane_atomic_update()
189 intel_plane_atomic_update(struct drm_plane *plane, struct drm_plane_state *old_state) intel_plane_atomic_update() argument
H A Dintel_display.c6108 static void valleyview_modeset_commit_cdclk(struct drm_atomic_state *old_state) valleyview_modeset_commit_cdclk() argument
6110 struct drm_device *dev = old_state->dev; valleyview_modeset_commit_cdclk()
6111 unsigned int req_cdclk = to_intel_atomic_state(old_state)->cdclk; valleyview_modeset_commit_cdclk()
9565 static void broxton_modeset_commit_cdclk(struct drm_atomic_state *old_state) broxton_modeset_commit_cdclk() argument
9567 struct drm_device *dev = old_state->dev; broxton_modeset_commit_cdclk()
9568 unsigned int req_cdclk = to_intel_atomic_state(old_state)->cdclk; broxton_modeset_commit_cdclk()
9713 static void broadwell_modeset_commit_cdclk(struct drm_atomic_state *old_state) broadwell_modeset_commit_cdclk() argument
9715 struct drm_device *dev = old_state->dev; broadwell_modeset_commit_cdclk()
9716 unsigned int req_cdclk = to_intel_atomic_state(old_state)->cdclk; broadwell_modeset_commit_cdclk()
12688 struct drm_atomic_state *old_state) check_connector_state()
12694 for_each_connector_in_state(old_state, connector, old_conn_state, i) { for_each_connector_in_state()
12748 check_crtc_state(struct drm_device *dev, struct drm_atomic_state *old_state) check_crtc_state() argument
12756 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_crtc_in_state()
12769 pipe_config->base.state = old_state; for_each_crtc_in_state()
12872 struct drm_atomic_state *old_state) intel_modeset_check_state()
12875 check_connector_state(dev, old_state); intel_modeset_check_state()
12877 check_crtc_state(dev, old_state); intel_modeset_check_state()
13493 const struct drm_plane_state *old_state) intel_cleanup_plane_fb()
13496 struct drm_i915_gem_object *obj = intel_fb_obj(old_state->fb); intel_cleanup_plane_fb()
13504 intel_unpin_fb_obj(old_state->fb, old_state); intel_cleanup_plane_fb()
12687 check_connector_state(struct drm_device *dev, struct drm_atomic_state *old_state) check_connector_state() argument
12871 intel_modeset_check_state(struct drm_device *dev, struct drm_atomic_state *old_state) intel_modeset_check_state() argument
13492 intel_cleanup_plane_fb(struct drm_plane *plane, const struct drm_plane_state *old_state) intel_cleanup_plane_fb() argument
H A Dintel_drv.h1085 const struct drm_plane_state *old_state);
/linux-4.4.14/drivers/input/misc/
H A Duinput.c237 enum uinput_state old_state = udev->state; uinput_destroy_device() local
244 if (old_state == UIST_CREATED) { uinput_destroy_device()
/linux-4.4.14/drivers/net/can/usb/
H A Dkvaser_usb.c893 enum can_state old_state, new_state; kvaser_usb_rx_error() local
914 old_state = priv->can.state; kvaser_usb_rx_error()
925 if (new_state != old_state) { kvaser_usb_rx_error()
934 (old_state >= CAN_STATE_BUS_OFF) && kvaser_usb_rx_error()
H A Desd_usb2.c222 u8 old_state; member in struct:esd_usb2_net_priv
246 if (state != priv->old_state) { esd_usb2_rx_event()
247 priv->old_state = state; esd_usb2_rx_event()
/linux-4.4.14/net/ipv4/
H A Daf_inet.c197 unsigned char old_state; inet_listen() local
206 old_state = sk->sk_state; inet_listen()
207 if (!((1 << old_state) & (TCPF_CLOSE | TCPF_LISTEN))) inet_listen()
213 if (old_state != TCP_LISTEN) { inet_listen()
H A Dtcp.c2207 int old_state = sk->sk_state; tcp_disconnect() local
2209 if (old_state != TCP_CLOSE) tcp_disconnect()
2213 if (old_state == TCP_LISTEN) { tcp_disconnect()
2217 } else if (tcp_need_reset(old_state) || tcp_disconnect()
2219 (1 << old_state) & (TCPF_CLOSING | TCPF_LAST_ACK))) { tcp_disconnect()
2225 } else if (old_state == TCP_SYN_SENT) tcp_disconnect()
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dstb0899_drv.c799 u8 reg, old_state; stb0899_send_diseqc_burst() local
806 old_state = reg; stb0899_send_diseqc_burst()
829 stb0899_write_reg(state, STB0899_DISCNTRL1, old_state); stb0899_send_diseqc_burst()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dmac80211.c2707 enum ieee80211_sta_state old_state, iwl_mvm_mac_sta_state()
2715 sta->addr, old_state, new_state); iwl_mvm_mac_sta_state()
2725 if (old_state == IEEE80211_STA_NOTEXIST && iwl_mvm_mac_sta_state()
2756 } else if (old_state == IEEE80211_STA_NONE && iwl_mvm_mac_sta_state()
2765 } else if (old_state == IEEE80211_STA_AUTH && iwl_mvm_mac_sta_state()
2772 } else if (old_state == IEEE80211_STA_ASSOC && iwl_mvm_mac_sta_state()
2782 } else if (old_state == IEEE80211_STA_AUTHORIZED && iwl_mvm_mac_sta_state()
2787 } else if (old_state == IEEE80211_STA_ASSOC && iwl_mvm_mac_sta_state()
2790 } else if (old_state == IEEE80211_STA_AUTH && iwl_mvm_mac_sta_state()
2793 } else if (old_state == IEEE80211_STA_NONE && iwl_mvm_mac_sta_state()
2805 if (old_state == IEEE80211_STA_NOTEXIST && iwl_mvm_mac_sta_state()
2808 else if (old_state == IEEE80211_STA_NONE && iwl_mvm_mac_sta_state()
2704 iwl_mvm_mac_sta_state(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) iwl_mvm_mac_sta_state() argument
H A Dsta.c1137 enum iwl_mvm_agg_state old_state; iwl_mvm_sta_tx_agg_flush() local
1147 old_state = tid_data->state; iwl_mvm_sta_tx_agg_flush()
1157 if (old_state >= IWL_AGG_ON) { iwl_mvm_sta_tx_agg_flush()
/linux-4.4.14/drivers/net/phy/
H A Dphy.c816 enum phy_state old_state; phy_state_machine() local
822 old_state = phydev->state; phy_state_machine()
999 phy_state_to_str(old_state), phy_state_to_str(phydev->state)); phy_state_machine()
/linux-4.4.14/drivers/edac/
H A Dedac_mc.c516 int old_state; edac_mc_assert_error_check_and_clear() local
521 old_state = edac_err_assert; edac_mc_assert_error_check_and_clear()
524 return old_state; edac_mc_assert_error_check_and_clear()
/linux-4.4.14/drivers/tty/vt/
H A Dkeyboard.c799 int old_state = shift_state; k_shift() local
829 if (up_flag && shift_state != old_state && npadch != -1) { k_shift()
1012 static void kbd_propagate_led_state(unsigned int old_state, kbd_propagate_led_state() argument
1016 unsigned int changed = old_state ^ new_state; kbd_propagate_led_state()
1068 static void kbd_propagate_led_state(unsigned int old_state, kbd_propagate_led_state() argument
/linux-4.4.14/drivers/pinctrl/
H A Dcore.c989 struct pinctrl_state *old_state = p->state; pinctrl_select_state() local
1053 if (old_state) pinctrl_select_state()
1054 pinctrl_select_state(p, old_state); pinctrl_select_state()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dmain.c1546 enum ieee80211_sta_state old_state, ath9k_sta_state()
1553 if (old_state == IEEE80211_STA_AUTH && ath9k_sta_state()
1558 } else if (old_state == IEEE80211_STA_ASSOC && ath9k_sta_state()
1567 if (old_state == IEEE80211_STA_ASSOC && ath9k_sta_state()
1543 ath9k_sta_state(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) ath9k_sta_state() argument
/linux-4.4.14/net/netfilter/ipvs/
H A Dip_vs_sync.c479 force = cp->state != cp->old_state; ip_vs_sync_conn_needed()
490 force = cp->state != cp->old_state; ip_vs_sync_conn_needed()
527 cp->old_state = cp->state; ip_vs_sync_conn_needed()
924 cp->old_state = cp->state; ip_vs_proc_conn()
H A Dip_vs_conn.c945 cp->old_state = 0; ip_vs_conn_new()
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_hbadisc.c4019 int old_state, int new_state) lpfc_nlp_state_cleanup()
4033 if (ndlp->rport && (old_state == NLP_STE_MAPPED_NODE || lpfc_nlp_state_cleanup()
4034 old_state == NLP_STE_UNMAPPED_NODE)) { lpfc_nlp_state_cleanup()
4109 int old_state = ndlp->nlp_state; lpfc_nlp_set_state() local
4115 lpfc_nlp_state_name(name1, sizeof(name1), old_state), lpfc_nlp_set_state()
4120 ndlp->nlp_DID, old_state, state); lpfc_nlp_set_state()
4122 if (old_state == NLP_STE_NPR_NODE && lpfc_nlp_set_state()
4125 if (old_state == NLP_STE_UNMAPPED_NODE) { lpfc_nlp_set_state()
4134 } else if (old_state) lpfc_nlp_set_state()
4135 lpfc_nlp_counters(vport, old_state, -1); lpfc_nlp_set_state()
4139 lpfc_nlp_state_cleanup(vport, ndlp, old_state, state); lpfc_nlp_set_state()
4018 lpfc_nlp_state_cleanup(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, int old_state, int new_state) lpfc_nlp_state_cleanup() argument
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
H A Dmain.c5130 enum ieee80211_sta_state old_state, wl12xx_update_sta_state()
5142 old_state == IEEE80211_STA_NOTEXIST && wl12xx_update_sta_state()
5153 old_state == IEEE80211_STA_NONE && wl12xx_update_sta_state()
5186 old_state == IEEE80211_STA_AUTHORIZED && wl12xx_update_sta_state()
5194 old_state == IEEE80211_STA_ASSOC && wl12xx_update_sta_state()
5202 old_state == IEEE80211_STA_AUTH && wl12xx_update_sta_state()
5216 old_state == IEEE80211_STA_NOTEXIST && wl12xx_update_sta_state()
5231 enum ieee80211_sta_state old_state, wl12xx_op_sta_state()
5239 sta->aid, old_state, new_state); wl12xx_op_sta_state()
5252 ret = wl12xx_update_sta_state(wl, wlvif, sta, old_state, new_state); wl12xx_op_sta_state()
5257 if (new_state < old_state) wl12xx_op_sta_state()
5127 wl12xx_update_sta_state(struct wl1271 *wl, struct wl12xx_vif *wlvif, struct ieee80211_sta *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) wl12xx_update_sta_state() argument
5228 wl12xx_op_sta_state(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) wl12xx_op_sta_state() argument
/linux-4.4.14/drivers/infiniband/core/
H A Dcma.c247 enum rdma_cm_state old_state; member in struct:cma_work
2098 work->old_state = RDMA_CM_ROUTE_QUERY; cma_query_handler()
2161 if (!cma_comp_exch(id_priv, work->old_state, work->new_state)) cma_work_handler()
2212 work->old_state = RDMA_CM_ROUTE_QUERY; cma_resolve_ib_route()
2271 work->old_state = RDMA_CM_ROUTE_QUERY; cma_resolve_iw_route()
2355 work->old_state = RDMA_CM_ROUTE_QUERY; cma_resolve_iboe_route()
2535 work->old_state = RDMA_CM_ADDR_QUERY; cma_resolve_loopback()
2565 work->old_state = RDMA_CM_ADDR_QUERY; cma_resolve_ib_addr()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dusb.c563 int old_state; brcmf_usb_state_change() local
571 old_state = devinfo->bus_pub.state; brcmf_usb_state_change()
/linux-4.4.14/drivers/net/usb/
H A Dusbnet.c426 enum skb_state old_state; defer_bh()
430 old_state = entry->state; defer_bh()
445 return old_state;
425 enum skb_state old_state; defer_bh() local
H A Dlan78xx.c2100 enum skb_state old_state; defer_bh() local
2104 old_state = entry->state; defer_bh()
2116 return old_state; defer_bh()
/linux-4.4.14/drivers/usb/gadget/function/
H A Df_mass_storage.c2350 enum fsg_state old_state; handle_exception() local
2413 old_state = common->state; handle_exception()
2415 if (old_state == FSG_STATE_ABORT_BULK_OUT) handle_exception()
2433 switch (old_state) { handle_exception()
/linux-4.4.14/drivers/usb/core/
H A Dhcd.c2213 int old_state = hcd->state; hcd_bus_suspend() local
2249 hcd->state = old_state; hcd_bus_suspend()
2262 int old_state = hcd->state; hcd_bus_resume() local
2306 hcd->state = old_state;
/linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c745 struct drm_plane_state *old_state) atmel_hlcdc_plane_atomic_disable()
744 atmel_hlcdc_plane_atomic_disable(struct drm_plane *p, struct drm_plane_state *old_state) atmel_hlcdc_plane_atomic_disable() argument
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
H A Dmac.c5360 enum ieee80211_sta_state old_state, ath10k_sta_state()
5368 if (old_state == IEEE80211_STA_NOTEXIST && ath10k_sta_state()
5376 if ((old_state == IEEE80211_STA_NONE && ath10k_sta_state()
5382 if (old_state == IEEE80211_STA_NOTEXIST && ath10k_sta_state()
5462 } else if ((old_state == IEEE80211_STA_NONE && ath10k_sta_state()
5491 } else if (old_state == IEEE80211_STA_AUTH && ath10k_sta_state()
5506 } else if (old_state == IEEE80211_STA_ASSOC && ath10k_sta_state()
5527 } else if (old_state == IEEE80211_STA_ASSOC && ath10k_sta_state()
5357 ath10k_sta_state(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta, enum ieee80211_sta_state old_state, enum ieee80211_sta_state new_state) ath10k_sta_state() argument
/linux-4.4.14/drivers/net/wireless/
H A Datmel.c2729 int old_state = priv->station_state; atmel_enter_state() local
2731 if (new_state == old_state) atmel_enter_state()
2741 if (old_state == STATION_STATE_READY) { atmel_enter_state()
3884 int old_state = priv->station_state; reset_atmel_card() local
4046 if (old_state == STATION_STATE_READY) { reset_atmel_card()
/linux-4.4.14/drivers/scsi/isci/
H A Dport.c298 enum sci_port_states old_state = sm->current_state_id; port_state_machine_change() local
300 if (is_port_ready_state(old_state) && !is_port_ready_state(state)) port_state_machine_change()
/linux-4.4.14/fs/ext4/
H A Dinode.c666 unsigned long old_state; ext4_update_bh_state() local
682 old_state = READ_ONCE(bh->b_state); ext4_update_bh_state()
683 new_state = (old_state & ~EXT4_MAP_FLAGS) | flags; ext4_update_bh_state()
685 cmpxchg(&bh->b_state, old_state, new_state) != old_state)); ext4_update_bh_state()
/linux-4.4.14/arch/ia64/kernel/
H A Dperfmon.c4661 int state, old_state; pfm_check_task_state() local
4739 old_state = state; pfm_check_task_state()
4750 if (ctx->ctx_state != old_state) { pfm_check_task_state()
4751 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); pfm_check_task_state()
/linux-4.4.14/drivers/scsi/bnx2i/
H A Dbnx2i_hwi.c2669 u32 old_state = ep->state; bnx2i_cm_remote_abort() local
2672 if (old_state == EP_STATE_DISCONN_START) bnx2i_cm_remote_abort()
/linux-4.4.14/drivers/block/
H A Dpktcdvd.c1183 enum packet_data_state old_state = pkt->state; pkt_set_state() local
1186 state_name[old_state], state_name[state]); pkt_set_state()
/linux-4.4.14/include/net/
H A Dip_vs.h535 volatile __u16 old_state; /* old state, to be used for member in struct:ip_vs_conn
H A Dmac80211.h3355 enum ieee80211_sta_state old_state,
/linux-4.4.14/drivers/infiniband/hw/nes/
H A Dnes_cm.c1390 enum nes_cm_node_state old_state; mini_cm_dec_refcnt_listen() local
1402 old_state = cm_node->state; mini_cm_dec_refcnt_listen()
1404 if (old_state != NES_CM_STATE_MPAREQ_RCVD) mini_cm_dec_refcnt_listen()
/linux-4.4.14/net/bluetooth/
H A Dhci_core.c1086 int old_state = hdev->discovery.state; hci_discovery_set_state() local
1090 if (old_state == state) hci_discovery_set_state()
1099 if (old_state != DISCOVERY_STARTING) hci_discovery_set_state()
/linux-4.4.14/arch/x86/kvm/
H A Dx86.c287 u64 old_state = vcpu->arch.apic_base & kvm_set_apic_base() local
298 old_state == (MSR_IA32_APICBASE_ENABLE | X2APIC_ENABLE)) || kvm_set_apic_base()
300 old_state == 0))) kvm_set_apic_base()
/linux-4.4.14/fs/gfs2/
H A Drgrp.c104 pr_warn("buf_blk = 0x%x old_state=%d, new_state=%d\n", gfs2_setbit()

Completed in 7482 milliseconds