Lines Matching defs:factors
498 static void m10v_reg_div_pre(const struct m10v_clk_div_factors *factors,
509 if ((factors->offset == CLKSEL(9)) || (factors->offset == CLKSEL(10)))
514 hw = m10v_clk_hw_register_divider(NULL, factors->name,
515 factors->parent_name,
517 base + factors->offset,
518 factors->shift,
519 factors->width, factors->div_flags,
520 factors->table,
523 if (factors->onecell_idx >= 0)
524 clk_data->hws[factors->onecell_idx] = hw;
527 static void m10v_reg_fixed_pre(const struct m10v_clk_div_fixed_data *factors,
532 const char *pn = factors->parent_name ?
533 factors->parent_name : parent_name;
535 hw = clk_hw_register_fixed_factor(NULL, factors->name, pn, 0,
536 factors->mult, factors->div);
538 if (factors->onecell_idx >= 0)
539 clk_data->hws[factors->onecell_idx] = hw;
542 static void m10v_reg_mux_pre(const struct m10v_clk_mux_factors *factors,
548 hw = m10v_clk_hw_register_mux(NULL, factors->name,
549 factors->parent_names,
550 factors->num_parents,
552 base + factors->offset, factors->shift,
553 factors->mask, factors->mux_flags,
554 factors->table, &m10v_crglock);
556 if (factors->onecell_idx >= 0)
557 clk_data->hws[factors->onecell_idx] = hw;