Home
last modified time | relevance | path

Searched defs:divider (Results 1 – 25 of 149) sorted by relevance

123456

/openbmc/linux/drivers/clk/ti/
H A Ddivider.c32 static void _setup_mask(struct clk_omap_divider *divider) in _setup_mask()
60 static unsigned int _get_div(struct clk_omap_divider *divider, unsigned int val) in _get_div()
82 static unsigned int _get_val(struct clk_omap_divider *divider, u8 div) in _get_val()
96 struct clk_omap_divider *divider = to_clk_omap_divider(hw); in ti_clk_divider_recalc_rate() local
130 static bool _is_valid_div(struct clk_omap_divider *divider, unsigned int div) in _is_valid_div()
171 struct clk_omap_divider *divider = to_clk_omap_divider(hw); in ti_clk_divider_bestdiv() local
238 struct clk_omap_divider *divider; in ti_clk_divider_set_rate() local
274 struct clk_omap_divider *divider = to_clk_omap_divider(hw); in clk_divider_save_context() local
291 struct clk_omap_divider *divider = to_clk_omap_divider(hw); in clk_divider_restore_context() local
332 u8 flags, struct clk_omap_divider *divider) in ti_clk_parse_divider_data()
[all …]
H A Dclk-dra7-atl.c49 u32 divider; /* Cached divider value */ member
126 unsigned divider; in atl_clk_round_rate() local
139 u32 divider; in atl_clk_set_rate() local
/openbmc/linux/drivers/clk/qcom/
H A Dclk-regmap-divider.c21 struct clk_regmap_div *divider = to_clk_regmap_div(hw); in div_round_ro_rate() local
36 struct clk_regmap_div *divider = to_clk_regmap_div(hw); in div_round_rate() local
45 struct clk_regmap_div *divider = to_clk_regmap_div(hw); in div_set_rate() local
60 struct clk_regmap_div *divider = to_clk_regmap_div(hw); in div_recalc_rate() local
/openbmc/linux/drivers/clk/tegra/
H A Dclk-divider.c21 static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate, in get_div()
38 struct tegra_clk_frac_div *divider = to_clk_frac_div(hw); in clk_frac_div_recalc_rate() local
64 struct tegra_clk_frac_div *divider = to_clk_frac_div(hw); in clk_frac_div_round_rate() local
83 struct tegra_clk_frac_div *divider = to_clk_frac_div(hw); in clk_frac_div_set_rate() local
139 struct tegra_clk_frac_div *divider; in tegra_clk_register_divider() local
/openbmc/linux/drivers/clk/mvebu/
H A Ddove-divider.c53 unsigned int divider; in dove_get_divider() local
70 unsigned int divider, max; in dove_calc_divider() local
102 unsigned int divider = dove_get_divider(dc); in dove_recalc_rate() local
116 int divider; in dove_round_rate() local
135 int divider; in dove_set_clock() local
/openbmc/linux/drivers/clk/imx/
H A Dclk-fixup-div.c24 struct clk_divider divider; member
31 struct clk_divider *divider = to_clk_divider(hw); in to_clk_fixup_div() local
57 unsigned int divider, value; in clk_fixup_div_set_rate() local
H A Dclk-composite-8m.c31 struct clk_divider *divider = to_clk_divider(hw); in imx8m_clk_composite_divider_recalc_rate() local
95 struct clk_divider *divider = to_clk_divider(hw); in imx8m_clk_composite_divider_set_rate() local
127 struct clk_divider *divider = to_clk_divider(hw); in imx8m_divider_determine_rate() local
/openbmc/linux/drivers/media/i2c/cx25840/
H A Dcx25840-ir.c145 static inline unsigned int clock_divider_to_carrier_freq(unsigned int divider) in clock_divider_to_carrier_freq()
150 static inline unsigned int clock_divider_to_freq(unsigned int divider, in clock_divider_to_freq()
195 static u32 clock_divider_to_resolution(u16 divider) in clock_divider_to_resolution()
206 static u64 pulse_width_count_to_ns(u16 count, u16 divider) in pulse_width_count_to_ns()
248 static unsigned int pulse_width_count_to_us(u16 count, u16 divider) in pulse_width_count_to_us()
393 u16 *divider) in txclk_tx_s_carrier()
402 u16 *divider) in rxclk_rx_s_carrier()
410 u16 *divider) in txclk_tx_s_max_pulse_width()
423 u16 *divider) in rxclk_rx_s_max_pulse_width()
633 u16 divider; in cx25840_ir_rx_read() local
/openbmc/linux/drivers/clk/xilinx/
H A Dclk-xlnx-clock-wizard.c153 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_recalc_rate() local
170 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_dynamic_reconfig() local
229 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_get_divisors() local
257 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_dynamic_all_nolock() local
305 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_dynamic_all() local
321 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_recalc_rate_all() local
339 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_round_rate_all() local
380 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_recalc_ratef() local
396 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw); in clk_wzrd_dynamic_reconfig_f() local
/openbmc/linux/drivers/media/pci/cx23885/
H A Dcx23888-ir.c184 static inline unsigned int clock_divider_to_carrier_freq(unsigned int divider) in clock_divider_to_carrier_freq()
189 static inline unsigned int clock_divider_to_freq(unsigned int divider, in clock_divider_to_freq()
234 static u32 clock_divider_to_resolution(u16 divider) in clock_divider_to_resolution()
245 static u64 pulse_width_count_to_ns(u16 count, u16 divider) in pulse_width_count_to_ns()
261 static unsigned int pulse_width_count_to_us(u16 count, u16 divider) in pulse_width_count_to_us()
413 u16 *divider) in txclk_tx_s_carrier()
422 u16 *divider) in rxclk_rx_s_carrier()
430 u16 *divider) in txclk_tx_s_max_pulse_width()
443 u16 *divider) in rxclk_rx_s_max_pulse_width()
634 u16 divider = (u16) atomic_read(&state->rxclk_divider); in cx23888_ir_rx_read() local
/openbmc/linux/drivers/clk/rockchip/
H A Dclk-half-divider.c25 struct clk_divider *divider = to_clk_divider(hw); in clk_half_divider_recalc_rate() local
98 struct clk_divider *divider = to_clk_divider(hw); in clk_half_divider_round_rate() local
111 struct clk_divider *divider = to_clk_divider(hw); in clk_half_divider_set_rate() local
/openbmc/linux/drivers/clk/baikal-t1/
H A Dccu-div.c78 unsigned long divider) in ccu_div_var_update_clkdiv()
211 unsigned long divider; in ccu_div_var_recalc_rate() local
224 unsigned long divider; in ccu_div_var_calc_divider() local
235 unsigned long divider; in ccu_div_var_round_rate() local
251 unsigned long flags, divider; in ccu_div_var_set_rate_slow() local
285 unsigned long flags, divider; in ccu_div_var_set_rate_fast() local
H A Dccu-div.h79 unsigned int divider; member
105 unsigned int divider; member
/openbmc/linux/drivers/clk/zynqmp/
H A Ddivider.c82 struct zynqmp_clk_divider *divider = to_zynqmp_clk_divider(hw); in zynqmp_clk_divider_recalc_rate() local
125 struct zynqmp_clk_divider *divider = to_zynqmp_clk_divider(hw); in zynqmp_clk_divider_round_rate() local
172 struct zynqmp_clk_divider *divider = to_zynqmp_clk_divider(hw); in zynqmp_clk_divider_set_rate() local
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dspl_mem_init.c147 const unsigned char divider = 33; in mxs_mem_init_clock() local
150 const unsigned char divider = 21; in mxs_mem_init_clock() local
/openbmc/linux/drivers/clk/mxs/
H A Dclk-div.c22 struct clk_divider divider; member
30 struct clk_divider *divider = to_clk_divider(hw); in to_clk_div() local
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dqos.c13 #define MLX5_RATE_TO_BW_SHARE(rate, divider, limit) \ argument
126 static u32 esw_qos_calc_bw_share(u32 min_rate, u32 divider, u32 fw_max) in esw_qos_calc_bw_share()
139 u32 divider = esw_qos_calculate_min_rate_divider(esw, group, false); in esw_qos_normalize_vports_min_rate() local
163 static int esw_qos_normalize_groups_min_rate(struct mlx5_eswitch *esw, u32 divider, in esw_qos_normalize_groups_min_rate()
254 u32 previous_min_rate, divider; in esw_qos_set_group_min_rate() local
446 u32 divider; in __esw_qos_create_rate_group() local
522 u32 divider; in __esw_qos_destroy_rate_group() local
/openbmc/linux/drivers/i2c/busses/
H A Di2c-bcm2835.c93 u32 divider = DIV_ROUND_UP(parent_rate, rate); in clk_bcm2835_i2c_calc_divider() local
114 u32 divider = clk_bcm2835_i2c_calc_divider(rate, parent_rate); in clk_bcm2835_i2c_set_rate() local
143 u32 divider = clk_bcm2835_i2c_calc_divider(rate, *parent_rate); in clk_bcm2835_i2c_round_rate() local
152 u32 divider = bcm2835_i2c_readl(div->i2c_dev, BCM2835_I2C_DIV); in clk_bcm2835_i2c_recalc_rate() local
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dclock.c248 u64 divider = parent_rate * 2; in clk_get_divider() local
300 int divider) in get_rate_from_divider()
378 int divider = clk_get_divider(divider_bits, divided_parent, in find_best_divider() local
407 int mux_bits, unsigned divider) in adjust_periph_pll()
444 int divider; in clock_adjust_periph_pll_div() local
/openbmc/linux/drivers/clk/
H A Dclk-divider.c29 static inline u32 clk_div_readl(struct clk_divider *divider) in clk_div_readl()
37 static inline void clk_div_writel(struct clk_divider *divider, u32 val) in clk_div_writel()
152 struct clk_divider *divider = to_clk_divider(hw); in clk_divider_recalc_rate() local
431 struct clk_divider *divider = to_clk_divider(hw); in clk_divider_round_rate() local
452 struct clk_divider *divider = to_clk_divider(hw); in clk_divider_determine_rate() local
490 struct clk_divider *divider = to_clk_divider(hw); in clk_divider_set_rate() local
H A Dclk-cdce925.c381 unsigned long divider; in cdce925_calc_divider() local
442 u16 divider = cdce925_calc_divider(rate, l_parent_rate); in cdce925_clk_round_rate() local
477 unsigned long divider; in cdce925_y1_calc_divider() local
495 u16 divider = cdce925_y1_calc_divider(rate, l_parent_rate); in cdce925_clk_y1_round_rate() local
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dspeed.c21 uint divider = 1 << (((sccr & SCCR_DFBRG11) >> 11) * 2); in get_clocks() local
/openbmc/linux/include/linux/
H A Dpolynomial.h19 long divider; member
/openbmc/linux/drivers/clk/stm32/
H A Dclk-stm32-core.c210 const struct stm32_div_cfg *divider = &data->dividers[div_id]; in stm32_divider_get_rate() local
233 const struct stm32_div_cfg *divider = &data->dividers[div_id]; in stm32_divider_set_rate() local
356 const struct stm32_div_cfg *divider; in clk_stm32_divider_round_rate() local
433 const struct stm32_div_cfg *divider; in clk_stm32_composite_determine_rate() local
/openbmc/linux/drivers/clk/x86/
H A Dclk-cgu.c125 struct lgm_clk_divider *divider = to_lgm_clk_divider(hw); in lgm_clk_divider_recalc_rate() local
139 struct lgm_clk_divider *divider = to_lgm_clk_divider(hw); in lgm_clk_divider_round_rate() local
149 struct lgm_clk_divider *divider = to_lgm_clk_divider(hw); in lgm_clk_divider_set_rate() local

123456