Home
last modified time | relevance | path

Searched refs:device_state (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/counter/
H A Dcounter.c1244 /* Store groups_list in device_state */ in counter_device_groups_list_prepare()
1245 counter->device_state->groups_list = groups_list; in counter_device_groups_list_prepare()
1246 counter->device_state->num_groups = num_groups; in counter_device_groups_list_prepare()
1256 struct counter_device_state *const device_state) in counter_device_groups_prepare()
1264 device_state->groups = kcalloc(device_state->num_groups + 1, in counter_device_groups_prepare()
1265 sizeof(*device_state->groups), in counter_device_groups_prepare()
1267 if (!device_state->groups) in counter_device_groups_prepare()
1271 for (i = 0; i < device_state->num_groups; i++) { in counter_device_groups_prepare()
1272 group = device_state in counter_device_groups_prepare()
1255 counter_device_groups_prepare( struct counter_device_state *const device_state) counter_device_groups_prepare() argument
1311 struct counter_device_state *const device_state = counter->device_state; counter_device_release() local
1339 struct counter_device_state *device_state; counter_register() local
[all...]
/kernel/linux/linux-5.10/drivers/iommu/amd/
H A Diommu_v2.c42 struct device_state *device_state; /* Link to our device_state */ member
51 struct device_state { struct
68 struct device_state *dev_state;
84 static void free_pasid_states(struct device_state *dev_state);
96 static struct device_state *__get_device_state(u16 devid) in __get_device_state()
98 struct device_state *dev_state; in __get_device_state()
108 static struct device_state *get_device_state(u16 devid) in get_device_state()
110 struct device_state *dev_stat in get_device_state()
[all...]
/kernel/linux/linux-6.6/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;
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_stat in get_device_state()
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dtegra-xudc.c491 unsigned int device_state; member
1730 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1734 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1735 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1822 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1827 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1828 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1978 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1979 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1980 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/drivers/crypto/ux500/hash/
H A Dhash_core.c1131 * @device_state: The state to be restored in the hash hardware
1134 const struct hash_state *device_state) in hash_resume_state()
1140 if (NULL == device_state) { in hash_resume_state()
1147 if (device_state->index > HASH_BLOCK_SIZE || in hash_resume_state()
1148 (device_state->length.low_word % HASH_BLOCK_SIZE) != 0) { in hash_resume_state()
1161 temp_cr = device_state->temp_cr; in hash_resume_state()
1173 writel_relaxed(device_state->csr[count], in hash_resume_state()
1177 writel_relaxed(device_state->csfull, &device_data->base->csfull); in hash_resume_state()
1178 writel_relaxed(device_state->csdatain, &device_data->base->csdatain); in hash_resume_state()
1180 writel_relaxed(device_state in hash_resume_state()
1133 hash_resume_state(struct hash_device_data *device_data, const struct hash_state *device_state) hash_resume_state() argument
1191 hash_save_state(struct hash_device_data *device_data, struct hash_state *device_state) hash_save_state() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dep0.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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dacer-wmi.c138 u16 device_state; member
1833 u16 device_state; in acer_wmi_notify() local
1863 device_state = return_value.device_state; in acer_wmi_notify()
1864 pr_debug("device state: 0x%x\n", device_state); in acer_wmi_notify()
1878 !(device_state & ACER_WMID3_GDS_WIRELESS)); in acer_wmi_notify()
1881 !(device_state & ACER_WMID3_GDS_THREEG)); in acer_wmi_notify()
1884 !(device_state & ACER_WMID3_GDS_BLUETOOTH)); in acer_wmi_notify()
1887 scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ? in acer_wmi_notify()
/kernel/linux/linux-6.6/drivers/platform/x86/
H A Dacer-wmi.c144 u16 device_state; member
1934 u16 device_state; in acer_wmi_notify() local
1964 device_state = return_value.device_state; in acer_wmi_notify()
1965 pr_debug("device state: 0x%x\n", device_state); in acer_wmi_notify()
1979 !(device_state & ACER_WMID3_GDS_WIRELESS)); in acer_wmi_notify()
1982 !(device_state & ACER_WMID3_GDS_THREEG)); in acer_wmi_notify()
1985 !(device_state & ACER_WMID3_GDS_BLUETOOTH)); in acer_wmi_notify()
1988 scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ? in acer_wmi_notify()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dxen-scsifront.c974 unsigned int device_state; in scsifront_do_lun_hotplug() local
990 &device_state); in scsifront_do_lun_hotplug()
1011 if (device_state != XenbusStateInitialised) in scsifront_do_lun_hotplug()
1025 if (device_state != XenbusStateClosing) in scsifront_do_lun_hotplug()
1035 if (device_state == XenbusStateConnected) { in scsifront_do_lun_hotplug()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
H A Dpm8001_init.c1249 u32 device_state; in pm8001_pci_suspend() local
1278 device_state = pci_choose_state(pdev, state); in pm8001_pci_suspend()
1281 pm8001_ha->name, device_state); in pm8001_pci_suspend()
1284 pci_set_power_state(pdev, device_state); in pm8001_pci_suspend()
1300 u32 device_state; in pm8001_pci_resume() local
1303 device_state = pdev->current_state; in pm8001_pci_resume()
1306 "operating state [D%d]\n", pdev, pm8001_ha->name, device_state); in pm8001_pci_resume()
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dvfio.h431 __u32 device_state; /* VFIO device state */ member
1019 * device. The new state is supplied in device_state, see enum
1029 * If this function fails then current device_state may be the original
1046 __u32 device_state; /* From enum vfio_device_mig_state */ member
1170 * can be failed with an errno return and may then move the device_state into
1172 * was also unable to restore the device to any valid device_state.
1174 * device_state back to RUNNING.
1198 * user may see any step along the path in the device_state if SET_STATE
/kernel/linux/linux-5.10/include/linux/
H A Dcounter.h419 * @device_state: internal device state container
432 struct counter_device_state *device_state; member
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dvfio.h407 * device_state: (read/write)
412 * vendor driver should return success on write(device_state, state)
416 * that is, if write(device_state, state) returns an error, read
417 * device_state again to determine the current state of the device from
421 * the vendor driver may report the device_state VFIO_DEVICE_STATE_ERROR.
424 * indicated to be in a valid device state by reading device_state, the
428 * device_state consists of 3 bits:
597 __u32 device_state; /* VFIO device state */ member
/kernel/linux/linux-6.6/drivers/platform/x86/amd/pmf/
H A Dpmf.h131 u16 device_state; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dvfio.h133 __u32 device_state; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dvfio.h133 __u32 device_state; member
/kernel/linux/linux-5.10/drivers/scsi/esas2r/
H A Desas2r_init.c646 u32 device_state; in esas2r_suspend() local
654 device_state = pci_choose_state(pdev, state); in esas2r_suspend()
663 pci_set_power_state(pdev, device_state); in esas2r_suspend()
/kernel/linux/linux-5.10/drivers/xen/
H A Dxen-scsiback.c1030 int device_state; in scsiback_do_1lun_hotplug() local
1038 err = xenbus_scanf(XBT_NIL, dev->nodename, state, "%u", &device_state); in scsiback_do_1lun_hotplug()
1071 switch (device_state) { in scsiback_do_1lun_hotplug()
1087 if (device_state == XenbusStateInitialised) { in scsiback_do_1lun_hotplug()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/
H A Dhisi_sas_v3_hw.c3473 pci_power_t device_state; in _suspend_v3_hw() local
3499 device_state = pci_choose_state(pdev, PMSG_SUSPEND); in _suspend_v3_hw()
3501 device_state); in _suspend_v3_hw()
3504 pci_set_power_state(pdev, device_state); in _suspend_v3_hw()
3520 pci_power_t device_state = pdev->current_state; in _resume_v3_hw() local
3523 device_state); in _resume_v3_hw()
/kernel/linux/linux-6.6/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()

Completed in 51 milliseconds

12