Lines Matching refs:usb_hcd

82 struct usb_hcd {  struct
201 struct usb_hcd *shared_hcd; argument
202 struct usb_hcd *primary_hcd; argument
244 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument
249 static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) in bus_to_hcd()
251 return container_of(bus, struct usb_hcd, self); in bus_to_hcd()
263 irqreturn_t (*irq) (struct usb_hcd *hcd);
279 int (*reset) (struct usb_hcd *hcd);
280 int (*start) (struct usb_hcd *hcd);
286 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup);
289 int (*pci_resume)(struct usb_hcd *hcd, bool hibernated);
292 void (*stop) (struct usb_hcd *hcd);
295 void (*shutdown) (struct usb_hcd *hcd);
298 int (*get_frame_number) (struct usb_hcd *hcd);
301 int (*urb_enqueue)(struct usb_hcd *hcd,
303 int (*urb_dequeue)(struct usb_hcd *hcd,
315 int (*map_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb,
317 void (*unmap_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb);
320 void (*endpoint_disable)(struct usb_hcd *hcd,
325 void (*endpoint_reset)(struct usb_hcd *hcd,
329 int (*hub_status_data) (struct usb_hcd *hcd, char *buf);
330 int (*hub_control) (struct usb_hcd *hcd,
333 int (*bus_suspend)(struct usb_hcd *);
334 int (*bus_resume)(struct usb_hcd *);
335 int (*start_port_reset)(struct usb_hcd *, unsigned port_num);
336 unsigned long (*get_resuming_ports)(struct usb_hcd *);
339 void (*relinquish_port)(struct usb_hcd *, int);
341 int (*port_handed_over)(struct usb_hcd *, int);
344 void (*clear_tt_buffer_complete)(struct usb_hcd *,
349 int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
351 void (*free_dev)(struct usb_hcd *, struct usb_device *);
353 int (*alloc_streams)(struct usb_hcd *hcd, struct usb_device *udev,
359 int (*free_streams)(struct usb_hcd *hcd, struct usb_device *udev,
374 int (*add_endpoint)(struct usb_hcd *, struct usb_device *,
377 int (*drop_endpoint)(struct usb_hcd *, struct usb_device *,
384 int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
392 void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
394 int (*address_device)(struct usb_hcd *, struct usb_device *udev);
396 int (*enable_device)(struct usb_hcd *, struct usb_device *udev);
400 int (*update_hub_device)(struct usb_hcd *, struct usb_device *hdev,
402 int (*reset_device)(struct usb_hcd *, struct usb_device *);
406 int (*update_device)(struct usb_hcd *, struct usb_device *);
407 int (*set_usb2_hw_lpm)(struct usb_hcd *, struct usb_device *, int);
410 int (*enable_usb3_lpm_timeout)(struct usb_hcd *,
415 int (*disable_usb3_lpm_timeout)(struct usb_hcd *,
417 int (*find_raw_port_number)(struct usb_hcd *, int);
419 int (*port_power)(struct usb_hcd *hcd, int portnum, bool enable);
427 static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd) in hcd_giveback_urb_in_bh()
432 static inline bool hcd_periodic_completion_in_progress(struct usb_hcd *hcd, in hcd_periodic_completion_in_progress()
438 static inline bool hcd_uses_dma(struct usb_hcd *hcd) in hcd_uses_dma()
443 extern int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb);
444 extern int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb,
446 extern void usb_hcd_unlink_urb_from_ep(struct usb_hcd *hcd, struct urb *urb);
450 extern void usb_hcd_giveback_urb(struct usb_hcd *hcd, struct urb *urb,
452 extern int usb_hcd_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
454 extern void usb_hcd_unmap_urb_setup_for_dma(struct usb_hcd *, struct urb *);
455 extern void usb_hcd_unmap_urb_for_dma(struct usb_hcd *, struct urb *);
469 struct usb_hcd *__usb_create_hcd(const struct hc_driver *driver,
471 struct usb_hcd *primary_hcd);
472 extern struct usb_hcd *usb_create_hcd(const struct hc_driver *driver,
474 extern struct usb_hcd *usb_create_shared_hcd(const struct hc_driver *driver,
476 struct usb_hcd *shared_hcd);
477 extern struct usb_hcd *usb_get_hcd(struct usb_hcd *hcd);
478 extern void usb_put_hcd(struct usb_hcd *hcd);
479 extern int usb_hcd_is_primary_hcd(struct usb_hcd *hcd);
480 extern int usb_add_hcd(struct usb_hcd *hcd,
482 extern void usb_remove_hcd(struct usb_hcd *hcd);
483 extern int usb_hcd_find_raw_port_number(struct usb_hcd *hcd, int port1);
484 int usb_hcd_setup_local_mem(struct usb_hcd *hcd, phys_addr_t phys_addr,
508 int hcd_buffer_create(struct usb_hcd *hcd);
509 void hcd_buffer_destroy(struct usb_hcd *hcd);
519 extern void usb_hc_died(struct usb_hcd *hcd);
520 extern void usb_hcd_poll_rh_status(struct usb_hcd *hcd);
587 struct usb_hcd *hcd;
692 extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd);
698 static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd) in usb_hcd_resume_root_hub()