Lines Matching refs:periph_clk
105 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local
111 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph()
112 if (WARN_ON(!periph_clk)) in s10_register_periph()
115 periph_clk->hw.reg = reg + clks->offset; in s10_register_periph()
126 periph_clk->hw.hw.init = &init; in s10_register_periph()
127 hw_clk = &periph_clk->hw.hw; in s10_register_periph()
131 kfree(periph_clk); in s10_register_periph()
141 struct socfpga_periph_clk *periph_clk; in n5x_register_periph() local
147 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in n5x_register_periph()
148 if (WARN_ON(!periph_clk)) in n5x_register_periph()
151 periph_clk->hw.reg = regbase + clks->offset; in n5x_register_periph()
152 periph_clk->shift = clks->shift; in n5x_register_periph()
161 periph_clk->hw.hw.init = &init; in n5x_register_periph()
162 hw_clk = &periph_clk->hw.hw; in n5x_register_periph()
166 kfree(periph_clk); in n5x_register_periph()
176 struct socfpga_periph_clk *periph_clk; in s10_register_cnt_periph() local
182 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_cnt_periph()
183 if (WARN_ON(!periph_clk)) in s10_register_cnt_periph()
187 periph_clk->hw.reg = regbase + clks->offset; in s10_register_cnt_periph()
189 periph_clk->hw.reg = NULL; in s10_register_cnt_periph()
192 periph_clk->bypass_reg = regbase + clks->bypass_reg; in s10_register_cnt_periph()
194 periph_clk->bypass_reg = NULL; in s10_register_cnt_periph()
195 periph_clk->bypass_shift = clks->bypass_shift; in s10_register_cnt_periph()
196 periph_clk->fixed_div = clks->fixed_divider; in s10_register_cnt_periph()
207 periph_clk->hw.hw.init = &init; in s10_register_cnt_periph()
208 hw_clk = &periph_clk->hw.hw; in s10_register_cnt_periph()
212 kfree(periph_clk); in s10_register_cnt_periph()