/drivers/iommu/ |
D | amd_iommu_v2.c | 79 struct device_state *dev_state; member 95 static void free_pasid_states(struct device_state *dev_state); 109 struct device_state *dev_state; in __get_device_state() local 111 list_for_each_entry(dev_state, &state_list, list) { in __get_device_state() 112 if (dev_state->devid == devid) in __get_device_state() 113 return dev_state; in __get_device_state() 121 struct device_state *dev_state; in get_device_state() local 125 dev_state = __get_device_state(devid); in get_device_state() 126 if (dev_state != NULL) in get_device_state() 127 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() 134 dev->dev_state = MEI_DEV_RESETTING; in mei_reset() 139 dev->dev_state = MEI_DEV_DISABLED; in mei_reset() 170 dev->dev_state = MEI_DEV_DISABLED; in mei_reset() 182 dev->dev_state = MEI_DEV_INIT_CLIENTS; in mei_reset() 186 dev->dev_state = MEI_DEV_RESETTING; in mei_reset() 216 dev->dev_state = MEI_DEV_INITIALIZING; in mei_start() 219 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 226 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 257 dev->dev_state = MEI_DEV_DISABLED; in mei_start() [all …]
|
D | hbm.c | 405 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 795 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1080 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1083 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1131 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1134 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1166 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1169 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1188 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1192 dev->dev_state = MEI_DEV_POWER_DOWN; in mei_hbm_dispatch() [all …]
|
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 | main.c | 61 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open() 63 mei_dev_state_str(dev->dev_state)); in mei_open() 152 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read() 281 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write() 357 if (dev->dev_state != MEI_DEV_ENABLED) in mei_ioctl_connect_client() 497 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl() 605 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll()
|
D | interrupt.c | 491 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 505 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 535 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
/drivers/media/usb/au0828/ |
D | au0828-video.c | 109 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) { in check_dev() 114 if (test_bit(DEV_MISCONFIGURED, &dev->dev_state)) { in check_dev() 522 if (test_bit(DEV_DISCONNECTED, &dev->dev_state) || in au0828_isoc_copy() 523 test_bit(DEV_MISCONFIGURED, &dev->dev_state)) in au0828_isoc_copy() 821 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_stream_interrupt() 824 set_bit(DEV_MISCONFIGURED, &dev->dev_state); in au0828_stream_interrupt() 1024 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_open() 1042 set_bit(DEV_INITIALIZED, &dev->dev_state); in au0828_v4l2_open() 1057 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_close() 1072 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 | 344 char *qdev_state(uint32_t dev_state) in qdev_state() argument 346 return q_dev_state[dev_state]; in qdev_state() 2913 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local 2962 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler() 2964 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler() 2985 uint32_t dev_state; in qla82xx_wait_for_state_change() local 2990 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_wait_for_state_change() 2992 } while (dev_state == curr_state); in qla82xx_wait_for_state_change() 2994 return dev_state; in qla82xx_wait_for_state_change() 3036 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local [all …]
|
D | qla_nx2.c | 1634 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local 1649 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1658 __func__, vha->host_no, drv_state, drv_active, dev_state); in qla8044_need_reset_handler() 1677 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1684 (dev_state == QLA8XXX_DEV_NEED_RESET)); in qla8044_need_reset_handler() 1701 (dev_state == QLA8XXX_DEV_NEED_RESET)) { in qla8044_need_reset_handler() 1853 uint32_t drv_state, drv_active, dev_state; in qla8044_need_qsnt_handler() local 1897 dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); in qla8044_need_qsnt_handler() 1899 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla8044_need_qsnt_handler() 1916 uint32_t dev_state; in qla8044_device_state_handler() local [all …]
|
/drivers/hid/intel-ish-hid/ishtp/ |
D | hbm.c | 49 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_fw_cl_allocate() 162 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_start_req() 195 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_enum_clients_req() 229 dev->dev_state = ISHTP_DEV_ENABLED; in ishtp_hbm_prop_req() 250 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_prop_req() 617 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 662 if (dev->dev_state != ISHTP_DEV_INIT_CLIENTS || in ishtp_hbm_dispatch() 677 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_hbm_dispatch() 704 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 726 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_hbm_dispatch()
|
D | init.c | 63 dev->dev_state = ISHTP_DEV_INITIALIZING; in ishtp_device_init() 112 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 | 182 if (priv->dev_state == DEVICE_STATE_SLEEP) { in _ks_wlan_hw_power_save() 263 if (priv->dev_state < DEVICE_STATE_BOOT) { in enqueue_txdev() 332 if (priv->dev_state >= DEVICE_STATE_BOOT) { in tx_device_task() 391 if (cnt_rxqbody(priv) > 0 && priv->dev_state >= DEVICE_STATE_BOOT) { in rx_event_task() 563 if (priv->dev_state >= DEVICE_STATE_BOOT) { in ks_sdio_interrupt() 882 priv->dev_state = DEVICE_STATE_PREINIT; in ks7010_card_init() 909 if (priv->dev_state >= DEVICE_STATE_PREINIT) { in ks7010_card_init() 911 priv->dev_state = DEVICE_STATE_READY; in ks7010_card_init() 913 DPRINTK(1, "dev_state=%d\n", priv->dev_state); in ks7010_card_init() 1030 priv->dev_state = DEVICE_STATE_PREBOOT; in ks7010_sdio_probe() [all …]
|
D | ks_hostif.c | 103 priv->dev_state = DEVICE_STATE_READY; in ks_wlan_do_power_save() 748 priv->dev_state = DEVICE_STATE_SLEEP; in hostif_power_mngmt_confirm() 751 priv->dev_state = DEVICE_STATE_READY; in hostif_power_mngmt_confirm() 889 if (priv->dev_state == DEVICE_STATE_SLEEP) in hostif_stop_confirm() 890 priv->dev_state = DEVICE_STATE_READY; in hostif_stop_confirm() 1335 if (priv->dev_state < DEVICE_STATE_BOOT) { in hostif_mib_set_request() 2464 if (priv->dev_state == DEVICE_STATE_BOOT) { in hostif_sme_execute() 2511 if (priv->dev_state == DEVICE_STATE_BOOT) { in hostif_sme_execute() 2516 if (priv->dev_state == DEVICE_STATE_BOOT) { in hostif_sme_execute() 2517 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 | 263 if (dev->dev_state == ISHTP_DEV_DISABLED) in write_ipc_from_queue() 606 if (dev->dev_state == ISHTP_DEV_DISABLED) in ish_irq_handler() 711 dev->dev_state = ISHTP_DEV_RESETTING; in _ish_hw_reset() 923 dev->dev_state = ISHTP_DEV_DISABLED; in ish_device_disable()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 941 set_bit(XGBE_LINK_INIT, &pdata->dev_state); in __xgbe_phy_config_aneg() 994 set_bit(XGBE_LINK_ERR, &pdata->dev_state); in xgbe_phy_config_aneg() 996 clear_bit(XGBE_LINK_ERR, &pdata->dev_state); in xgbe_phy_config_aneg() 1122 if (test_bit(XGBE_LINK_ERR, &pdata->dev_state)) { in xgbe_phy_status() 1146 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) in xgbe_phy_status() 1147 clear_bit(XGBE_LINK_INIT, &pdata->dev_state); in xgbe_phy_status() 1151 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) { in xgbe_phy_status()
|
/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/usb/host/ |
D | xhci-dbg.c | 457 switch (GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state))) { in xhci_get_slot_state() 496 &slot_ctx->dev_state, in xhci_dbg_slot_ctx() 497 (unsigned long long)dma, slot_ctx->dev_state); in xhci_dbg_slot_ctx()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_main.c | 3448 u32 dev_state = 0xf; in qlcnic_fwinit_work() local 3454 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3455 if (dev_state == QLCNIC_DEV_QUISCENT || in qlcnic_fwinit_work() 3456 dev_state == QLCNIC_DEV_NEED_QUISCENT) { in qlcnic_fwinit_work() 3468 if (dev_state == QLCNIC_DEV_INITIALIZING || in qlcnic_fwinit_work() 3469 dev_state == QLCNIC_DEV_READY) { in qlcnic_fwinit_work() 3483 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3485 if (dev_state == QLCNIC_DEV_NEED_RESET) { in qlcnic_fwinit_work() 3521 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3522 QLCDB(adapter, HW, "Func waiting: Device state=%u\n", dev_state); in qlcnic_fwinit_work() [all …]
|
/drivers/s390/cio/ |
D | device.h | 14 enum dev_state { enum
|