Lines Matching refs:periph_clk
81 struct socfpga_periph_clk *periph_clk; in s10_register_periph() local
84 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_periph()
85 if (WARN_ON(!periph_clk)) in s10_register_periph()
88 periph_clk->hw.reg = reg + offset; in s10_register_periph()
97 periph_clk->hw.hw.init = &init; in s10_register_periph()
99 clk = clk_register(NULL, &periph_clk->hw.hw); in s10_register_periph()
101 kfree(periph_clk); in s10_register_periph()
115 struct socfpga_periph_clk *periph_clk; in s10_register_cnt_periph() local
118 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL); in s10_register_cnt_periph()
119 if (WARN_ON(!periph_clk)) in s10_register_cnt_periph()
123 periph_clk->hw.reg = regbase + offset; in s10_register_cnt_periph()
125 periph_clk->hw.reg = NULL; in s10_register_cnt_periph()
128 periph_clk->bypass_reg = regbase + bypass_reg; in s10_register_cnt_periph()
130 periph_clk->bypass_reg = NULL; in s10_register_cnt_periph()
131 periph_clk->bypass_shift = bypass_shift; in s10_register_cnt_periph()
132 periph_clk->fixed_div = fixed_divider; in s10_register_cnt_periph()
141 periph_clk->hw.hw.init = &init; in s10_register_cnt_periph()
143 clk = clk_register(NULL, &periph_clk->hw.hw); in s10_register_cnt_periph()
145 kfree(periph_clk); in s10_register_cnt_periph()