Home
last modified time | relevance | path

Searched full:hcd (Results 1 – 25 of 211) sorted by relevance

123456789

/linux/drivers/usb/isp1760/
H A Disp1760-hcd.c23 #include <linux/usb/hcd.h>
34 #include "isp1760-hcd.h"
41 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
44 static inline struct isp1760_hcd *hcd_to_priv(struct usb_hcd *hcd) in hcd_to_priv() argument
46 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv()
150 /* the rest is HCD-private */
200 static u32 isp1760_hcd_read(struct usb_hcd *hcd, u32 field) in isp1760_hcd_read() argument
202 struct isp1760_hcd *priv = hcd_to_priv(hcd); in isp1760_hcd_read()
225 static void isp1760_hcd_write(struct usb_hcd *hcd, u32 field, u32 val) in isp1760_hcd_write() argument
227 struct isp1760_hcd *priv = hcd_to_priv(hcd); in isp1760_hcd_write()
[all …]
/linux/drivers/usb/host/
H A Dohci-da8xx.c3 * OHCI HCD (Host Controller Driver) for USB.
24 #include <linux/usb/hcd.h>
34 static int (*orig_ohci_hub_control)(struct usb_hcd *hcd, u16 typeReq,
36 static int (*orig_ohci_hub_status_data)(struct usb_hcd *hcd, char *buf);
39 struct usb_hcd *hcd; member
47 #define to_da8xx_ohci(hcd) (struct da8xx_ohci_hcd *)(hcd_to_ohci(hcd)->priv) argument
52 static int ohci_da8xx_enable(struct usb_hcd *hcd) in ohci_da8xx_enable() argument
54 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_enable()
79 static void ohci_da8xx_disable(struct usb_hcd *hcd) in ohci_da8xx_disable() argument
81 struct da8xx_ohci_hcd *da8xx_ohci = to_da8xx_ohci(hcd); in ohci_da8xx_disable()
[all …]
H A Dohci-ps3.c12 static int ps3_ohci_hc_reset(struct usb_hcd *hcd) in ps3_ohci_hc_reset() argument
14 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_reset()
21 static int ps3_ohci_hc_start(struct usb_hcd *hcd) in ps3_ohci_hc_start() argument
24 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ps3_ohci_hc_start()
36 dev_err(hcd->self.controller, "can't start %s\n", in ps3_ohci_hc_start()
37 hcd->self.bus_name); in ps3_ohci_hc_start()
38 ohci_stop(hcd); in ps3_ohci_hc_start()
70 struct usb_hcd *hcd; in ps3_ohci_probe() local
122 hcd = usb_create_hcd(&ps3_ohci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ohci_probe()
124 if (!hcd) { in ps3_ohci_probe()
[all …]
H A Dehci-fsl.c21 #include <linux/usb/hcd.h>
50 struct usb_hcd *hcd; in fsl_ehci_drv_probe() local
83 hcd = __usb_create_hcd(&fsl_ehci_hc_driver, pdev->dev.parent, in fsl_ehci_drv_probe()
85 if (!hcd) { in fsl_ehci_drv_probe()
90 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in fsl_ehci_drv_probe()
91 if (IS_ERR(hcd->regs)) { in fsl_ehci_drv_probe()
92 retval = PTR_ERR(hcd->regs); in fsl_ehci_drv_probe()
96 hcd->rsrc_start = res->start; in fsl_ehci_drv_probe()
97 hcd->rsrc_len = resource_size(res); in fsl_ehci_drv_probe()
99 pdata->regs = hcd->regs; in fsl_ehci_drv_probe()
[all …]
H A Dmax3421-hcd.c18 * For USB HCD implementation.
63 #include <linux/usb/hcd.h>
66 #include <linux/platform_data/max3421-hcd.h>
132 * SPI-thread without acquiring the HCD lock:
329 hcd_to_max3421(struct usb_hcd *hcd) in hcd_to_max3421() argument
331 return (struct max3421_hcd *) hcd->hcd_priv; in hcd_to_max3421()
341 spi_rd8(struct usb_hcd *hcd, unsigned int reg) in spi_rd8() argument
343 struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd); in spi_rd8()
344 struct spi_device *spi = to_spi_device(hcd->self.controller); in spi_rd8()
367 spi_wr8(struct usb_hcd *hcd, unsigned int reg, u8 val) in spi_wr8() argument
[all …]
H A Dohci-omap.c3 * OHCI HCD (Host Controller Driver) for USB.
35 #include <linux/usb/hcd.h>
72 struct usb_hcd *hcd = ohci_to_hcd(ohci); in start_hnp() local
73 const unsigned port = hcd->self.otg_port - 1; in start_hnp()
77 otg_start_hnp(hcd->usb_phy->otg); in start_hnp()
80 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp()
90 static int ohci_omap_reset(struct usb_hcd *hcd) in ohci_omap_reset() argument
92 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_omap_reset()
93 struct omap_usb_config *config = dev_get_platdata(hcd->self.controller); in ohci_omap_reset()
94 struct ohci_omap_priv *priv = hcd_to_ohci_omap_priv(hcd); in ohci_omap_reset()
[all …]
H A Dehci-sh.c14 struct usb_hcd *hcd; member
17 static int ehci_sh_reset(struct usb_hcd *hcd) in ehci_sh_reset() argument
19 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_sh_reset()
21 ehci->caps = hcd->regs; in ehci_sh_reset()
23 return ehci_setup(hcd); in ehci_sh_reset()
78 struct usb_hcd *hcd; in ehci_hcd_sh_probe() local
90 /* initialize hcd */ in ehci_hcd_sh_probe()
91 hcd = usb_create_hcd(&ehci_sh_hc_driver, &pdev->dev, in ehci_hcd_sh_probe()
93 if (!hcd) { in ehci_hcd_sh_probe()
98 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in ehci_hcd_sh_probe()
[all …]
H A Dehci-ps3.c40 static int ps3_ehci_hc_reset(struct usb_hcd *hcd) in ps3_ehci_hc_reset() argument
43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset()
46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset()
48 result = ehci_setup(hcd); in ps3_ehci_hc_reset()
87 struct usb_hcd *hcd; in ps3_ehci_probe() local
138 hcd = usb_create_hcd(&ps3_ehci_hc_driver, &dev->core, dev_name(&dev->core)); in ps3_ehci_probe()
140 if (!hcd) { in ps3_ehci_probe()
147 hcd->rsrc_start = dev->m_region->lpar_addr; in ps3_ehci_probe()
148 hcd->rsrc_len = dev->m_region->len; in ps3_ehci_probe()
150 if (!request_mem_region(hcd->rsrc_start, hcd->rsrc_len, hcd_name)) in ps3_ehci_probe()
[all …]
H A Dohci-sm501.c3 * OHCI HCD (Host Controller Driver) for USB.
22 static int ohci_sm501_init(struct usb_hcd *hcd) in ohci_sm501_init() argument
24 return ohci_init(hcd_to_ohci(hcd)); in ohci_sm501_init()
27 static int ohci_sm501_start(struct usb_hcd *hcd) in ohci_sm501_start() argument
29 struct device *dev = hcd->self.controller; in ohci_sm501_start()
32 ret = ohci_run(hcd_to_ohci(hcd)); in ohci_sm501_start()
34 dev_err(dev, "can't start %s", hcd->self.bus_name); in ohci_sm501_start()
35 ohci_stop(hcd); in ohci_sm501_start()
94 struct usb_hcd *hcd = NULL; in ohci_hcd_sm501_drv_probe() local
121 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ohci_hcd_sm501_drv_probe()
[all …]
H A DMakefile9 fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o
14 xhci-hcd-y := xhci.o xhci-mem.o xhci-ext-caps.o
15 xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
16 xhci-hcd-y += xhci-trace.o
19 xhci-hcd-y += xhci-dbgcap.o xhci-dbgtty.o
22 xhci-mtk-hcd-y := xhci-mtk.o xhci-mtk-sch.o
24 xhci-plat-hcd-y := xhci-plat.o
26 xhci-plat-hcd-y += xhci-mvebu.o
29 xhci-hcd-y += xhci-debugfs.o
32 xhci-rcar-hcd-y += xhci-rcar.o
[all …]
H A Dohci-spear.c3 * OHCI HCD (Host Controller Driver) for USB.
20 #include <linux/usb/hcd.h>
30 #define to_spear_ohci(hcd) (struct spear_ohci *)(hcd_to_ohci(hcd)->priv) argument
37 struct usb_hcd *hcd = NULL; in spear_ohci_hcd_drv_probe() local
65 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ohci_hcd_drv_probe()
66 if (!hcd) { in spear_ohci_hcd_drv_probe()
71 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in spear_ohci_hcd_drv_probe()
72 if (IS_ERR(hcd->regs)) { in spear_ohci_hcd_drv_probe()
73 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
77 hcd->rsrc_start = res->start; in spear_ohci_hcd_drv_probe()
[all …]
H A Dohci-s3c2410.c3 * OHCI HCD (Host Controller Driver) for USB.
30 #include <linux/usb/hcd.h>
37 /* clock device associated with the hcd */
53 static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) in to_s3c2410_info() argument
55 return dev_get_platdata(hcd->self.controller); in to_s3c2410_info()
58 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() argument
70 info->hcd = hcd; in s3c2410_start_hc()
86 info->hcd = NULL; in s3c2410_stop_hc()
103 ohci_s3c2410_hub_status_data(struct usb_hcd *hcd, char *buf) in ohci_s3c2410_hub_status_data() argument
105 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd); in ohci_s3c2410_hub_status_data()
[all …]
H A Dehci-spear.c3 * Driver for EHCI HCD on SPEAr SOC
21 #include <linux/usb/hcd.h>
31 #define to_spear_ehci(hcd) (struct spear_ehci *)(hcd_to_ehci(hcd)->priv) argument
37 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_suspend() local
40 return ehci_suspend(hcd, do_wakeup); in ehci_spear_drv_suspend()
45 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_spear_drv_resume() local
47 ehci_resume(hcd, false); in ehci_spear_drv_resume()
56 struct usb_hcd *hcd ; in spear_ehci_hcd_drv_probe() local
88 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in spear_ehci_hcd_drv_probe()
89 if (!hcd) { in spear_ehci_hcd_drv_probe()
[all …]
H A Dehci-xilinx-of.c3 * EHCI HCD (Host Controller Driver) for USB.
24 * @hcd: Pointer to the usb_hcd device to which the host controller bound
38 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_xilinx_port_handed_over() argument
40 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over()
41 if (hcd->has_tt) { in ehci_xilinx_port_handed_over()
42 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
45 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
48 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
50 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
52 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
[all …]
H A Dohci-sa1111.c3 * OHCI HCD (Host Controller Driver) for USB.
44 static void dump_hci_status(struct usb_hcd *hcd, const char *label)
46 unsigned long status = readl_relaxed(hcd->regs + USB_STATUS);
57 static int ohci_sa1111_reset(struct usb_hcd *hcd) in ohci_sa1111_reset() argument
59 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_reset()
65 static int ohci_sa1111_start(struct usb_hcd *hcd) in ohci_sa1111_start() argument
67 struct ohci_hcd *ohci = hcd_to_ohci(hcd); in ohci_sa1111_start()
73 ohci_stop(hcd); in ohci_sa1111_start()
174 * then invokes the start() method for the HCD associated with it.
178 struct usb_hcd *hcd; in ohci_hcd_sa1111_probe() local
[all …]
H A Dehci-mv.c18 #include <linux/usb/hcd.h>
66 static int mv_ehci_reset(struct usb_hcd *hcd) in mv_ehci_reset() argument
68 struct device *dev = hcd->self.controller; in mv_ehci_reset()
69 struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd); in mv_ehci_reset()
70 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in mv_ehci_reset()
79 hcd->has_tt = 1; in mv_ehci_reset()
81 retval = ehci_setup(hcd); in mv_ehci_reset()
106 struct usb_hcd *hcd; in mv_ehci_probe() local
117 hcd = usb_create_hcd(&ehci_platform_hc_driver, &pdev->dev, dev_name(&pdev->dev)); in mv_ehci_probe()
118 if (!hcd) in mv_ehci_probe()
[all …]
H A Dehci-npcm7xx.c3 * Nuvoton NPCM7xx driver for EHCI HCD
21 #include <linux/usb/hcd.h>
31 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_npcm7xx_drv_suspend() local
34 return ehci_suspend(hcd, do_wakeup); in ehci_npcm7xx_drv_suspend()
39 struct usb_hcd *hcd = dev_get_drvdata(dev); in ehci_npcm7xx_drv_resume() local
41 ehci_resume(hcd, false); in ehci_npcm7xx_drv_resume()
50 struct usb_hcd *hcd; in npcm7xx_ehci_hcd_drv_probe() local
76 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in npcm7xx_ehci_hcd_drv_probe()
77 if (!hcd) { in npcm7xx_ehci_hcd_drv_probe()
82 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in npcm7xx_ehci_hcd_drv_probe()
[all …]
H A Dehci-atmel.c20 #include <linux/usb/hcd.h>
71 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_start_ehci() local
72 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in atmel_start_ehci()
80 struct usb_hcd *hcd = platform_get_drvdata(pdev); in atmel_stop_ehci() local
81 struct atmel_ehci_priv *atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in atmel_stop_ehci()
91 struct usb_hcd *hcd; in ehci_atmel_drv_probe() local
118 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev)); in ehci_atmel_drv_probe()
119 if (!hcd) { in ehci_atmel_drv_probe()
123 atmel_ehci = hcd_to_atmel_ehci_priv(hcd); in ehci_atmel_drv_probe()
125 hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in ehci_atmel_drv_probe()
[all …]
H A Dehci-st.c24 #include <linux/usb/hcd.h>
48 static int st_ehci_platform_reset(struct usb_hcd *hcd) in st_ehci_platform_reset() argument
50 struct platform_device *pdev = to_platform_device(hcd->self.controller); in st_ehci_platform_reset()
52 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in st_ehci_platform_reset()
57 writel(threshold, hcd->regs + AHB2STBUS_INSREG01); in st_ehci_platform_reset()
59 ehci->caps = hcd->regs + pdata->caps_offset; in st_ehci_platform_reset()
60 return ehci_setup(hcd); in st_ehci_platform_reset()
65 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_on() local
66 struct st_ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in st_ehci_platform_power_on()
116 struct usb_hcd *hcd = platform_get_drvdata(dev); in st_ehci_platform_power_off() local
[all …]
H A Duhci-grlib.c3 * UHCI HCD (Host Controller Driver) for GRLIB GRUSBHC
7 * This file is based on UHCI PCI HCD:
27 static int uhci_grlib_init(struct usb_hcd *hcd) in uhci_grlib_init() argument
29 struct uhci_hcd *uhci = hcd_to_uhci(hcd); in uhci_grlib_init()
45 uhci->rh_numports = uhci_count_ports(hcd); in uhci_grlib_init()
94 struct usb_hcd *hcd; in uhci_hcd_grlib_probe() local
111 hcd = usb_create_hcd(&uhci_grlib_hc_driver, &op->dev, in uhci_hcd_grlib_probe()
113 if (!hcd) in uhci_hcd_grlib_probe()
116 hcd->rsrc_start = res.start; in uhci_hcd_grlib_probe()
117 hcd->rsrc_len = resource_size(&res); in uhci_hcd_grlib_probe()
[all …]
H A Dehci-platform.c35 #include <linux/usb/hcd.h>
56 static int ehci_platform_reset(struct usb_hcd *hcd) in ehci_platform_reset() argument
58 struct platform_device *pdev = to_platform_device(hcd->self.controller); in ehci_platform_reset()
60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_platform_reset()
66 retval = pdata->pre_setup(hcd); in ehci_platform_reset()
71 ehci->caps = hcd->regs + pdata->caps_offset; in ehci_platform_reset()
72 retval = ehci_setup(hcd); in ehci_platform_reset()
88 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_on() local
89 struct ehci_platform_priv *priv = hcd_to_ehci_priv(hcd); in ehci_platform_power_on()
109 struct usb_hcd *hcd = platform_get_drvdata(dev); in ehci_platform_power_off() local
[all …]
/linux/drivers/usb/core/
H A Dbuffer.c3 * DMA memory management for framework level HCD code (hc_driver)
21 #include <linux/usb/hcd.h>
53 * @hcd: the bus whose buffer pools are to be initialized
65 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() argument
70 if (hcd->localmem_pool || !hcd_uses_dma(hcd)) in hcd_buffer_create()
78 hcd->pool[i] = dma_pool_create(name, hcd->self.sysdev, in hcd_buffer_create()
80 if (!hcd->pool[i]) { in hcd_buffer_create()
81 hcd_buffer_destroy(hcd); in hcd_buffer_create()
91 * @hcd: the bus whose buffer pools are to be destroyed
97 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() argument
[all …]
/linux/drivers/staging/greybus/
H A Dusb.c12 #include <linux/usb/hcd.h>
38 static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd) in to_gb_usb_device() argument
40 return (struct gb_usb_device *)hcd->hcd_priv; in to_gb_usb_device()
48 static void hcd_stop(struct usb_hcd *hcd) in hcd_stop() argument
50 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_stop()
56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret); in hcd_stop()
59 static int hcd_start(struct usb_hcd *hcd) in hcd_start() argument
61 struct usb_bus *bus = hcd_to_bus(hcd); in hcd_start()
62 struct gb_usb_device *dev = to_gb_usb_device(hcd); in hcd_start()
68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret); in hcd_start()
[all …]
/linux/drivers/usb/chipidea/
H A Dhost.c13 #include <linux/usb/hcd.h>
25 static int (*orig_bus_suspend)(struct usb_hcd *hcd);
37 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable) in ehci_ci_portpower() argument
39 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower()
41 struct device *dev = hcd->self.controller; in ehci_ci_portpower()
83 static int ehci_ci_reset(struct usb_hcd *hcd) in ehci_ci_reset() argument
85 struct device *dev = hcd->self.controller; in ehci_ci_reset()
87 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset()
90 ret = ehci_setup(hcd); in ehci_ci_reset()
116 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
[all …]
/linux/include/linux/usb/
H A Dhcd.h73 struct usb_bus self; /* hcd is-a bus */
79 * hcd->driver->flags & HCD_MASK
119 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) argument
120 #define HCD_POLL_RH(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_RH)) argument
121 #define HCD_POLL_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_POLL_PENDING)) argument
122 #define HCD_WAKEUP_PENDING(hcd) ((hcd)->flags & (1U << HCD_FLAG_WAKEUP_PENDING)) argument
123 #define HCD_RH_RUNNING(hcd) ((hcd)->flags & (1U << HCD_FLAG_RH_RUNNING)) argument
124 #define HCD_DEAD(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEAD)) argument
125 #define HCD_DEFER_RH_REGISTER(hcd) ((hcd)->flags & (1U << HCD_FLAG_DEFER_RH_REGISTER)) argument
132 #define HCD_INTF_AUTHORIZED(hcd) \ argument
[all …]

123456789