Home
last modified time | relevance | path

Searched defs:div (Results 1 – 25 of 615) sorted by relevance

12345678910>>...25

/kernel/linux/linux-5.10/drivers/clk/baikal-t1/
Dccu-div.c61 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
176 struct ccu_div *div = to_ccu_div(hw); in ccu_div_var_recalc_rate() local
200 struct ccu_div *div = to_ccu_div(hw); in ccu_div_var_round_rate() local
216 struct ccu_div *div = to_ccu_div(hw); in ccu_div_var_set_rate_slow() local
[all …]
/kernel/linux/linux-5.10/drivers/clk/ti/
Ddivider.c80 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/
Dclk-divider.c105 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 …]
Dclk-fixed-factor.c70 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
Dclk-highbank.c197 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/
Dberlin2-div.c67 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/
Dclk-divider-gate.c21 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
Dclk-pllv3.c114 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/
Dclk-div.c38 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
Dclk-frac.c37 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/
Dclk-regmap-mux-div.c23 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/
Dclk-kona.c58 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 …]
Dclk-iproc-asiu.c32 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/
Ddiv.c13 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/
Dowl-divider.c29 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/
Dclk-sunxi.c35 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
Dclk-sun9i-cpus.c36 #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/
Dclk-divider.c24 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
Dclk-tegra20-emc.c57 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/
Dorion.c60 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/
Dpwm-rcar.c76 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/
Dpl111_display.c449 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/gpu/drm/nouveau/
Dnouveau_backlight.c122 u32 div = 1025; in nv50_get_intensity() local
137 u32 div = 1025; in nv50_set_intensity() local
158 u32 div, val; in nva3_get_intensity() local
176 u32 div, val; in nva3_set_intensity() local
/kernel/linux/linux-5.10/drivers/clk/renesas/
Dclk-div6.c39 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/media/pci/ttpci/
Dbudget.c199 u32 div = (c->frequency + 479500) / 125; in alps_bsrv2_tuner_set_params() local
238 u32 div; in alps_tdbe2_tuner_set_params() local
267 u32 div; in grundig_29504_401_tuner_set_params() local
324 u32 div; in grundig_29504_451_tuner_set_params() local
348 u32 div; in s5h1420_tuner_set_params() local

12345678910>>...25