/Linux-v4.19/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 …]
|
/Linux-v4.19/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 | 712 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 716 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 718 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 726 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device() 730 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device() 860 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add() 862 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add() 943 &device->dev_state)) { in btrfs_free_extra_devids() 945 &device->dev_state) && in btrfs_free_extra_devids() 965 &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() 242 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 254 set_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 255 set_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 395 if (!device || test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) in btrfs_dev_name() 647 clear_bit(BTRFS_DEV_STATE_REPLACE_TGT, &tgt_device->dev_state); in btrfs_dev_replace_finishing()
|
/Linux-v4.19/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 | 419 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 809 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1104 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1107 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1155 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1158 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1193 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1196 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1215 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1219 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() 165 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() 149 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read() 268 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write() 357 if (dev->dev_state != MEI_DEV_ENABLED) in mei_ioctl_connect_client() 473 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl() 581 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll() 657 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync()
|
D | interrupt.c | 321 dev->dev_state == MEI_DEV_POWER_DOWN) { in mei_irq_read_handler() 498 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 512 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 528 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
/Linux-v4.19/include/trace/events/ |
D | ufs.h | 168 int dev_state, int link_state), 170 TP_ARGS(dev_name, err, usecs, dev_state, link_state), 176 __field(int, dev_state) 184 __entry->dev_state = dev_state; 192 __print_symbolic(__entry->dev_state, UFS_PWR_MODES), 200 int dev_state, int link_state), 201 TP_ARGS(dev_name, err, usecs, dev_state, link_state)); 205 int dev_state, int link_state), 206 TP_ARGS(dev_name, err, usecs, dev_state, link_state)); 210 int dev_state, int link_state), [all …]
|
/Linux-v4.19/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() 813 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_stream_interrupt() 1011 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_open() 1029 set_bit(DEV_INITIALIZED, &dev->dev_state); in au0828_v4l2_open() 1044 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_close() 1059 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_v4l2_close() 1120 dev->std_set_in_tuner_core, dev->dev_state); in au0828_init_tuner() [all …]
|
/Linux-v4.19/arch/x86/platform/atom/ |
D | punit_atom_debug.c | 118 static struct dentry *dev_state; in punit_dbgfs_register() local 124 dev_state = debugfs_create_file("dev_power_state", 0444, in punit_dbgfs_register() 127 if (!dev_state) { in punit_dbgfs_register()
|
/Linux-v4.19/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 | 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-v4.19/drivers/hid/intel-ish-hid/ishtp/ |
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 | 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() 609 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 654 if (dev->dev_state != ISHTP_DEV_INIT_CLIENTS || in ishtp_hbm_dispatch() 669 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_hbm_dispatch() 696 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 718 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_hbm_dispatch()
|
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()
|
/Linux-v4.19/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 | 95 priv->dev_state = DEVICE_STATE_READY; in ks_wlan_do_power_save() 623 priv->dev_state = DEVICE_STATE_SLEEP; in hostif_power_mgmt_confirm() 626 priv->dev_state = DEVICE_STATE_READY; in hostif_power_mgmt_confirm() 752 if (priv->dev_state == DEVICE_STATE_SLEEP) in hostif_stop_confirm() 753 priv->dev_state = DEVICE_STATE_READY; in hostif_stop_confirm() 1203 if (priv->dev_state < DEVICE_STATE_BOOT) in hostif_mib_set_request() 1992 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2032 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2036 if (priv->dev_state == DEVICE_STATE_BOOT) in hostif_sme_execute() 2037 priv->dev_state = DEVICE_STATE_PREINIT; in hostif_sme_execute() [all …]
|
/Linux-v4.19/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-v4.19/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-v4.19/drivers/hid/intel-ish-hid/ipc/ |
D | ipc.c | 262 if (dev->dev_state == ISHTP_DEV_DISABLED) in write_ipc_from_queue() 654 if (dev->dev_state == ISHTP_DEV_DISABLED) in ish_irq_handler() 759 dev->dev_state = ISHTP_DEV_RESETTING; in _ish_hw_reset() 974 dev->dev_state = ISHTP_DEV_DISABLED; in ish_device_disable()
|
/Linux-v4.19/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-v4.19/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800mmio.h | 146 enum dev_state state);
|