Home
last modified time | relevance | path

Searched refs:parent_index (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/drivers/clk/sunxi-ng/
Dccu_mux.c19 int parent_index) in ccu_mux_get_prediv() argument
33 if (parent_index < 0) { in ccu_mux_get_prediv()
34 parent_index = reg >> cm->shift; in ccu_mux_get_prediv()
35 parent_index &= (1 << cm->width) - 1; in ccu_mux_get_prediv()
42 if (parent_index == cm->fixed_predivs[i].index) in ccu_mux_get_prediv()
50 if (parent_index == cm->var_predivs[i].index) { in ccu_mux_get_prediv()
64 int parent_index, in ccu_mux_helper_apply_prediv() argument
67 return parent_rate / ccu_mux_get_prediv(common, cm, parent_index); in ccu_mux_helper_apply_prediv()
73 int parent_index, in ccu_mux_helper_unapply_prediv() argument
76 return parent_rate * ccu_mux_get_prediv(common, cm, parent_index); in ccu_mux_helper_unapply_prediv()
Dccu_mux.h119 int parent_index,
/linux-6.1.9/drivers/clk/
Dclk-max9485.c204 int parent_index; member
212 .parent_index = -1,
221 .parent_index = -1,
230 .parent_index = MAX9485_CLKOUT,
239 .parent_index = MAX9485_CLKOUT,
298 int parent_index = max9485_clks[i].parent_index; in max9485_i2c_probe() local
313 if (parent_index > 0) { in max9485_i2c_probe()
315 &drvdata->hw[parent_index].init.name; in max9485_i2c_probe()
/linux-6.1.9/drivers/clk/tegra/
Dclk-tegra124-emc.c67 u8 parent_index; member
224 if (emc_get_parent(&tegra->hw) == timing->parent_index && in emc_set_timing()
263 car_value |= CLK_SOURCE_EMC_EMC_2X_CLK_SRC(timing->parent_index); in emc_set_timing()
301 if (emc_parent_clk_sources[timing->parent_index] != in get_backup_timing()
303 tegra->timings[timing_index].parent_index]) in get_backup_timing()
312 if (emc_parent_clk_sources[timing->parent_index] != in get_backup_timing()
314 tegra->timings[timing_index].parent_index]) in get_backup_timing()
356 emc_parent_clk_sources[timing->parent_index] && in emc_set_rate()
415 timing->parent_index = 0xff; in load_one_timing_from_dt()
425 timing->parent_index = i; in load_one_timing_from_dt()
Dclk-super.c68 u8 parent_index, shift; in clk_super_set_parent() local
89 parent_index = clk_super_get_parent(hw); in clk_super_set_parent()
90 if ((parent_index == mux->div2_index) || in clk_super_set_parent()
91 (parent_index == mux->pllx_index)) { in clk_super_set_parent()
/linux-6.1.9/drivers/clk/ux500/
Dclk-sysctrl.c25 u8 parent_index; member
68 u8 old_index = clk->parent_index; in clk_sysctrl_set_parent()
90 clk->parent_index = index; in clk_sysctrl_set_parent()
98 return clk->parent_index; in clk_sysctrl_get_parent()
158 clk->parent_index = 0; in clk_reg_sysctrl()
/linux-6.1.9/drivers/md/persistent-data/
Ddm-btree.c645 static int split_one_into_two(struct shadow_spine *s, unsigned parent_index, in split_one_into_two() argument
674 r = insert_at(sizeof(__le64), pn, parent_index + 1, in split_one_into_two()
728 static int split_two_into_three(struct shadow_spine *s, unsigned parent_index, in split_two_into_three() argument
740 if (parent_index == 0) { in split_two_into_three()
743 r = shadow_child(s->info, vt, pn, parent_index + 1, &right); in split_two_into_three()
747 middle_index = parent_index; in split_two_into_three()
749 r = shadow_child(s->info, vt, pn, parent_index - 1, &left); in split_two_into_three()
907 unsigned parent_index, uint64_t key) in rebalance_left() argument
913 r = shadow_child(s->info, vt, parent, parent_index - 1, &sib); in rebalance_left()
920 *key_ptr(parent, parent_index) = right->keys[0]; in rebalance_left()
[all …]
/linux-6.1.9/arch/sparc/kernel/
Dcpumap.c36 int parent_index; member
222 node->parent_index = (level > CPUINFO_LVL_ROOT) in build_cpuinfo_tree()
261 node->parent_index = -1; in build_cpuinfo_tree()
263 node->parent_index = in build_cpuinfo_tree()
314 node = &t->nodes[node->parent_index]; in increment_rover()
/linux-6.1.9/drivers/clk/mmp/
Dclk-mix.c120 parent = clk_hw_get_parent_by_index(hw, item->parent_index); in _filter_clk_table()
225 item->parent_index); in mmp_clk_mix_determine_rate()
357 if (item->parent_index == index) in mmp_clk_set_parent()
362 mux_val = _get_mux_val(mix, item->parent_index); in mmp_clk_set_parent()
391 item->parent_index); in mmp_clk_set_rate()
399 _get_mux_val(mix, item->parent_index), in mmp_clk_set_rate()
Dclk.h71 u8 parent_index; member
/linux-6.1.9/drivers/clk/imx/
Dclk-scu.c54 u8 parent_index; member
342 clk->parent_index = msg.data.resp.parent; in clk_scu_get_parent()
370 clk->parent_index = index; in clk_scu_set_parent()
584 clk->parent_index); in imx_clk_scu_suspend()
606 ret = clk_scu_set_parent(&clk->hw, clk->parent_index); in imx_clk_scu_resume()
609 clk->parent_index, !ret ? "success" : "failed"); in imx_clk_scu_resume()
/linux-6.1.9/lib/
Dobjagg.c711 int parent_index, int index) in objagg_tmp_graph_edge_index() argument
713 return index * graph->nodes_count + parent_index; in objagg_tmp_graph_edge_index()
717 int parent_index, int index) in objagg_tmp_graph_edge_set() argument
720 parent_index); in objagg_tmp_graph_edge_set()
726 int parent_index, int index) in objagg_tmp_graph_is_edge() argument
729 parent_index); in objagg_tmp_graph_is_edge()
/linux-6.1.9/drivers/clk/sunxi/
Dclk-factors.h25 u8 parent_index; member
Dclk-factors.c73 factors_req.parent_index = in clk_factors_recalc_rate()
101 .parent_index = i, in clk_factors_determine_rate()
Dclk-sunxi.c302 if (req->parent_index == SUN6I_AHB1_PARENT_PLL6) { in sun6i_get_ahb1_factors()
332 if (req->parent_index == SUN6I_AHB1_PARENT_PLL6) in sun6i_ahb1_recalc()
/linux-6.1.9/drivers/clk/bcm/
Dclk-kona.c813 static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel) in parent_index() function
851 index = parent_index(sel, parent_sel); in selector_read_index()
886 index = parent_index(sel, parent_sel); in __sel_commit()