/openbmc/linux/drivers/iommu/amd/ |
H A D | iommu_v2.c | 92 return dev_state; in __get_device_state() 105 if (dev_state != NULL) in get_device_state() 109 return dev_state; in get_device_state() 123 wait_event(dev_state->wq, !atomic_read(&dev_state->count)); in free_device_state() 141 kfree(dev_state); in free_device_state() 391 dev_state->inv_ctx_cb(dev_state->pdev, pasid_state->pasid); in mn_release() 437 status = fault->dev_state->inv_ppr_cb(fault->dev_state->pdev, in handle_fault_error() 548 if (dev_state == NULL) in ppr_notifier() 572 fault->dev_state = dev_state; in ppr_notifier() 761 dev_state = kzalloc(sizeof(*dev_state), GFP_KERNEL); in amd_iommu_init_device() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | ufs.h | 194 int dev_state, int link_state), 202 __field(int, dev_state) 210 __entry->dev_state = dev_state; 226 int dev_state, int link_state), 231 int dev_state, int link_state), 236 int dev_state, int link_state), 241 int dev_state, int link_state), 246 int dev_state, int link_state), 251 int dev_state, int link_state), 256 int dev_state, int link_state), [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | check-integrity.c | 332 b->dev_state = NULL; in btrfsic_block_init() 594 BUG_ON(NULL == dev_state); in btrfsic_process_superblock() 748 superblock_tmp->dev_state = dev_state; in btrfsic_process_superblock_dev_mirror() 1747 dev_state, in btrfsic_process_written_block() 1974 block->dev_state = dev_state; in btrfsic_process_written_block() 2055 struct btrfsic_dev_state *const dev_state = block->dev_state; in btrfsic_bio_end_io() local 2413 state->latest_superblock->dev_state->bdev == block->dev_state->bdev) in btrfsic_get_block_type() 2556 if (NULL == dev_state) { in btrfsic_block_lookup_or_add() 2561 block->dev_state = dev_state; in btrfsic_block_lookup_or_add() 2705 dev_state->bdev); in btrfsic_check_flush_bio() [all …]
|
H A D | volumes.c | 654 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device() 1054 &device->dev_state) && in __btrfs_free_extra_devids() 1056 &device->dev_state) && in __btrfs_free_extra_devids() 1135 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in btrfs_close_one_device() 2689 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_new_device() 5228 &device->dev_state) || in gather_device_info() 5721 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_writeable() 5726 &map->stripes[i].dev->dev_state)) { in btrfs_chunk_writeable() 6603 set_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in add_missing_dev() 6864 &(map->stripes[i].dev->dev_state)); in read_one_chunk() [all …]
|
/openbmc/linux/drivers/misc/mei/ |
H A D | init.c | 101 enum mei_dev_state state = dev->dev_state; in mei_reset() 170 if (dev->dev_state != MEI_DEV_RESETTING) { in mei_reset() 171 dev_dbg(dev->dev, "wrong state = %d on link start\n", dev->dev_state); in mei_reset() 216 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start() 264 if (err == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_restart() 293 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_reset_work() 341 bool idle = (dev->dev_state == MEI_DEV_ENABLED && in mei_write_is_idle() 348 mei_dev_state_str(dev->dev_state), in mei_write_is_idle() 380 dev->dev_state = MEI_DEV_INITIALIZING; in mei_device_init()
|
H A D | hbm.c | 481 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req() 985 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res() 1319 if (dev->dev_state == MEI_DEV_POWER_DOWN || in mei_hbm_dispatch() 1325 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1364 if (dev->dev_state == MEI_DEV_POWER_DOWN || in mei_hbm_dispatch() 1370 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1413 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1481 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1524 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1543 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() [all …]
|
H A 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() 1096 enum mei_dev_state dev_state; in dev_state_show() local 1099 dev_state = dev->dev_state; in dev_state_show() 1104 static DEVICE_ATTR_RO(dev_state); 1116 if (dev->dev_state == state) in mei_set_devstate() [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 | hw-me.c | 1302 if (!mei_hw_is_ready(dev) && dev->dev_state != MEI_DEV_RESETTING) { in mei_me_irq_thread_handler() 1304 dev->dev_state, dev->pxp_mode); in mei_me_irq_thread_handler() 1305 if (dev->dev_state == MEI_DEV_POWERING_DOWN || in mei_me_irq_thread_handler() 1306 dev->dev_state == MEI_DEV_POWER_DOWN) in mei_me_irq_thread_handler() 1308 else if (dev->dev_state != MEI_DEV_DISABLED) in mei_me_irq_thread_handler() 1343 rets, dev->dev_state); in mei_me_irq_thread_handler() 1344 if (dev->dev_state != MEI_DEV_RESETTING && in mei_me_irq_thread_handler() 1345 dev->dev_state != MEI_DEV_DISABLED && in mei_me_irq_thread_handler() 1346 dev->dev_state != MEI_DEV_POWERING_DOWN && in mei_me_irq_thread_handler() 1347 dev->dev_state != MEI_DEV_POWER_DOWN) in mei_me_irq_thread_handler()
|
H A D | interrupt.c | 472 dev->dev_state == MEI_DEV_POWER_DOWN) { in mei_irq_read_handler() 654 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer() 668 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer() 684 if (dev->dev_state != MEI_DEV_DISABLED && reschedule_timer) in mei_timer()
|
/openbmc/linux/drivers/s390/crypto/ |
H A D | ap_queue.c | 206 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_read() 268 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_write() 309 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset() 352 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset_wait() 393 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_setirq_wait() 415 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait() 423 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait() 446 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait() 695 switch (aq->dev_state) { in states_show() 712 if (aq->dev_state) { in states_show() [all …]
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-video.c | 95 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) { in check_dev() 1026 set_bit(DEV_INITIALIZED, &dev->dev_state); in au0828_v4l2_open() 1117 dev->std_set_in_tuner_core, dev->dev_state); in au0828_init_tuner() 1187 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_querycap() 1220 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_g_fmt_vid_cap() 1238 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_try_fmt_vid_cap() 1250 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_s_fmt_vid_cap() 1272 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_s_std() 1304 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_g_std() 1326 dev->std_set_in_tuner_core, dev->dev_state); in vidioc_enum_input() [all …]
|
/openbmc/linux/drivers/bus/mhi/host/ |
H A D | pm.c | 200 mhi_cntrl->dev_state = MHI_STATE_READY; in mhi_ready_state_transition() 263 mhi_cntrl->dev_state = MHI_STATE_M0; in mhi_pm_m0_transition() 339 mhi_cntrl->dev_state = MHI_STATE_M2; in mhi_pm_m1_transition() 372 mhi_cntrl->dev_state = MHI_STATE_M3; in mhi_pm_m3_transition() 574 mhi_state_str(mhi_cntrl->dev_state)); in mhi_pm_disable_transition() 612 mhi_cntrl->dev_state = MHI_STATE_RESET; in mhi_pm_sys_error_transition() 723 mhi_state_str(mhi_cntrl->dev_state)); in mhi_pm_sys_error_transition() 898 mhi_state_str(mhi_cntrl->dev_state), in mhi_pm_suspend() 924 mhi_state_str(mhi_cntrl->dev_state)); in __mhi_pm_resume() 971 mhi_state_str(mhi_cntrl->dev_state), in __mhi_pm_resume() [all …]
|
/openbmc/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() 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()
|
H A D | init.c | 54 dev->dev_state = ISHTP_DEV_INITIALIZING; in ishtp_device_init() 103 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_start()
|
H A D | client.c | 200 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() 653 if (dev->dev_state != ISHTP_DEV_ENABLED) in ipc_tx_send()
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_nx.c | 351 return (dev_state < MAX_STATES) ? q_dev_state[dev_state] : "Unknown"; in qdev_state() 2951 uint32_t dev_state; in qla82xx_wait_for_state_change() local 2960 return dev_state; in qla82xx_wait_for_state_change() 3064 dev_state, qdev_state(dev_state)); in qla82xx_need_reset_handler() 3170 uint32_t dev_state; in qla82xx_device_state_handler() local 3184 old_dev_state = dev_state; in qla82xx_device_state_handler() 3187 dev_state, qdev_state(dev_state)); in qla82xx_device_state_handler() 3208 dev_state, qdev_state(dev_state)); in qla82xx_device_state_handler() 3211 switch (dev_state) { in qla82xx_device_state_handler() 3416 uint32_t dev_state = 0; in qla82xx_set_reset_owner() local [all …]
|
H A D | qla_nx2.c | 1662 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1690 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler() 1929 uint32_t dev_state; in qla8044_device_state_handler() local 1941 dev_state, qdev_state(dev_state)); in qla8044_device_state_handler() 1954 qdev_state(dev_state)); in qla8044_device_state_handler() 1964 dev_state, qdev_state(dev_state)); in qla8044_device_state_handler() 1967 switch (dev_state) { in qla8044_device_state_handler() 2121 uint32_t dev_state, halt_status; in qla8044_watchdog() local 2179 if (dev_state == in qla8044_watchdog() 4008 uint32_t dev_state; in qla8044_abort_isp() local [all …]
|
/openbmc/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)
|
/openbmc/linux/drivers/block/rnbd/ |
H A D | rnbd-clt.c | 92 if (dev->dev_state == DEV_STATE_UNMAPPED) { in process_msg_open_rsp() 111 dev->dev_state = DEV_STATE_MAPPED; in process_msg_open_rsp() 124 if (dev->dev_state != DEV_STATE_MAPPED) { in rnbd_clt_resize_disk() 489 if (dev->dev_state == DEV_STATE_INIT) in msg_open_conf() 640 if (dev->dev_state == DEV_STATE_MAPPED) { in set_dev_states_to_disconnected() 685 skip = (dev->dev_state == DEV_STATE_INIT); in remap_devs() 931 if (dev->dev_state == DEV_STATE_UNMAPPED || in rnbd_client_open() 1120 if (dev->dev_state != DEV_STATE_MAPPED) in rnbd_queue_rq() 1463 dev->dev_state = DEV_STATE_INIT; in init_dev() 1690 if (dev->dev_state == DEV_STATE_UNMAPPED) { in rnbd_clt_unmap_device() [all …]
|
/openbmc/linux/drivers/staging/ks7010/ |
H A 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()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | perf_cpum_cf.c | 82 u64 dev_state; /* For /dev/hwctr */ member 679 err = lcctl(cpuhw->state | cpuhw->dev_state); in cpumf_pmu_enable() 701 inactive |= cpuhw->dev_state; in cpumf_pmu_disable() 1322 ctr_set_disable(&cpuhw->dev_state, in cfset_ioctl_off() 1324 ctr_set_stop(&cpuhw->dev_state, in cfset_ioctl_off() 1329 rc = lcctl(cpuhw->dev_state | cpuhw->state); in cfset_ioctl_off() 1333 if (!cpuhw->dev_state) in cfset_ioctl_off() 1345 ctr_set_enable(&cpuhw->dev_state, p->sets); in cfset_ioctl_on() 1346 ctr_set_start(&cpuhw->dev_state, p->sets); in cfset_ioctl_on() 1355 cpuhw->dev_state | cpuhw->state, S390_HWCTR_DEVICE, rc); in cfset_ioctl_on() [all …]
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/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() 953 ldev_info->dev_state); in raid_state_show() 964 pdev_info->dev_state); in raid_state_show() 995 if (pdev_info->dev_state == new_state) { in raid_state_store() 1009 if (ldev_info->dev_state == new_state) { in raid_state_store() 1035 pdev_info->dev_state = new_state; in raid_state_store() 1039 ldev_info->dev_state = new_state; in raid_state_store() 1070 ldev_info->dev_state); in raid_level_show() [all …]
|