Home
last modified time | relevance | path

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

123

/drivers/net/wireless/iwlwifi/dvm/
Dtt.c262 enum iwl_tt_state old_state; in iwl_legacy_tt_handler() local
274 old_state = tt->state; in iwl_legacy_tt_handler()
290 if (tt->state != old_state) { in iwl_legacy_tt_handler()
310 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler()
317 if (old_state == IWL_TI_CT_KILL) in iwl_legacy_tt_handler()
319 tt->state = old_state; in iwl_legacy_tt_handler()
329 tt->state = old_state; in iwl_legacy_tt_handler()
331 } else if (old_state == IWL_TI_CT_KILL && in iwl_legacy_tt_handler()
369 enum iwl_tt_state old_state; in iwl_advance_tt_handler() local
372 old_state = tt->state; in iwl_advance_tt_handler()
[all …]
Dmac80211.c876 enum ieee80211_sta_state old_state, in iwlagn_mac_sta_state() argument
887 sta->addr, old_state, new_state); in iwlagn_mac_sta_state()
891 if (old_state == IEEE80211_STA_NOTEXIST && in iwlagn_mac_sta_state()
894 else if (old_state == IEEE80211_STA_NONE && in iwlagn_mac_sta_state()
897 else if (old_state == IEEE80211_STA_AUTH && in iwlagn_mac_sta_state()
901 if (old_state == IEEE80211_STA_AUTH && in iwlagn_mac_sta_state()
904 else if (old_state == IEEE80211_STA_ASSOC && in iwlagn_mac_sta_state()
/drivers/input/keyboard/
Dpmic8xxx-keypad.c206 u16 *old_state) in pmic8xxx_kp_read_matrix() argument
218 if (old_state) { in pmic8xxx_kp_read_matrix()
219 rc = pmic8xxx_kp_read_data(kp, old_state, KEYP_OLD_DATA, in pmic8xxx_kp_read_matrix()
254 u16 *old_state) in __pmic8xxx_kp_scan_matrix() argument
259 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix()
311 u16 old_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local
327 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
331 __pmic8xxx_kp_scan_matrix(kp, old_state, kp->keystate); in pmic8xxx_kp_scan_matrix()
332 __pmic8xxx_kp_scan_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
337 rc = pmic8xxx_kp_read_matrix(kp, new_state, old_state); in pmic8xxx_kp_scan_matrix()
[all …]
Dcros_ec_keyb.c212 uint8_t old_state[ckdev->cols]; in cros_ec_keyb_clear_keyboard() local
226 memcpy(old_state, new_state, sizeof(old_state)); in cros_ec_keyb_clear_keyboard()
228 if (0 == memcmp(old_state, new_state, sizeof(old_state))) in cros_ec_keyb_clear_keyboard()
/drivers/scsi/qla2xxx/
Dqla_inline.h152 int old_state; in qla2x00_set_fcport_state() local
154 old_state = atomic_read(&fcport->state); in qla2x00_set_fcport_state()
158 if (old_state && old_state != state) { in qla2x00_set_fcport_state()
162 port_state_str[old_state], port_state_str[state], in qla2x00_set_fcport_state()
/drivers/usb/phy/
Dphy-mv-usb.c341 int old_state = phy->state; in mv_otg_update_state() local
343 switch (old_state) { in mv_otg_update_state()
415 int old_state; in mv_otg_work() local
423 old_state = phy->state; in mv_otg_work()
431 if (old_state != phy->state) { in mv_otg_work()
433 state_string[old_state], in mv_otg_work()
439 if (old_state == OTG_STATE_B_PERIPHERAL) in mv_otg_work()
451 if (old_state == OTG_STATE_A_WAIT_VFALL) in mv_otg_work()
459 if (old_state != OTG_STATE_A_HOST) in mv_otg_work()
Dphy-fsm-usb.c68 void otg_leave_state(struct otg_fsm *fsm, enum usb_otg_state old_state) in otg_leave_state() argument
70 switch (old_state) { in otg_leave_state()
/drivers/net/wireless/prism54/
Dislpci_dev.c463 islpci_state_t old_state; in islpci_upload_fw() local
466 old_state = islpci_set_state(priv, PRV_STATE_BOOT); in islpci_upload_fw()
476 islpci_set_state(priv, old_state); in islpci_upload_fw()
923 islpci_state_t old_state; in islpci_set_state() local
926 old_state = priv->state; in islpci_set_state()
940 if (old_state == PRV_STATE_OFF) in islpci_set_state()
952 priv->ndev->name, old_state, new_state, priv->state_off); in islpci_set_state()
961 return old_state; in islpci_set_state()
/drivers/video/
Dsa1100fb.c855 u_int old_state; in set_ctrlr_state() local
859 old_state = fbi->state; in set_ctrlr_state()
864 if (old_state == C_STARTUP && state == C_REENABLE) in set_ctrlr_state()
873 if (old_state != C_DISABLE && old_state != C_DISABLE_PM) { in set_ctrlr_state()
884 if (old_state != C_DISABLE) { in set_ctrlr_state()
888 if (old_state != C_DISABLE_CLKCHANGE) in set_ctrlr_state()
899 if (old_state == C_DISABLE_CLKCHANGE) { in set_ctrlr_state()
911 if (old_state == C_ENABLE) { in set_ctrlr_state()
924 if (old_state != C_DISABLE_PM) in set_ctrlr_state()
933 if (old_state != C_ENABLE) { in set_ctrlr_state()
Dpxafb.c1524 u_int old_state; in set_ctrlr_state() local
1528 old_state = fbi->state; in set_ctrlr_state()
1533 if (old_state == C_STARTUP && state == C_REENABLE) in set_ctrlr_state()
1542 if (old_state != C_DISABLE && old_state != C_DISABLE_PM) { in set_ctrlr_state()
1554 if (old_state != C_DISABLE) { in set_ctrlr_state()
1558 if (old_state != C_DISABLE_CLKCHANGE) in set_ctrlr_state()
1568 if (old_state == C_DISABLE_CLKCHANGE) { in set_ctrlr_state()
1581 if (old_state == C_ENABLE) { in set_ctrlr_state()
1595 if (old_state != C_DISABLE_PM) in set_ctrlr_state()
1604 if (old_state != C_ENABLE) { in set_ctrlr_state()
/drivers/staging/iio/cdc/
Dad7150.c79 int old_state; member
476 !(chip->old_state & AD7150_STATUS_OUT1)) in ad7150_event_handler()
484 (chip->old_state & AD7150_STATUS_OUT1)) in ad7150_event_handler()
493 !(chip->old_state & AD7150_STATUS_OUT2)) in ad7150_event_handler()
501 (chip->old_state & AD7150_STATUS_OUT2)) in ad7150_event_handler()
509 chip->old_state = int_status; in ad7150_event_handler()
/drivers/net/wan/
Dhdlc_ppp.c307 int old_state, action; in ppp_cp_event() local
311 old_state = proto->state; in ppp_cp_event()
312 BUG_ON(old_state >= STATES); in ppp_cp_event()
320 action = cp_table[event][old_state]; in ppp_cp_event()
346 if (old_state != OPENED && proto->state == OPENED) { in ppp_cp_event()
357 if (old_state == OPENED && proto->state != OPENED) { in ppp_cp_event()
365 if (old_state != CLOSED && proto->state == CLOSED) in ppp_cp_event()
/drivers/scsi/aic7xxx/aicasm/
Daicasm_scan.l409 YY_BUFFER_STATE old_state;
416 old_state = YY_CURRENT_BUFFER;
421 mm_switch_to_buffer(old_state);
424 yy_switch_to_buffer(old_state);
/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c970 enum ieee80211_sta_state old_state, in iwl_mvm_mac_sta_state() argument
978 sta->addr, old_state, new_state); in iwl_mvm_mac_sta_state()
988 if (old_state == IEEE80211_STA_NOTEXIST && in iwl_mvm_mac_sta_state()
991 } else if (old_state == IEEE80211_STA_NONE && in iwl_mvm_mac_sta_state()
994 } else if (old_state == IEEE80211_STA_AUTH && in iwl_mvm_mac_sta_state()
1000 } else if (old_state == IEEE80211_STA_ASSOC && in iwl_mvm_mac_sta_state()
1003 } else if (old_state == IEEE80211_STA_AUTHORIZED && in iwl_mvm_mac_sta_state()
1006 } else if (old_state == IEEE80211_STA_ASSOC && in iwl_mvm_mac_sta_state()
1009 } else if (old_state == IEEE80211_STA_AUTH && in iwl_mvm_mac_sta_state()
1012 } else if (old_state == IEEE80211_STA_NONE && in iwl_mvm_mac_sta_state()
/drivers/acpi/
Dac.c355 unsigned old_state; in acpi_ac_resume() local
364 old_state = ac->state; in acpi_ac_resume()
367 if (old_state != ac->state) in acpi_ac_resume()
/drivers/net/can/mscan/
Dmscan.c297 enum can_state state, old_state = priv->can.state; in check_set_state() local
299 if (canrflg & MSCAN_CSCIF && old_state <= CAN_STATE_BUS_OFF) { in check_set_state()
304 return old_state; in check_set_state()
353 enum can_state old_state; in mscan_get_err_frame() local
367 old_state = check_set_state(dev, canrflg); in mscan_get_err_frame()
369 if (old_state != priv->can.state) { in mscan_get_err_frame()
/drivers/xen/xen-pciback/
Dconf_space_capability.c118 pci_power_t new_state, old_state; in pm_ctrl_write() local
124 old_state = (pci_power_t)(old_value & PCI_PM_CTRL_STATE_MASK); in pm_ctrl_write()
/drivers/isdn/hisax/
Damd7930_fn.c171 …u_char index = stateHelper[cs->dc.amd7930.old_state] * 8 + stateHelper[cs->dc.amd7930.ph_state] - … in Amd7930_new_ph()
176 cs->dc.amd7930.ph_state, cs->dc.amd7930.old_state, message & 0x0f, index); in Amd7930_new_ph()
178 cs->dc.amd7930.old_state = cs->dc.amd7930.ph_state; in Amd7930_new_ph()
223 cs->dc.amd7930.old_state = 3; in Amd7930_new_ph()
756 cs->dc.amd7930.old_state = 0; in Amd7930_init()
Dhfc_usb.c379 __u8 old_state; in s0_state_handler() local
381 old_state = hfc->l1_state; in s0_state_handler()
382 if (state == old_state || state < 1 || state > 8) in s0_state_handler()
386 old_state, state); in s0_state_handler()
406 if (old_state == 7 || old_state == 8) { in s0_state_handler()
/drivers/target/iscsi/
Discsi_target_tpg.c265 u8 old_state = tpg->tpg_state; in iscsit_tpg_del_portal_group() local
275 tpg->tpg_state = old_state; in iscsit_tpg_del_portal_group()
359 u8 old_state = tpg->tpg_state; in iscsit_tpg_disable_portal_group() local
375 tpg->tpg_state = old_state; in iscsit_tpg_disable_portal_group()
/drivers/net/ethernet/sfc/
Dtenxpress.c360 struct efx_link_state old_state = efx->link_state; in tenxpress_phy_poll() local
369 return !efx_link_state_equal(&efx->link_state, &old_state); in tenxpress_phy_poll()
/drivers/isdn/gigaset/
Dser-gigaset.c429 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, in gigaset_set_modem_ctrl() argument
437 set = new_state & ~old_state; in gigaset_set_modem_ctrl()
438 clear = old_state & ~new_state; in gigaset_set_modem_ctrl()
/drivers/input/mouse/
Dcypress_ps2.c108 enum psmouse_state old_state; in cypress_ps2_read_cmd_status() local
113 old_state = psmouse->state; in cypress_ps2_read_cmd_status()
134 psmouse->state = old_state; in cypress_ps2_read_cmd_status()
/drivers/scsi/fnic/
Dfnic_fcs.c1096 enum fnic_state old_state; in fnic_set_eth_mode() local
1101 old_state = fnic->state; in fnic_set_eth_mode()
1102 switch (old_state) { in fnic_set_eth_mode()
1115 fnic->state = old_state; in fnic_set_eth_mode()
/drivers/mtd/tests/
Dmtd_pagetest.c145 struct rnd_state old_state = rnd_state; in verify_eraseblock() local
180 rnd_state = old_state; in verify_eraseblock()

123