Home
last modified time | relevance | path

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

/linux/drivers/clk/sunxi-ng/
H A 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()
H A Dccu_mux.h135 int parent_index,
/linux/drivers/clk/
H A 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()
H A Dclk-scmi.c94 static int scmi_clk_set_parent(struct clk_hw *hw, u8 parent_index) in scmi_clk_set_parent() argument
98 return scmi_proto_clk_ops->parent_set(clk->ph, clk->id, parent_index); in scmi_clk_set_parent()
/linux/drivers/clk/tegra/
H A 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()
H A 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/drivers/clk/ux500/
H A 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()
159 clk->parent_index = 0; in clk_reg_sysctrl()
/linux/drivers/md/persistent-data/
H A Ddm-btree.c654 static int split_one_into_two(struct shadow_spine *s, unsigned int parent_index, in split_one_into_two() argument
683 r = insert_at(sizeof(__le64), pn, parent_index + 1, in split_one_into_two()
737 static int split_two_into_three(struct shadow_spine *s, unsigned int parent_index, in split_two_into_three() argument
749 if (parent_index == 0) { in split_two_into_three()
752 r = shadow_child(s->info, vt, pn, parent_index + 1, &right); in split_two_into_three()
756 middle_index = parent_index; in split_two_into_three()
758 r = shadow_child(s->info, vt, pn, parent_index - 1, &left); in split_two_into_three()
916 unsigned int parent_index, uint64_t key) in rebalance_left() argument
922 r = shadow_child(s->info, vt, parent, parent_index - 1, &sib); in rebalance_left()
929 *key_ptr(parent, parent_index) = right->keys[0]; in rebalance_left()
[all …]
/linux/arch/sparc/kernel/
H A 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/drivers/clk/mmp/
H A 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()
H A Dclk.h67 u8 parent_index; member
/linux/drivers/clk/mediatek/
H A Dclk-mux.c92 if (mux->data->parent_index) { in mtk_clk_mux_get_parent()
96 if (mux->data->parent_index[i] == val) in mtk_clk_mux_get_parent()
118 if (mux->data->parent_index) in mtk_clk_mux_set_parent_setclr_lock()
119 index = mux->data->parent_index[index]; in mtk_clk_mux_set_parent_setclr_lock()
H A Dclk-mux.h24 const u8 *parent_index; member
56 .parent_index = _paridx, \
/linux/lib/
H A Dobjagg.c714 int parent_index, int index) in objagg_tmp_graph_edge_index() argument
716 return index * graph->nodes_count + parent_index; in objagg_tmp_graph_edge_index()
720 int parent_index, int index) in objagg_tmp_graph_edge_set() argument
723 parent_index); in objagg_tmp_graph_edge_set()
729 int parent_index, int index) in objagg_tmp_graph_is_edge() argument
732 parent_index); in objagg_tmp_graph_is_edge()
/linux/drivers/clk/imx/
H A Dclk-scu.c56 u8 parent_index; member
361 clk->parent_index = msg.data.resp.parent; in clk_scu_get_parent()
389 clk->parent_index = index; in clk_scu_set_parent()
603 clk->parent_index); in imx_clk_scu_suspend()
625 ret = clk_scu_set_parent(&clk->hw, clk->parent_index); in imx_clk_scu_resume()
628 clk->parent_index, !ret ? "success" : "failed"); in imx_clk_scu_resume()
/linux/drivers/clk/sunxi/
H A Dclk-factors.h25 u8 parent_index; member
H A Dclk-factors.c73 factors_req.parent_index = in clk_factors_recalc_rate()
101 .parent_index = i, in clk_factors_determine_rate()
H A 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/drivers/clk/bcm/
H A 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()