Lines Matching refs:apmc_ck
122 struct clk_audio_pmc *apmc_ck = to_clk_audio_pmc(hw); in clk_audio_pll_pmc_enable() local
124 regmap_update_bits(apmc_ck->regmap, AT91_PMC_AUDIO_PLL0, in clk_audio_pll_pmc_enable()
128 AT91_PMC_AUDIO_PLL_QDPMC(apmc_ck->qdpmc)); in clk_audio_pll_pmc_enable()
153 struct clk_audio_pmc *apmc_ck = to_clk_audio_pmc(hw); in clk_audio_pll_pmc_disable() local
155 regmap_update_bits(apmc_ck->regmap, AT91_PMC_AUDIO_PLL0, in clk_audio_pll_pmc_disable()
205 struct clk_audio_pmc *apmc_ck = to_clk_audio_pmc(hw); in clk_audio_pll_pmc_recalc_rate() local
208 apmc_rate = parent_rate / (apmc_ck->qdpmc + 1); in clk_audio_pll_pmc_recalc_rate()
211 apmc_rate, apmc_ck->qdpmc); in clk_audio_pll_pmc_recalc_rate()
414 struct clk_audio_pmc *apmc_ck = to_clk_audio_pmc(hw); in clk_audio_pll_pmc_set_rate() local
422 apmc_ck->qdpmc = parent_rate / rate - 1; in clk_audio_pll_pmc_set_rate()
516 struct clk_audio_pmc *apmc_ck; in at91_clk_register_audio_pll_pmc() local
520 apmc_ck = kzalloc(sizeof(*apmc_ck), GFP_KERNEL); in at91_clk_register_audio_pll_pmc()
521 if (!apmc_ck) in at91_clk_register_audio_pll_pmc()
531 apmc_ck->hw.init = &init; in at91_clk_register_audio_pll_pmc()
532 apmc_ck->regmap = regmap; in at91_clk_register_audio_pll_pmc()
534 ret = clk_hw_register(NULL, &apmc_ck->hw); in at91_clk_register_audio_pll_pmc()
536 kfree(apmc_ck); in at91_clk_register_audio_pll_pmc()
540 return &apmc_ck->hw; in at91_clk_register_audio_pll_pmc()