Lines Matching refs:factors

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