Lines Matching refs:cdesc
64 struct dra7_atl_desc *cdesc; member
82 struct dra7_atl_desc *cdesc = to_atl_desc(hw); in atl_clk_enable() local
84 if (!cdesc->probed) in atl_clk_enable()
87 if (unlikely(!cdesc->valid)) in atl_clk_enable()
88 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n", in atl_clk_enable()
89 cdesc->id); in atl_clk_enable()
90 pm_runtime_get_sync(cdesc->cinfo->dev); in atl_clk_enable()
92 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id), in atl_clk_enable()
93 cdesc->divider - 1); in atl_clk_enable()
94 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN); in atl_clk_enable()
97 cdesc->enabled = true; in atl_clk_enable()
104 struct dra7_atl_desc *cdesc = to_atl_desc(hw); in atl_clk_disable() local
106 if (!cdesc->probed) in atl_clk_disable()
109 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), 0); in atl_clk_disable()
110 pm_runtime_put_sync(cdesc->cinfo->dev); in atl_clk_disable()
113 cdesc->enabled = false; in atl_clk_disable()
118 struct dra7_atl_desc *cdesc = to_atl_desc(hw); in atl_clk_is_enabled() local
120 return cdesc->enabled; in atl_clk_is_enabled()
126 struct dra7_atl_desc *cdesc = to_atl_desc(hw); in atl_clk_recalc_rate() local
128 return parent_rate / cdesc->divider; in atl_clk_recalc_rate()
146 struct dra7_atl_desc *cdesc; in atl_clk_set_rate() local
152 cdesc = to_atl_desc(hw); in atl_clk_set_rate()
157 cdesc->divider = divider + 1; in atl_clk_set_rate()
243 struct dra7_atl_desc *cdesc; in of_dra7_atl_clk_probe() local
266 cdesc = to_atl_desc(__clk_get_hw(clk)); in of_dra7_atl_clk_probe()
267 cdesc->cinfo = cinfo; in of_dra7_atl_clk_probe()
268 cdesc->id = i; in of_dra7_atl_clk_probe()
275 &cdesc->bws); in of_dra7_atl_clk_probe()
277 &cdesc->aws); in of_dra7_atl_clk_probe()
279 cdesc->valid = true; in of_dra7_atl_clk_probe()
281 cdesc->bws); in of_dra7_atl_clk_probe()
283 cdesc->aws); in of_dra7_atl_clk_probe()
288 cdesc->probed = true; in of_dra7_atl_clk_probe()
293 if (cdesc->enabled) in of_dra7_atl_clk_probe()