/linux-6.6.21/drivers/clk/baikal-t1/ |
D | ccu-div.c | 61 unsigned long div) in ccu_div_lock_delay_ns() 71 unsigned long div) in ccu_div_calc_freq() 76 static int ccu_div_var_update_clkdiv(struct ccu_div *div, in ccu_div_var_update_clkdiv() 113 struct ccu_div *div = to_ccu_div(hw); in ccu_div_var_enable() local 142 struct ccu_div *div = to_ccu_div(hw); in ccu_div_gate_enable() local 155 struct ccu_div *div = to_ccu_div(hw); in ccu_div_gate_disable() local 165 struct ccu_div *div = to_ccu_div(hw); in ccu_div_gate_is_enabled() local 175 struct ccu_div *div = to_ccu_div(hw); in ccu_div_buf_enable() local 188 struct ccu_div *div = to_ccu_div(hw); in ccu_div_buf_disable() local 199 struct ccu_div *div = to_ccu_div(hw); in ccu_div_buf_is_enabled() local [all …]
|
/linux-6.6.21/drivers/clk/ti/ |
D | divider.c | 72 unsigned int div) in _get_table_val() 82 static unsigned int _get_val(struct clk_omap_divider *divider, u8 div) in _get_val() 97 unsigned int div, val; in ti_clk_divider_recalc_rate() local 120 unsigned int div) in _is_valid_table_div() 130 static bool _is_valid_div(struct clk_omap_divider *divider, unsigned int div) in _is_valid_div() 144 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up() local 229 int div; in ti_clk_divider_round_rate() local 239 unsigned int div, value; in ti_clk_divider_set_rate() local 310 struct clk_omap_divider *div) in _register_divider() 384 struct clk_omap_divider *div) in ti_clk_get_div_table() [all …]
|
/linux-6.6.21/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 | 115 u32 div = (readl_relaxed(pll->base) >> pll->div_shift) & pll->div_mask; in clk_pllv3_recalc_rate() local 133 u32 val, div; in clk_pllv3_set_rate() local 163 u32 div = readl_relaxed(pll->base) & pll->div_mask; in clk_pllv3_sys_recalc_rate() local 174 u32 div; in clk_pllv3_sys_round_rate() local 191 u32 val, div; in clk_pllv3_sys_set_rate() local 220 u32 div = readl_relaxed(pll->base) & pll->div_mask; in clk_pllv3_av_recalc_rate() local 235 u32 div; in clk_pllv3_av_round_rate() local 267 u32 val, div; in clk_pllv3_av_set_rate() local
|
/linux-6.6.21/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 237 struct berlin2_div *div; in berlin2_div_register() local
|
/linux-6.6.21/drivers/clk/ |
D | clk-fixed-factor.c | 83 unsigned long flags, unsigned int mult, unsigned int div, in __clk_hw_register_fixed_factor() 152 unsigned int mult, unsigned int div) in devm_clk_hw_register_fixed_factor_index() 174 unsigned long flags, unsigned int mult, unsigned int div) in devm_clk_hw_register_fixed_factor_parent_hw() 183 unsigned long flags, unsigned int mult, unsigned int div) in clk_hw_register_fixed_factor_parent_hw() 193 unsigned int mult, unsigned int div) in clk_hw_register_fixed_factor() 202 unsigned int mult, unsigned int div) in clk_register_fixed_factor() 240 unsigned int mult, unsigned int div) in devm_clk_hw_register_fixed_factor() 252 u32 div, mult; in _of_fixed_factor_clk_setup() local
|
D | clk-divider.c | 106 unsigned int div) in _get_table_val() 117 unsigned int div, unsigned long flags, u8 width) in _get_val() 135 unsigned int div; in divider_recalc_rate() local 163 unsigned int div) in _is_valid_table_div() 173 static bool _is_valid_div(const struct clk_div_table *table, unsigned int div, in _is_valid_div() 183 static int _round_up_table(const struct clk_div_table *table, int div) in _round_up_table() 201 static int _round_down_table(const struct clk_div_table *table, int div) in _round_down_table() 223 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up() local 276 static int _next_div(const struct clk_div_table *table, int div, in _next_div() 350 int div; in divider_determine_rate() local [all …]
|
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
|
/linux-6.6.21/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
|
/linux-6.6.21/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
|
/linux-6.6.21/drivers/clk/bcm/ |
D | clk-kona.c | 50 static inline u64 scaled_div_value(struct bcm_clk_div *div, u32 reg_div) in scaled_div_value() 60 u64 scaled_div_build(struct bcm_clk_div *div, u32 div_value, u32 billionths) in scaled_div_build() 75 scaled_div_min(struct bcm_clk_div *div) in scaled_div_min() 84 u64 scaled_div_max(struct bcm_clk_div *div) in scaled_div_max() 101 divider(struct bcm_clk_div *div, u64 scaled_div) in divider() 111 scale_rate(struct bcm_clk_div *div, u32 rate) in scale_rate() 556 static u64 divider_read_scaled(struct ccu_data *ccu, struct bcm_clk_div *div) in divider_read_scaled() 584 struct bcm_clk_div *div, struct bcm_clk_trig *trig) in __div_commit() 640 struct bcm_clk_div *div, struct bcm_clk_trig *trig) in div_init() 648 struct bcm_clk_div *div, struct bcm_clk_trig *trig, in divider_write() [all …]
|
D | clk-iproc-asiu.c | 22 struct iproc_asiu_div div; member 104 unsigned int div; in iproc_asiu_clk_round_rate() local 124 unsigned int div, div_h, div_l; in iproc_asiu_clk_set_rate() local 176 const struct iproc_asiu_div *div, in iproc_asiu_setup()
|
/linux-6.6.21/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
|
/linux-6.6.21/drivers/gpu/drm/mcde/ |
D | mcde_clk_div.c | 47 int best_div = 1, div; in mcde_clk_div_choose_div() local 77 int div = mcde_clk_div_choose_div(hw, rate, prate, true); in mcde_clk_div_round_rate() local 88 int div; in mcde_clk_div_recalc_rate() local 113 int div = mcde_clk_div_choose_div(hw, rate, &prate, false); in mcde_clk_div_set_rate() local
|
/linux-6.6.21/drivers/clk/tegra/ |
D | clk-tegra20-emc.c | 58 u32 val, div; in emc_recalc_rate() local 76 u32 val, div; in emc_set_parent() local 106 u32 val, div; in emc_set_rate() local 139 u32 val, div; in emc_set_rate_and_parent() local 176 int div; in emc_determine_rate() local
|
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
|
/linux-6.6.21/drivers/clk/at91/ |
D | clk-sam9x60-pll.c | 50 u8 div; member 337 static void sam9x60_div_pll_set_div(struct sam9x60_pll_core *core, u32 div, in sam9x60_div_pll_set_div() 358 struct sam9x60_div *div = to_sam9x60_div(core); in sam9x60_div_pll_set() local 431 struct sam9x60_div *div = to_sam9x60_div(core); in sam9x60_div_pll_recalc_rate() local 491 struct sam9x60_div *div = to_sam9x60_div(core); in sam9x60_div_pll_set_rate() local 502 struct sam9x60_div *div = to_sam9x60_div(core); in sam9x60_div_pll_set_rate_chg() local 530 struct sam9x60_div *div = to_sam9x60_div(core); in sam9x60_div_pll_save_context() local 540 struct sam9x60_div *div = to_sam9x60_div(core); in sam9x60_div_pll_restore_context() local 549 struct sam9x60_div *div = notifier_div; in sam9x60_div_pll_notifier_fn() local 704 struct sam9x60_div *div; in sam9x60_clk_register_div_pll() local
|
D | clk-master.c | 39 u8 div; member 87 u8 div; in clk_master_div_recalc_rate() local 118 unsigned int mckr, div; in clk_master_div_save_context() local 139 u8 div; in clk_master_div_restore_context() local 163 unsigned long parent_rate, int div) in clk_master_div_set() 255 unsigned int mckr, div, new_div = 0; in clk_master_div_notifier_fn() local 358 u32 div) in clk_sama7g5_master_best_diff() 593 unsigned int div, i; in clk_sama7g5_master_determine_rate() local 695 unsigned int div = master->div << MASTER_DIV_SHIFT; in clk_sama7g5_master_set() local 763 unsigned long div, flags; in clk_sama7g5_master_set_rate() local
|
/linux-6.6.21/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
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/clk/socfpga/ |
D | clk-gate.c | 92 u32 div = 1, val; in socfpga_clk_get_div() local 113 u32 div = socfpga_clk_get_div(socfpgaclk); in socfpga_clk_recalc_rate() local 123 u32 div = socfpga_clk_get_div(socfpgaclk); in socfpga_clk_determine_rate() local
|
/linux-6.6.21/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
|
/linux-6.6.21/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
|