/drivers/iommu/ |
D | amd_iommu_v2.c | 80 struct device_state *dev_state; member 96 static void free_pasid_states(struct device_state *dev_state); 110 struct device_state *dev_state; in __get_device_state() local 112 list_for_each_entry(dev_state, &state_list, list) { in __get_device_state() 113 if (dev_state->devid == devid) in __get_device_state() 114 return dev_state; in __get_device_state() 122 struct device_state *dev_state; in get_device_state() local 126 dev_state = __get_device_state(devid); in get_device_state() 127 if (dev_state != NULL) in get_device_state() 128 atomic_inc(&dev_state->count); in get_device_state() [all …]
|
/drivers/misc/mei/ |
D | init.c | 110 enum mei_dev_state state = dev->dev_state; in mei_reset() 136 dev->dev_state = MEI_DEV_RESETTING; in mei_reset() 141 dev->dev_state = MEI_DEV_DISABLED; in mei_reset() 163 dev->dev_state = MEI_DEV_DISABLED; in mei_reset() 175 dev->dev_state = MEI_DEV_INIT_CLIENTS; in mei_reset() 179 dev->dev_state = MEI_DEV_RESETTING; in mei_reset() 209 dev->dev_state = MEI_DEV_INITIALIZING; in mei_start() 212 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 244 dev->dev_state = MEI_DEV_DISABLED; in mei_start() 263 dev->dev_state = MEI_DEV_POWER_UP; in mei_restart() [all …]
|
D | hbm.c | 404 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 794 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1083 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1086 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1134 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1137 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1172 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1175 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1194 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1198 dev->dev_state = MEI_DEV_POWER_DOWN; in mei_hbm_dispatch() [all …]
|
D | main.c | 61 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open() 63 mei_dev_state_str(dev->dev_state)); in mei_open() 149 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read() 268 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write() 336 if (dev->dev_state != MEI_DEV_ENABLED) in mei_ioctl_connect_client() 452 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl() 560 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll() 630 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync()
|
D | debugfs.c | 56 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_read_meclients() 111 if (dev->dev_state == MEI_DEV_ENABLED) in mei_dbgfs_read_active() 127 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_read_active() 164 mei_dev_state_str(dev->dev_state)); in mei_dbgfs_read_devstate()
|
D | interrupt.c | 488 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 502 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 518 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
/drivers/media/usb/au0828/ |
D | au0828-video.c | 104 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) { in check_dev() 109 if (test_bit(DEV_MISCONFIGURED, &dev->dev_state)) { in check_dev() 516 if (test_bit(DEV_DISCONNECTED, &dev->dev_state) || in au0828_isoc_copy() 517 test_bit(DEV_MISCONFIGURED, &dev->dev_state)) in au0828_isoc_copy() 761 if (test_bit(DEV_DISCONNECTED, &d->dev_state)) in au0828_analog_stream_enable() 816 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_stream_interrupt() 1017 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_open() 1035 set_bit(DEV_INITIALIZED, &dev->dev_state); in au0828_v4l2_open() 1050 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_close() 1065 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_v4l2_close() [all …]
|
D | au0828-input.c | 133 if (test_bit(DEV_DISCONNECTED, &ir->dev->dev_state)) in au0828_get_key_au8522() 263 if (!test_bit(DEV_DISCONNECTED, &ir->dev->dev_state)) { in au0828_rc_stop()
|
/drivers/scsi/qla2xxx/ |
D | qla_nx.c | 349 char *qdev_state(uint32_t dev_state) in qdev_state() argument 351 return q_dev_state[dev_state]; in qdev_state() 2917 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local 2966 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler() 2968 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler() 2989 uint32_t dev_state; in qla82xx_wait_for_state_change() local 2994 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_wait_for_state_change() 2996 } while (dev_state == curr_state); in qla82xx_wait_for_state_change() 2998 return dev_state; in qla82xx_wait_for_state_change() 3040 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local [all …]
|
D | qla_nx2.c | 1651 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local 1666 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1675 __func__, vha->host_no, drv_state, drv_active, dev_state); in qla8044_need_reset_handler() 1694 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1701 (dev_state == QLA8XXX_DEV_NEED_RESET)); in qla8044_need_reset_handler() 1718 (dev_state == QLA8XXX_DEV_NEED_RESET)) { in qla8044_need_reset_handler() 1870 uint32_t drv_state, drv_active, dev_state; in qla8044_need_qsnt_handler() local 1914 dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); in qla8044_need_qsnt_handler() 1916 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla8044_need_qsnt_handler() 1933 uint32_t dev_state; in qla8044_device_state_handler() local [all …]
|
/drivers/hid/intel-ish-hid/ishtp/ |
D | hbm.c | 48 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_fw_cl_allocate() 161 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_start_req() 194 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_enum_clients_req() 228 dev->dev_state = ISHTP_DEV_ENABLED; in ishtp_hbm_prop_req() 249 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_prop_req() 611 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 656 if (dev->dev_state != ISHTP_DEV_INIT_CLIENTS || in ishtp_hbm_dispatch() 671 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_hbm_dispatch() 698 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 720 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_hbm_dispatch()
|
D | init.c | 62 dev->dev_state = ISHTP_DEV_INITIALIZING; in ishtp_device_init() 111 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_start()
|
D | client.c | 194 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_link() 282 (dev->dev_state != ISHTP_DEV_ENABLED || in ishtp_cl_disconnect() 290 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_disconnect() 369 (dev->dev_state == ISHTP_DEV_ENABLED && in ishtp_cl_connect() 378 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_connect() 456 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_cl_read_start() 541 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_send() 645 if (dev->dev_state != ISHTP_DEV_ENABLED) in ipc_tx_callback()
|
/drivers/staging/ks7010/ |
D | ks7010_sdio.c | 178 if (priv->dev_state != DEVICE_STATE_SLEEP) in _ks_wlan_hw_power_save() 234 if (priv->dev_state < DEVICE_STATE_BOOT) { in enqueue_txdev() 304 if (priv->dev_state >= DEVICE_STATE_BOOT) { in tx_device_task() 359 if (cnt_rxqbody(priv) > 0 && priv->dev_state >= DEVICE_STATE_BOOT) { in rx_event_task() 506 if (priv->dev_state < DEVICE_STATE_BOOT) in ks_sdio_interrupt() 767 priv->dev_state = DEVICE_STATE_PREINIT; in ks7010_card_init() 793 if (priv->dev_state >= DEVICE_STATE_PREINIT) { in ks7010_card_init() 795 priv->dev_state = DEVICE_STATE_READY; in ks7010_card_init() 797 DPRINTK(1, "dev_state=%d\n", priv->dev_state); in ks7010_card_init() 897 priv->dev_state = DEVICE_STATE_PREBOOT; in ks7010_sdio_probe() [all …]
|
D | ks_hostif.c | 105 priv->dev_state = DEVICE_STATE_READY; in ks_wlan_do_power_save() 732 priv->dev_state = DEVICE_STATE_SLEEP; in hostif_power_mgmt_confirm() 735 priv->dev_state = DEVICE_STATE_READY; in hostif_power_mgmt_confirm() 869 if (priv->dev_state == DEVICE_STATE_SLEEP) in hostif_stop_confirm() 870 priv->dev_state = DEVICE_STATE_READY; in hostif_stop_confirm() 1335 if (priv->dev_state < DEVICE_STATE_BOOT) { in hostif_mib_set_request() 2374 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2418 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2422 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2423 priv->dev_state = DEVICE_STATE_PREINIT; in hostif_sme_execute() [all …]
|
/drivers/scsi/qla4xxx/ |
D | ql4_attr.c | 37 uint32_t dev_state; in qla4_8xxx_sysfs_write_fw_dump() local 79 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_sysfs_write_fw_dump() 80 if (dev_state == QLA8XXX_DEV_READY) { in qla4_8xxx_sysfs_write_fw_dump() 96 __func__, dev_state); in qla4_8xxx_sysfs_write_fw_dump()
|
D | ql4_nx.c | 3324 uint32_t dev_state, drv_state, drv_active; in qla4_82xx_need_reset_handler() local 3385 dev_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla4_82xx_need_reset_handler() 3386 ql4_printk(KERN_INFO, ha, "Device state is 0x%x = %s\n", dev_state, in qla4_82xx_need_reset_handler() 3387 dev_state < MAX_STATES ? qdev_state[dev_state] : "Unknown"); in qla4_82xx_need_reset_handler() 3390 if (dev_state != QLA8XXX_DEV_INITIALIZING) { in qla4_82xx_need_reset_handler() 3512 uint32_t dev_state; in qla4_8xxx_device_state_handler() local 3520 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_device_state_handler() 3522 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() 3523 qdev_state[dev_state] : "Unknown")); in qla4_8xxx_device_state_handler() 3535 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() [all …]
|
D | ql4_83xx.c | 512 uint32_t dev_state, drv_state, drv_active; in qla4_83xx_need_reset_handler() local 538 dev_state = qla4_8xxx_rd_direct(ha, in qla4_83xx_need_reset_handler() 540 } while (dev_state == QLA8XXX_DEV_NEED_RESET); in qla4_83xx_need_reset_handler() 1351 uint32_t dev_state; in qla4_83xx_isp_reset() local 1354 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_83xx_isp_reset() 1359 if (dev_state == QLA8XXX_DEV_READY) { in qla4_83xx_isp_reset()
|
/drivers/hid/intel-ish-hid/ipc/ |
D | ipc.c | 265 if (dev->dev_state == ISHTP_DEV_DISABLED) in write_ipc_from_queue() 657 if (dev->dev_state == ISHTP_DEV_DISABLED) in ish_irq_handler() 762 dev->dev_state = ISHTP_DEV_RESETTING; in _ish_hw_reset() 974 dev->dev_state = ISHTP_DEV_DISABLED; in ish_device_disable()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 1204 set_bit(XGBE_LINK_INIT, &pdata->dev_state); in __xgbe_phy_config_aneg() 1272 set_bit(XGBE_LINK_ERR, &pdata->dev_state); in xgbe_phy_config_aneg() 1274 clear_bit(XGBE_LINK_ERR, &pdata->dev_state); in xgbe_phy_config_aneg() 1345 if (test_bit(XGBE_LINK_ERR, &pdata->dev_state)) { in xgbe_phy_status() 1369 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) in xgbe_phy_status() 1370 clear_bit(XGBE_LINK_INIT, &pdata->dev_state); in xgbe_phy_status() 1374 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) { in xgbe_phy_status()
|
D | xgbe-main.c | 200 set_bit(XGBE_DOWN, &pdata->dev_state); in xgbe_alloc_pdata() 201 set_bit(XGBE_STOPPED, &pdata->dev_state); in xgbe_alloc_pdata()
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800pci.c | 229 enum dev_state state) in rt2800pci_set_state() 248 enum dev_state state) in rt2800pci_set_device_state()
|
D | rt2800mmio.h | 146 enum dev_state state);
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_main.c | 3454 u32 dev_state = 0xf; in qlcnic_fwinit_work() local 3460 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3461 if (dev_state == QLCNIC_DEV_QUISCENT || in qlcnic_fwinit_work() 3462 dev_state == QLCNIC_DEV_NEED_QUISCENT) { in qlcnic_fwinit_work() 3474 if (dev_state == QLCNIC_DEV_INITIALIZING || in qlcnic_fwinit_work() 3475 dev_state == QLCNIC_DEV_READY) { in qlcnic_fwinit_work() 3489 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3491 if (dev_state == QLCNIC_DEV_NEED_RESET) { in qlcnic_fwinit_work() 3527 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3528 QLCDB(adapter, HW, "Func waiting: Device state=%u\n", dev_state); in qlcnic_fwinit_work() [all …]
|
/drivers/s390/cio/ |
D | device.h | 15 enum dev_state { enum
|