Lines Matching refs:usb_device
23 struct usb_device;
150 container_of(intf->dev.parent, struct usb_device, dev)
176 * These structures persist for the lifetime of a usb_device, unlike
280 struct usb_device *root_hub; /* Root hub */
317 * struct usb_device - kernel's representation of a USB device
324 struct usb_device {
336 struct usb_device *parent; /* our hub, unless we're the root */
375 struct usb_device *children[USB_MAXCHILDREN];
377 #define to_usb_device(d) container_of(d, struct usb_device, dev)
379 extern struct usb_device *usb_get_dev(struct usb_device *dev);
380 extern void usb_put_dev(struct usb_device *dev);
386 extern int usb_lock_device_for_reset(struct usb_device *udev,
390 extern int usb_reset_device(struct usb_device *dev);
391 extern int usb_reset_composite_device(struct usb_device *dev,
394 extern struct usb_device *usb_find_device(u16 vendor_id, u16 product_id);
399 extern int usb_get_current_frame_number (struct usb_device *usb_dev);
426 extern struct usb_interface *usb_ifnum_to_if(struct usb_device *dev,
456 static inline int usb_make_path (struct usb_device *dev, char *buf,
483 * USB_DEVICE - macro used to describe a specific usb device
490 #define USB_DEVICE(vend,prod) \
857 struct usb_device *dev; /* (in) pointer to associated device */
883 * @dev: pointer to the struct usb_device for this urb.
895 struct usb_device *dev,
916 * @dev: pointer to the struct usb_device for this urb.
927 struct usb_device *dev,
946 * @dev: pointer to the struct usb_device for this urb.
962 struct usb_device *dev,
994 void *usb_buffer_alloc (struct usb_device *dev, size_t size,
996 void usb_buffer_free (struct usb_device *dev, size_t size,
1006 int usb_buffer_map_sg (struct usb_device *dev, unsigned pipe,
1009 void usb_buffer_dmasync_sg (struct usb_device *dev, unsigned pipe,
1012 void usb_buffer_unmap_sg (struct usb_device *dev, unsigned pipe,
1019 extern int usb_control_msg(struct usb_device *dev, unsigned int pipe,
1022 extern int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe,
1024 extern int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
1029 extern int usb_get_descriptor(struct usb_device *dev, unsigned char desctype,
1031 extern int usb_get_status(struct usb_device *dev,
1033 extern int usb_string(struct usb_device *dev, int index,
1037 extern int usb_clear_halt(struct usb_device *dev, int pipe);
1038 extern int usb_reset_configuration(struct usb_device *dev);
1039 extern int usb_set_interface(struct usb_device *dev, int ifnum, int alternate);
1077 struct usb_device *dev;
1091 struct usb_device *dev,
1107 * a struct usb_device to identify an endpoint queue. Queue characteristics
1149 static inline unsigned int __create_pipe(struct usb_device *dev,
1176 usb_maxpacket(struct usb_device *udev, int pipe, int is_out)