Lines Matching refs:tll
209 struct usbtll_omap *tll; in usbtll_omap_probe() local
240 tll = devm_kzalloc(dev, sizeof(*tll) + sizeof(tll->ch_clk[nch]), in usbtll_omap_probe()
242 if (!tll) { in usbtll_omap_probe()
248 tll->base = base; in usbtll_omap_probe()
249 tll->nch = nch; in usbtll_omap_probe()
250 platform_set_drvdata(pdev, tll); in usbtll_omap_probe()
257 tll->ch_clk[i] = clk_get(dev, clkname); in usbtll_omap_probe()
259 if (IS_ERR(tll->ch_clk[i])) in usbtll_omap_probe()
262 clk_prepare(tll->ch_clk[i]); in usbtll_omap_probe()
282 struct usbtll_omap *tll = platform_get_drvdata(pdev); in usbtll_omap_remove() local
289 for (i = 0; i < tll->nch; i++) { in usbtll_omap_remove()
290 if (!IS_ERR(tll->ch_clk[i])) { in usbtll_omap_remove()
291 clk_unprepare(tll->ch_clk[i]); in usbtll_omap_remove()
292 clk_put(tll->ch_clk[i]); in usbtll_omap_remove()
321 struct usbtll_omap *tll; in omap_tll_init() local
329 tll = dev_get_drvdata(tll_dev); in omap_tll_init()
331 for (i = 0; i < tll->nch; i++) in omap_tll_init()
335 void __iomem *base = tll->base; in omap_tll_init()
347 for (i = 0; i < tll->nch; i++) { in omap_tll_init()
395 struct usbtll_omap *tll; in omap_tll_enable() local
403 tll = dev_get_drvdata(tll_dev); in omap_tll_enable()
405 for (i = 0; i < tll->nch; i++) { in omap_tll_enable()
409 if (IS_ERR(tll->ch_clk[i])) in omap_tll_enable()
412 r = clk_enable(tll->ch_clk[i]); in omap_tll_enable()
429 struct usbtll_omap *tll; in omap_tll_disable() local
435 tll = dev_get_drvdata(tll_dev); in omap_tll_disable()
437 for (i = 0; i < tll->nch; i++) { in omap_tll_disable()
439 if (!IS_ERR(tll->ch_clk[i])) in omap_tll_disable()
440 clk_disable(tll->ch_clk[i]); in omap_tll_disable()