Lines Matching refs:usb_device
49 static struct usb_device usb_dev[USB_MAX_DEVICE];
62 struct usb_device *dev; in usb_init()
73 memset(&usb_dev[i], 0, sizeof(struct usb_device)); in usb_init()
178 __weak int usb_lock_async(struct usb_device *dev, int lock) in usb_lock_async()
208 int usb_int_msg(struct usb_device *dev, unsigned long pipe, in usb_int_msg()
224 int usb_control_msg(struct usb_device *dev, unsigned int pipe, in usb_control_msg()
276 int usb_bulk_msg(struct usb_device *dev, unsigned int pipe, in usb_bulk_msg()
305 int usb_maxpacket(struct usb_device *dev, unsigned long pipe) in usb_maxpacket()
326 usb_set_maxpacket_ep(struct usb_device *dev, int if_idx, int ep_idx) in usb_set_maxpacket_ep()
366 static int usb_set_maxpacket(struct usb_device *dev) in usb_set_maxpacket()
382 static int usb_parse_config(struct usb_device *dev, in usb_parse_config()
537 int usb_clear_halt(struct usb_device *dev, int pipe) in usb_clear_halt()
566 static int usb_get_descriptor(struct usb_device *dev, unsigned char type, in usb_get_descriptor()
578 int usb_get_configuration_len(struct usb_device *dev, int cfgno) in usb_get_configuration_len()
601 int usb_get_configuration_no(struct usb_device *dev, int cfgno, in usb_get_configuration_no()
620 static int usb_set_address(struct usb_device *dev) in usb_set_address()
631 int usb_set_interface(struct usb_device *dev, int interface, int alternate) in usb_set_interface()
669 static int usb_set_configuration(struct usb_device *dev, int configuration) in usb_set_configuration()
689 int usb_set_protocol(struct usb_device *dev, int ifnum, int protocol) in usb_set_protocol()
699 int usb_set_idle(struct usb_device *dev, int ifnum, int duration, int report_id) in usb_set_idle()
709 int usb_get_report(struct usb_device *dev, int ifnum, unsigned char type, in usb_get_report()
721 int usb_get_class_descriptor(struct usb_device *dev, int ifnum, in usb_get_class_descriptor()
732 static int usb_get_string(struct usb_device *dev, unsigned short langid, in usb_get_string()
768 static int usb_string_sub(struct usb_device *dev, unsigned int langid, in usb_string_sub()
808 int usb_string(struct usb_device *dev, int index, char *buf, size_t size) in usb_string()
869 struct usb_device *usb_get_dev_index(int index) in usb_get_dev_index()
877 int usb_alloc_new_device(struct udevice *controller, struct usb_device **devp) in usb_alloc_new_device()
907 memset(&usb_dev[dev_index], 0, sizeof(struct usb_device)); in usb_free_device()
917 __weak int usb_alloc_device(struct usb_device *udev) in usb_alloc_device()
923 static int usb_hub_port_reset(struct usb_device *dev, struct usb_device *hub) in usb_hub_port_reset()
931 static int get_descriptor_len(struct usb_device *dev, int len, int expect_len) in get_descriptor_len()
956 static int usb_setup_descriptor(struct usb_device *dev, bool do_read) in usb_setup_descriptor()
1031 static int usb_prepare_device(struct usb_device *dev, int addr, bool do_read, in usb_prepare_device()
1032 struct usb_device *parent) in usb_prepare_device()
1080 int usb_select_config(struct usb_device *dev) in usb_select_config()
1163 int usb_setup_device(struct usb_device *dev, bool do_read, in usb_setup_device()
1164 struct usb_device *parent) in usb_setup_device()
1189 int usb_new_device(struct usb_device *dev) in usb_new_device()
1228 bool usb_device_has_child_on_port(struct usb_device *parent, int port) in usb_device_has_child_on_port()
1238 void usb_find_usb2_hub_address_port(struct usb_device *udev, in usb_find_usb2_hub_address_port()
1242 struct usb_device *uparent, *ttdev; in usb_find_usb2_hub_address_port()
1273 void usb_find_usb2_hub_address_port(struct usb_device *udev, in usb_find_usb2_hub_address_port()