Lines Matching refs:hcd
125 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument
126 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument
127 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument
128 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument
129 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument
130 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument
137 #define HCD_INTF_AUTHORIZED(hcd) \ argument
138 ((hcd)->flags & (1U << HCD_FLAG_INTF_AUTHORIZED))
145 #define HCD_DEV_AUTHORIZED(hcd) \ argument
146 ((hcd)->flags & (1U << HCD_FLAG_DEV_AUTHORIZED))
228 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument
230 return &hcd->self; in hcd_to_bus()
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,
342 int (*alloc_streams)(struct usb_hcd *hcd, struct usb_device *udev,
348 int (*free_streams)(struct usb_hcd *hcd, struct usb_device *udev,
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() argument
414 return hcd->driver->flags & HCD_BH; 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() argument
420 return hcd->high_prio_bh.completing_ep == ep; 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,
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; member
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() argument