Lines Matching defs:c67x00
3 * c67x00-drv.c: Cypress C67X00 USB Common infrastructure
11 * This file implements the common infrastructure for using the c67x00.
16 * The c67x00 has 2 SIE's (serial interface engine) which can be configured
29 #include <linux/usb/c67x00.h>
31 #include "c67x00.h"
32 #include "c67x00-hcd.h"
74 struct c67x00_device *c67x00 = __dev;
79 int_status = c67x00_ll_hpi_status(c67x00);
84 c67x00_ll_irq(c67x00, int_status);
86 sie = &c67x00->sie[i];
89 msg = c67x00_ll_fetch_siemsg(c67x00, i);
93 int_status = c67x00_ll_hpi_status(c67x00);
97 dev_warn(&c67x00->pdev->dev, "Not all interrupts handled! "
107 struct c67x00_device *c67x00;
124 c67x00 = kzalloc(sizeof(*c67x00), GFP_KERNEL);
125 if (!c67x00)
134 c67x00->hpi.base = ioremap(res->start, resource_size(res));
135 if (!c67x00->hpi.base) {
141 spin_lock_init(&c67x00->hpi.lock);
142 c67x00->hpi.regstep = pdata->hpi_regstep;
143 c67x00->pdata = dev_get_platdata(&pdev->dev);
144 c67x00->pdev = pdev;
146 c67x00_ll_init(c67x00);
147 c67x00_ll_hpi_reg_init(c67x00);
149 ret = request_irq(res2->start, c67x00_irq, 0, pdev->name, c67x00);
155 ret = c67x00_ll_reset(c67x00);
162 c67x00_probe_sie(&c67x00->sie[i], c67x00, i);
164 platform_set_drvdata(pdev, c67x00);
169 free_irq(res2->start, c67x00);
171 iounmap(c67x00->hpi.base);
175 kfree(c67x00);
182 struct c67x00_device *c67x00 = platform_get_drvdata(pdev);
187 c67x00_remove_sie(&c67x00->sie[i]);
189 c67x00_ll_release(c67x00);
192 free_irq(res->start, c67x00);
194 iounmap(c67x00->hpi.base);
199 kfree(c67x00);
206 .name = "c67x00",
215 MODULE_ALIAS("platform:c67x00");