Lines Matching refs:tll

218 	struct usbtll_omap			*tll;  in usbtll_omap_probe()  local
249 tll = devm_kzalloc(dev, sizeof(*tll) + sizeof(tll->ch_clk[nch]), in usbtll_omap_probe()
251 if (!tll) { in usbtll_omap_probe()
257 tll->base = base; in usbtll_omap_probe()
258 tll->nch = nch; in usbtll_omap_probe()
259 platform_set_drvdata(pdev, tll); in usbtll_omap_probe()
266 tll->ch_clk[i] = clk_get(dev, clkname); in usbtll_omap_probe()
268 if (IS_ERR(tll->ch_clk[i])) in usbtll_omap_probe()
271 clk_prepare(tll->ch_clk[i]); in usbtll_omap_probe()
291 struct usbtll_omap *tll = platform_get_drvdata(pdev); in usbtll_omap_remove() local
298 for (i = 0; i < tll->nch; i++) { in usbtll_omap_remove()
299 if (!IS_ERR(tll->ch_clk[i])) { in usbtll_omap_remove()
300 clk_unprepare(tll->ch_clk[i]); in usbtll_omap_remove()
301 clk_put(tll->ch_clk[i]); in usbtll_omap_remove()
330 struct usbtll_omap *tll; in omap_tll_init() local
338 tll = dev_get_drvdata(tll_dev); in omap_tll_init()
340 for (i = 0; i < tll->nch; i++) in omap_tll_init()
344 void __iomem *base = tll->base; in omap_tll_init()
356 for (i = 0; i < tll->nch; i++) { in omap_tll_init()
404 struct usbtll_omap *tll; in omap_tll_enable() local
412 tll = dev_get_drvdata(tll_dev); in omap_tll_enable()
414 for (i = 0; i < tll->nch; i++) { in omap_tll_enable()
418 if (IS_ERR(tll->ch_clk[i])) in omap_tll_enable()
421 r = clk_enable(tll->ch_clk[i]); in omap_tll_enable()
438 struct usbtll_omap *tll; in omap_tll_disable() local
444 tll = dev_get_drvdata(tll_dev); in omap_tll_disable()
446 for (i = 0; i < tll->nch; i++) { in omap_tll_disable()
448 if (!IS_ERR(tll->ch_clk[i])) in omap_tll_disable()
449 clk_disable(tll->ch_clk[i]); in omap_tll_disable()