Lines Matching refs:usb_hcd
75 struct usb_hcd { struct
193 struct usb_hcd *shared_hcd; argument
194 struct usb_hcd *primary_hcd; argument
228 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument
233 static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) in bus_to_hcd()
235 return container_of(bus, struct usb_hcd, self); in bus_to_hcd()
252 irqreturn_t (*irq) (struct usb_hcd *hcd);
268 int (*reset) (struct usb_hcd *hcd);
269 int (*start) (struct usb_hcd *hcd);
275 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup);
278 int (*pci_resume)(struct usb_hcd *hcd, bool hibernated);
281 void (*stop) (struct usb_hcd *hcd);
284 void (*shutdown) (struct usb_hcd *hcd);
287 int (*get_frame_number) (struct usb_hcd *hcd);
290 int (*urb_enqueue)(struct usb_hcd *hcd,
292 int (*urb_dequeue)(struct usb_hcd *hcd,
304 int (*map_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb,
306 void (*unmap_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb);
309 void (*endpoint_disable)(struct usb_hcd *hcd,
314 void (*endpoint_reset)(struct usb_hcd *hcd,
318 int (*hub_status_data) (struct usb_hcd *hcd, char *buf);
319 int (*hub_control) (struct usb_hcd *hcd,
322 int (*bus_suspend)(struct usb_hcd *);
323 int (*bus_resume)(struct usb_hcd *);
324 int (*start_port_reset)(struct usb_hcd *, unsigned port_num);
325 unsigned long (*get_resuming_ports)(struct usb_hcd *);
328 void (*relinquish_port)(struct usb_hcd *, int);
330 int (*port_handed_over)(struct usb_hcd *, int);
333 void (*clear_tt_buffer_complete)(struct usb_hcd *,
338 int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
340 void (*free_dev)(struct usb_hcd *, struct usb_device *);
342 int (*alloc_streams)(struct usb_hcd *hcd, struct usb_device *udev,
348 int (*free_streams)(struct usb_hcd *hcd, struct usb_device *udev,
363 int (*add_endpoint)(struct usb_hcd *, struct usb_device *,
366 int (*drop_endpoint)(struct usb_hcd *, struct usb_device *,
373 int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
381 void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
383 int (*address_device)(struct usb_hcd *, struct usb_device *udev);
385 int (*enable_device)(struct usb_hcd *, struct usb_device *udev);
389 int (*update_hub_device)(struct usb_hcd *, struct usb_device *hdev,
391 int (*reset_device)(struct usb_hcd *, struct usb_device *);
395 int (*update_device)(struct usb_hcd *, struct usb_device *);
396 int (*set_usb2_hw_lpm)(struct usb_hcd *, struct usb_device *, int);
399 int (*enable_usb3_lpm_timeout)(struct usb_hcd *,
404 int (*disable_usb3_lpm_timeout)(struct usb_hcd *,
406 int (*find_raw_port_number)(struct usb_hcd *, int);
408 int (*port_power)(struct usb_hcd *hcd, int portnum, bool enable);
412 static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd) in hcd_giveback_urb_in_bh()
417 static inline bool hcd_periodic_completion_in_progress(struct usb_hcd *hcd, in hcd_periodic_completion_in_progress()
423 extern int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb);
424 extern int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb,
426 extern void usb_hcd_unlink_urb_from_ep(struct usb_hcd *hcd, struct urb *urb);
430 extern void usb_hcd_giveback_urb(struct usb_hcd *hcd, struct urb *urb,
432 extern int usb_hcd_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
434 extern void usb_hcd_unmap_urb_setup_for_dma(struct usb_hcd *, struct urb *);
435 extern void usb_hcd_unmap_urb_for_dma(struct usb_hcd *, struct urb *);
449 struct usb_hcd *__usb_create_hcd(const struct hc_driver *driver,
451 struct usb_hcd *primary_hcd);
452 extern struct usb_hcd *usb_create_hcd(const struct hc_driver *driver,
454 extern struct usb_hcd *usb_create_shared_hcd(const struct hc_driver *driver,
456 struct usb_hcd *shared_hcd);
457 extern struct usb_hcd *usb_get_hcd(struct usb_hcd *hcd);
458 extern void usb_put_hcd(struct usb_hcd *hcd);
459 extern int usb_hcd_is_primary_hcd(struct usb_hcd *hcd);
460 extern int usb_add_hcd(struct usb_hcd *hcd,
462 extern void usb_remove_hcd(struct usb_hcd *hcd);
463 extern int usb_hcd_find_raw_port_number(struct usb_hcd *hcd, int port1);
485 int hcd_buffer_create(struct usb_hcd *hcd);
486 void hcd_buffer_destroy(struct usb_hcd *hcd);
496 extern void usb_hc_died(struct usb_hcd *hcd);
497 extern void usb_hcd_poll_rh_status(struct usb_hcd *hcd);
559 struct usb_hcd *hcd;
659 extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd);
661 static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd) in usb_hcd_resume_root_hub()