| /linux/drivers/ufs/core/ |
| H A D | ufs_trace.h | 203 int dev_state, int link_state), 205 TP_ARGS(hba, err, usecs, dev_state, link_state), 212 __field(int, dev_state) 221 __entry->dev_state = dev_state; 229 __print_symbolic(__entry->dev_state, UFS_PWR_MODES), 237 int dev_state, int link_state), 238 TP_ARGS(hba, err, usecs, dev_state, link_state)); 242 int dev_state, int link_state), 243 TP_ARGS(hba, err, usecs, dev_state, link_state)); 247 int dev_state, int link_state), [all …]
|
| /linux/drivers/misc/mei/ |
| H A D | init.c | 101 enum mei_dev_state state = dev->dev_state; in mei_reset() 175 if (dev->dev_state != MEI_DEV_RESETTING) { in mei_reset() 176 dev_dbg(&dev->dev, "wrong state = %d on link start\n", dev->dev_state); in mei_reset() 221 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 269 if (err == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_restart() 298 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_reset_work() 346 bool idle = (dev->dev_state == MEI_DEV_ENABLED && in mei_write_is_idle() 354 mei_dev_state_str(dev->dev_state), in mei_write_is_idle() 387 dev->dev_state = MEI_DEV_UNINITIALIZED; in mei_device_init()
|
| H A D | hbm.c | 478 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 982 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1314 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1316 if (dev->dev_state == MEI_DEV_POWER_DOWN || in mei_hbm_dispatch() 1317 dev->dev_state == MEI_DEV_POWERING_DOWN) { in mei_hbm_dispatch() 1322 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1359 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch() 1361 if (dev->dev_state == MEI_DEV_POWER_DOWN || in mei_hbm_dispatch() 1362 dev->dev_state == MEI_DEV_POWERING_DOWN) { in mei_hbm_dispatch() 1367 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() [all …]
|
| H A 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() 107 seq_printf(m, "dev: %s\n", mei_dev_state_str(dev->dev_state)); in mei_dbgfs_devstate_show()
|
| H A D | interrupt.c | 469 dev->dev_state == MEI_DEV_POWER_DOWN) { in mei_irq_read_handler() 651 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 665 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 681 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
| /linux/drivers/hid/intel-ish-hid/ishtp/ |
| H A 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() 579 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 624 if (dev->dev_state != ISHTP_DEV_INIT_CLIENTS || in ishtp_hbm_dispatch() 639 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_hbm_dispatch() 666 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch() 688 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_hbm_dispatch()
|
| H A D | client.c | 183 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_link() 270 (dev->dev_state != ISHTP_DEV_ENABLED || in ishtp_cl_disconnect() 278 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_disconnect() 356 (dev->dev_state == ISHTP_DEV_ENABLED && in ishtp_cl_connect_to_fw() 365 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_connect_to_fw() 607 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_cl_read_start() 692 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_send() 799 if (dev->dev_state != ISHTP_DEV_ENABLED) in ipc_tx_send()
|
| /linux/drivers/block/rnbd/ |
| H A D | rnbd-clt.c | 94 if (dev->dev_state == DEV_STATE_UNMAPPED) { in process_msg_open_rsp() 100 if (dev->dev_state == DEV_STATE_MAPPED_DISCONNECTED) { in process_msg_open_rsp() 113 dev->dev_state = DEV_STATE_MAPPED; in process_msg_open_rsp() 126 if (dev->dev_state != DEV_STATE_MAPPED) { in rnbd_clt_resize_disk() 491 if (dev->dev_state == DEV_STATE_INIT) in msg_open_conf() 642 if (dev->dev_state == DEV_STATE_MAPPED) { in set_dev_states_to_disconnected() 643 dev->dev_state = DEV_STATE_MAPPED_DISCONNECTED; in set_dev_states_to_disconnected() 687 skip = (dev->dev_state == DEV_STATE_INIT); in remap_devs() 933 if (dev->dev_state == DEV_STATE_UNMAPPED || in rnbd_client_open() 1122 if (dev->dev_state != DEV_STATE_MAPPED) in rnbd_queue_rq() [all …]
|
| H A D | rnbd-clt.h | 117 enum rnbd_clt_dev_state dev_state; member
|
| /linux/tools/hv/ |
| H A 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)
|
| /linux/fs/btrfs/ |
| H A D | volumes.c | 698 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 702 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 704 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 715 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device() 728 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device() 989 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add() 991 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add() 1075 if (test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state)) { in __btrfs_free_extra_devids() 1077 &device->dev_state) && in __btrfs_free_extra_devids() 1079 &device->dev_state) && in __btrfs_free_extra_devids() [all …]
|
| H A D | dev-replace.c | 210 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace() 218 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace() 295 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 308 set_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 309 set_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_init_dev_replace_tgtdev() 987 clear_bit(BTRFS_DEV_STATE_REPLACE_TGT, &tgt_device->dev_state); in btrfs_dev_replace_finishing() 1031 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state)) in btrfs_dev_replace_finishing()
|
| /linux/drivers/scsi/qla2xxx/ |
| H A 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 …]
|
| /linux/drivers/scsi/qla4xxx/ |
| H A 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()
|
| H A D | ql4_nx.c | 3305 uint32_t dev_state, drv_state, drv_active; in qla4_82xx_need_reset_handler() local 3366 dev_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla4_82xx_need_reset_handler() 3367 ql4_printk(KERN_INFO, ha, "Device state is 0x%x = %s\n", dev_state, in qla4_82xx_need_reset_handler() 3368 dev_state < MAX_STATES ? qdev_state[dev_state] : "Unknown"); in qla4_82xx_need_reset_handler() 3371 if (dev_state != QLA8XXX_DEV_INITIALIZING) { in qla4_82xx_need_reset_handler() 3493 uint32_t dev_state; in qla4_8xxx_device_state_handler() local 3501 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_device_state_handler() 3503 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() 3504 qdev_state[dev_state] : "Unknown")); in qla4_8xxx_device_state_handler() 3516 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler() [all …]
|
| H A D | ql4_83xx.c | 510 uint32_t dev_state, drv_state, drv_active; in qla4_83xx_need_reset_handler() local 536 dev_state = qla4_8xxx_rd_direct(ha, in qla4_83xx_need_reset_handler() 538 } while (dev_state == QLA8XXX_DEV_NEED_RESET); in qla4_83xx_need_reset_handler() 1349 uint32_t dev_state; in qla4_83xx_isp_reset() local 1352 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_83xx_isp_reset() 1357 if (dev_state == QLA8XXX_DEV_READY) { in qla4_83xx_isp_reset()
|
| /linux/drivers/scsi/ |
| H A D | myrs.c | 261 if (new->dev_state != old->dev_state) { in myrs_get_ldev_info() 264 name = myrs_devstate_name(new->dev_state); in myrs_get_ldev_info() 862 pdev_info->dev_state = MYRS_DEVICE_ONLINE; in myrs_log_event() 865 pdev_info->dev_state = MYRS_DEVICE_STANDBY; in myrs_log_event() 868 pdev_info->dev_state = MYRS_DEVICE_OFFLINE; in myrs_log_event() 871 pdev_info->dev_state = MYRS_DEVICE_MISSING; in myrs_log_event() 874 pdev_info->dev_state = MYRS_DEVICE_UNCONFIGURED; in myrs_log_event() 948 name = myrs_devstate_name(ldev_info->dev_state); in raid_state_show() 953 ldev_info->dev_state); in raid_state_show() 959 name = myrs_devstate_name(pdev_info->dev_state); in raid_state_show() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-dbg.c | 17 int state = GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)); in xhci_get_slot_state()
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-mdio.c | 1142 set_bit(XGBE_LINK_INIT, &pdata->dev_state); in __xgbe_phy_config_aneg() 1206 set_bit(XGBE_LINK_ERR, &pdata->dev_state); in __xgbe_phy_config_aneg() 1208 clear_bit(XGBE_LINK_ERR, &pdata->dev_state); in __xgbe_phy_config_aneg() 1319 if (test_bit(XGBE_LINK_ERR, &pdata->dev_state)) { in xgbe_phy_status() 1348 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) in xgbe_phy_status() 1349 clear_bit(XGBE_LINK_INIT, &pdata->dev_state); in xgbe_phy_status() 1353 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) { in xgbe_phy_status()
|
| H A D | xgbe-main.c | 88 set_bit(XGBE_DOWN, &pdata->dev_state); in xgbe_alloc_pdata() 89 set_bit(XGBE_STOPPED, &pdata->dev_state); in xgbe_alloc_pdata()
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2800pci.c | 218 enum dev_state state) in rt2800pci_set_state() 237 enum dev_state state) in rt2800pci_set_device_state()
|
| H A D | rt2800mmio.h | 136 enum dev_state state);
|
| /linux/drivers/s390/cio/ |
| H A D | device.h | 16 enum dev_state { enum
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_main.c | 3347 u32 dev_state = 0xf; in qlcnic_fwinit_work() local 3353 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3354 if (dev_state == QLCNIC_DEV_QUISCENT || in qlcnic_fwinit_work() 3355 dev_state == QLCNIC_DEV_NEED_QUISCENT) { in qlcnic_fwinit_work() 3367 if (dev_state == QLCNIC_DEV_INITIALIZING || in qlcnic_fwinit_work() 3368 dev_state == QLCNIC_DEV_READY) { in qlcnic_fwinit_work() 3382 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3384 if (dev_state == QLCNIC_DEV_NEED_RESET) { in qlcnic_fwinit_work() 3420 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work() 3421 QLCDB(adapter, HW, "Func waiting: Device state=%u\n", dev_state); in qlcnic_fwinit_work() [all …]
|
| /linux/drivers/bus/mhi/host/ |
| H A D | debugfs.c | 24 mhi_state_str(mhi_cntrl->dev_state), in mhi_debugfs_states_show() 210 mhi_state_str(mhi_cntrl->dev_state), in mhi_debugfs_regdump_show()
|