Home
last modified time | relevance | path

Searched refs:usb_hcd (Results 1 – 25 of 135) sorted by relevance

123456

/drivers/usb/host/whci/
Dhcd.c32 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 …]
/drivers/usb/wusbcore/
Dwusbhc.h248 struct usb_hcd usb_hcd; /* HAS TO BE 1st */ member
306 #define usb_hcd_to_wusbhc(u) container_of((u), struct wusbhc, usb_hcd)
336 struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) in usb_hcd_get_by_usb_dev()
338 struct usb_hcd *usb_hcd; in usb_hcd_get_by_usb_dev() local
339 usb_hcd = container_of(usb_dev->bus, struct usb_hcd, self); in usb_hcd_get_by_usb_dev()
340 return usb_get_hcd(usb_hcd); in usb_hcd_get_by_usb_dev()
350 return usb_get_hcd(&wusbhc->usb_hcd) ? wusbhc : NULL; in wusbhc_get()
366 struct usb_hcd *usb_hcd; in wusbhc_get_by_usb_dev() local
373 usb_hcd = usb_hcd_get_by_usb_dev(usb_dev); in wusbhc_get_by_usb_dev()
374 if (usb_hcd == NULL) in wusbhc_get_by_usb_dev()
[all …]
Drh.c141 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()
360 int wusbhc_rh_control(struct usb_hcd *usb_hcd, u16 reqntype, u16 wValue, in wusbhc_rh_control() argument
364 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_control()
395 "UNIMPLEMENTED\n", __func__, usb_hcd, wusbhc, reqntype, in wusbhc_rh_control()
404 int wusbhc_rh_start_port_reset(struct usb_hcd *usb_hcd, unsigned port_idx) in wusbhc_rh_start_port_reset() argument
406 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in wusbhc_rh_start_port_reset()
408 __func__, usb_hcd, wusbhc, port_idx); in wusbhc_rh_start_port_reset()
/drivers/usb/host/
Dhwa-hc.c117 static int hwahc_op_reset(struct usb_hcd *usb_hcd) in hwahc_op_reset() argument
120 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_reset()
144 static int hwahc_op_start(struct usb_hcd *usb_hcd) in hwahc_op_start() argument
148 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_start()
160 usb_hcd->uses_new_polling = 1; in hwahc_op_start()
161 set_bit(HCD_FLAG_POLL_RH, &usb_hcd->flags); in hwahc_op_start()
162 usb_hcd->state = HC_STATE_RUNNING; in hwahc_op_start()
168 pm_runtime_get_noresume(&usb_hcd->self.root_hub->dev); in hwahc_op_start()
188 static void hwahc_op_stop(struct usb_hcd *usb_hcd) in hwahc_op_stop() argument
190 struct wusbhc *wusbhc = usb_hcd_to_wusbhc(usb_hcd); in hwahc_op_stop()
[all …]
Dxhci.h1497 static inline unsigned int hcd_index(struct usb_hcd *hcd) in hcd_index()
1515 struct usb_hcd *main_hcd;
1516 struct usb_hcd *shared_hcd;
1675 int (*reset)(struct usb_hcd *hcd);
1676 int (*start)(struct usb_hcd *hcd);
1682 static inline struct xhci_hcd *hcd_to_xhci(struct usb_hcd *hcd) in hcd_to_xhci()
1684 struct usb_hcd *primary_hcd; in hcd_to_xhci()
1694 static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) in xhci_to_hcd()
1832 int xhci_init(struct usb_hcd *hcd);
1833 int xhci_run(struct usb_hcd *hcd);
[all …]
Dohci-pci.c34 static int broken_suspend(struct usb_hcd *hcd) in broken_suspend()
43 static int ohci_quirk_amd756(struct usb_hcd *hcd) in ohci_quirk_amd756()
58 static int ohci_quirk_opti(struct usb_hcd *hcd) in ohci_quirk_opti()
71 static int ohci_quirk_ns(struct usb_hcd *hcd) in ohci_quirk_ns()
93 static int ohci_quirk_zfmicro(struct usb_hcd *hcd) in ohci_quirk_zfmicro()
106 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()
225 static int ohci_pci_reset (struct usb_hcd *hcd) in ohci_pci_reset()
236 int (*quirk)(struct usb_hcd *ohci); in ohci_pci_reset()
Dmax3421-hcd.c331 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421()
336 static inline struct usb_hcd *
339 return container_of((void *) max3421_hcd, struct usb_hcd, hcd_priv); in max3421_to_hcd()
343 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8()
369 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8()
393 spi_rd_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) in spi_rd_buf()
419 spi_wr_buf(struct usb_hcd *hcd, unsigned int reg, void *buf, size_t len) in spi_wr_buf()
459 max3421_set_speed(struct usb_hcd *hcd, struct usb_device *dev) in max3421_set_speed()
485 max3421_set_address(struct usb_hcd *hcd, struct usb_device *dev, int epnum) in max3421_set_address()
507 max3421_ctrl_setup(struct usb_hcd *hcd, struct urb *urb) in max3421_ctrl_setup()
[all …]
Dxhci-rcar.h15 void xhci_rcar_start(struct usb_hcd *hcd);
16 int xhci_rcar_init_quirk(struct usb_hcd *hcd);
18 static inline void xhci_rcar_start(struct usb_hcd *hcd) in xhci_rcar_start()
22 static inline int xhci_rcar_init_quirk(struct usb_hcd *hcd) in xhci_rcar_init_quirk()
Dohci-da8xx.c85 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()
359 usb_hcd_da8xx_remove(struct usb_hcd *hcd, struct platform_device *pdev) in usb_hcd_da8xx_remove()
375 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_da8xx_drv_remove()
386 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_da8xx_suspend()
408 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_da8xx_resume()
Dohci-s3c2410.c52 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) in to_s3c2410_info()
57 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc()
102 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_s3c2410_hub_status_data()
160 struct usb_hcd *hcd, in ohci_s3c2410_hub_control()
293 struct usb_hcd *hcd; in s3c2410_hcd_oc()
335 usb_hcd_s3c2410_remove(struct usb_hcd *hcd, struct platform_device *dev) in usb_hcd_s3c2410_remove()
354 struct usb_hcd *hcd = NULL; in usb_hcd_s3c2410_probe()
416 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_s3c2410_drv_remove()
425 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_suspend()
441 struct usb_hcd *hcd = dev_get_drvdata(dev); in ohci_hcd_s3c2410_drv_resume()
Dohci-jz4740.c27 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()
222 struct usb_hcd *hcd = platform_get_drvdata(pdev); in jz4740_ohci_remove()
Dxhci-plat.c30 static int xhci_plat_setup(struct usb_hcd *hcd);
31 static int xhci_plat_start(struct usb_hcd *hcd);
50 static int xhci_plat_setup(struct usb_hcd *hcd) in xhci_plat_setup()
65 static int xhci_plat_start(struct usb_hcd *hcd) in xhci_plat_start()
83 struct usb_hcd *hcd; in xhci_plat_probe()
212 struct usb_hcd *hcd = platform_get_drvdata(dev); in xhci_plat_remove()
234 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_suspend()
250 struct usb_hcd *hcd = dev_get_drvdata(dev); in xhci_plat_resume()
Dohci-sa1111.c45 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 ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start()
182 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe()
236 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_remove()
248 struct usb_hcd *hcd = sa1111_get_drvdata(dev); in ohci_hcd_sa1111_shutdown()
Dehci-sead3.c25 static int ehci_sead3_setup(struct usb_hcd *hcd) in ehci_sead3_setup()
97 struct usb_hcd *hcd; in ehci_hcd_sead3_drv_probe()
139 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ehci_hcd_sead3_drv_remove()
150 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_hcd_sead3_drv_suspend()
158 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_hcd_sead3_drv_resume()
Dohci-exynos.c85 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_enable()
103 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_phy_disable()
115 struct usb_hcd *hcd; in exynos_ohci_probe()
201 struct usb_hcd *hcd = platform_get_drvdata(pdev); in exynos_ohci_remove()
217 struct usb_hcd *hcd = platform_get_drvdata(pdev); in exynos_ohci_shutdown()
226 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_suspend()
243 struct usb_hcd *hcd = dev_get_drvdata(dev); in exynos_ohci_resume()
Dehci-atmel.c71 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_start_ehci()
80 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_stop_ehci()
91 struct usb_hcd *hcd; in ehci_atmel_drv_probe()
178 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ehci_atmel_drv_remove()
191 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_atmel_drv_suspend()
205 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_atmel_drv_resume()
Dohci-tmio.c78 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_write_pm()
94 struct usb_hcd *hcd = platform_get_drvdata(dev); in tmio_stop_hc()
119 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()
196 struct usb_hcd *hcd; in ohci_hcd_tmio_drv_probe()
280 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_remove()
300 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_suspend()
330 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_hcd_tmio_drv_resume()
Dohci-sm501.c21 static int ohci_sm501_init(struct usb_hcd *hcd) in ohci_sm501_init()
26 static int ohci_sm501_start(struct usb_hcd *hcd) in ohci_sm501_start()
93 struct usb_hcd *hcd = NULL; in ohci_hcd_sm501_drv_probe()
195 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_hcd_sm501_drv_remove()
221 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_sm501_suspend()
241 struct usb_hcd *hcd = platform_get_drvdata(pdev); in ohci_sm501_resume()
/drivers/usb/core/
Dhcd-pci.c56 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd,
57 struct pci_dev *companion, struct usb_hcd *companion_hcd);
60 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, in for_each_companion()
64 struct usb_hcd *companion_hcd; in for_each_companion()
99 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_pre_add()
100 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_pre_add()
116 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, in ehci_post_add()
117 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_post_add()
137 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, in non_ehci_add()
138 struct pci_dev *companion, struct usb_hcd *companion_hcd) in non_ehci_add()
[all …]
Dhcd.c426 rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) in rh_string()
465 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control()
730 void usb_hcd_poll_rh_status(struct usb_hcd *hcd) in usb_hcd_poll_rh_status()
783 usb_hcd_poll_rh_status((struct usb_hcd *) _hcd); in rh_timer_func()
788 static int rh_queue_status (struct usb_hcd *hcd, struct urb *urb) in rh_queue_status()
819 static int rh_urb_enqueue (struct usb_hcd *hcd, struct urb *urb) in rh_urb_enqueue()
833 static int usb_rh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in usb_rh_urb_dequeue()
870 struct usb_hcd *hcd; in authorized_default_show()
884 struct usb_hcd *hcd; in authorized_default_store()
913 struct usb_hcd *hcd = bus_to_hcd(usb_dev->bus); in interface_authorized_default_show()
[all …]
/drivers/usb/c67x00/
Dc67x00-hcd.h101 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,
Dc67x00-hcd.c61 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()
408 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00); in c67x00_hcd_remove()
/drivers/usb/usbip/
Dvhci_hcd.c46 static int vhci_hub_status(struct usb_hcd *hcd, char *buff);
47 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
49 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
51 static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
52 static int vhci_start(struct usb_hcd *vhci_hcd);
53 static void vhci_stop(struct usb_hcd *hcd);
54 static int vhci_get_frame_number(struct usb_hcd *hcd);
183 static int vhci_hub_status(struct usb_hcd *hcd, char *buf) in vhci_hub_status()
238 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in vhci_hub_control()
471 static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, in vhci_urb_enqueue()
[all …]
/drivers/usb/musb/
Dmusb_host.h80 extern struct musb *hcd_to_musb(struct usb_hcd *);
99 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb()
135 struct usb_hcd;
137 extern int musb_hub_status_data(struct usb_hcd *hcd, char *buf);
138 extern int musb_hub_control(struct usb_hcd *hcd,
/drivers/usb/isp1760/
Disp1760-hcd.c37 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
40 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv()
335 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem()
355 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem()
378 static int handshake(struct usb_hcd *hcd, u32 reg, in handshake()
397 static int ehci_reset(struct usb_hcd *hcd) in ehci_reset()
436 static int priv_init(struct usb_hcd *hcd) in priv_init()
464 static int isp1760_hc_setup(struct usb_hcd *hcd) in isp1760_hc_setup()
670 static void isp1760_urb_done(struct usb_hcd *hcd, struct urb *urb) in isp1760_urb_done()
720 static void start_bus_transfer(struct usb_hcd *hcd, u32 ptd_offset, int slot, in start_bus_transfer()
[all …]

123456