Home
last modified time | relevance | path

Searched refs:dev_state (Results 1 – 25 of 55) sorted by relevance

123

/drivers/iommu/
Damd_iommu_v2.c79 struct device_state *dev_state; member
102 static void free_pasid_states(struct device_state *dev_state);
116 struct device_state *dev_state; in __get_device_state() local
118 list_for_each_entry(dev_state, &state_list, list) { in __get_device_state()
119 if (dev_state->devid == devid) in __get_device_state()
120 return dev_state; in __get_device_state()
128 struct device_state *dev_state; in get_device_state() local
132 dev_state = __get_device_state(devid); in get_device_state()
133 if (dev_state != NULL) in get_device_state()
134 atomic_inc(&dev_state->count); in get_device_state()
[all …]
/drivers/misc/mei/
Dinit.c81 enum mei_dev_state state = dev->dev_state; in mei_reset()
106 dev->dev_state = MEI_DEV_RESETTING; in mei_reset()
111 dev->dev_state = MEI_DEV_DISABLED; in mei_reset()
149 dev->dev_state = MEI_DEV_DISABLED; in mei_reset()
161 dev->dev_state = MEI_DEV_INIT_CLIENTS; in mei_reset()
165 dev->dev_state = MEI_DEV_RESETTING; in mei_reset()
195 dev->dev_state = MEI_DEV_INITIALIZING; in mei_start()
198 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start()
205 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_start()
236 dev->dev_state = MEI_DEV_DISABLED; in mei_start()
[all …]
Dhbm.c807 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
810 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
867 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
870 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
904 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
907 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
926 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
930 dev->dev_state = MEI_DEV_POWER_DOWN; in mei_hbm_dispatch()
Ddebugfs.c54 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_read_meclients()
109 if (dev->dev_state != MEI_DEV_ENABLED) in mei_dbgfs_read_active()
146 mei_dev_state_str(dev->dev_state)); in mei_dbgfs_read_devstate()
Dmain.c65 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open()
67 mei_dev_state_str(dev->dev_state)); in mei_open()
180 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read()
319 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write()
436 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl_connect_client()
529 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl()
Dwd.c222 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_wd_ops_start()
224 mei_dev_state_str(dev->dev_state)); in mei_wd_ops_start()
Dinterrupt.c566 if (dev->dev_state == MEI_DEV_INIT_CLIENTS && in mei_timer()
579 if (dev->dev_state != MEI_DEV_ENABLED) in mei_timer()
645 if (dev->dev_state != MEI_DEV_DISABLED) in mei_timer()
Dclient.h81 cl->dev->dev_state == MEI_DEV_ENABLED && in mei_cl_is_connected()
/drivers/scsi/qla2xxx/
Dqla_nx.c344 char *qdev_state(uint32_t dev_state) in qdev_state() argument
346 return q_dev_state[dev_state]; in qdev_state()
2918 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local
2967 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler()
2969 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler()
2990 uint32_t dev_state; in qla82xx_wait_for_state_change() local
2995 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_wait_for_state_change()
2997 } while (dev_state == curr_state); in qla82xx_wait_for_state_change()
2999 return dev_state; in qla82xx_wait_for_state_change()
3041 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local
[all …]
Dqla_nx2.c1635 uint32_t dev_state = 0, drv_state, drv_active; in qla8044_need_reset_handler() local
1650 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler()
1659 __func__, vha->host_no, drv_state, drv_active, dev_state); in qla8044_need_reset_handler()
1678 dev_state = qla8044_rd_direct(vha, in qla8044_need_reset_handler()
1685 (dev_state == QLA8XXX_DEV_NEED_RESET)); in qla8044_need_reset_handler()
1702 (dev_state == QLA8XXX_DEV_NEED_RESET)) { in qla8044_need_reset_handler()
1854 uint32_t drv_state, drv_active, dev_state; in qla8044_need_qsnt_handler() local
1898 dev_state = qla8044_rd_direct(vha, QLA8044_CRB_DEV_STATE_INDEX); in qla8044_need_qsnt_handler()
1900 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla8044_need_qsnt_handler()
1917 uint32_t dev_state; in qla8044_device_state_handler() local
[all …]
Dqla_os.c4204 uint32_t dev_state = 0; in qla83xx_nic_core_unrecoverable_work() local
4207 qla83xx_rd_reg(base_vha, QLA83XX_IDC_DEV_STATE, &dev_state); in qla83xx_nic_core_unrecoverable_work()
4226 uint32_t dev_state = 0; in qla83xx_idc_state_handler_work() local
4229 qla83xx_rd_reg(base_vha, QLA83XX_IDC_DEV_STATE, &dev_state); in qla83xx_idc_state_handler_work()
4230 if (dev_state == QLA8XXX_DEV_FAILED || in qla83xx_idc_state_handler_work()
4231 dev_state == QLA8XXX_DEV_NEED_QUIESCENT) in qla83xx_idc_state_handler_work()
4272 uint32_t dev_state = 0; in qla83xx_nic_core_reset_work() local
4285 &dev_state); in qla83xx_nic_core_reset_work()
4287 if (dev_state != QLA8XXX_DEV_NEED_RESET) { in qla83xx_nic_core_reset_work()
4311 uint32_t dev_state, idc_control; in qla83xx_service_idc_aen() local
[all …]
/drivers/media/parport/
Dw9966.c111 unsigned char dev_state; member
163 cam->dev_state = (cam->dev_state & ~mask) ^ val; in w9966_set_state()
169 return ((cam->dev_state & mask) == val); in w9966_get_state()
813 if (cam->dev_state != 0) in w9966_init()
935 if (w9966_cams[i].dev_state != 0) /* Cam is already assigned */ in w9966_attach()
951 if (w9966_cams[i].dev_state != 0 && w9966_cams[i].pport == port) in w9966_detach()
968 w9966_cams[i].dev_state = 0; in w9966_mod_init()
/drivers/scsi/qla4xxx/
Dql4_attr.c37 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()
Dql4_nx.c3324 uint32_t dev_state, drv_state, drv_active; in qla4_82xx_need_reset_handler() local
3385 dev_state = qla4_82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla4_82xx_need_reset_handler()
3386 ql4_printk(KERN_INFO, ha, "Device state is 0x%x = %s\n", dev_state, in qla4_82xx_need_reset_handler()
3387 dev_state < MAX_STATES ? qdev_state[dev_state] : "Unknown"); in qla4_82xx_need_reset_handler()
3390 if (dev_state != QLA8XXX_DEV_INITIALIZING) { in qla4_82xx_need_reset_handler()
3512 uint32_t dev_state; in qla4_8xxx_device_state_handler() local
3520 dev_state = qla4_8xxx_rd_direct(ha, QLA8XXX_CRB_DEV_STATE); in qla4_8xxx_device_state_handler()
3522 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler()
3523 qdev_state[dev_state] : "Unknown")); in qla4_8xxx_device_state_handler()
3535 dev_state, dev_state < MAX_STATES ? in qla4_8xxx_device_state_handler()
[all …]
Dql4_83xx.c510 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()
/drivers/net/wireless/rt2x00/
Drt2800pci.c229 enum dev_state state) in rt2800pci_set_state()
248 enum dev_state state) in rt2800pci_set_device_state()
Drt2800mmio.h146 enum dev_state state);
Drt2x00reg.h71 enum dev_state { enum
Drt2800soc.c60 enum dev_state state) in rt2800soc_set_device_state()
/drivers/usb/host/
Dxhci-dbg.c440 switch (GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state))) { in xhci_get_slot_state()
479 &slot_ctx->dev_state, in xhci_dbg_slot_ctx()
480 (unsigned long long)dma, slot_ctx->dev_state); in xhci_dbg_slot_ctx()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c3444 u32 dev_state = 0xf; in qlcnic_fwinit_work() local
3450 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work()
3451 if (dev_state == QLCNIC_DEV_QUISCENT || in qlcnic_fwinit_work()
3452 dev_state == QLCNIC_DEV_NEED_QUISCENT) { in qlcnic_fwinit_work()
3464 if (dev_state == QLCNIC_DEV_INITIALIZING || in qlcnic_fwinit_work()
3465 dev_state == QLCNIC_DEV_READY) { in qlcnic_fwinit_work()
3479 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work()
3481 if (dev_state == QLCNIC_DEV_NEED_RESET) { in qlcnic_fwinit_work()
3517 dev_state = QLC_SHARED_REG_RD32(adapter, QLCNIC_CRB_DEV_STATE); in qlcnic_fwinit_work()
3518 QLCDB(adapter, HW, "Func waiting: Device state=%u\n", dev_state); in qlcnic_fwinit_work()
[all …]
/drivers/s390/cio/
Ddevice.h14 enum dev_state { enum
/drivers/acpi/
Dinternal.h102 int enable, int sleep_state, int dev_state);
/drivers/crypto/qat/qat_common/
Dadf_accel_devices.h97 enum dev_state { enum
/drivers/media/usb/au0828/
Dau0828-video.c108 if (dev->dev_state & DEV_DISCONNECTED) { in check_dev()
113 if (dev->dev_state & DEV_MISCONFIGURED) { in check_dev()
540 if ((dev->dev_state & DEV_DISCONNECTED) || in au0828_isoc_copy()
541 (dev->dev_state & DEV_MISCONFIGURED)) in au0828_isoc_copy()
855 if (dev->dev_state == DEV_DISCONNECTED) in au0828_stream_interrupt()
858 dev->dev_state = DEV_MISCONFIGURED; in au0828_stream_interrupt()
1032 dev->dev_state |= DEV_INITIALIZED; in au0828_v4l2_open()

123