• Home
  • Raw
  • Download

Lines Matching refs:list

26 					     const struct lgm_clk_branch *list)  in lgm_clk_register_fixed()  argument
29 if (list->div_flags & CLOCK_FLAG_VAL_INIT) in lgm_clk_register_fixed()
30 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed()
31 list->div_width, list->div_val); in lgm_clk_register_fixed()
33 return clk_hw_register_fixed_rate(NULL, list->name, in lgm_clk_register_fixed()
34 list->parent_data[0].name, in lgm_clk_register_fixed()
35 list->flags, list->mux_flags); in lgm_clk_register_fixed()
82 const struct lgm_clk_branch *list) in lgm_clk_register_mux() argument
84 unsigned long cflags = list->mux_flags; in lgm_clk_register_mux()
86 u8 shift = list->mux_shift; in lgm_clk_register_mux()
87 u8 width = list->mux_width; in lgm_clk_register_mux()
90 u32 reg = list->mux_off; in lgm_clk_register_mux()
98 init.name = list->name; in lgm_clk_register_mux()
100 init.flags = list->flags; in lgm_clk_register_mux()
101 init.parent_data = list->parent_data; in lgm_clk_register_mux()
102 init.num_parents = list->num_parents; in lgm_clk_register_mux()
117 lgm_set_clk_val(mux->membase, reg, shift, width, list->mux_val); in lgm_clk_register_mux()
193 const struct lgm_clk_branch *list) in lgm_clk_register_divider() argument
195 unsigned long cflags = list->div_flags; in lgm_clk_register_divider()
199 u8 shift = list->div_shift; in lgm_clk_register_divider()
200 u8 width = list->div_width; in lgm_clk_register_divider()
201 u8 shift_gate = list->div_shift_gate; in lgm_clk_register_divider()
202 u8 width_gate = list->div_width_gate; in lgm_clk_register_divider()
203 u32 reg = list->div_off; in lgm_clk_register_divider()
211 init.name = list->name; in lgm_clk_register_divider()
213 init.flags = list->flags; in lgm_clk_register_divider()
214 init.parent_data = list->parent_data; in lgm_clk_register_divider()
224 div->table = list->div_table; in lgm_clk_register_divider()
233 lgm_set_clk_val(div->membase, reg, shift, width, list->div_val); in lgm_clk_register_divider()
240 const struct lgm_clk_branch *list) in lgm_clk_register_fixed_factor() argument
244 hw = clk_hw_register_fixed_factor(ctx->dev, list->name, in lgm_clk_register_fixed_factor()
245 list->parent_data[0].name, list->flags, in lgm_clk_register_fixed_factor()
246 list->mult, list->div); in lgm_clk_register_fixed_factor()
250 if (list->div_flags & CLOCK_FLAG_VAL_INIT) in lgm_clk_register_fixed_factor()
251 lgm_set_clk_val(ctx->membase, list->div_off, list->div_shift, in lgm_clk_register_fixed_factor()
252 list->div_width, list->div_val); in lgm_clk_register_fixed_factor()
296 const struct lgm_clk_branch *list) in lgm_clk_register_gate() argument
298 unsigned long cflags = list->gate_flags; in lgm_clk_register_gate()
299 const char *pname = list->parent_data[0].name; in lgm_clk_register_gate()
301 u8 shift = list->gate_shift; in lgm_clk_register_gate()
304 u32 reg = list->gate_off; in lgm_clk_register_gate()
312 init.name = list->name; in lgm_clk_register_gate()
314 init.flags = list->flags; in lgm_clk_register_gate()
330 lgm_set_clk_val(gate->membase, reg, shift, 1, list->gate_val); in lgm_clk_register_gate()
337 const struct lgm_clk_branch *list, in lgm_clk_register_branches() argument
343 for (idx = 0; idx < nr_clk; idx++, list++) { in lgm_clk_register_branches()
344 switch (list->type) { in lgm_clk_register_branches()
346 hw = lgm_clk_register_fixed(ctx, list); in lgm_clk_register_branches()
349 hw = lgm_clk_register_mux(ctx, list); in lgm_clk_register_branches()
352 hw = lgm_clk_register_divider(ctx, list); in lgm_clk_register_branches()
355 hw = lgm_clk_register_fixed_factor(ctx, list); in lgm_clk_register_branches()
358 if (list->gate_flags & GATE_CLK_HW) { in lgm_clk_register_branches()
359 hw = lgm_clk_register_gate(ctx, list); in lgm_clk_register_branches()
382 list->name, list->type); in lgm_clk_register_branches()
385 ctx->clk_data.hws[list->id] = hw; in lgm_clk_register_branches()
535 const struct lgm_clk_ddiv_data *list, in lgm_clk_register_ddiv() argument
543 for (idx = 0; idx < nr_clk; idx++, list++) { in lgm_clk_register_ddiv()
551 init.name = list->name; in lgm_clk_register_ddiv()
553 init.flags = list->flags; in lgm_clk_register_ddiv()
554 init.parent_data = list->parent_data; in lgm_clk_register_ddiv()
558 ddiv->reg = list->reg; in lgm_clk_register_ddiv()
559 ddiv->shift0 = list->shift0; in lgm_clk_register_ddiv()
560 ddiv->width0 = list->width0; in lgm_clk_register_ddiv()
561 ddiv->shift1 = list->shift1; in lgm_clk_register_ddiv()
562 ddiv->width1 = list->width1; in lgm_clk_register_ddiv()
563 ddiv->shift_gate = list->shift_gate; in lgm_clk_register_ddiv()
564 ddiv->width_gate = list->width_gate; in lgm_clk_register_ddiv()
565 ddiv->shift2 = list->ex_shift; in lgm_clk_register_ddiv()
566 ddiv->width2 = list->ex_width; in lgm_clk_register_ddiv()
567 ddiv->flags = list->div_flags; in lgm_clk_register_ddiv()
575 dev_err(dev, "register clk: %s failed!\n", list->name); in lgm_clk_register_ddiv()
578 ctx->clk_data.hws[list->id] = hw; in lgm_clk_register_ddiv()