Lines Matching full:lclk

147 	struct lochnagar_clk *lclk = lochnagar_hw_to_lclk(hw);  in lochnagar_clk_prepare()  local
148 struct lochnagar_clk_priv *priv = lclk->priv; in lochnagar_clk_prepare()
152 ret = regmap_update_bits(regmap, lclk->cfg_reg, in lochnagar_clk_prepare()
153 lclk->ena_mask, lclk->ena_mask); in lochnagar_clk_prepare()
156 lclk->name, ret); in lochnagar_clk_prepare()
163 struct lochnagar_clk *lclk = lochnagar_hw_to_lclk(hw); in lochnagar_clk_unprepare() local
164 struct lochnagar_clk_priv *priv = lclk->priv; in lochnagar_clk_unprepare()
168 ret = regmap_update_bits(regmap, lclk->cfg_reg, lclk->ena_mask, 0); in lochnagar_clk_unprepare()
171 lclk->name, ret); in lochnagar_clk_unprepare()
176 struct lochnagar_clk *lclk = lochnagar_hw_to_lclk(hw); in lochnagar_clk_set_parent() local
177 struct lochnagar_clk_priv *priv = lclk->priv; in lochnagar_clk_set_parent()
181 ret = regmap_update_bits(regmap, lclk->src_reg, lclk->src_mask, index); in lochnagar_clk_set_parent()
184 lclk->name, ret); in lochnagar_clk_set_parent()
191 struct lochnagar_clk *lclk = lochnagar_hw_to_lclk(hw); in lochnagar_clk_get_parent() local
192 struct lochnagar_clk_priv *priv = lclk->priv; in lochnagar_clk_get_parent()
197 ret = regmap_read(regmap, lclk->src_reg, &val); in lochnagar_clk_get_parent()
200 lclk->name, ret); in lochnagar_clk_get_parent()
204 val &= lclk->src_mask; in lochnagar_clk_get_parent()
245 struct lochnagar_clk *lclk; in lochnagar_clk_probe() local
263 lclk = &priv->lclks[i]; in lochnagar_clk_probe()
265 if (!lclk->name) in lochnagar_clk_probe()
268 clk_init.name = lclk->name; in lochnagar_clk_probe()
270 lclk->priv = priv; in lochnagar_clk_probe()
271 lclk->hw.init = &clk_init; in lochnagar_clk_probe()
273 ret = devm_clk_hw_register(dev, &lclk->hw); in lochnagar_clk_probe()
276 lclk->name, ret); in lochnagar_clk_probe()