Lines Matching refs:tll
203 struct usbtll_omap *tll; in usbtll_omap_probe() local
233 tll = devm_kzalloc(dev, sizeof(*tll) + sizeof(tll->ch_clk[nch]), in usbtll_omap_probe()
235 if (!tll) { in usbtll_omap_probe()
241 tll->base = base; in usbtll_omap_probe()
242 tll->nch = nch; in usbtll_omap_probe()
243 platform_set_drvdata(pdev, tll); in usbtll_omap_probe()
250 tll->ch_clk[i] = clk_get(dev, clkname); in usbtll_omap_probe()
252 if (IS_ERR(tll->ch_clk[i])) in usbtll_omap_probe()
255 clk_prepare(tll->ch_clk[i]); in usbtll_omap_probe()
275 struct usbtll_omap *tll = platform_get_drvdata(pdev); in usbtll_omap_remove() local
282 for (i = 0; i < tll->nch; i++) { in usbtll_omap_remove()
283 if (!IS_ERR(tll->ch_clk[i])) { in usbtll_omap_remove()
284 clk_unprepare(tll->ch_clk[i]); in usbtll_omap_remove()
285 clk_put(tll->ch_clk[i]); in usbtll_omap_remove()
314 struct usbtll_omap *tll; in omap_tll_init() local
322 tll = dev_get_drvdata(tll_dev); in omap_tll_init()
324 for (i = 0; i < tll->nch; i++) in omap_tll_init()
328 void __iomem *base = tll->base; in omap_tll_init()
340 for (i = 0; i < tll->nch; i++) { in omap_tll_init()
388 struct usbtll_omap *tll; in omap_tll_enable() local
396 tll = dev_get_drvdata(tll_dev); in omap_tll_enable()
398 for (i = 0; i < tll->nch; i++) { in omap_tll_enable()
402 if (IS_ERR(tll->ch_clk[i])) in omap_tll_enable()
405 r = clk_enable(tll->ch_clk[i]); in omap_tll_enable()
422 struct usbtll_omap *tll; in omap_tll_disable() local
428 tll = dev_get_drvdata(tll_dev); in omap_tll_disable()
430 for (i = 0; i < tll->nch; i++) { in omap_tll_disable()
432 if (!IS_ERR(tll->ch_clk[i])) in omap_tll_disable()
433 clk_disable(tll->ch_clk[i]); in omap_tll_disable()