Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/iommu/amd/
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; argument
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_state; in get_device_state()
122 static void free_device_state(struct device_state *dev_state) in free_device_state()
145 static void put_device_state(struct device_state *dev_state) in put_device_state()
[all …]
/Linux-v5.10/drivers/counter/
Dcounter.c1245 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() argument
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->groups_list + i; in counter_device_groups_prepare()
1288 device_state->groups[i] = &group->attr_group; in counter_device_groups_prepare()
1291 device_state->dev.groups = device_state->groups; in counter_device_groups_prepare()
[all …]
/Linux-v5.10/drivers/crypto/ux500/hash/
Dhash_core.c1133 const struct hash_state *device_state) in hash_resume_state() argument
1139 if (NULL == device_state) { in hash_resume_state()
1146 if (device_state->index > HASH_BLOCK_SIZE || in hash_resume_state()
1147 (device_state->length.low_word % HASH_BLOCK_SIZE) != 0) { in hash_resume_state()
1160 temp_cr = device_state->temp_cr; in hash_resume_state()
1172 writel_relaxed(device_state->csr[count], in hash_resume_state()
1176 writel_relaxed(device_state->csfull, &device_data->base->csfull); in hash_resume_state()
1177 writel_relaxed(device_state->csdatain, &device_data->base->csdatain); in hash_resume_state()
1179 writel_relaxed(device_state->str_reg, &device_data->base->str); in hash_resume_state()
1191 struct hash_state *device_state) in hash_save_state() argument
[all …]
/Linux-v5.10/drivers/usb/gadget/udc/
Dtegra-xudc.c492 unsigned int device_state; member
1728 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1732 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1733 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1820 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1825 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1826 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1976 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1977 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1978 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
[all …]
/Linux-v5.10/drivers/platform/x86/
Dacer-wmi.c130 u16 device_state; member
1713 u16 device_state; in acer_wmi_notify() local
1743 device_state = return_value.device_state; in acer_wmi_notify()
1744 pr_debug("device state: 0x%x\n", device_state); in acer_wmi_notify()
1758 !(device_state & ACER_WMID3_GDS_WIRELESS)); in acer_wmi_notify()
1761 !(device_state & ACER_WMID3_GDS_THREEG)); in acer_wmi_notify()
1764 !(device_state & ACER_WMID3_GDS_BLUETOOTH)); in acer_wmi_notify()
1767 scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ? in acer_wmi_notify()
/Linux-v5.10/drivers/usb/cdns3/
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()
/Linux-v5.10/drivers/scsi/pm8001/
Dpm8001_init.c1270 u32 device_state; in pm8001_pci_suspend() local
1299 device_state = pci_choose_state(pdev, state); in pm8001_pci_suspend()
1302 pm8001_ha->name, device_state); in pm8001_pci_suspend()
1305 pci_set_power_state(pdev, device_state); in pm8001_pci_suspend()
1321 u32 device_state; in pm8001_pci_resume() local
1324 device_state = pdev->current_state; in pm8001_pci_resume()
1327 "operating state [D%d]\n", pdev, pm8001_ha->name, device_state); in pm8001_pci_resume()
/Linux-v5.10/drivers/scsi/
Dxen-scsifront.c975 unsigned int device_state; in scsifront_do_lun_hotplug() local
991 &device_state); in scsifront_do_lun_hotplug()
1012 if (device_state != XenbusStateInitialised) in scsifront_do_lun_hotplug()
1026 if (device_state != XenbusStateClosing) in scsifront_do_lun_hotplug()
1036 if (device_state == XenbusStateConnected) { in scsifront_do_lun_hotplug()
/Linux-v5.10/include/linux/
Dcounter.h432 struct counter_device_state *device_state; member
/Linux-v5.10/drivers/xen/
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()
/Linux-v5.10/include/uapi/linux/
Dvfio.h597 __u32 device_state; /* VFIO device state */ member
/Linux-v5.10/drivers/scsi/esas2r/
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()
/Linux-v5.10/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c3448 pci_power_t device_state; in _suspend_v3_hw() local
3474 device_state = pci_choose_state(pdev, PMSG_SUSPEND); in _suspend_v3_hw()
3476 device_state); in _suspend_v3_hw()
3479 pci_set_power_state(pdev, device_state); in _suspend_v3_hw()
3495 pci_power_t device_state = pdev->current_state; in _resume_v3_hw() local
3498 device_state); in _resume_v3_hw()
/Linux-v5.10/drivers/message/fusion/
Dmptbase.c2152 u32 device_state; in mpt_suspend() local
2155 device_state = pci_choose_state(pdev, state); in mpt_suspend()
2158 device_state); in mpt_suspend()
2180 pci_set_power_state(pdev, device_state); in mpt_suspend()
2193 u32 device_state = pdev->current_state; in mpt_resume() local
2199 device_state); in mpt_resume()
Dmptsas.c1336 enum device_state{ enum
/Linux-v5.10/drivers/scsi/mpt3sas/
Dmpt3sas_scsih.c11100 pci_power_t device_state; in scsih_suspend() local
11111 device_state = pci_choose_state(pdev, state); in scsih_suspend()
11113 pdev, pci_name(pdev), device_state); in scsih_suspend()
11117 pci_set_power_state(pdev, device_state); in scsih_suspend()
11132 pci_power_t device_state = pdev->current_state; in scsih_resume() local
11140 pdev, pci_name(pdev), device_state); in scsih_resume()