/freebsd/sys/arm64/freescale/imx/clk/ |
H A D | imx_clk_composite.c | 156 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 D | rk_clk_composite.c | 193 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 D | rk_clk_mux.c | 66 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 D | rk_clk_pll.c | 203 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 D | rk_clk_armclk.c | 141 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 D | aw_clk_m.c | 134 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 D | aw_clk_nm.c | 135 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 D | aw_clk_frac.c | 145 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 D | aw_clk_np.c | 100 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 D | aw_clk_nmm.c | 101 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 D | aw_clk_mipi.c | 113 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 D | aw_clk_nkmp.c | 139 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 D | ti_clk_dpll.c | 111 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 D | zynqmp_clk_div.c | 82 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 D | zynqmp_clk_pll.c | 96 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 D | mt8516-pumpkin.dts | 4 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | mt8167-pumpkin.dts | 4 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | pumpkin-common.dtsi | 4 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | mt8167.dtsi | 5 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | mt8183-pumpkin.dts | 4 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | mt8365-evk.dts | 5 * Fabien Parent <fparent@baylibre.com>
|
H A D | mt8195-demo.dts | 4 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | mt8516.dtsi | 5 * Author: Fabien Parent <fparent@baylibre.com>
|
H A D | mt8365.dtsi | 5 * Fabien Parent <fparent@baylibre.com>
|