Home
last modified time | relevance | path

Searched refs:fparent (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/arm64/freescale/imx/clk/
H A Dimx_clk_composite.c156 imx_clk_composite_find_best(uint64_t fparent, uint64_t ftarget, in imx_clk_composite_find_best() argument
166 cur= fparent / prediv / postdiv; in imx_clk_composite_find_best()
202 imx_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in imx_clk_composite_set_freq() argument
224 clknode_get_freq(p_clk, &fparent); in imx_clk_composite_set_freq()
226 clknode_get_name(p_clk), p_idx, fparent); in imx_clk_composite_set_freq()
228 if (!imx_clk_composite_find_best(fparent, *fout, &pre_div, &post_div, sc->flags)) in imx_clk_composite_set_freq()
230 cur = fparent / pre_div / post_div; in imx_clk_composite_set_freq()
/freebsd/sys/dev/clk/rockchip/
H A Drk_clk_composite.c193 rk_clk_composite_find_best(struct rk_clk_composite_sc *sc, uint64_t fparent, in rk_clk_composite_find_best() argument
210 cur = fparent / div; in rk_clk_composite_find_best()
223 rk_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_composite_set_freq() argument
239 clknode_get_freq(p_clk, &fparent); in rk_clk_composite_set_freq()
241 clknode_get_name(p_clk), p_idx, fparent); in rk_clk_composite_set_freq()
242 div = rk_clk_composite_find_best(sc, fparent, *fout, &div_reg); in rk_clk_composite_set_freq()
243 cur = fparent / div; in rk_clk_composite_set_freq()
H A Drk_clk_mux.c66 static int rk_clk_mux_set_freq(struct clknode *clk, uint64_t fparent,
165 rk_clk_mux_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_mux_set_freq() argument
H A Drk_clk_pll.c203 rk3066_clk_pll_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk3066_clk_pll_set_freq() argument
422 rk3328_clk_pll_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk3328_clk_pll_set_freq() argument
663 rk3399_clk_pll_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk3399_clk_pll_set_freq() argument
H A Drk_clk_armclk.c141 rk_clk_armclk_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_armclk_set_freq() argument
/freebsd/sys/dev/clk/allwinner/
H A Daw_clk_m.c134 aw_clk_m_find_best(struct aw_clk_m_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_m_find_best() argument
146 cur = fparent / m; in aw_clk_m_find_best()
161 aw_clk_m_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_m_set_freq() argument
173 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
184 clknode_get_freq(p_clk, &fparent); in aw_clk_m_set_freq()
185 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
H A Daw_clk_nm.c135 aw_clk_nm_find_best(struct aw_clk_nm_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nm_find_best() argument
150 cur = fparent / n / m; in aw_clk_nm_find_best()
173 aw_clk_nm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nm_set_freq() argument
192 clknode_get_freq(p_clk, &fparent); in aw_clk_nm_set_freq()
194 cur = aw_clk_nm_find_best(sc, fparent, fout, &n, &m); in aw_clk_nm_set_freq()
206 clknode_get_freq(p_clk, &fparent); in aw_clk_nm_set_freq()
208 best = aw_clk_nm_find_best(sc, fparent, fout, in aw_clk_nm_set_freq()
H A Daw_clk_frac.c145 aw_clk_frac_find_best(struct aw_clk_frac_sc *sc, uint64_t fparent, uint64_t fout, in aw_clk_frac_find_best() argument
157 min_n = sc->min_freq / fparent; in aw_clk_frac_find_best()
161 cur = fparent * n / m; in aw_clk_frac_find_best()
185 aw_clk_frac_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_frac_set_freq() argument
199 dprintf("Trying to find freq %ju with parent %ju\n", *fout, fparent); in aw_clk_frac_set_freq()
218 cur = aw_clk_frac_find_best(sc, fparent, *fout * multiple, in aw_clk_frac_set_freq()
H A Daw_clk_np.c100 aw_clk_np_find_best(struct aw_clk_np_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_np_find_best() argument
115 cur = fparent * n / p; in aw_clk_np_find_best()
131 aw_clk_np_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_np_set_freq() argument
143 best = aw_clk_np_find_best(sc, fparent, fout, in aw_clk_np_set_freq()
H A Daw_clk_nmm.c101 aw_clk_nmm_find_best(struct aw_clk_nmm_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nmm_find_best() argument
121 cur = fparent * n / m0 / m1; in aw_clk_nmm_find_best()
139 aw_clk_nmm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nmm_set_freq() argument
151 best = aw_clk_nmm_find_best(sc, fparent, fout, in aw_clk_nmm_set_freq()
H A Daw_clk_mipi.c113 aw_clk_mipi_find_best(struct aw_clk_mipi_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_mipi_find_best() argument
127 cur = (fparent * n * k) / m; in aw_clk_mipi_find_best()
144 aw_clk_mipi_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_mipi_set_freq() argument
156 best = aw_clk_mipi_find_best(sc, fparent, fout, &best_k, &best_m, &best_n); in aw_clk_mipi_set_freq()
H A Daw_clk_nkmp.c139 aw_clk_nkmp_find_best(struct aw_clk_nkmp_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nkmp_find_best() argument
155 cur = (fparent * n * k) / (m * p); in aw_clk_nkmp_find_best()
250 aw_clk_nkmp_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nkmp_set_freq() argument
260 best = aw_clk_nkmp_find_best(sc, fparent, fout, in aw_clk_nkmp_set_freq()
/freebsd/sys/arm/ti/clk/
H A Dti_clk_dpll.c111 ti_dpll_clk_find_best(struct ti_dpll_clknode_sc *sc, uint64_t fparent, in ti_dpll_clk_find_best() argument
126 cur = fparent * n / p; in ti_dpll_clk_find_best()
176 ti_dpll_clk_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in ti_dpll_clk_set_freq() argument
187 best = ti_dpll_clk_find_best(sc, fparent, fout, in ti_dpll_clk_set_freq()
/freebsd/sys/dev/clk/xilinx/
H A Dzynqmp_clk_div.c82 zynqmp_clk_div_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in zynqmp_clk_div_set_freq() argument
91 div = DIV_ROUND_CLOSEST(fparent, *fout); in zynqmp_clk_div_set_freq()
H A Dzynqmp_clk_pll.c96 zynqmp_clk_pll_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in zynqmp_clk_pll_set_freq() argument
/freebsd/sys/contrib/device-tree/src/arm64/mediatek/
H A Dmt8516-pumpkin.dts4 * Author: Fabien Parent <fparent@baylibre.com>
H A Dmt8167-pumpkin.dts4 * Author: Fabien Parent <fparent@baylibre.com>
H A Dpumpkin-common.dtsi4 * Author: Fabien Parent <fparent@baylibre.com>
H A Dmt8167.dtsi5 * Author: Fabien Parent <fparent@baylibre.com>
H A Dmt8183-pumpkin.dts4 * Author: Fabien Parent <fparent@baylibre.com>
H A Dmt8365-evk.dts5 * Fabien Parent <fparent@baylibre.com>
H A Dmt8195-demo.dts4 * Author: Fabien Parent <fparent@baylibre.com>
H A Dmt8516.dtsi5 * Author: Fabien Parent <fparent@baylibre.com>
H A Dmt8365.dtsi5 * Fabien Parent <fparent@baylibre.com>