Home
last modified time | relevance | path

Searched refs:prev_state (Results 1 – 25 of 36) sorted by relevance

12

/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dg84.c102 enum nvkm_therm_thrs_state prev_state, new_state; in g84_therm_threshold_hyst_emulation() local
105 prev_state = nvkm_therm_sensor_get_threshold_state(therm, thrs_name); in g84_therm_threshold_hyst_emulation()
127 if (prev_state < new_state) in g84_therm_threshold_hyst_emulation()
129 else if (prev_state > new_state) in g84_therm_threshold_hyst_emulation()
Dtemp.c142 enum nvkm_therm_thrs_state prev_state, new_state; in nvkm_therm_threshold_hyst_polling() local
145 prev_state = nvkm_therm_sensor_get_threshold_state(therm, thrs_name); in nvkm_therm_threshold_hyst_polling()
147 if (temp >= thrs->temp && prev_state == NVKM_THERM_THRS_LOWER) { in nvkm_therm_threshold_hyst_polling()
151 prev_state == NVKM_THERM_THRS_HIGHER) { in nvkm_therm_threshold_hyst_polling()
/drivers/hid/
Dhid-uclogic-core.c325 u8 prev_state = drvdata->re_state; in uclogic_raw_event() local
329 if ((prev_state == 1 && state == 0) || in uclogic_raw_event()
330 (prev_state == 2 && state == 3)) { in uclogic_raw_event()
332 } else if ((prev_state == 2 && state == 0) || in uclogic_raw_event()
333 (prev_state == 1 && state == 3)) { in uclogic_raw_event()
/drivers/of/
Ddynamic.c114 int is_status, status_state, old_status_state, prev_state, new_state; in of_reconfig_get_state_change() local
137 prev_state = -1; in of_reconfig_get_state_change()
151 prev_state = 0; in of_reconfig_get_state_change()
157 prev_state = status_state != 0; in of_reconfig_get_state_change()
163 prev_state = 1; in of_reconfig_get_state_change()
169 prev_state = status_state; in of_reconfig_get_state_change()
176 prev_state = old_status_state != 0; in of_reconfig_get_state_change()
182 if (prev_state == new_state) in of_reconfig_get_state_change()
/drivers/net/wireless/mediatek/mt76/mt7615/
Dtestmode.c267 enum mt76_testmode_state prev_state = td->state; in mt7615_tm_set_state() local
271 if (prev_state == MT76_TM_STATE_TX_FRAMES) in mt7615_tm_set_state()
280 prev_state == MT76_TM_STATE_OFF) || in mt7615_tm_set_state()
282 prev_state == MT76_TM_STATE_IDLE)) { in mt7615_tm_set_state()
/drivers/net/ethernet/qlogic/qed/
Dqed_roce.c983 enum qed_roce_qp_state prev_state, in qed_roce_modify_qp() argument
991 if (((prev_state == QED_ROCE_QP_STATE_INIT) || in qed_roce_modify_qp()
992 (prev_state == QED_ROCE_QP_STATE_RESET)) && in qed_roce_modify_qp()
997 } else if ((prev_state == QED_ROCE_QP_STATE_RTR) && in qed_roce_modify_qp()
1008 } else if ((prev_state == QED_ROCE_QP_STATE_RTS) && in qed_roce_modify_qp()
1019 } else if ((prev_state == QED_ROCE_QP_STATE_RTS) && in qed_roce_modify_qp()
1025 } else if ((prev_state == QED_ROCE_QP_STATE_SQD) && in qed_roce_modify_qp()
1036 } else if ((prev_state == QED_ROCE_QP_STATE_SQD) && in qed_roce_modify_qp()
Dqed_roce.h31 enum qed_roce_qp_state prev_state,
/drivers/usb/phy/
Dphy-tahvo.c73 int reg, prev_state; in check_vbus_state() local
113 prev_state = tu->vbus_state; in check_vbus_state()
115 if (prev_state != tu->vbus_state) { in check_vbus_state()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_init.c147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history()
680 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY) { in qlcnic_83xx_idc_ready_state_entry()
683 if ((ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) || in qlcnic_83xx_idc_ready_state_entry()
684 (ahw->idc.prev_state == QLC_83XX_IDC_DEV_INIT)) { in qlcnic_83xx_idc_ready_state_entry()
727 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_UNKNOWN) { in qlcnic_83xx_idc_vnic_pf_entry()
796 if (adapter->ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) { in qlcnic_83xx_idc_init_state()
902 if (adapter->ahw->idc.prev_state != QLC_83XX_IDC_DEV_NEED_RESET) { in qlcnic_83xx_idc_need_reset_state()
986 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_check_state_validity()
1143 adapter->ahw->idc.prev_state = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_poll_dev_state()
1168 adapter->ahw->idc.prev_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
[all …]
Dqlcnic_sriov_common.c1747 if ((idc->prev_state == QLC_83XX_IDC_DEV_NEED_RESET) || in qlcnic_sriov_vf_handle_dev_ready()
1748 (idc->prev_state == QLC_83XX_IDC_DEV_INIT)) { in qlcnic_sriov_vf_handle_dev_ready()
1832 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY) in qlcnic_sriov_vf_idc_ready_state()
1846 if (idc->prev_state == QLC_83XX_IDC_DEV_READY) in qlcnic_sriov_vf_idc_failed_state()
1861 if (idc->prev_state == QLC_83XX_IDC_DEV_READY) { in qlcnic_sriov_vf_idc_need_quiescent_state()
1878 if (idc->prev_state == QLC_83XX_IDC_DEV_READY) { in qlcnic_sriov_vf_idc_init_reset_state()
1932 idc->prev_state = idc->curr_state; in qlcnic_sriov_vf_poll_dev_state()
Dqlcnic_main.c3293 u32 val, prev_state; in qlcnic_can_start_firmware() local
3310 prev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_can_start_firmware()
3311 QLCDB(adapter, HW, "Device state = %u\n", prev_state); in qlcnic_can_start_firmware()
3313 switch (prev_state) { in qlcnic_can_start_firmware()
3354 prev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_can_start_firmware()
3356 if (prev_state == QLCNIC_DEV_QUISCENT) in qlcnic_can_start_firmware()
3358 } while ((prev_state != QLCNIC_DEV_READY) && --dev_init_timeo); in qlcnic_can_start_firmware()
Dqlcnic_83xx_hw.h322 u8 prev_state; member
/drivers/infiniband/hw/mlx4/
Dmcg.c112 enum mcast_group_state prev_state; member
627 group->prev_state = group->state; in handle_join_req()
634 group->state = group->prev_state; in handle_join_req()
669 group->state = group->prev_state; in mlx4_ib_mcg_work_handler()
729 group->prev_state = group->state; in mlx4_ib_mcg_work_handler()
731 group->state = group->prev_state; in mlx4_ib_mcg_work_handler()
910 group->prev_state = group->state; in mlx4_ib_mcg_demux_handler()
Dalias_GUID.c194 enum slave_port_state prev_state; in mlx4_ib_notify_slaves_on_guid_change() local
259 prev_state = mlx4_get_slave_port_state(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change()
265 slave_id, port_num, prev_state, new_state, gen_event); in mlx4_ib_notify_slaves_on_guid_change()
/drivers/pci/
Dxen-pcifront.c922 enum xenbus_state prev_state; in pcifront_try_disconnect() local
925 prev_state = xenbus_read_driver_state(pdev->xdev->nodename); in pcifront_try_disconnect()
927 if (prev_state >= XenbusStateClosing) in pcifront_try_disconnect()
930 if (prev_state == XenbusStateConnected) { in pcifront_try_disconnect()
Dpci-driver.c895 pci_power_t prev_state = pci_dev->current_state; in pci_pm_resume_noirq() local
913 if (!skip_bus_pm && prev_state == PCI_D3cold) in pci_pm_resume_noirq()
1284 pci_power_t prev_state = pci_dev->current_state; in pci_pm_runtime_resume() local
1300 if (prev_state == PCI_D3cold) in pci_pm_runtime_resume()
/drivers/net/wireless/mediatek/mt76/
Dtestmode.c214 enum mt76_testmode_state prev_state = dev->test.state; in __mt76_testmode_set_state() local
217 if (prev_state == MT76_TM_STATE_TX_FRAMES) in __mt76_testmode_set_state()
/drivers/bus/mhi/host/
Dpm.c451 enum mhi_pm_state cur_state, prev_state; in mhi_pm_disable_transition() local
469 prev_state = mhi_cntrl->pm_state; in mhi_pm_disable_transition()
489 if (MHI_REG_ACCESS_VALID(prev_state)) { in mhi_pm_disable_transition()
/drivers/net/ethernet/cisco/enic/
Denic_pp.c178 struct enic_port_profile *prev_state,
/drivers/scsi/isci/
Dremote_device.c1061 u32 prev_state; in sci_remote_device_stopped_state_enter() local
1066 prev_state = idev->sm.previous_state_id; in sci_remote_device_stopped_state_enter()
1067 if (prev_state == SCI_DEV_STOPPING) in sci_remote_device_stopped_state_enter()
Dport.c1512 u32 prev_state; in sci_port_ready_state_enter() local
1514 prev_state = iport->sm.previous_state_id; in sci_port_ready_state_enter()
1515 if (prev_state == SCI_PORT_RESETTING) in sci_port_ready_state_enter()
/drivers/mmc/host/
Ddw_mmc.c1963 enum dw_mci_state prev_state; in dw_mci_tasklet_func() local
1973 prev_state = state; in dw_mci_tasklet_func()
2034 prev_state = state = STATE_SENDING_DATA; in dw_mci_tasklet_func()
2091 prev_state = state = STATE_DATA_BUSY; in dw_mci_tasklet_func()
2144 prev_state = state = STATE_SENDING_STOP; in dw_mci_tasklet_func()
2175 } while (state != prev_state); in dw_mci_tasklet_func()
/drivers/target/
Dtarget_core_alua.c1008 int prev_state; in core_alua_do_transition_tg_pt() local
1026 prev_state = tg_pt_gp->tg_pt_gp_alua_access_state; in core_alua_do_transition_tg_pt()
1070 core_alua_dump_state(prev_state), in core_alua_do_transition_tg_pt()
/drivers/usb/typec/tcpm/
Dtcpm.c358 enum tcpm_state prev_state; member
1269 port->prev_state = port->state; in tcpm_set_state()
2084 enum vdm_states prev_state; in vdm_state_machine_work() local
2093 prev_state = port->vdm_state; in vdm_state_machine_work()
2095 } while (port->vdm_state != prev_state && in vdm_state_machine_work()
4948 enum tcpm_state prev_state; in tcpm_state_machine_work() local
4961 port->prev_state = port->state; in tcpm_state_machine_work()
4971 prev_state = port->state; in tcpm_state_machine_work()
4975 } while (port->state != prev_state && !port->delayed_state); in tcpm_state_machine_work()
/drivers/scsi/csiostor/
Dt4fw_api_stor.h121 u8 prev_state; member

12