Lines Matching refs:apad_ck
109 struct clk_audio_pad *apad_ck = to_clk_audio_pad(hw); in clk_audio_pll_pad_enable() local
111 regmap_update_bits(apad_ck->regmap, AT91_PMC_AUDIO_PLL1, in clk_audio_pll_pad_enable()
113 AUDIO_PLL_QDPAD(apad_ck->qdaudio, apad_ck->div)); in clk_audio_pll_pad_enable()
114 regmap_update_bits(apad_ck->regmap, AT91_PMC_AUDIO_PLL0, in clk_audio_pll_pad_enable()
145 struct clk_audio_pad *apad_ck = to_clk_audio_pad(hw); in clk_audio_pll_pad_disable() local
147 regmap_update_bits(apad_ck->regmap, AT91_PMC_AUDIO_PLL0, in clk_audio_pll_pad_disable()
190 struct clk_audio_pad *apad_ck = to_clk_audio_pad(hw); in clk_audio_pll_pad_recalc_rate() local
193 if (apad_ck->qdaudio && apad_ck->div) in clk_audio_pll_pad_recalc_rate()
194 apad_rate = parent_rate / (apad_ck->qdaudio * apad_ck->div); in clk_audio_pll_pad_recalc_rate()
197 __func__, apad_rate, apad_ck->div, apad_ck->qdaudio); in clk_audio_pll_pad_recalc_rate()
390 struct clk_audio_pad *apad_ck = to_clk_audio_pad(hw); in clk_audio_pll_pad_set_rate() local
401 apad_ck->qdaudio = tmp_div / 3; in clk_audio_pll_pad_set_rate()
402 apad_ck->div = 3; in clk_audio_pll_pad_set_rate()
404 apad_ck->qdaudio = tmp_div / 2; in clk_audio_pll_pad_set_rate()
405 apad_ck->div = 2; in clk_audio_pll_pad_set_rate()
485 struct clk_audio_pad *apad_ck; in at91_clk_register_audio_pll_pad() local
489 apad_ck = kzalloc(sizeof(*apad_ck), GFP_KERNEL); in at91_clk_register_audio_pll_pad()
490 if (!apad_ck) in at91_clk_register_audio_pll_pad()
500 apad_ck->hw.init = &init; in at91_clk_register_audio_pll_pad()
501 apad_ck->regmap = regmap; in at91_clk_register_audio_pll_pad()
503 ret = clk_hw_register(NULL, &apad_ck->hw); in at91_clk_register_audio_pll_pad()
505 kfree(apad_ck); in at91_clk_register_audio_pll_pad()
509 return &apad_ck->hw; in at91_clk_register_audio_pll_pad()