/kernel/linux/linux-5.10/drivers/iommu/amd/ |
D | iommu_v2.c | 68 struct device_state *dev_state; member 84 static void free_pasid_states(struct device_state *dev_state); 98 struct device_state *dev_state; in __get_device_state() local 100 list_for_each_entry(dev_state, &state_list, list) { in __get_device_state() 101 if (dev_state->devid == devid) in __get_device_state() 102 return dev_state; in __get_device_state() 110 struct device_state *dev_state; in get_device_state() local 114 dev_state = __get_device_state(devid); in get_device_state() 115 if (dev_state != NULL) in get_device_state() 116 atomic_inc(&dev_state->count); in get_device_state() [all …]
|
/kernel/linux/linux-5.10/fs/btrfs/ |
D | check-integrity.c | 141 struct btrfsic_dev_state *dev_state; member 320 static void btrfsic_process_written_block(struct btrfsic_dev_state *dev_state, 363 struct btrfsic_dev_state *dev_state, 371 struct btrfsic_dev_state *dev_state, 382 b->dev_state = NULL; in btrfsic_block_init() 461 ds->dummy_block_for_bio_bh_flush.dev_state = ds; in btrfsic_dev_state_init() 495 ((unsigned int)((uintptr_t)b->dev_state->bdev))) & in btrfsic_block_hashtable_add() 518 if (b->dev_state->bdev == bdev && b->dev_bytenr == dev_bytenr) in btrfsic_block_hashtable_lookup() 541 ((unsigned int)((uintptr_t)l->block_ref_to->dev_state->bdev)) ^ in btrfsic_block_link_hashtable_add() 542 ((unsigned int)((uintptr_t)l->block_ref_from->dev_state->bdev))) in btrfsic_block_link_hashtable_add() [all …]
|
D | volumes.c | 656 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 660 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 662 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 670 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device() 674 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device() 974 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add() 976 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add() 1055 if (test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state)) { in __btrfs_free_extra_devids() 1057 &device->dev_state) && in __btrfs_free_extra_devids() 1059 &device->dev_state) && in __btrfs_free_extra_devids() [all …]
|
D | dev-replace.c | 214 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace() 222 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace() 297 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 309 set_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 310 set_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 444 if (!device || test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) in btrfs_dev_name() 790 clear_bit(BTRFS_DEV_STATE_REPLACE_TGT, &tgt_device->dev_state); in btrfs_dev_replace_finishing() 833 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state)) in btrfs_dev_replace_finishing()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/misc/mei/ |
D | init.c | 100 enum mei_dev_state state = dev->dev_state; in mei_reset() 204 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 262 if (err == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_restart() 291 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_reset_work() 334 bool idle = (dev->dev_state == MEI_DEV_ENABLED && in mei_write_is_idle() 341 mei_dev_state_str(dev->dev_state), in mei_write_is_idle() 371 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() 185 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read() 326 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write() 662 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl() 800 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll() 876 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync() 1096 enum mei_dev_state dev_state; in dev_state_show() local 1099 dev_state = dev->dev_state; in dev_state_show() 1102 return sprintf(buf, "%s", mei_dev_state_str(dev_state)); in dev_state_show() [all …]
|
D | hbm.c | 475 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 860 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1178 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1181 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1220 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1252 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1312 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1315 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1350 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1353 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() 72 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_active_show() 93 seq_printf(m, "dev: %s\n", mei_dev_state_str(dev->dev_state)); in mei_dbgfs_devstate_show()
|
D | interrupt.c | 442 dev->dev_state == MEI_DEV_POWER_DOWN) { in mei_irq_read_handler() 619 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 633 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 649 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
D | ap_queue.c | 208 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_read() 274 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_write() 312 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset() 355 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset_wait() 396 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_setirq_wait() 437 if (aq->dev_state > AP_DEV_STATE_UNINITIATED) in ap_sm_event() 464 if (aq->dev_state > AP_DEV_STATE_UNINITIATED) { in request_count_show() 498 if (aq->dev_state > AP_DEV_STATE_UNINITIATED) in requestq_count_show() 513 if (aq->dev_state > AP_DEV_STATE_UNINITIATED) in pendingq_count_show() 606 switch (aq->dev_state) { in states_show() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/bus/mhi/core/ |
D | pm.c | 189 mhi_cntrl->dev_state = MHI_STATE_READY; in mhi_ready_state_transition() 252 mhi_cntrl->dev_state = MHI_STATE_M0; in mhi_pm_m0_transition() 327 mhi_cntrl->dev_state = MHI_STATE_M2; in mhi_pm_m1_transition() 360 mhi_cntrl->dev_state = MHI_STATE_M3; in mhi_pm_m3_transition() 472 mhi_cntrl->dev_state = MHI_STATE_RESET; in mhi_pm_disable_transition() 583 TO_MHI_STATE_STR(mhi_cntrl->dev_state)); in mhi_pm_disable_transition() 706 mhi_cntrl->dev_state == MHI_STATE_M0 || in mhi_pm_suspend() 707 mhi_cntrl->dev_state == MHI_STATE_M1 || in mhi_pm_suspend() 746 mhi_cntrl->dev_state == MHI_STATE_M3 || in mhi_pm_suspend() 753 TO_MHI_STATE_STR(mhi_cntrl->dev_state), in mhi_pm_suspend() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 2884 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local 2933 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler() 2935 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler() 2956 uint32_t dev_state; in qla82xx_wait_for_state_change() local 2961 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_wait_for_state_change() 2963 } while (dev_state == curr_state); in qla82xx_wait_for_state_change() 2965 return dev_state; in qla82xx_wait_for_state_change() 3007 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local [all …]
|
D | qla_nx2.c | 1647 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local 1662 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1671 __func__, vha->host_no, drv_state, drv_active, dev_state); in qla8044_need_reset_handler() 1690 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1697 (dev_state == QLA8XXX_DEV_NEED_RESET)); in qla8044_need_reset_handler() 1714 (dev_state == QLA8XXX_DEV_NEED_RESET)) { in qla8044_need_reset_handler() 1866 uint32_t drv_state, drv_active, dev_state; in qla8044_need_qsnt_handler() local 1910 dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); in qla8044_need_qsnt_handler() 1912 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla8044_need_qsnt_handler() 1929 uint32_t dev_state; in qla8044_device_state_handler() local [all …]
|
/kernel/linux/linux-5.10/drivers/block/rnbd/ |
D | rnbd-clt.c | 115 if (dev->dev_state == DEV_STATE_UNMAPPED) { in process_msg_open_rsp() 121 if (dev->dev_state == DEV_STATE_MAPPED_DISCONNECTED) { in process_msg_open_rsp() 135 dev->dev_state = DEV_STATE_MAPPED; in process_msg_open_rsp() 148 if (dev->dev_state != DEV_STATE_MAPPED) { in rnbd_clt_resize_disk() 652 if (dev->dev_state == DEV_STATE_MAPPED) in set_dev_states_to_disconnected() 653 dev->dev_state = DEV_STATE_MAPPED_DISCONNECTED; in set_dev_states_to_disconnected() 694 skip = (dev->dev_state == DEV_STATE_INIT); in remap_devs() 940 if (dev->dev_state == DEV_STATE_UNMAPPED || in rnbd_client_open() 1129 if (unlikely(dev->dev_state != DEV_STATE_MAPPED)) in rnbd_queue_rq() 1405 dev->dev_state = DEV_STATE_INIT; in init_dev() [all …]
|
/kernel/linux/linux-5.10/tools/hv/ |
D | vmbus_testing | 34 class dev_state(Enum): class 84 set_test_state(state_path, dev_state.on.value, args.quiet) 253 dev_state.on.value, 262 write_test_files(file_location, dev_state.off.value)
|
/kernel/linux/linux-5.10/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() 551 if (priv->dev_state < DEVICE_STATE_BOOT) in ks_sdio_interrupt() 837 priv->dev_state = DEVICE_STATE_PREINIT; in ks7010_card_init() 846 if (priv->dev_state >= DEVICE_STATE_PREINIT) { in ks7010_card_init() 848 priv->dev_state = DEVICE_STATE_READY; in ks7010_card_init() 932 priv->dev_state = DEVICE_STATE_PREBOOT; in ks7010_private_init() 1019 priv->dev_state = DEVICE_STATE_BOOT; in ks7010_sdio_probe()
|
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/ |
D | ql4_attr.c | 36 uint32_t dev_state; in qla4_8xxx_sysfs_write_fw_dump() local 78 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_sysfs_write_fw_dump() 79 if (dev_state == QLA8XXX_DEV_READY) { in qla4_8xxx_sysfs_write_fw_dump() 95 __func__, dev_state); in qla4_8xxx_sysfs_write_fw_dump()
|
D | ql4_nx.c | 3323 uint32_t dev_state, drv_state, drv_active; in qla4_82xx_need_reset_handler() local 3384 dev_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla4_82xx_need_reset_handler() 3385 ql4_printk(KERN_INFO, ha, "Device state is 0x%x = %s\n", dev_state, in qla4_82xx_need_reset_handler() 3386 dev_state < MAX_STATES ? qdev_state[dev_state] : "Unknown"); in qla4_82xx_need_reset_handler() 3389 if (dev_state != QLA8XXX_DEV_INITIALIZING) { in qla4_82xx_need_reset_handler() 3511 uint32_t dev_state; in qla4_8xxx_device_state_handler() local 3519 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_device_state_handler() 3521 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() 3522 qdev_state[dev_state] : "Unknown")); in qla4_8xxx_device_state_handler() 3534 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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 …]
|