• Home
  • Raw
  • Download

Lines Matching refs:udev

111 	struct usb_device *udev = xfer->xroot->udev;  in usb_handle_set_config()  local
122 do_unlock = usbd_enum_lock(udev); in usb_handle_set_config()
134 if (usbd_set_config_index(udev, conf_no)) { in usb_handle_set_config()
139 if (usb_probe_and_attach(udev, USB_IFACE_INDEX_ANY)) { in usb_handle_set_config()
146 usbd_enum_unlock(udev); in usb_handle_set_config()
152 usb_check_alt_setting(struct usb_device *udev, in usb_check_alt_setting() argument
159 do_unlock = usbd_enum_lock(udev); in usb_check_alt_setting()
161 if (alt_index >= usbd_get_no_alts(udev->cdesc, iface->idesc)) in usb_check_alt_setting()
165 usbd_enum_unlock(udev); in usb_check_alt_setting()
184 struct usb_device *udev = xfer->xroot->udev; in usb_handle_iface_request() local
203 do_unlock = usbd_enum_lock(udev); in usb_handle_iface_request()
208 iface = usbd_get_iface(udev, iface_index); in usb_handle_iface_request()
228 iface_parent = usbd_get_iface(udev, iface->parent_iface_index); in usb_handle_iface_request()
279 error = usb_check_alt_setting(udev, in usb_handle_iface_request()
286 error = usb_reset_iface_endpoints(udev, iface_index); in usb_handle_iface_request()
317 usbd_enum_unlock(udev); in usb_handle_iface_request()
323 usbd_enum_unlock(udev); in usb_handle_iface_request()
329 usbd_enum_unlock(udev); in usb_handle_iface_request()
344 struct usb_device *udev = xfer->xroot->udev; in usb_handle_set_stall() local
348 err = usbd_set_endpoint_stall(udev, in usb_handle_set_stall()
349 usbd_get_ep_by_addr(udev, ep), do_stall); in usb_handle_set_stall()
362 usb_handle_get_stall(struct usb_device *udev, uint8_t ea_val) in usb_handle_get_stall() argument
367 ep = usbd_get_ep_by_addr(udev, ea_val); in usb_handle_get_stall()
372 USB_BUS_LOCK(udev->bus); in usb_handle_get_stall()
374 USB_BUS_UNLOCK(udev->bus); in usb_handle_get_stall()
389 struct usb_device *udev; in usb_handle_remote_wakeup() local
392 udev = xfer->xroot->udev; in usb_handle_remote_wakeup()
393 bus = udev->bus; in usb_handle_remote_wakeup()
398 udev->flags.remote_wakeup = 1; in usb_handle_remote_wakeup()
400 udev->flags.remote_wakeup = 0; in usb_handle_remote_wakeup()
407 usb_bus_power_update(udev->bus); in usb_handle_remote_wakeup()
427 struct usb_device *udev; in usb_handle_request() local
494 udev = xfer->xroot->udev; in usb_handle_request()
609 err = (usb_temp_get_desc_p) (udev, &req, &src_zcopy, &max_len); in usb_handle_request()
617 temp.buf[0] = udev->curr_config_no; in usb_handle_request()
626 USB_BUS_LOCK(udev->bus); in usb_handle_request()
627 if (udev->flags.remote_wakeup) { in usb_handle_request()
630 if (udev->flags.self_powered) { in usb_handle_request()
633 USB_BUS_UNLOCK(udev->bus); in usb_handle_request()
645 } else if (udev->curr_config_no != 0) { in usb_handle_request()
650 udev->address = (wValue & 0x7F); in usb_handle_request()
698 usb_handle_get_stall(udev, req.wIndex[0]); in usb_handle_request()