| /linux/drivers/ufs/core/ |
| H A D | ufs_trace.h | 195 int dev_state, int link_state), 197 TP_ARGS(hba, err, usecs, dev_state, link_state), 203 __field(int, dev_state) 211 __entry->dev_state = dev_state; 219 __print_symbolic(__entry->dev_state, UFS_PWR_MODES), 227 int dev_state, int link_state), 228 TP_ARGS(hba, err, usecs, dev_state, link_state)); 232 int dev_state, int link_state), 233 TP_ARGS(hba, err, usecs, dev_state, link_state)); 237 int dev_state, int link_state), [all …]
|
| /linux/drivers/misc/mei/ |
| 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 | main.c | 61 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open() 63 mei_dev_state_str(dev->dev_state)); in mei_open() 190 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read() 331 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write() 459 (dev->dev_state == MEI_DEV_RESETTING || in mei_ioctl_connect_client() 460 dev->dev_state == MEI_DEV_INIT_CLIENTS)) { in mei_ioctl_connect_client() 464 dev->dev_state == MEI_DEV_ENABLED, in mei_ioctl_connect_client() 472 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl_connect_client() 687 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl() 825 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll() [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 | platform-vsc.c | 301 if (mei_dev->dev_state == MEI_DEV_RESETTING || in mei_vsc_event_cb() 302 mei_dev->dev_state == MEI_DEV_INITIALIZING) in mei_vsc_event_cb() 316 if (mei_dev->dev_state != MEI_DEV_RESETTING && in mei_vsc_event_cb() 317 mei_dev->dev_state != MEI_DEV_POWER_DOWN) in mei_vsc_event_cb()
|
| 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/s390/crypto/ |
| H A D | ap_queue.c | 237 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_read() 311 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_write() 351 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset() 392 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset_wait() 432 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_setirq_wait() 454 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait() 462 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait() 488 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait() 534 aq->dev_state > AP_DEV_STATE_UNINITIATED) in ap_sm_event() 561 if (aq->dev_state > AP_DEV_STATE_UNINITIATED) { in request_count_show() [all …]
|
| /linux/drivers/bus/mhi/host/ |
| H A D | pm.c | 207 mhi_cntrl->dev_state = MHI_STATE_READY; in mhi_ready_state_transition() 270 mhi_cntrl->dev_state = MHI_STATE_M0; in mhi_pm_m0_transition() 346 mhi_cntrl->dev_state = MHI_STATE_M2; in mhi_pm_m1_transition() 379 mhi_cntrl->dev_state = MHI_STATE_M3; in mhi_pm_m3_transition() 591 mhi_state_str(mhi_cntrl->dev_state)); in mhi_pm_disable_transition() 630 mhi_cntrl->dev_state = MHI_STATE_RESET; in mhi_pm_sys_error_transition() 758 mhi_state_str(mhi_cntrl->dev_state)); in mhi_pm_sys_error_transition() 891 mhi_cntrl->dev_state == MHI_STATE_M0 || in mhi_pm_suspend() 892 mhi_cntrl->dev_state == MHI_STATE_M1 || in mhi_pm_suspend() 931 mhi_cntrl->dev_state == MHI_STATE_M3 || in mhi_pm_suspend() [all …]
|
| /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/scsi/qla2xxx/ |
| H A D | qla_nx.c | 349 const char *qdev_state(uint32_t dev_state) in qdev_state() argument 351 return (dev_state < MAX_STATES) ? q_dev_state[dev_state] : "Unknown"; in qdev_state() 2855 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local 2904 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler() 2906 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler() 2952 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local 2983 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_reset_handler() 2988 drv_state, drv_active, dev_state, active_mask); in qla82xx_need_reset_handler() 2991 dev_state != QLA8XXX_DEV_INITIALIZING) { in qla82xx_need_reset_handler() 3004 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_reset_handler() [all …]
|
| 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/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/drivers/accel/qaic/ |
| H A D | qaic_drv.c | 150 if (qdev->dev_state != QAIC_ONLINE) { in qaic_open() 207 if (qdev->dev_state == QAIC_ONLINE) { in qaic_postclose() 351 qdev->dev_state = QAIC_BOOT; in qaic_mhi_probe() 359 qdev->dev_state = QAIC_ONLINE; in qaic_mhi_probe() 379 qdev->dev_state = QAIC_OFFLINE; in qaic_notify_reset() 412 qdev->dev_state = QAIC_OFFLINE; in create_qdev() 686 ret = qdev->dev_state != QAIC_ONLINE; in qaic_is_under_reset() 698 if (qdev->dev_state != QAIC_ONLINE) { in qaic_data_path_busy()
|
| /linux/fs/btrfs/ |
| H A D | volumes.c | 688 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 692 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 694 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 705 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device() 718 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device() 978 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add() 980 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add() 1064 if (test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state)) { in __btrfs_free_extra_devids() 1066 &device->dev_state) && in __btrfs_free_extra_devids() 1068 &device->dev_state) && in __btrfs_free_extra_devids() [all …]
|
| /linux/arch/s390/kernel/ |
| H A D | perf_cpum_cf.c | 84 u64 dev_state; /* For /dev/hwctr */ member 681 err = lcctl(cpuhw->state | cpuhw->dev_state); in cpumf_pmu_enable() 703 inactive |= cpuhw->dev_state; in cpumf_pmu_disable() 1317 ctr_set_disable(&cpuhw->dev_state, in cfset_ioctl_off() 1319 ctr_set_stop(&cpuhw->dev_state, in cfset_ioctl_off() 1324 rc = lcctl(cpuhw->dev_state | cpuhw->state); in cfset_ioctl_off() 1328 if (!cpuhw->dev_state) in cfset_ioctl_off() 1340 ctr_set_enable(&cpuhw->dev_state, p->sets); in cfset_ioctl_on() 1341 ctr_set_start(&cpuhw->dev_state, p->sets); in cfset_ioctl_on() 1345 rc = lcctl(cpuhw->dev_state | cpuhw->state); /* Start counter sets */ in cfset_ioctl_on() [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 …]
|
| /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 | 1119 set_bit(XGBE_LINK_INIT, &pdata->dev_state); in __xgbe_phy_config_aneg() 1183 set_bit(XGBE_LINK_ERR, &pdata->dev_state); in __xgbe_phy_config_aneg() 1185 clear_bit(XGBE_LINK_ERR, &pdata->dev_state); in __xgbe_phy_config_aneg() 1296 if (test_bit(XGBE_LINK_ERR, &pdata->dev_state)) { in xgbe_phy_status() 1325 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) in xgbe_phy_status() 1326 clear_bit(XGBE_LINK_INIT, &pdata->dev_state); in xgbe_phy_status() 1330 if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) { in xgbe_phy_status()
|
| H A D | xgbe-main.c | 89 set_bit(XGBE_DOWN, &pdata->dev_state); in xgbe_alloc_pdata() 90 set_bit(XGBE_STOPPED, &pdata->dev_state); in xgbe_alloc_pdata()
|
| /linux/drivers/media/usb/au0828/ |
| H A D | au0828-input.c | 122 if (test_bit(DEV_DISCONNECTED, &ir->dev->dev_state)) in au0828_get_key_au8522() 249 if (!test_bit(DEV_DISCONNECTED, &ir->dev->dev_state)) { in au0828_rc_stop()
|