Lines Matching refs:cc
40 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_q6dsp_prepare() local
42 return cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_prepare()
49 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_q6dsp_unprepare() local
51 cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_unprepare()
90 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_vote_q6dsp_block() local
92 return cc->desc->lpass_vote_clk(clk->dev, clk->q6dsp_clk_id, in clk_vote_q6dsp_block()
99 struct q6dsp_cc *cc = dev_get_drvdata(clk->dev); in clk_unvote_q6dsp_block() local
101 cc->desc->lpass_unvote_clk(clk->dev, clk->q6dsp_clk_id, clk->handle); in clk_unvote_q6dsp_block()
113 struct q6dsp_cc *cc = data; in q6dsp_of_clk_hw_get() local
118 dev_err(cc->dev, "Invalid clk specifier (%d, %d)\n", idx, attr); in q6dsp_of_clk_hw_get()
122 if (cc->clks[idx]) { in q6dsp_of_clk_hw_get()
123 cc->clks[idx]->attributes = attr; in q6dsp_of_clk_hw_get()
124 return &cc->clks[idx]->hw; in q6dsp_of_clk_hw_get()
132 struct q6dsp_cc *cc; in q6dsp_clock_dev_probe() local
138 cc = devm_kzalloc(dev, sizeof(*cc), GFP_KERNEL); in q6dsp_clock_dev_probe()
139 if (!cc) in q6dsp_clock_dev_probe()
146 cc->desc = desc; in q6dsp_clock_dev_probe()
147 cc->dev = dev; in q6dsp_clock_dev_probe()
171 cc->clks[id] = clk; in q6dsp_clock_dev_probe()
178 ret = devm_of_clk_add_hw_provider(dev, q6dsp_of_clk_hw_get, cc); in q6dsp_clock_dev_probe()
182 dev_set_drvdata(dev, cc); in q6dsp_clock_dev_probe()