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