/Linux-v5.4/drivers/iommu/ |
D | amd_iommu_v2.c | 70 struct device_state *dev_state; member 86 static void free_pasid_states(struct device_state *dev_state); 100 struct device_state *dev_state; in __get_device_state() local 102 list_for_each_entry(dev_state, &state_list, list) { in __get_device_state() 103 if (dev_state->devid == devid) in __get_device_state() 104 return dev_state; in __get_device_state() 112 struct device_state *dev_state; in get_device_state() local 116 dev_state = __get_device_state(devid); in get_device_state() 117 if (dev_state != NULL) in get_device_state() 118 atomic_inc(&dev_state->count); in get_device_state() [all …]
|
/Linux-v5.4/fs/btrfs/ |
D | check-integrity.c | 142 struct btrfsic_dev_state *dev_state; member 324 static void btrfsic_process_written_block(struct btrfsic_dev_state *dev_state, 369 struct btrfsic_dev_state *dev_state, 377 struct btrfsic_dev_state *dev_state, 388 b->dev_state = NULL; in btrfsic_block_init() 467 ds->dummy_block_for_bio_bh_flush.dev_state = ds; in btrfsic_dev_state_init() 501 ((unsigned int)((uintptr_t)b->dev_state->bdev))) & in btrfsic_block_hashtable_add() 524 if (b->dev_state->bdev == bdev && b->dev_bytenr == dev_bytenr) in btrfsic_block_hashtable_lookup() 547 ((unsigned int)((uintptr_t)l->block_ref_to->dev_state->bdev)) ^ in btrfsic_block_link_hashtable_add() 548 ((unsigned int)((uintptr_t)l->block_ref_from->dev_state->bdev))) in btrfsic_block_link_hashtable_add() [all …]
|
D | volumes.c | 820 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 824 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 826 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 834 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device() 838 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device() 1089 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add() 1091 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add() 1178 &device->dev_state)) { in btrfs_free_extra_devids() 1180 &device->dev_state) && in btrfs_free_extra_devids() 1200 &device->dev_state)) { in btrfs_free_extra_devids() [all …]
|
D | dev-replace.c | 156 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace() 164 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace() 241 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 253 set_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 254 set_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 388 if (!device || test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) in btrfs_dev_name() 668 clear_bit(BTRFS_DEV_STATE_REPLACE_TGT, &tgt_device->dev_state); in btrfs_dev_replace_finishing()
|
/Linux-v5.4/include/trace/events/ |
D | ufs.h | 160 int dev_state, int link_state), 162 TP_ARGS(dev_name, err, usecs, dev_state, link_state), 168 __field(int, dev_state) 176 __entry->dev_state = dev_state; 184 __print_symbolic(__entry->dev_state, UFS_PWR_MODES), 192 int dev_state, int link_state), 193 TP_ARGS(dev_name, err, usecs, dev_state, link_state)); 197 int dev_state, int link_state), 198 TP_ARGS(dev_name, err, usecs, dev_state, link_state)); 202 int dev_state, int link_state), [all …]
|
/Linux-v5.4/drivers/misc/mei/ |
D | init.c | 100 enum mei_dev_state state = dev->dev_state; in mei_reset() 202 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 260 if (err == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_restart() 289 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_reset_work() 332 bool idle = (dev->dev_state == MEI_DEV_ENABLED && in mei_write_is_idle() 339 mei_dev_state_str(dev->dev_state), in mei_write_is_idle() 369 dev->dev_state = MEI_DEV_INITIALIZING; in mei_device_init()
|
D | main.c | 58 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open() 60 mei_dev_state_str(dev->dev_state)); in mei_open() 146 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read() 265 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write() 354 if (dev->dev_state != MEI_DEV_ENABLED) in mei_ioctl_connect_client() 470 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl() 578 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll() 654 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync() 851 enum mei_dev_state dev_state; in dev_state_show() local 854 dev_state = dev->dev_state; in dev_state_show() [all …]
|
D | hbm.c | 451 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 841 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1144 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1147 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1179 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1239 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1242 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1277 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1280 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1299 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() [all …]
|
D | debugfs.c | 33 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_meclients_show() 71 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_active_show() 92 seq_printf(m, "dev: %s\n", mei_dev_state_str(dev->dev_state)); in mei_dbgfs_devstate_show()
|
D | interrupt.c | 328 dev->dev_state == MEI_DEV_POWER_DOWN) { in mei_irq_read_handler() 504 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 518 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 534 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
/Linux-v5.4/drivers/media/usb/au0828/ |
D | au0828-video.c | 95 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) { in check_dev() 100 if (test_bit(DEV_MISCONFIGURED, &dev->dev_state)) { in check_dev() 507 if (test_bit(DEV_DISCONNECTED, &dev->dev_state) || in au0828_isoc_copy() 508 test_bit(DEV_MISCONFIGURED, &dev->dev_state)) in au0828_isoc_copy() 752 if (test_bit(DEV_DISCONNECTED, &d->dev_state)) in au0828_analog_stream_enable() 807 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_stream_interrupt() 1008 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_open() 1026 set_bit(DEV_INITIALIZED, &dev->dev_state); in au0828_v4l2_open() 1041 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_close() 1056 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_v4l2_close() [all …]
|
/Linux-v5.4/drivers/hid/intel-ish-hid/ishtp/ |
D | hbm.c | 39 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_fw_cl_allocate() 147 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_start_req() 174 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_enum_clients_req() 204 dev->dev_state = ISHTP_DEV_ENABLED; in ishtp_hbm_prop_req() 222 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_prop_req() 575 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 620 if (dev->dev_state != ISHTP_DEV_INIT_CLIENTS || in ishtp_hbm_dispatch() 635 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_hbm_dispatch() 662 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 684 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_hbm_dispatch()
|
D | init.c | 54 dev->dev_state = ISHTP_DEV_INITIALIZING; in ishtp_device_init() 103 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_start()
|
D | client.c | 199 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_link() 287 (dev->dev_state != ISHTP_DEV_ENABLED || in ishtp_cl_disconnect() 295 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_disconnect() 374 (dev->dev_state == ISHTP_DEV_ENABLED && in ishtp_cl_connect() 383 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_connect() 461 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_cl_read_start() 546 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_send() 652 if (dev->dev_state != ISHTP_DEV_ENABLED) in ipc_tx_callback()
|
/Linux-v5.4/drivers/scsi/qla2xxx/ |
D | qla_nx.c | 350 char *qdev_state(uint32_t dev_state) in qdev_state() argument 352 return q_dev_state[dev_state]; in qdev_state() 2929 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local 2978 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler() 2980 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler() 3001 uint32_t dev_state; in qla82xx_wait_for_state_change() local 3006 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_wait_for_state_change() 3008 } while (dev_state == curr_state); in qla82xx_wait_for_state_change() 3010 return dev_state; in qla82xx_wait_for_state_change() 3052 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local [all …]
|
D | qla_nx2.c | 1648 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local 1663 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1672 __func__, vha->host_no, drv_state, drv_active, dev_state); in qla8044_need_reset_handler() 1691 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1698 (dev_state == QLA8XXX_DEV_NEED_RESET)); in qla8044_need_reset_handler() 1715 (dev_state == QLA8XXX_DEV_NEED_RESET)) { in qla8044_need_reset_handler() 1867 uint32_t drv_state, drv_active, dev_state; in qla8044_need_qsnt_handler() local 1911 dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); in qla8044_need_qsnt_handler() 1913 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla8044_need_qsnt_handler() 1930 uint32_t dev_state; in qla8044_device_state_handler() local [all …]
|
/Linux-v5.4/drivers/staging/ks7010/ |
D | ks7010_sdio.c | 232 if (priv->dev_state != DEVICE_STATE_SLEEP) in _ks_wlan_hw_power_save() 292 if (priv->dev_state < DEVICE_STATE_BOOT) { in enqueue_txdev() 360 if (priv->dev_state >= DEVICE_STATE_BOOT) { in tx_device_task() 413 if (rxq_has_space(priv) && priv->dev_state >= DEVICE_STATE_BOOT) { in rx_event_task() 550 if (priv->dev_state < DEVICE_STATE_BOOT) in ks_sdio_interrupt() 836 priv->dev_state = DEVICE_STATE_PREINIT; in ks7010_card_init() 845 if (priv->dev_state >= DEVICE_STATE_PREINIT) { in ks7010_card_init() 847 priv->dev_state = DEVICE_STATE_READY; in ks7010_card_init() 931 priv->dev_state = DEVICE_STATE_PREBOOT; in ks7010_private_init() 1018 priv->dev_state = DEVICE_STATE_BOOT; in ks7010_sdio_probe()
|
D | ks_hostif.c | 98 priv->dev_state = DEVICE_STATE_READY; in ks_wlan_do_power_save() 690 priv->dev_state = DEVICE_STATE_SLEEP; in hostif_power_mgmt_confirm() 693 priv->dev_state = DEVICE_STATE_READY; in hostif_power_mgmt_confirm() 819 if (priv->dev_state == DEVICE_STATE_SLEEP) in hostif_stop_confirm() 820 priv->dev_state = DEVICE_STATE_READY; in hostif_stop_confirm() 1271 if (priv->dev_state < DEVICE_STATE_BOOT) in hostif_mib_set_request() 2060 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2100 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2104 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2105 priv->dev_state = DEVICE_STATE_PREINIT; in hostif_sme_execute() [all …]
|
/Linux-v5.4/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 | 3326 uint32_t dev_state, drv_state, drv_active; in qla4_82xx_need_reset_handler() local 3387 dev_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla4_82xx_need_reset_handler() 3388 ql4_printk(KERN_INFO, ha, "Device state is 0x%x = %s\n", dev_state, in qla4_82xx_need_reset_handler() 3389 dev_state < MAX_STATES ? qdev_state[dev_state] : "Unknown"); in qla4_82xx_need_reset_handler() 3392 if (dev_state != QLA8XXX_DEV_INITIALIZING) { in qla4_82xx_need_reset_handler() 3514 uint32_t dev_state; in qla4_8xxx_device_state_handler() local 3522 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_device_state_handler() 3524 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() 3525 qdev_state[dev_state] : "Unknown")); in qla4_8xxx_device_state_handler() 3537 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() [all …]
|
/Linux-v5.4/drivers/usb/host/ |
D | xhci-dbg.c | 17 int state = GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)); in xhci_get_slot_state()
|
/Linux-v5.4/drivers/scsi/ |
D | myrs.c | 262 if (new->dev_state != old->dev_state) { in myrs_get_ldev_info() 265 name = myrs_devstate_name(new->dev_state); in myrs_get_ldev_info() 865 pdev_info->dev_state = MYRS_DEVICE_ONLINE; in myrs_log_event() 868 pdev_info->dev_state = MYRS_DEVICE_STANDBY; in myrs_log_event() 871 pdev_info->dev_state = MYRS_DEVICE_OFFLINE; in myrs_log_event() 874 pdev_info->dev_state = MYRS_DEVICE_MISSING; in myrs_log_event() 877 pdev_info->dev_state = MYRS_DEVICE_UNCONFIGURED; in myrs_log_event() 951 name = myrs_devstate_name(ldev_info->dev_state); in raid_state_show() 956 ldev_info->dev_state); in raid_state_show() 962 name = myrs_devstate_name(pdev_info->dev_state); in raid_state_show() [all …]
|
/Linux-v5.4/drivers/hid/intel-ish-hid/ipc/ |
D | ipc.c | 255 if (dev->dev_state == ISHTP_DEV_DISABLED) in write_ipc_from_queue() 633 if (dev->dev_state == ISHTP_DEV_DISABLED) in ish_irq_handler() 738 dev->dev_state = ISHTP_DEV_RESETTING; in _ish_hw_reset() 952 dev->dev_state = ISHTP_DEV_DISABLED; in ish_device_disable()
|
/Linux-v5.4/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 1189 set_bit(XGBE_LINK_INIT, &pdata->dev_state); in __xgbe_phy_config_aneg() 1251 set_bit(XGBE_LINK_ERR, &pdata->dev_state); in __xgbe_phy_config_aneg() 1253 clear_bit(XGBE_LINK_ERR, &pdata->dev_state); in __xgbe_phy_config_aneg() 1335 if (test_bit(XGBE_LINK_ERR, &pdata->dev_state)) { in xgbe_phy_status() 1359 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) in xgbe_phy_status() 1360 clear_bit(XGBE_LINK_INIT, &pdata->dev_state); in xgbe_phy_status() 1364 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) { in xgbe_phy_status()
|
/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800pci.c | 218 enum dev_state state) in rt2800pci_set_state() 237 enum dev_state state) in rt2800pci_set_device_state()
|