Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/ufs/core/
Dufs_trace.h195 int dev_state, int link_state),
197 TP_ARGS(dev_name, 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(dev_name, err, usecs, dev_state, link_state));
232 int dev_state, int link_state),
233 TP_ARGS(dev_name, err, usecs, dev_state, link_state));
237 int dev_state, int link_state),
[all …]
/linux-6.12.1/drivers/misc/mei/
Dinit.c103 dev->saved_dev_state = dev->dev_state; in mei_save_fw_status()
117 enum mei_dev_state state = dev->dev_state; in mei_reset()
192 if (dev->dev_state != MEI_DEV_RESETTING) { in mei_reset()
193 dev_dbg(dev->dev, "wrong state = %d on link start\n", dev->dev_state); in mei_reset()
238 if (ret == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_start()
286 if (err == -ENODEV || dev->dev_state == MEI_DEV_DISABLED) { in mei_restart()
315 if (dev->dev_state == MEI_DEV_DISABLED) { in mei_reset_work()
363 bool idle = (dev->dev_state == MEI_DEV_ENABLED && in mei_write_is_idle()
370 mei_dev_state_str(dev->dev_state), in mei_write_is_idle()
402 dev->dev_state = MEI_DEV_INITIALIZING; in mei_device_init()
Dhbm.c483 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_fw_add_cl_req()
987 if (dev->dev_state == MEI_DEV_ENABLED) in mei_hbm_cl_connect_res()
1319 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
1321 if (dev->dev_state == MEI_DEV_POWER_DOWN || in mei_hbm_dispatch()
1322 dev->dev_state == MEI_DEV_POWERING_DOWN) { in mei_hbm_dispatch()
1327 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
1364 if (dev->dev_state != MEI_DEV_INIT_CLIENTS || in mei_hbm_dispatch()
1366 if (dev->dev_state == MEI_DEV_POWER_DOWN || in mei_hbm_dispatch()
1367 dev->dev_state == MEI_DEV_POWERING_DOWN) { in mei_hbm_dispatch()
1372 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch()
[all …]
Dmain.c58 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 …]
Ddebugfs.c33 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()
Dhw-me.c1352 if (!mei_hw_is_ready(dev) && dev->dev_state != MEI_DEV_RESETTING) { in mei_me_irq_thread_handler()
1355 dev->dev_state); in mei_me_irq_thread_handler()
1358 dev->dev_state); in mei_me_irq_thread_handler()
1360 if (dev->dev_state == MEI_DEV_POWERING_DOWN || in mei_me_irq_thread_handler()
1361 dev->dev_state == MEI_DEV_POWER_DOWN) in mei_me_irq_thread_handler()
1363 else if (dev->dev_state != MEI_DEV_DISABLED) in mei_me_irq_thread_handler()
1398 rets, dev->dev_state); in mei_me_irq_thread_handler()
1399 if (dev->dev_state != MEI_DEV_RESETTING && in mei_me_irq_thread_handler()
1400 dev->dev_state != MEI_DEV_DISABLED && in mei_me_irq_thread_handler()
1401 dev->dev_state != MEI_DEV_POWERING_DOWN && in mei_me_irq_thread_handler()
[all …]
Dplatform-vsc.c300 if (mei_dev->dev_state == MEI_DEV_RESETTING || in mei_vsc_event_cb()
301 mei_dev->dev_state == MEI_DEV_INITIALIZING) in mei_vsc_event_cb()
315 if (mei_dev->dev_state != MEI_DEV_RESETTING && in mei_vsc_event_cb()
316 mei_dev->dev_state != MEI_DEV_POWER_DOWN) in mei_vsc_event_cb()
Dinterrupt.c472 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()
/linux-6.12.1/drivers/bus/mhi/host/
Dtrace.h121 TP_PROTO(struct mhi_controller *mhi_cntrl, int dev_ee, int dev_state),
123 TP_ARGS(mhi_cntrl, dev_ee, dev_state),
130 __field(int, dev_state)
136 __entry->state = mhi_cntrl->dev_state;
138 __entry->dev_state = dev_state;
146 __print_symbolic(__entry->dev_state, MHI_STATE_LIST))
Dpm.c207 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()
590 mhi_state_str(mhi_cntrl->dev_state)); in mhi_pm_disable_transition()
628 mhi_cntrl->dev_state = MHI_STATE_RESET; in mhi_pm_sys_error_transition()
739 mhi_state_str(mhi_cntrl->dev_state)); in mhi_pm_sys_error_transition()
869 mhi_cntrl->dev_state == MHI_STATE_M0 || in mhi_pm_suspend()
870 mhi_cntrl->dev_state == MHI_STATE_M1 || in mhi_pm_suspend()
909 mhi_cntrl->dev_state == MHI_STATE_M3 || in mhi_pm_suspend()
[all …]
/linux-6.12.1/drivers/s390/crypto/
Dap_queue.c220 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_read()
294 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_write()
334 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset()
375 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_reset_wait()
415 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_setirq_wait()
437 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait()
445 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait()
471 aq->dev_state = AP_DEV_STATE_ERROR; in ap_sm_assoc_wait()
517 aq->dev_state > AP_DEV_STATE_UNINITIATED) in ap_sm_event()
544 if (aq->dev_state > AP_DEV_STATE_UNINITIATED) { in request_count_show()
[all …]
/linux-6.12.1/drivers/media/usb/au0828/
Dau0828-video.c95 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) { in check_dev()
100 if (test_bit(DEV_MISCONFIGURED, &dev->dev_state)) { in check_dev()
506 if (test_bit(DEV_DISCONNECTED, &dev->dev_state) || in au0828_isoc_copy()
507 test_bit(DEV_MISCONFIGURED, &dev->dev_state)) in au0828_isoc_copy()
748 if (test_bit(DEV_DISCONNECTED, &d->dev_state)) in au0828_analog_stream_enable()
803 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_stream_interrupt()
1005 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_open()
1023 set_bit(DEV_INITIALIZED, &dev->dev_state); in au0828_v4l2_open()
1038 __func__, dev->std_set_in_tuner_core, dev->dev_state, in au0828_v4l2_close()
1053 if (test_bit(DEV_DISCONNECTED, &dev->dev_state)) in au0828_v4l2_close()
[all …]
/linux-6.12.1/drivers/scsi/qla2xxx/
Dqla_nx.c349 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()
2879 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_qsnt_handler() local
2928 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_need_qsnt_handler()
2930 if (dev_state == QLA8XXX_DEV_NEED_QUIESCENT) { in qla82xx_need_qsnt_handler()
2951 uint32_t dev_state; in qla82xx_wait_for_state_change() local
2956 dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE); in qla82xx_wait_for_state_change()
2958 } while (dev_state == curr_state); in qla82xx_wait_for_state_change()
2960 return dev_state; in qla82xx_wait_for_state_change()
3002 uint32_t dev_state, drv_state, drv_active; in qla82xx_need_reset_handler() local
[all …]
Dqla_nx2.c1647 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-6.12.1/drivers/hid/intel-ish-hid/ishtp/
Dhbm.c40 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_fw_cl_allocate()
148 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_start_req()
175 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_enum_clients_req()
205 dev->dev_state = ISHTP_DEV_ENABLED; in ishtp_hbm_prop_req()
223 dev->dev_state = ISHTP_DEV_RESETTING; in ishtp_hbm_prop_req()
580 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch()
625 if (dev->dev_state != ISHTP_DEV_INIT_CLIENTS || in ishtp_hbm_dispatch()
640 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_hbm_dispatch()
667 if (dev->dev_state == ISHTP_DEV_INIT_CLIENTS && in ishtp_hbm_dispatch()
689 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_hbm_dispatch()
Dinit.c58 dev->dev_state = ISHTP_DEV_INITIALIZING; in ishtp_device_init()
111 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_start()
Dclient.c202 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_link()
289 (dev->dev_state != ISHTP_DEV_ENABLED || in ishtp_cl_disconnect()
297 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_disconnect()
375 (dev->dev_state == ISHTP_DEV_ENABLED && in ishtp_cl_connect_to_fw()
384 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_connect_to_fw()
626 if (dev->dev_state != ISHTP_DEV_ENABLED) in ishtp_cl_read_start()
711 if (dev->dev_state != ISHTP_DEV_ENABLED) { in ishtp_cl_send()
818 if (dev->dev_state != ISHTP_DEV_ENABLED) in ipc_tx_send()
/linux-6.12.1/drivers/block/rnbd/
Drnbd-clt.c92 if (dev->dev_state == DEV_STATE_UNMAPPED) { in process_msg_open_rsp()
98 if (dev->dev_state == DEV_STATE_MAPPED_DISCONNECTED) { 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()
641 dev->dev_state = DEV_STATE_MAPPED_DISCONNECTED; 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()
[all …]
/linux-6.12.1/tools/hv/
Dvmbus_testing34 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-6.12.1/fs/btrfs/
Dvolumes.c681 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device()
685 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device()
687 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device()
698 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device()
711 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device()
930 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add()
932 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add()
1016 if (test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state)) { in __btrfs_free_extra_devids()
1018 &device->dev_state) && in __btrfs_free_extra_devids()
1020 &device->dev_state) && in __btrfs_free_extra_devids()
[all …]
/linux-6.12.1/arch/s390/kernel/
Dperf_cpum_cf.c86 u64 dev_state; /* For /dev/hwctr */ member
683 err = lcctl(cpuhw->state | cpuhw->dev_state); in cpumf_pmu_enable()
705 inactive |= cpuhw->dev_state; in cpumf_pmu_disable()
1326 ctr_set_disable(&cpuhw->dev_state, in cfset_ioctl_off()
1328 ctr_set_stop(&cpuhw->dev_state, in cfset_ioctl_off()
1333 rc = lcctl(cpuhw->dev_state | cpuhw->state); in cfset_ioctl_off()
1337 if (!cpuhw->dev_state) in cfset_ioctl_off()
1349 ctr_set_enable(&cpuhw->dev_state, p->sets); in cfset_ioctl_on()
1350 ctr_set_start(&cpuhw->dev_state, p->sets); in cfset_ioctl_on()
1354 rc = lcctl(cpuhw->dev_state | cpuhw->state); /* Start counter sets */ in cfset_ioctl_on()
[all …]
/linux-6.12.1/drivers/accel/qaic/
Dqaic_drv.c114 if (qdev->dev_state != QAIC_ONLINE) { in qaic_open()
171 if (qdev->dev_state == QAIC_ONLINE) { in qaic_postclose()
308 qdev->dev_state = QAIC_BOOT; in qaic_mhi_probe()
316 qdev->dev_state = QAIC_ONLINE; in qaic_mhi_probe()
336 qdev->dev_state = QAIC_OFFLINE; in qaic_notify_reset()
367 qdev->dev_state = QAIC_OFFLINE; in create_qdev()
/linux-6.12.1/drivers/scsi/qla4xxx/
Dql4_attr.c36 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()
/linux-6.12.1/drivers/scsi/
Dmyrs.c261 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-6.12.1/drivers/usb/host/
Dxhci-dbg.c17 int state = GET_SLOT_STATE(le32_to_cpu(slot_ctx->dev_state)); in xhci_get_slot_state()

12345