Searched refs:clkdata (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/clk/
H A Dclk-wm831x.c36 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_xtal_is_prepared() local
39 return clkdata->xtal_ena; wm831x_xtal_is_prepared()
45 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_xtal_recalc_rate() local
48 if (clkdata->xtal_ena) wm831x_xtal_recalc_rate()
78 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_fll_is_prepared() local
80 struct wm831x *wm831x = clkdata->wm831x; wm831x_fll_is_prepared()
95 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_fll_prepare() local
97 struct wm831x *wm831x = clkdata->wm831x; wm831x_fll_prepare()
112 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_fll_unprepare() local
114 struct wm831x *wm831x = clkdata->wm831x; wm831x_fll_unprepare()
125 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_fll_recalc_rate() local
127 struct wm831x *wm831x = clkdata->wm831x; wm831x_fll_recalc_rate()
162 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_fll_set_rate() local
164 struct wm831x *wm831x = clkdata->wm831x; wm831x_fll_set_rate()
187 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_fll_get_parent() local
189 struct wm831x *wm831x = clkdata->wm831x; wm831x_fll_get_parent()
242 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_clkout_is_prepared() local
244 struct wm831x *wm831x = clkdata->wm831x; wm831x_clkout_is_prepared()
259 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_clkout_prepare() local
261 struct wm831x *wm831x = clkdata->wm831x; wm831x_clkout_prepare()
282 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_clkout_unprepare() local
284 struct wm831x *wm831x = clkdata->wm831x; wm831x_clkout_unprepare()
308 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_clkout_get_parent() local
310 struct wm831x *wm831x = clkdata->wm831x; wm831x_clkout_get_parent()
328 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, wm831x_clkout_set_parent() local
330 struct wm831x *wm831x = clkdata->wm831x; wm831x_clkout_set_parent()
356 struct wm831x_clk *clkdata; wm831x_clk_probe() local
359 clkdata = devm_kzalloc(&pdev->dev, sizeof(*clkdata), GFP_KERNEL); wm831x_clk_probe()
360 if (!clkdata) wm831x_clk_probe()
363 clkdata->wm831x = wm831x; wm831x_clk_probe()
372 clkdata->xtal_ena = ret & WM831X_XTAL_ENA; wm831x_clk_probe()
374 clkdata->xtal_hw.init = &wm831x_xtal_init; wm831x_clk_probe()
375 clkdata->xtal = devm_clk_register(&pdev->dev, &clkdata->xtal_hw); wm831x_clk_probe()
376 if (IS_ERR(clkdata->xtal)) wm831x_clk_probe()
377 return PTR_ERR(clkdata->xtal); wm831x_clk_probe()
379 clkdata->fll_hw.init = &wm831x_fll_init; wm831x_clk_probe()
380 clkdata->fll = devm_clk_register(&pdev->dev, &clkdata->fll_hw); wm831x_clk_probe()
381 if (IS_ERR(clkdata->fll)) wm831x_clk_probe()
382 return PTR_ERR(clkdata->fll); wm831x_clk_probe()
384 clkdata->clkout_hw.init = &wm831x_clkout_init; wm831x_clk_probe()
385 clkdata->clkout = devm_clk_register(&pdev->dev, &clkdata->clkout_hw); wm831x_clk_probe()
386 if (IS_ERR(clkdata->clkout)) wm831x_clk_probe()
387 return PTR_ERR(clkdata->clkout); wm831x_clk_probe()
389 platform_set_drvdata(pdev, clkdata); wm831x_clk_probe()
H A Dclk-twl6040.c84 struct twl6040_clk *clkdata; twl6040_clk_probe() local
86 clkdata = devm_kzalloc(&pdev->dev, sizeof(*clkdata), GFP_KERNEL); twl6040_clk_probe()
87 if (!clkdata) twl6040_clk_probe()
90 clkdata->dev = &pdev->dev; twl6040_clk_probe()
91 clkdata->twl6040 = twl6040; twl6040_clk_probe()
93 clkdata->mcpdm_fclk.init = &wm831x_clkout_init; twl6040_clk_probe()
94 clkdata->clk = clk_register(&pdev->dev, &clkdata->mcpdm_fclk); twl6040_clk_probe()
95 if (IS_ERR(clkdata->clk)) twl6040_clk_probe()
96 return PTR_ERR(clkdata->clk); twl6040_clk_probe()
98 platform_set_drvdata(pdev, clkdata); twl6040_clk_probe()
105 struct twl6040_clk *clkdata = platform_get_drvdata(pdev); twl6040_clk_remove() local
107 clk_unregister(clkdata->clk); twl6040_clk_remove()

Completed in 109 milliseconds