Home
last modified time | relevance | path

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

/openbmc/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,
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-btree.c683 r = insert_at(sizeof(__le64), pn, parent_index + 1, in split_one_into_two()
749 if (parent_index == 0) { in split_two_into_three()
756 middle_index = parent_index; in split_two_into_three()
916 unsigned int parent_index, uint64_t key) in rebalance_left() argument
929 *key_ptr(parent, parent_index) = right->keys[0]; in rebalance_left()
945 unsigned int parent_index, uint64_t key) in rebalance_right() argument
1002 unsigned int parent_index, uint64_t key) in rebalance_or_split() argument
1011 if (parent_index > 0) { in rebalance_or_split()
1024 return rebalance_left(s, vt, parent_index, key); in rebalance_or_split()
1029 if (parent_index < (nr_parent - 1)) { in rebalance_or_split()
[all …]
/openbmc/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()
/openbmc/u-boot/drivers/clk/at91/
H A Dclk-generated.c55 u8 clock_source, parent_index; in generic_clk_get_rate() local
64 parent_index = clock_source - 1; in generic_clk_get_rate()
65 ret = clk_get_by_index(dev_get_parent(clk->dev), parent_index, &parent); in generic_clk_get_rate()
/openbmc/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.h71 u8 parent_index; member
/openbmc/linux/drivers/clk/imx/
H A Dclk-scu.c54 u8 parent_index; member
359 clk->parent_index = msg.data.resp.parent; in clk_scu_get_parent()
387 clk->parent_index = index; in clk_scu_set_parent()
601 clk->parent_index); in imx_clk_scu_suspend()
623 ret = clk_scu_set_parent(&clk->hw, clk->parent_index); in imx_clk_scu_resume()
626 clk->parent_index, !ret ? "success" : "failed"); in imx_clk_scu_resume()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/qemu/block/
H A Dvvfat.c751 int parent_index = mapping->info.dir.parent_mapping_index; in read_directory() local
753 (parent_index >= 0 ? array_get(&(s->mapping), parent_index) : NULL); in read_directory()