/kernel/linux/linux-5.10/drivers/clk/baikal-t1/ |
D | ccu-div.c | 62 unsigned long div) in ccu_div_lock_delay_ns() 72 unsigned long div) in ccu_div_calc_freq() 77 static int ccu_div_var_update_clkdiv(struct ccu_div *div, in ccu_div_var_update_clkdiv() 114 struct ccu_div *div = to_ccu_div(hw); in ccu_div_var_enable() local 143 struct ccu_div *div = to_ccu_div(hw); in ccu_div_gate_enable() local 156 struct ccu_div *div = to_ccu_div(hw); in ccu_div_gate_disable() local 166 struct ccu_div *div = to_ccu_div(hw); in ccu_div_gate_is_enabled() local 176 struct ccu_div *div = to_ccu_div(hw); in ccu_div_buf_enable() local 189 struct ccu_div *div = to_ccu_div(hw); in ccu_div_buf_disable() local 200 struct ccu_div *div = to_ccu_div(hw); in ccu_div_buf_is_enabled() local [all …]
|
/kernel/linux/linux-5.10/drivers/clk/ti/ |
D | divider.c | 80 unsigned int div) in _get_table_val() 90 static unsigned int _get_val(struct clk_omap_divider *divider, u8 div) in _get_val() 105 unsigned int div, val; in ti_clk_divider_recalc_rate() local 128 unsigned int div) in _is_valid_table_div() 138 static bool _is_valid_div(struct clk_omap_divider *divider, unsigned int div) in _is_valid_div() 152 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up() local 237 int div; in ti_clk_divider_round_rate() local 247 unsigned int div, value; in ti_clk_divider_set_rate() local 318 struct clk_omap_divider *div) in _register_divider() 396 struct clk_omap_divider *div) in ti_clk_get_div_table() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-divider.c | 105 unsigned int div) in _get_table_val() 116 unsigned int div, unsigned long flags, u8 width) in _get_val() 134 unsigned int div; in divider_recalc_rate() local 162 unsigned int div) in _is_valid_table_div() 172 static bool _is_valid_div(const struct clk_div_table *table, unsigned int div, in _is_valid_div() 182 static int _round_up_table(const struct clk_div_table *table, int div) in _round_up_table() 200 static int _round_down_table(const struct clk_div_table *table, int div) in _round_down_table() 222 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up() local 275 static int _next_div(const struct clk_div_table *table, int div, in _next_div() 350 int div; in divider_round_rate_parent() local [all …]
|
D | clk-fixed-factor.c | 70 unsigned long flags, unsigned int mult, unsigned int div) in __clk_hw_register_fixed_factor() 111 unsigned int mult, unsigned int div) in clk_hw_register_fixed_factor() 120 unsigned int mult, unsigned int div) in clk_register_fixed_factor() 167 u32 div, mult; in _of_fixed_factor_clk_setup() local
|
D | clk-highbank.c | 197 u32 div = (readl(hbclk->reg) & HB_A9_PCLK_DIV) ? 8 : 4; in clk_cpu_periphclk_recalc_rate() local 209 u32 div = (readl(hbclk->reg) & HB_A9_BCLK_DIV_MASK) >> HB_A9_BCLK_DIV_SHIFT; in clk_cpu_a9bclk_recalc_rate() local 222 u32 div; in clk_periclk_recalc_rate() local 234 u32 div; in clk_periclk_round_rate() local 247 u32 div; in clk_periclk_set_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/berlin/ |
D | berlin2-div.c | 67 struct berlin2_div *div = to_berlin2_div(hw); in berlin2_div_is_enabled() local 85 struct berlin2_div *div = to_berlin2_div(hw); in berlin2_div_enable() local 104 struct berlin2_div *div = to_berlin2_div(hw); in berlin2_div_disable() local 121 struct berlin2_div *div = to_berlin2_div(hw); in berlin2_div_set_parent() local 152 struct berlin2_div *div = to_berlin2_div(hw); in berlin2_div_get_parent() local 179 struct berlin2_div *div = to_berlin2_div(hw); in berlin2_div_recalc_rate() local 236 struct berlin2_div *div; in berlin2_div_register() local
|
/kernel/linux/linux-5.10/drivers/clk/imx/ |
D | clk-divider-gate.c | 21 struct clk_divider *div = to_clk_divider(hw); in to_clk_divider_gate() local 29 struct clk_divider *div = to_clk_divider(hw); in clk_divider_gate_recalc_rate_ro() local 45 struct clk_divider *div = to_clk_divider(hw); in clk_divider_gate_recalc_rate() local 77 struct clk_divider *div = to_clk_divider(hw); in clk_divider_gate_set_rate() local 106 struct clk_divider *div = to_clk_divider(hw); in clk_divider_enable() local 129 struct clk_divider *div = to_clk_divider(hw); in clk_divider_disable() local 146 struct clk_divider *div = to_clk_divider(hw); in clk_divider_is_enabled() local
|
D | clk-pllv3.c | 114 u32 div = (readl_relaxed(pll->base) >> pll->div_shift) & pll->div_mask; in clk_pllv3_recalc_rate() local 132 u32 val, div; in clk_pllv3_set_rate() local 162 u32 div = readl_relaxed(pll->base) & pll->div_mask; in clk_pllv3_sys_recalc_rate() local 173 u32 div; in clk_pllv3_sys_round_rate() local 190 u32 val, div; in clk_pllv3_sys_set_rate() local 219 u32 div = readl_relaxed(pll->base) & pll->div_mask; in clk_pllv3_av_recalc_rate() local 234 u32 div; in clk_pllv3_av_round_rate() local 266 u32 val, div; in clk_pllv3_av_set_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/mxs/ |
D | clk-div.c | 38 struct clk_div *div = to_clk_div(hw); in clk_div_recalc_rate() local 46 struct clk_div *div = to_clk_div(hw); in clk_div_round_rate() local 54 struct clk_div *div = to_clk_div(hw); in clk_div_set_rate() local 73 struct clk_div *div; in mxs_clk_div() local
|
D | clk-frac.c | 37 u32 div; in clk_frac_recalc_rate() local 52 u32 div; in clk_frac_round_rate() local 78 u32 div, val; in clk_frac_set_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | clk-regmap-mux-div.c | 23 int mux_div_set_src_div(struct clk_regmap_mux_div *md, u32 src, u32 div) in mux_div_set_src_div() 60 u32 *div) in mux_div_get_src_div() 92 unsigned int i, div, max_div; in mux_div_determine_rate() local 129 u32 div, max_div, best_src = 0, best_div = 0; in __mux_div_set_rate_and_parent() local 167 u32 i, div, src = 0; in mux_div_get_parent() local 206 u32 div, src; in mux_div_recalc_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/bcm/ |
D | clk-kona.c | 58 static inline u64 scaled_div_value(struct bcm_clk_div *div, u32 reg_div) in scaled_div_value() 68 u64 scaled_div_build(struct bcm_clk_div *div, u32 div_value, u32 billionths) in scaled_div_build() 83 scaled_div_min(struct bcm_clk_div *div) in scaled_div_min() 92 u64 scaled_div_max(struct bcm_clk_div *div) in scaled_div_max() 109 divider(struct bcm_clk_div *div, u64 scaled_div) in divider() 119 scale_rate(struct bcm_clk_div *div, u32 rate) in scale_rate() 564 static u64 divider_read_scaled(struct ccu_data *ccu, struct bcm_clk_div *div) in divider_read_scaled() 592 struct bcm_clk_div *div, struct bcm_clk_trig *trig) in __div_commit() 648 struct bcm_clk_div *div, struct bcm_clk_trig *trig) in div_init() 656 struct bcm_clk_div *div, struct bcm_clk_trig *trig, in divider_write() [all …]
|
D | clk-iproc-asiu.c | 32 struct iproc_asiu_div div; member 114 unsigned int div; in iproc_asiu_clk_round_rate() local 134 unsigned int div, div_h, div_l; in iproc_asiu_clk_set_rate() local 186 const struct iproc_asiu_div *div, in iproc_asiu_setup()
|
/kernel/linux/linux-5.10/drivers/clk/sprd/ |
D | div.c | 13 const struct sprd_div_internal *div, in sprd_div_helper_round_rate() 32 const struct sprd_div_internal *div, in sprd_div_helper_recalc_rate() 56 const struct sprd_div_internal *div, in sprd_div_helper_set_rate()
|
/kernel/linux/linux-5.10/drivers/clk/actions/ |
D | owl-divider.c | 29 struct owl_divider *div = hw_to_owl_divider(hw); in owl_divider_round_rate() local 55 struct owl_divider *div = hw_to_owl_divider(hw); in owl_divider_recalc_rate() local 84 struct owl_divider *div = hw_to_owl_divider(hw); in owl_divider_set_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/sunxi/ |
D | clk-sunxi.c | 35 u8 div; in sun4i_get_pll1_factors() local 159 u8 div; in sun8i_a23_get_pll1_factors() local 203 u8 div; in sun4i_get_pll5_factors() local 230 u8 div; in sun6i_a31_get_pll6_factors() local 251 u32 div; in sun5i_a13_get_ahb_factors() local 290 u8 div, calcp, calcm = 1; in sun6i_get_ahb1_factors() local 348 int div; in sun4i_get_apb1_factors() local 386 u8 div, calcm, calcp; in sun7i_a20_get_out_factors() local 890 } div[SUNXI_DIVS_MAX_QTY]; member
|
D | clk-sun9i-cpus.c | 36 #define SUN9I_CPUS_DIV_SET(reg, div) ((reg & ~SUN9I_CPUS_DIV_MASK) | \ argument 42 #define SUN9I_CPUS_PLL4_DIV_SET(reg, div) ((reg & ~SUN9I_CPUS_PLL4_DIV_MASK) | \ argument 75 u8 div, pre_div = 1; in sun9i_a80_cpus_clk_round() local 157 u8 div, pre_div, parent; in sun9i_a80_cpus_clk_set_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
D | clk-divider.c | 24 int div; in get_div() local 40 int div, mul; in clk_frac_div_recalc_rate() local 65 int div, mul; in clk_frac_div_round_rate() local 84 int div; in clk_frac_div_set_rate() local
|
D | clk-tegra20-emc.c | 57 u32 val, div; in emc_recalc_rate() local 75 u32 val, div; in emc_set_parent() local 105 u32 val, div; in emc_set_rate() local 138 u32 val, div; in emc_set_rate_and_parent() local 175 int div; in emc_determine_rate() local
|
/kernel/linux/linux-5.10/drivers/clk/mvebu/ |
D | orion.c | 60 int *mult, int *div) in mv88f5181_get_clk_ratio() 128 int *mult, int *div) in mv88f5182_get_clk_ratio() 185 int *mult, int *div) in mv88f5281_get_clk_ratio() 251 int *mult, int *div) in mv88f6183_get_clk_ratio()
|
/kernel/linux/linux-5.10/drivers/pwm/ |
D | pwm-rcar.c | 76 u64 div, tmp; in rcar_pwm_get_clock_division() local 90 unsigned int div) in rcar_pwm_set_clock_control() 106 static int rcar_pwm_set_counter(struct rcar_pwm_chip *rp, int div, int duty_ns, in rcar_pwm_set_counter() 167 int div, ret; in rcar_pwm_apply() local
|
/kernel/linux/linux-5.10/drivers/gpu/drm/pl111/ |
D | pl111_display.c | 449 int best_div = 1, div; in pl111_clk_div_choose_div() local 479 int div = pl111_clk_div_choose_div(hw, rate, prate, true); in pl111_clk_div_round_rate() local 490 int div; in pl111_clk_div_recalc_rate() local 508 int div = pl111_clk_div_choose_div(hw, rate, &prate, false); in pl111_clk_div_set_rate() local 540 struct clk_hw *div = &priv->clk_div; in pl111_init_clock_divider() local
|
/kernel/linux/linux-5.10/drivers/clk/renesas/ |
D | clk-div6.c | 39 unsigned int div; member 96 unsigned int div; in cpg_div6_clock_calc_div() local 108 unsigned int div = cpg_div6_clock_calc_div(rate, *parent_rate); in cpg_div6_clock_round_rate() local 117 unsigned int div = cpg_div6_clock_calc_div(rate, parent_rate); in cpg_div6_clock_set_rate() local
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_backlight.c | 123 u32 div = 1025; in nv50_get_intensity() local 138 u32 div = 1025; in nv50_set_intensity() local 159 u32 div, val; in nva3_get_intensity() local 177 u32 div, val; in nva3_set_intensity() local
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | rl6231.c | 72 static const int div[] = {2, 3, 4, 6, 8, 12}; in rl6231_calc_dmic_clk() local 112 unsigned int max, unsigned int div) in find_best_div() 146 unsigned int red, pll_out, in_t, out_t, div, div_t; in rl6231_pll_calc() local
|