Lines Matching refs:u2d

40 static struct pxa3xx_u2d_ulpi *u2d;  variable
44 return __raw_readl(u2d->mmio_base + reg); in u2d_readl()
49 __raw_writel(val, u2d->mmio_base + reg); in u2d_writel()
142 err = otg_init(u2d->otg); in pxa310_start_otg_host_transcvr()
148 err = otg_set_vbus(u2d->otg, 1); in pxa310_start_otg_host_transcvr()
154 err = otg_set_host(u2d->otg, host); in pxa310_start_otg_host_transcvr()
176 if (u2d->ulpi_mode & ULPI_IC_6PIN_SERIAL) in pxa310_start_otg_hc()
178 else if (u2d->ulpi_mode & ULPI_IC_3PIN_SERIAL) in pxa310_start_otg_hc()
192 otg_set_host(u2d->otg, NULL); in pxa310_stop_otg_hc()
193 otg_set_vbus(u2d->otg, 0); in pxa310_stop_otg_hc()
194 otg_shutdown(u2d->otg); in pxa310_stop_otg_hc()
222 u2d->ulpi_mode = ulpi_mode; in pxa310_otg_init()
224 u2d->otg = otg_ulpi_create(&pxa310_ulpi_access_ops, ulpi_mode); in pxa310_otg_init()
225 if (!u2d->otg) in pxa310_otg_init()
228 u2d->otg->io_priv = u2d->mmio_base; in pxa310_otg_init()
235 kfree(u2d->otg); in pxa310_otg_exit()
256 if (!u2d) in pxa3xx_u2d_start_hc()
259 clk_enable(u2d->clk); in pxa3xx_u2d_start_hc()
272 if (!u2d) in pxa3xx_u2d_stop_hc()
278 clk_disable(u2d->clk); in pxa3xx_u2d_stop_hc()
287 u2d = kzalloc(sizeof(struct pxa3xx_u2d_ulpi), GFP_KERNEL); in pxa3xx_u2d_probe()
288 if (!u2d) { in pxa3xx_u2d_probe()
293 u2d->clk = clk_get(&pdev->dev, NULL); in pxa3xx_u2d_probe()
294 if (IS_ERR(u2d->clk)) { in pxa3xx_u2d_probe()
296 err = PTR_ERR(u2d->clk); in pxa3xx_u2d_probe()
314 u2d->mmio_base = ioremap(r->start, resource_size(r)); in pxa3xx_u2d_probe()
315 if (!u2d->mmio_base) { in pxa3xx_u2d_probe()
334 platform_set_drvdata(pdev, &u2d); in pxa3xx_u2d_probe()
342 iounmap(u2d->mmio_base); in pxa3xx_u2d_probe()
346 clk_put(u2d->clk); in pxa3xx_u2d_probe()
348 kfree(u2d); in pxa3xx_u2d_probe()
366 iounmap(u2d->mmio_base); in pxa3xx_u2d_remove()
370 clk_put(u2d->clk); in pxa3xx_u2d_remove()
372 kfree(u2d); in pxa3xx_u2d_remove()