Home
last modified time | relevance | path

Searched refs:device_state (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/drivers/iommu/amd/
H A Diommu_v2.c43 struct device_state *device_state; /* Link to our device_state */ member
52 struct device_state { struct
69 struct device_state *dev_state; argument
84 static void free_pasid_states(struct device_state *dev_state);
86 static struct device_state *__get_device_state(u32 sbdf) in __get_device_state()
88 struct device_state *dev_state; in __get_device_state()
98 static struct device_state *get_device_state(u32 sbdf) in get_device_state()
100 struct device_state *dev_state; in get_device_state()
112 static void free_device_state(struct device_state *dev_state) in free_device_state()
144 static void put_device_state(struct device_state *dev_state) in put_device_state()
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dcore.c588 state = device->device_state; in usbd_device_event_irq()
596 device->device_state = STATE_INIT; in usbd_device_event_irq()
600 device->device_state = STATE_ATTACHED; in usbd_device_event_irq()
604 device->device_state = STATE_POWERED; in usbd_device_event_irq()
608 device->device_state = STATE_DEFAULT; in usbd_device_event_irq()
613 device->device_state = STATE_ADDRESSED; in usbd_device_event_irq()
617 device->device_state = STATE_CONFIGURED; in usbd_device_event_irq()
621 device->device_state = STATE_ADDRESSED; in usbd_device_event_irq()
643 device->device_state = STATE_POWERED; in usbd_device_event_irq()
646 device->device_state = STATE_ATTACHED; in usbd_device_event_irq()
[all …]
H A Dep0.c409 if(device->device_state <= STATE_CONFIGURED){ in ep0_recv_setup()
420 switch (device->device_state) { in ep0_recv_setup()
449 usbd_device_states[device->device_state]); in ep0_recv_setup()
464 usbd_device_states[device->device_state]); in ep0_recv_setup()
546 if (device->device_state != STATE_DEFAULT) { in ep0_recv_setup()
549 usbd_device_states[device->device_state]); in ep0_recv_setup()
H A Ddesignware_udc.c600 if ((ep != 0) && (udc_device->device_state < STATE_ADDRESSED)) in udc_setup_ep()
811 udc_state_transition(udc_device->device_state, STATE_POWERED); in dw_udc_plug_irq()
816 udc_state_transition(udc_device->device_state, STATE_ATTACHED); in dw_udc_plug_irq()
841 udc_state_transition(udc_device->device_state, STATE_DEFAULT); in dw_udc_dev_irq()
853 udc_state_transition(udc_device->device_state, STATE_ADDRESSED); in dw_udc_dev_irq()
869 udc_state_transition(udc_device->device_state, in dw_udc_dev_irq()
/openbmc/qemu/hw/vfio/
H A Dmigration.c124 dev->id, qom_path, mig_state_to_qapi_state(migration->device_state)); in vfio_migration_send_event()
135 migration->device_state = state; in vfio_migration_set_device_state()
159 if (new_state == migration->device_state) { in vfio_migration_set_state()
166 mig_state->device_state = new_state; in vfio_migration_set_state()
183 mig_state->device_state = recover_state; in vfio_migration_set_state()
486 switch (migration->device_state) { in vfio_save_setup()
502 migration->device_state); in vfio_save_setup()
530 if (migration->device_state == VFIO_DEVICE_STATE_STOP_COPY) { in vfio_save_cleanup()
693 vbasedev->migration->device_state, errp); in vfio_load_setup()
812 new_state = migration->device_state == VFIO_DEVICE_STATE_PRE_COPY ? in vfio_vmstate_change_prepare()
[all …]
H A Dcommon.c161 return migration->device_state == VFIO_DEVICE_STATE_RUNNING || in vfio_device_state_is_running()
162 migration->device_state == VFIO_DEVICE_STATE_RUNNING_P2P; in vfio_device_state_is_running()
169 return migration->device_state == VFIO_DEVICE_STATE_PRE_COPY || in vfio_device_state_is_precopy()
170 migration->device_state == VFIO_DEVICE_STATE_PRE_COPY_P2P; in vfio_device_state_is_precopy()
/openbmc/linux/drivers/usb/gadget/udc/
H A Dtegra-xudc.c490 unsigned int device_state; member
1742 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1746 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1747 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1834 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1839 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1840 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1990 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1991 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1992 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
[all …]
/openbmc/linux/drivers/usb/cdns3/
H A Dcdns3-ep0.c139 enum usb_device_state device_state = priv_dev->gadget.state; in cdns3_req_ep0_set_configuration() local
143 switch (device_state) { in cdns3_req_ep0_set_configuration()
183 enum usb_device_state device_state = priv_dev->gadget.state; in cdns3_req_ep0_set_address() local
196 if (device_state == USB_STATE_CONFIGURED) { in cdns3_req_ep0_set_address()
/openbmc/linux/drivers/platform/x86/
H A Dacer-wmi.c145 u16 device_state; member
1935 u16 device_state; in acer_wmi_notify() local
1965 device_state = return_value.device_state; in acer_wmi_notify()
1966 pr_debug("device state: 0x%x\n", device_state); in acer_wmi_notify()
1980 !(device_state & ACER_WMID3_GDS_WIRELESS)); in acer_wmi_notify()
1983 !(device_state & ACER_WMID3_GDS_THREEG)); in acer_wmi_notify()
1986 !(device_state & ACER_WMID3_GDS_BLUETOOTH)); in acer_wmi_notify()
1989 scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ? in acer_wmi_notify()
/openbmc/linux/drivers/scsi/
H A Dxen-scsifront.c1046 unsigned int device_state; in scsifront_do_lun_hotplug() local
1065 &device_state); in scsifront_do_lun_hotplug()
1086 if (device_state != XenbusStateInitialised) in scsifront_do_lun_hotplug()
1100 if (device_state != XenbusStateClosing) in scsifront_do_lun_hotplug()
1110 if (device_state == XenbusStateConnected) { in scsifront_do_lun_hotplug()
/openbmc/linux/include/uapi/linux/
H A Dvfio.h431 __u32 device_state; /* VFIO device state */ member
1046 __u32 device_state; /* From enum vfio_device_mig_state */ member
/openbmc/qemu/linux-headers/linux/
H A Dvfio.h431 __u32 device_state; /* VFIO device state */ member
1048 __u32 device_state; /* From enum vfio_device_mig_state */ member
/openbmc/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c146 enum usb_device_state device_state = pdev->gadget.state; in cdns2_req_ep0_set_address() local
156 if (device_state == USB_STATE_CONFIGURED) { in cdns2_req_ep0_set_address()
/openbmc/qemu/include/hw/vfio/
H A Dvfio-common.h68 uint32_t device_state; member
/openbmc/linux/drivers/xen/
H A Dxen-scsiback.c1085 int device_state; in scsiback_do_1lun_hotplug() local
1093 err = xenbus_scanf(XBT_NIL, dev->nodename, state, "%u", &device_state); in scsiback_do_1lun_hotplug()
1126 switch (device_state) { in scsiback_do_1lun_hotplug()
1142 if (device_state == XenbusStateInitialised) { in scsiback_do_1lun_hotplug()
/openbmc/linux/drivers/platform/x86/amd/pmf/
H A Dpmf.h131 u16 device_state; member
/openbmc/u-boot/include/
H A Dusbdevice.h581 usb_device_state_t device_state; /* current USB Device state */ member
/openbmc/linux/drivers/vfio/
H A Dvfio_main.c870 mig.device_state = curr_state; in vfio_ioctl_device_feature_mig_device_state()
875 filp = device->mig_ops->migration_set_state(device, mig.device_state); in vfio_ioctl_device_feature_mig_device_state()
/openbmc/u-boot/drivers/serial/
H A Dusbtty.c638 device_instance->device_state = STATE_INIT; in usbtty_init_instances()
/openbmc/linux/drivers/message/fusion/
H A Dmptbase.c2143 u32 device_state; in mpt_suspend() local
2146 device_state = pci_choose_state(pdev, state); in mpt_suspend()
2149 device_state); in mpt_suspend()
2171 pci_set_power_state(pdev, device_state); in mpt_suspend()
2184 u32 device_state = pdev->current_state; in mpt_resume() local
2190 device_state); in mpt_resume()
H A Dmptsas.c1364 enum device_state{ enum
/openbmc/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_os.c5407 pci_power_t device_state = pdev->current_state; in mpi3mr_resume() local
5416 pdev, pci_name(pdev), device_state); in mpi3mr_resume()
/openbmc/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_v3_hw.c5261 pci_power_t device_state = pdev->current_state; in _resume_v3_hw() local
5264 device_state); in _resume_v3_hw()
/openbmc/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_scsih.c12445 pci_power_t device_state = pdev->current_state; in scsih_resume() local
12453 pdev, pci_name(pdev), device_state); in scsih_resume()