Lines Matching refs:list

406 				struct rockchip_pll_clock *list,  in rockchip_clk_register_plls()  argument
412 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls()
413 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls()
414 list->parent_names, list->num_parents, in rockchip_clk_register_plls()
415 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls()
416 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls()
417 list->mode_shift, list->rate_table, in rockchip_clk_register_plls()
418 list->flags, list->pll_flags); in rockchip_clk_register_plls()
421 list->name); in rockchip_clk_register_plls()
425 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls()
431 struct rockchip_clk_branch *list, in rockchip_clk_register_branches() argument
438 for (idx = 0; idx < nr_clk; idx++, list++) { in rockchip_clk_register_branches()
439 flags = list->flags; in rockchip_clk_register_branches()
442 switch (list->branch_type) { in rockchip_clk_register_branches()
444 clk = clk_register_mux(NULL, list->name, in rockchip_clk_register_branches()
445 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
446 flags, ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
447 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
448 list->mux_flags, &ctx->lock); in rockchip_clk_register_branches()
451 clk = rockchip_clk_register_muxgrf(list->name, in rockchip_clk_register_branches()
452 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
453 flags, ctx->grf, list->muxdiv_offset, in rockchip_clk_register_branches()
454 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
455 list->mux_flags); in rockchip_clk_register_branches()
458 if (list->div_table) in rockchip_clk_register_branches()
460 list->name, list->parent_names[0], in rockchip_clk_register_branches()
462 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
463 list->div_shift, list->div_width, in rockchip_clk_register_branches()
464 list->div_flags, list->div_table, in rockchip_clk_register_branches()
467 clk = clk_register_divider(NULL, list->name, in rockchip_clk_register_branches()
468 list->parent_names[0], flags, in rockchip_clk_register_branches()
469 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
470 list->div_shift, list->div_width, in rockchip_clk_register_branches()
471 list->div_flags, &ctx->lock); in rockchip_clk_register_branches()
474 clk = rockchip_clk_register_frac_branch(ctx, list->name, in rockchip_clk_register_branches()
475 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
476 ctx->reg_base, list->muxdiv_offset, in rockchip_clk_register_branches()
477 list->div_flags, in rockchip_clk_register_branches()
478 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
479 list->gate_flags, flags, list->child, in rockchip_clk_register_branches()
483 clk = rockchip_clk_register_halfdiv(list->name, in rockchip_clk_register_branches()
484 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
485 ctx->reg_base, list->muxdiv_offset, in rockchip_clk_register_branches()
486 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
487 list->mux_flags, list->div_shift, in rockchip_clk_register_branches()
488 list->div_width, list->div_flags, in rockchip_clk_register_branches()
489 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
490 list->gate_flags, flags, &ctx->lock); in rockchip_clk_register_branches()
495 clk = clk_register_gate(NULL, list->name, in rockchip_clk_register_branches()
496 list->parent_names[0], flags, in rockchip_clk_register_branches()
497 ctx->reg_base + list->gate_offset, in rockchip_clk_register_branches()
498 list->gate_shift, list->gate_flags, &ctx->lock); in rockchip_clk_register_branches()
501 clk = rockchip_clk_register_branch(list->name, in rockchip_clk_register_branches()
502 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
503 ctx->reg_base, list->muxdiv_offset, in rockchip_clk_register_branches()
504 list->mux_shift, in rockchip_clk_register_branches()
505 list->mux_width, list->mux_flags, in rockchip_clk_register_branches()
506 list->div_offset, list->div_shift, list->div_width, in rockchip_clk_register_branches()
507 list->div_flags, list->div_table, in rockchip_clk_register_branches()
508 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
509 list->gate_flags, flags, &ctx->lock); in rockchip_clk_register_branches()
513 list->name, in rockchip_clk_register_branches()
514 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
515 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
516 list->div_shift in rockchip_clk_register_branches()
521 list->name, list->parent_names, in rockchip_clk_register_branches()
522 list->num_parents, in rockchip_clk_register_branches()
523 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
524 list->div_shift, list->div_flags, &ctx->lock); in rockchip_clk_register_branches()
528 list->name, list->parent_names, in rockchip_clk_register_branches()
529 list->num_parents, ctx->reg_base, in rockchip_clk_register_branches()
530 list->div_shift, list->div_width, in rockchip_clk_register_branches()
531 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
532 list->gate_flags, flags, &ctx->lock); in rockchip_clk_register_branches()
536 list->name, list->flags, in rockchip_clk_register_branches()
537 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
538 list->muxdiv_offset, list->mux_shift, in rockchip_clk_register_branches()
539 list->mux_width, list->div_shift, in rockchip_clk_register_branches()
540 list->div_width, list->div_flags, in rockchip_clk_register_branches()
548 __func__, list->branch_type); in rockchip_clk_register_branches()
554 __func__, list->name, PTR_ERR(clk)); in rockchip_clk_register_branches()
558 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_branches()