Lines Matching refs:udev

25 static struct usb_device *udev;  variable
70 xfer = usbh_xfer_alloc(udev, ep, 0, 512, 10, NULL); in cmd_bulk()
75 buf = usbh_xfer_buf_alloc(udev, len); in cmd_bulk()
100 buf = usbh_xfer_buf_alloc(udev, wLength); in cmd_vendor_in()
106 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_in()
111 usbh_xfer_buf_free(udev, buf); in cmd_vendor_in()
128 buf = usbh_xfer_buf_alloc(udev, wLength); in cmd_vendor_out()
135 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_out()
136 usbh_xfer_buf_free(udev, buf); in cmd_vendor_out()
147 err = usbh_req_desc_dev(udev, &desc); in cmd_desc_device()
166 err = usbh_req_desc_cfg(udev, cfg, sizeof(desc), &desc); in cmd_desc_config()
188 buf = usbh_xfer_buf_alloc(udev, 128); in cmd_desc_string()
193 err = usbh_req_desc(udev, type, idx, id, 128, buf); in cmd_desc_string()
200 usbh_xfer_buf_free(udev, buf); in cmd_desc_string()
214 err = usbh_req_set_sfs_rwup(udev); in cmd_feature_set_halt()
219 udev->addr, ep); in cmd_feature_set_halt()
230 err = usbh_req_clear_sfs_rwup(udev); in cmd_feature_clear_rwup()
234 shell_print(sh, "host: Device 0x%02x, rwup feature cleared", udev->addr); in cmd_feature_clear_rwup()
245 err = usbh_req_set_sfs_rwup(udev); in cmd_feature_set_rwup()
249 shell_print(sh, "host: Device 0x%02x, rwup feature set", udev->addr); in cmd_feature_set_rwup()
263 err = usbh_req_set_hcfs_ppwr(udev, port); in cmd_feature_set_ppwr()
268 udev->addr, port); in cmd_feature_set_ppwr()
282 err = usbh_req_set_hcfs_prst(udev, port); in cmd_feature_set_prst()
287 udev->addr, port); in cmd_feature_set_prst()
301 err = usbh_req_set_cfg(udev, cfg); in cmd_config_set()
306 udev->addr, cfg); in cmd_config_set()
318 err = usbh_req_get_cfg(udev, &cfg); in cmd_config_get()
323 udev->addr, cfg); in cmd_config_get()
339 err = usbh_req_set_alt(udev, iface, alt); in cmd_device_interface()
344 udev->addr, iface, alt); in cmd_device_interface()
358 err = usbh_req_set_address(udev, addr); in cmd_device_address()
428 udev = usbh_device_get_any(&uhs_ctx); in cmd_usbh_init()