Lines Matching refs:cdesc
56 struct dra7_atl_desc *cdesc;
74 struct dra7_atl_desc *cdesc = to_atl_desc(hw);
76 if (!cdesc->probed)
79 if (unlikely(!cdesc->valid))
80 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n",
81 cdesc->id);
82 pm_runtime_get_sync(cdesc->cinfo->dev);
84 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id),
85 cdesc->divider - 1);
86 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN);
89 cdesc->enabled = true;
96 struct dra7_atl_desc *cdesc = to_atl_desc(hw);
98 if (!cdesc->probed)
101 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), 0);
102 pm_runtime_put_sync(cdesc->cinfo->dev);
105 cdesc->enabled = false;
110 struct dra7_atl_desc *cdesc = to_atl_desc(hw);
112 return cdesc->enabled;
118 struct dra7_atl_desc *cdesc = to_atl_desc(hw);
120 return parent_rate / cdesc->divider;
138 struct dra7_atl_desc *cdesc;
144 cdesc = to_atl_desc(hw);
149 cdesc->divider = divider + 1;
227 struct dra7_atl_desc *cdesc;
250 cdesc = to_atl_desc(__clk_get_hw(clk));
251 cdesc->cinfo = cinfo;
252 cdesc->id = i;
259 &cdesc->bws);
261 &cdesc->aws);
263 cdesc->valid = true;
265 cdesc->bws);
267 cdesc->aws);
272 cdesc->probed = true;
277 if (cdesc->enabled)