Lines Matching refs:usb_hcd

68 struct usb_hcd {  struct
186 struct usb_hcd *shared_hcd; argument
187 struct usb_hcd *primary_hcd; argument
224 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument
229 static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) in bus_to_hcd()
231 return container_of(bus, struct usb_hcd, self); in bus_to_hcd()
243 irqreturn_t (*irq) (struct usb_hcd *hcd);
258 int (*reset) (struct usb_hcd *hcd);
259 int (*start) (struct usb_hcd *hcd);
265 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup);
268 int (*pci_resume)(struct usb_hcd *hcd, pm_message_t state);
271 int (*pci_poweroff_late)(struct usb_hcd *hcd, bool do_wakeup);
274 void (*stop) (struct usb_hcd *hcd);
277 void (*shutdown) (struct usb_hcd *hcd);
280 int (*get_frame_number) (struct usb_hcd *hcd);
283 int (*urb_enqueue)(struct usb_hcd *hcd,
285 int (*urb_dequeue)(struct usb_hcd *hcd,
297 int (*map_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb,
299 void (*unmap_urb_for_dma)(struct usb_hcd *hcd, struct urb *urb);
302 void (*endpoint_disable)(struct usb_hcd *hcd,
307 void (*endpoint_reset)(struct usb_hcd *hcd,
311 int (*hub_status_data) (struct usb_hcd *hcd, char *buf);
312 int (*hub_control) (struct usb_hcd *hcd,
315 int (*bus_suspend)(struct usb_hcd *);
316 int (*bus_resume)(struct usb_hcd *);
317 int (*start_port_reset)(struct usb_hcd *, unsigned port_num);
318 unsigned long (*get_resuming_ports)(struct usb_hcd *);
321 void (*relinquish_port)(struct usb_hcd *, int);
323 int (*port_handed_over)(struct usb_hcd *, int);
326 void (*clear_tt_buffer_complete)(struct usb_hcd *,
331 int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
333 void (*free_dev)(struct usb_hcd *, struct usb_device *);
335 int (*alloc_streams)(struct usb_hcd *hcd, struct usb_device *udev,
341 int (*free_streams)(struct usb_hcd *hcd, struct usb_device *udev,
356 int (*add_endpoint)(struct usb_hcd *, struct usb_device *,
359 int (*drop_endpoint)(struct usb_hcd *, struct usb_device *,
366 int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
374 void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
376 int (*address_device)(struct usb_hcd *, struct usb_device *udev);
378 int (*enable_device)(struct usb_hcd *, struct usb_device *udev);
382 int (*update_hub_device)(struct usb_hcd *, struct usb_device *hdev,
384 int (*reset_device)(struct usb_hcd *, struct usb_device *);
388 int (*update_device)(struct usb_hcd *, struct usb_device *);
389 int (*set_usb2_hw_lpm)(struct usb_hcd *, struct usb_device *, int);
392 int (*enable_usb3_lpm_timeout)(struct usb_hcd *,
397 int (*disable_usb3_lpm_timeout)(struct usb_hcd *,
399 int (*find_raw_port_number)(struct usb_hcd *, int);
401 int (*port_power)(struct usb_hcd *hcd, int portnum, bool enable);
404 int (*submit_single_step_set_feature)(struct usb_hcd *,
408 static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd) in hcd_giveback_urb_in_bh()
413 static inline bool hcd_periodic_completion_in_progress(struct usb_hcd *hcd, in hcd_periodic_completion_in_progress()
419 static inline bool hcd_uses_dma(struct usb_hcd *hcd) in hcd_uses_dma()
424 extern int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb);
425 extern int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb,
427 extern void usb_hcd_unlink_urb_from_ep(struct usb_hcd *hcd, struct urb *urb);
431 extern void usb_hcd_giveback_urb(struct usb_hcd *hcd, struct urb *urb,
433 extern int usb_hcd_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
435 extern void usb_hcd_unmap_urb_setup_for_dma(struct usb_hcd *, struct urb *);
436 extern void usb_hcd_unmap_urb_for_dma(struct usb_hcd *, struct urb *);
450 struct usb_hcd *__usb_create_hcd(const struct hc_driver *driver,
452 struct usb_hcd *primary_hcd);
453 extern struct usb_hcd *usb_create_hcd(const struct hc_driver *driver,
455 extern struct usb_hcd *usb_create_shared_hcd(const struct hc_driver *driver,
457 struct usb_hcd *shared_hcd);
458 extern struct usb_hcd *usb_get_hcd(struct usb_hcd *hcd);
459 extern void usb_put_hcd(struct usb_hcd *hcd);
460 extern int usb_hcd_is_primary_hcd(struct usb_hcd *hcd);
461 extern int usb_add_hcd(struct usb_hcd *hcd,
463 extern void usb_remove_hcd(struct usb_hcd *hcd);
464 extern int usb_hcd_find_raw_port_number(struct usb_hcd *hcd, int port1);
465 int usb_hcd_setup_local_mem(struct usb_hcd *hcd, phys_addr_t phys_addr,
471 extern int ehset_single_step_set_feature(struct usb_hcd *hcd, int port);
473 static inline int ehset_single_step_set_feature(struct usb_hcd *hcd, int port) in ehset_single_step_set_feature()
494 int hcd_buffer_create(struct usb_hcd *hcd);
495 void hcd_buffer_destroy(struct usb_hcd *hcd);
502 void *hcd_buffer_alloc_pages(struct usb_hcd *hcd,
504 void hcd_buffer_free_pages(struct usb_hcd *hcd,
510 extern void usb_hc_died(struct usb_hcd *hcd);
511 extern void usb_hcd_poll_rh_status(struct usb_hcd *hcd);
573 struct usb_hcd *hcd;
678 extern void usb_hcd_resume_root_hub(struct usb_hcd *hcd);
684 static inline void usb_hcd_resume_root_hub(struct usb_hcd *hcd) in usb_hcd_resume_root_hub()