/linux-3.4.99/include/linux/usb/ |
D | hcd.h | 70 struct usb_hcd { struct 148 struct usb_hcd *shared_hcd; argument 149 struct usb_hcd *primary_hcd; argument 183 static inline struct usb_bus *hcd_to_bus(struct usb_hcd *hcd) in hcd_to_bus() argument 188 static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) in bus_to_hcd() 190 return container_of(bus, struct usb_hcd, self); in bus_to_hcd() 207 irqreturn_t (*irq) (struct usb_hcd *hcd); 219 int (*reset) (struct usb_hcd *hcd); 220 int (*start) (struct usb_hcd *hcd); 226 int (*pci_suspend)(struct usb_hcd *hcd, bool do_wakeup); [all …]
|
/linux-3.4.99/drivers/usb/host/whci/ |
D | hcd.c | 32 static int whc_reset(struct usb_hcd *usb_hcd) in whc_reset() argument 44 static int whc_start(struct usb_hcd *usb_hcd) in whc_start() argument 46 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_start() 71 usb_hcd->uses_new_polling = 1; in whc_start() 72 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); in whc_start() 73 usb_hcd->state = HC_STATE_RUNNING; in whc_start() 88 static void whc_stop(struct usb_hcd *usb_hcd) in whc_stop() argument 90 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in whc_stop() 107 static int whc_get_frame_number(struct usb_hcd *usb_hcd) in whc_get_frame_number() argument 117 static int whc_urb_enqueue(struct usb_hcd *usb_hcd, struct urb *urb, in whc_urb_enqueue() argument [all …]
|
/linux-3.4.99/drivers/usb/wusbcore/ |
D | wusbhc.h | 247 struct usb_hcd usb_hcd; /* HAS TO BE 1st */ member 300 #define usb_hcd_to_wusbhc(u) container_of((u), struct wusbhc, usb_hcd) 329 static inline struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) in usb_hcd_get_by_usb_dev() 331 struct usb_hcd *usb_hcd; in usb_hcd_get_by_usb_dev() local 332 usb_hcd = container_of(usb_dev->bus, struct usb_hcd, self); in usb_hcd_get_by_usb_dev() 333 return usb_get_hcd(usb_hcd); in usb_hcd_get_by_usb_dev() 343 return usb_get_hcd(&wusbhc->usb_hcd) ? wusbhc : NULL; in wusbhc_get() 359 struct usb_hcd *usb_hcd; in wusbhc_get_by_usb_dev() local 366 usb_hcd = usb_hcd_get_by_usb_dev(usb_dev); in wusbhc_get_by_usb_dev() 367 if (usb_hcd == NULL) in wusbhc_get_by_usb_dev() [all …]
|
D | rh.c | 141 int wusbhc_rh_status_data(struct usb_hcd *usb_hcd, char *_buf) in wusbhc_rh_status_data() argument 143 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_status_data() 352 int wusbhc_rh_control(struct usb_hcd *usb_hcd, u16 reqntype, u16 wValue, in wusbhc_rh_control() argument 356 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_control() 387 "UNIMPLEMENTED\n", __func__, usb_hcd, wusbhc, reqntype, in wusbhc_rh_control() 396 int wusbhc_rh_suspend(struct usb_hcd *usb_hcd) in wusbhc_rh_suspend() argument 398 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_suspend() 400 usb_hcd, wusbhc); in wusbhc_rh_suspend() 406 int wusbhc_rh_resume(struct usb_hcd *usb_hcd) in wusbhc_rh_resume() argument 408 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_resume() [all …]
|
/linux-3.4.99/drivers/usb/host/ |
D | hwa-hc.c | 118 static int hwahc_op_reset(struct usb_hcd *usb_hcd) in hwahc_op_reset() argument 121 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_reset() 145 static int hwahc_op_start(struct usb_hcd *usb_hcd) in hwahc_op_start() argument 149 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_start() 161 usb_hcd->uses_new_polling = 1; in hwahc_op_start() 162 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); in hwahc_op_start() 163 usb_hcd->state = HC_STATE_RUNNING; in hwahc_op_start() 182 static void hwahc_op_stop(struct usb_hcd *usb_hcd) in hwahc_op_stop() argument 184 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_stop() 191 static int hwahc_op_get_frame_number(struct usb_hcd *usb_hcd) in hwahc_op_get_frame_number() argument [all …]
|
D | ohci-pci.c | 27 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend() 36 static int ohci_quirk_amd756(struct usb_hcd *hcd) in ohci_quirk_amd756() 51 static int ohci_quirk_opti(struct usb_hcd *hcd) in ohci_quirk_opti() 64 static int ohci_quirk_ns(struct usb_hcd *hcd) in ohci_quirk_ns() 86 static int ohci_quirk_zfmicro(struct usb_hcd *hcd) in ohci_quirk_zfmicro() 99 static int ohci_quirk_toshiba_scc(struct usb_hcd *hcd) in ohci_quirk_toshiba_scc() 139 static int ohci_quirk_nec(struct usb_hcd *hcd) in ohci_quirk_nec() 150 static int ohci_quirk_amd700(struct usb_hcd *hcd) in ohci_quirk_amd700() 249 static int ohci_pci_reset (struct usb_hcd *hcd) in ohci_pci_reset() 260 int (*quirk)(struct usb_hcd *ohci); in ohci_pci_reset() [all …]
|
D | xhci.h | 1387 static inline unsigned int hcd_index(struct usb_hcd *hcd) in hcd_index() 1397 struct usb_hcd *main_hcd; 1398 struct usb_hcd *shared_hcd; 1538 static inline struct xhci_hcd *hcd_to_xhci(struct usb_hcd *hcd) in hcd_to_xhci() 1543 static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) in xhci_to_hcd() 1725 int xhci_init(struct usb_hcd *hcd); 1726 int xhci_run(struct usb_hcd *hcd); 1727 void xhci_stop(struct usb_hcd *hcd); 1728 void xhci_shutdown(struct usb_hcd *hcd); 1729 int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks); [all …]
|
D | ohci-s3c2410.c | 39 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) in to_s3c2410_info() 44 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() 89 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_s3c2410_hub_status_data() 147 struct usb_hcd *hcd, in ohci_s3c2410_hub_control() 280 struct usb_hcd *hcd; in s3c2410_hcd_oc() 322 usb_hcd_s3c2410_remove(struct usb_hcd *hcd, struct platform_device *dev) in usb_hcd_s3c2410_remove() 343 struct usb_hcd *hcd = NULL; in usb_hcd_s3c2410_probe() 412 ohci_s3c2410_start(struct usb_hcd *hcd) in ohci_s3c2410_start() 483 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_s3c2410_drv_remove() 492 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_suspend() [all …]
|
D | ohci-da8xx.c | 85 static int ohci_da8xx_init(struct usb_hcd *hcd) in ohci_da8xx_init() 129 static void ohci_da8xx_stop(struct usb_hcd *hcd) in ohci_da8xx_stop() 135 static int ohci_da8xx_start(struct usb_hcd *hcd) in ohci_da8xx_start() 150 static int ohci_da8xx_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_da8xx_hub_status_data() 170 static int ohci_da8xx_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_da8xx_hub_control() 296 struct usb_hcd *hcd; in usb_hcd_da8xx_probe() 381 usb_hcd_da8xx_remove(struct usb_hcd *hcd, struct platform_device *pdev) in usb_hcd_da8xx_remove() 401 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_da8xx_drv_remove() 412 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_da8xx_suspend() 427 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_da8xx_resume()
|
D | ohci-sa1111.c | 45 static void dump_hci_status(struct usb_hcd *hcd, const char *label) 58 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() 66 static int __devinit ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() 182 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() 228 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove() 240 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown()
|
D | ohci-ep93xx.c | 47 struct usb_hcd *hcd; in usb_hcd_ep93xx_probe() 99 static void usb_hcd_ep93xx_remove(struct usb_hcd *hcd, in usb_hcd_ep93xx_remove() 110 static int __devinit ohci_ep93xx_start(struct usb_hcd *hcd) in ohci_ep93xx_start() 164 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_ep93xx_drv_remove() 174 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_ep93xx_drv_suspend() 187 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_ep93xx_drv_resume()
|
D | ohci-exynos.c | 21 struct usb_hcd *hcd; 25 static int ohci_exynos_start(struct usb_hcd *hcd) in ohci_exynos_start() 77 struct usb_hcd *hcd; in exynos_ohci_probe() 172 struct usb_hcd *hcd = exynos_ohci->hcd; in exynos_ohci_remove() 193 struct usb_hcd *hcd = exynos_ohci->hcd; in exynos_ohci_shutdown() 203 struct usb_hcd *hcd = exynos_ohci->hcd; in exynos_ohci_suspend() 236 struct usb_hcd *hcd = exynos_ohci->hcd; in exynos_ohci_resume()
|
D | ohci-jz4740.c | 27 static inline struct jz4740_ohci_hcd *hcd_to_jz4740_hcd(struct usb_hcd *hcd) in hcd_to_jz4740_hcd() 32 static inline struct usb_hcd *jz4740_hcd_to_hcd(struct jz4740_ohci_hcd *jz4740_ohci) in jz4740_hcd_to_hcd() 34 return container_of((void *)jz4740_ohci, struct usb_hcd, hcd_priv); in jz4740_hcd_to_hcd() 37 static int ohci_jz4740_start(struct usb_hcd *hcd) in ohci_jz4740_start() 81 static int ohci_jz4740_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_jz4740_hub_control() 151 struct usb_hcd *hcd; in jz4740_ohci_probe() 244 struct usb_hcd *hcd = platform_get_drvdata(pdev); in jz4740_ohci_remove()
|
D | ohci-omap3.c | 38 static int ohci_omap3_init(struct usb_hcd *hcd) in ohci_omap3_init() 47 static int ohci_omap3_start(struct usb_hcd *hcd) in ohci_omap3_start() 131 struct usb_hcd *hcd = NULL; in ohci_hcd_omap3_probe() 215 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_omap3_remove() 227 struct usb_hcd *hcd = dev_get_drvdata(&pdev->dev); in ohci_hcd_omap3_shutdown()
|
D | ohci-platform.c | 19 static int ohci_platform_reset(struct usb_hcd *hcd) in ohci_platform_reset() 39 static int ohci_platform_start(struct usb_hcd *hcd) in ohci_platform_start() 84 struct usb_hcd *hcd; in ohci_platform_probe() 142 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_remove() 162 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_platform_resume()
|
D | ohci-ssb.c | 30 struct ssb_ohci_device *hcd_to_ssb_ohci(struct usb_hcd *hcd) in hcd_to_ssb_ohci() 36 static int ssb_ohci_reset(struct usb_hcd *hcd) in ssb_ohci_reset() 48 static int ssb_ohci_start(struct usb_hcd *hcd) in ssb_ohci_start() 94 struct usb_hcd *hcd = ssb_get_drvdata(dev); in ssb_ohci_detach() 108 struct usb_hcd *hcd; in ssb_ohci_attach() 231 struct usb_hcd *hcd = ssb_get_drvdata(dev); in ssb_ohci_resume()
|
D | ohci-tmio.c | 79 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_write_pm() 95 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_stop_hc() 120 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_start_hc() 134 static int ohci_tmio_start(struct usb_hcd *hcd) in ohci_tmio_start() 195 struct usb_hcd *hcd; in ohci_hcd_tmio_drv_probe() 275 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_remove() 297 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_suspend() 327 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_resume()
|
/linux-3.4.99/drivers/usb/c67x00/ |
D | c67x00-hcd.h | 101 static inline struct c67x00_hcd *hcd_to_c67x00_hcd(struct usb_hcd *hcd) in hcd_to_c67x00_hcd() 106 static inline struct usb_hcd *c67x00_hcd_to_hcd(struct c67x00_hcd *c67x00) in c67x00_hcd_to_hcd() 108 return container_of((void *)c67x00, struct usb_hcd, hcd_priv); in c67x00_hcd_to_hcd() 121 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); 122 int c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 123 void c67x00_endpoint_disable(struct usb_hcd *hcd,
|
D | c67x00-hcd.c | 61 static int c67x00_hub_status_data(struct usb_hcd *hcd, char *buf) in c67x00_hub_status_data() 80 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() 253 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_irq() 280 static int c67x00_hcd_start(struct usb_hcd *hcd) in c67x00_hcd_start() 292 static void c67x00_hcd_stop(struct usb_hcd *hcd) in c67x00_hcd_stop() 297 static int c67x00_hcd_get_frame(struct usb_hcd *hcd) in c67x00_hcd_get_frame() 346 struct usb_hcd *hcd; in c67x00_hcd_probe() 406 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_remove()
|
/linux-3.4.99/drivers/usb/musb/ |
D | musb_host.h | 38 static inline struct usb_hcd *musb_to_hcd(struct musb *musb) in musb_to_hcd() 40 return container_of((void *) musb, struct usb_hcd, hcd_priv); in musb_to_hcd() 43 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb() 87 struct usb_hcd; 89 extern int musb_hub_status_data(struct usb_hcd *hcd, char *buf); 90 extern int musb_hub_control(struct usb_hcd *hcd,
|
/linux-3.4.99/drivers/usb/core/ |
D | hcd.c | 401 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string() 440 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() 690 void usb_hcd_poll_rh_status(struct usb_hcd *hcd) in usb_hcd_poll_rh_status() 738 usb_hcd_poll_rh_status((struct usb_hcd *) _hcd); in rh_timer_func() 743 static int rh_queue_status (struct usb_hcd *hcd, struct urb *urb) in rh_queue_status() 774 static int rh_urb_enqueue (struct usb_hcd *hcd, struct urb *urb) in rh_urb_enqueue() 788 static int usb_rh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in usb_rh_urb_dequeue() 829 struct usb_hcd *usb_hcd; in usb_host_authorized_default_show() local 833 usb_hcd = bus_to_hcd(usb_bus); in usb_host_authorized_default_show() 834 return snprintf(buf, PAGE_SIZE, "%u\n", usb_hcd->authorized_default); in usb_host_authorized_default_show() [all …]
|
D | hcd-pci.c | 56 static void companion_common(struct pci_dev *pdev, struct usb_hcd *hcd, in companion_common() 60 struct usb_hcd *companion_hcd; in companion_common() 113 static void set_hs_companion(struct pci_dev *pdev, struct usb_hcd *hcd) in set_hs_companion() 121 static void clear_hs_companion(struct pci_dev *pdev, struct usb_hcd *hcd) in clear_hs_companion() 136 static void wait_for_companions(struct pci_dev *pdev, struct usb_hcd *hcd) in wait_for_companions() 148 static inline void set_hs_companion(struct pci_dev *d, struct usb_hcd *h) {} in set_hs_companion() 149 static inline void clear_hs_companion(struct pci_dev *d, struct usb_hcd *h) {} in clear_hs_companion() 150 static inline void wait_for_companions(struct pci_dev *d, struct usb_hcd *h) {} in wait_for_companions() 174 struct usb_hcd *hcd; in usb_hcd_pci_probe() 296 struct usb_hcd *hcd; in usb_hcd_pci_remove() [all …]
|
D | buffer.c | 51 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() 83 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() 108 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() 132 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_free()
|
/linux-3.4.99/drivers/staging/usbip/ |
D | vhci_hcd.c | 45 static int vhci_hub_status(struct usb_hcd *hcd, char *buff); 46 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, 48 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, 50 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 51 static int vhci_start(struct usb_hcd *vhci_hcd); 52 static void vhci_stop(struct usb_hcd *hcd); 53 static int vhci_get_frame_number(struct usb_hcd *hcd); 201 static int vhci_hub_status(struct usb_hcd *hcd, char *buf) in vhci_hub_status() 261 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in vhci_hub_control() 506 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, in vhci_urb_enqueue() [all …]
|
/linux-3.4.99/drivers/staging/ozwpan/ |
D | ozhcd.c | 131 struct usb_hcd *hcd; 140 static int oz_hcd_start(struct usb_hcd *hcd); 141 static void oz_hcd_stop(struct usb_hcd *hcd); 142 static void oz_hcd_shutdown(struct usb_hcd *hcd); 143 static int oz_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, 145 static int oz_hcd_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 146 static void oz_hcd_endpoint_disable(struct usb_hcd *hcd, 148 static void oz_hcd_endpoint_reset(struct usb_hcd *hcd, 150 static int oz_hcd_get_frame_number(struct usb_hcd *hcd); 151 static int oz_hcd_hub_status_data(struct usb_hcd *hcd, char *buf); [all …]
|