Lines Matching refs:periph_clk
82 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local
85 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph()
86 if (WARN_ON(!periph_clk)) in s10_register_periph()
89 periph_clk->hw.reg = reg + offset; in s10_register_periph()
98 periph_clk->hw.hw.init = &init; in s10_register_periph()
100 clk = clk_register(NULL, &periph_clk->hw.hw); in s10_register_periph()
102 kfree(periph_clk); in s10_register_periph()
116 struct socfpga_periph_clk *periph_clk; in s10_register_cnt_periph() local
119 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_cnt_periph()
120 if (WARN_ON(!periph_clk)) in s10_register_cnt_periph()
124 periph_clk->hw.reg = regbase + offset; in s10_register_cnt_periph()
126 periph_clk->hw.reg = NULL; in s10_register_cnt_periph()
129 periph_clk->bypass_reg = regbase + bypass_reg; in s10_register_cnt_periph()
131 periph_clk->bypass_reg = NULL; in s10_register_cnt_periph()
132 periph_clk->bypass_shift = bypass_shift; in s10_register_cnt_periph()
133 periph_clk->fixed_div = fixed_divider; in s10_register_cnt_periph()
142 periph_clk->hw.hw.init = &init; in s10_register_cnt_periph()
144 clk = clk_register(NULL, &periph_clk->hw.hw); in s10_register_cnt_periph()
146 kfree(periph_clk); in s10_register_cnt_periph()