Lines Matching refs:socfpga_clk

130 	struct socfpga_gate_clk *socfpga_clk;  in s10_register_gate()  local
135 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in s10_register_gate()
136 if (!socfpga_clk) in s10_register_gate()
139 socfpga_clk->hw.reg = regbase + clks->gate_reg; in s10_register_gate()
140 socfpga_clk->hw.bit_idx = clks->gate_idx; in s10_register_gate()
145 socfpga_clk->fixed_div = clks->fixed_div; in s10_register_gate()
148 socfpga_clk->div_reg = regbase + clks->div_reg; in s10_register_gate()
150 socfpga_clk->div_reg = NULL; in s10_register_gate()
152 socfpga_clk->width = clks->div_width; in s10_register_gate()
153 socfpga_clk->shift = clks->div_offset; in s10_register_gate()
156 socfpga_clk->bypass_reg = regbase + clks->bypass_reg; in s10_register_gate()
158 socfpga_clk->bypass_reg = NULL; in s10_register_gate()
159 socfpga_clk->bypass_shift = clks->bypass_shift; in s10_register_gate()
173 socfpga_clk->hw.hw.init = &init; in s10_register_gate()
175 hw_clk = &socfpga_clk->hw.hw; in s10_register_gate()
177 ret = clk_hw_register(NULL, &socfpga_clk->hw.hw); in s10_register_gate()
179 kfree(socfpga_clk); in s10_register_gate()
188 struct socfpga_gate_clk *socfpga_clk; in agilex_register_gate() local
193 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in agilex_register_gate()
194 if (!socfpga_clk) in agilex_register_gate()
197 socfpga_clk->hw.reg = regbase + clks->gate_reg; in agilex_register_gate()
198 socfpga_clk->hw.bit_idx = clks->gate_idx; in agilex_register_gate()
203 socfpga_clk->fixed_div = clks->fixed_div; in agilex_register_gate()
206 socfpga_clk->div_reg = regbase + clks->div_reg; in agilex_register_gate()
208 socfpga_clk->div_reg = NULL; in agilex_register_gate()
210 socfpga_clk->width = clks->div_width; in agilex_register_gate()
211 socfpga_clk->shift = clks->div_offset; in agilex_register_gate()
214 socfpga_clk->bypass_reg = regbase + clks->bypass_reg; in agilex_register_gate()
216 socfpga_clk->bypass_reg = NULL; in agilex_register_gate()
217 socfpga_clk->bypass_shift = clks->bypass_shift; in agilex_register_gate()
231 socfpga_clk->hw.hw.init = &init; in agilex_register_gate()
233 hw_clk = &socfpga_clk->hw.hw; in agilex_register_gate()
235 ret = clk_hw_register(NULL, &socfpga_clk->hw.hw); in agilex_register_gate()
237 kfree(socfpga_clk); in agilex_register_gate()