Home
last modified time | relevance | path

Searched refs:ref_rate (Results 1 – 19 of 19) sorted by relevance

/Linux-v6.6/arch/mips/ath79/
Dclock.c95 unsigned long ref_rate; in ar71xx_clocks_init() local
103 ref_rate = ath79_setup_ref_clk(AR71XX_BASE_FREQ); in ar71xx_clocks_init()
108 freq = div * ref_rate; in ar71xx_clocks_init()
146 unsigned long ref_rate; in ar933x_clocks_init() local
159 ref_rate = (40 * 1000 * 1000); in ar933x_clocks_init()
161 ref_rate = (25 * 1000 * 1000); in ar933x_clocks_init()
163 ath79_setup_ref_clk(ref_rate); in ar933x_clocks_init()
234 unsigned long ref_rate; in ar934x_clocks_init() local
247 ref_rate = 40 * 1000 * 1000; in ar934x_clocks_init()
249 ref_rate = 25 * 1000 * 1000; in ar934x_clocks_init()
[all …]
/Linux-v6.6/drivers/clk/ti/
Dclkt_dpll.c292 unsigned long ref_rate; in omap2_dpll_round_rate() local
305 ref_rate = clk_hw_get_rate(dd->clk_ref); in omap2_dpll_round_rate()
310 scaled_rt_rp = target_rate / (ref_rate / DPLL_SCALE_FACTOR); in omap2_dpll_round_rate()
336 ref_rate); in omap2_dpll_round_rate()
Ddpll3xxx.c304 unsigned long ref_rate; in omap3_noncore_dpll_ssc_program() local
318 ref_rate = clk_hw_get_rate(dd->clk_ref); in omap3_noncore_dpll_ssc_program()
320 (ref_rate / dd->last_rounded_n) / (4 * dd->ssc_modfreq); in omap3_noncore_dpll_ssc_program()
321 if (dd->ssc_modfreq > (ref_rate / 70)) in omap3_noncore_dpll_ssc_program()
323 __clk_get_name(clk->hw.clk), ref_rate / 70); in omap3_noncore_dpll_ssc_program()
/Linux-v6.6/drivers/clk/tegra/
Dclk-dfll.c202 #define DVCO_RATE_TO_MULT(rate, ref_rate) ((rate) / ((ref_rate) / 2)) argument
203 #define MULT_TO_DVCO_RATE(mult, ref_rate) ((mult) * ((ref_rate) / 2)) argument
276 unsigned long ref_rate; member
584 div = DIV_ROUND_UP(td->ref_rate, td->pwm_rate); in dfll_pwm_set_output_enabled()
855 val = DVCO_RATE_TO_MULT(rate, td->ref_rate); in dfll_calculate_rate_request()
862 req->dvco_target_rate = MULT_TO_DVCO_RATE(req->mult_bits, td->ref_rate); in dfll_calculate_rate_request()
1237 unsigned long ref_rate) in dfll_calc_monitored_rate() argument
1239 return monitor_data * (ref_rate / REF_CLK_CYC_PER_DVCO_SAMPLE); in dfll_calc_monitored_rate()
1265 pre_scaler_rate = dfll_calc_monitored_rate(v, td->ref_rate); in dfll_read_monitor_rate()
1400 val = DIV_ROUND_UP(td->ref_rate, td->sample_rate * 32); in dfll_set_default_params()
[all …]
/Linux-v6.6/arch/arm64/kernel/
Dtopology.c115 static int freq_inv_set_max_ratio(int cpu, u64 max_rate, u64 ref_rate) in freq_inv_set_max_ratio() argument
119 if (unlikely(!max_rate || !ref_rate)) { in freq_inv_set_max_ratio()
138 ratio = ref_rate << (2 * SCHED_CAPACITY_SHIFT); in freq_inv_set_max_ratio()
/Linux-v6.6/arch/arm/mach-omap1/
Dclock.c234 unsigned long ref_rate; in omap1_select_table_rate() local
236 ref_rate = ck_ref_p->rate; in omap1_select_table_rate()
242 if (ptr->xtal != ref_rate) in omap1_select_table_rate()
329 unsigned long ref_rate; in omap1_round_to_table_rate() local
331 ref_rate = ck_ref_p->rate; in omap1_round_to_table_rate()
339 if (ptr->xtal != ref_rate) in omap1_round_to_table_rate()
/Linux-v6.6/sound/soc/meson/
Daxg-spdifin.c49 unsigned int ref_rate; member
165 ret = clk_set_rate(priv->refclk, priv->conf->ref_rate); in axg_spdifin_sample_mode_config()
396 .ref_rate = 333333333,
/Linux-v6.6/drivers/phy/samsung/
Dphy-samsung-usb2.h39 unsigned long ref_rate; member
Dphy-samsung-usb2.c205 drv->ref_rate = clk_get_rate(drv->ref_clk); in samsung_usb2_phy_probe()
207 ret = drv->cfg->rate_to_clk(drv->ref_rate, &drv->ref_reg_val); in samsung_usb2_phy_probe()
Dphy-exynos5-usbdrd.c872 unsigned long ref_rate; in exynos5_usbdrd_phy_clk_handle() local
886 ref_rate = clk_get_rate(phy_drd->ref_clk); in exynos5_usbdrd_phy_clk_handle()
888 ret = exynos5_rate_to_clk(ref_rate, &phy_drd->extrefclk); in exynos5_usbdrd_phy_clk_handle()
891 ref_rate); in exynos5_usbdrd_phy_clk_handle()
/Linux-v6.6/drivers/clk/nxp/
Dclk-lpc32xx.c477 unsigned long rate, cco_rate, ref_rate; in clk_pll_recalc_rate() local
503 ref_rate = parent_rate / clk->n_div; in clk_pll_recalc_rate()
504 rate = cco_rate = ref_rate * clk->m_div; in clk_pll_recalc_rate()
524 && pll_is_valid(ref_rate, 1, 1000000, 27000000))) in clk_pll_recalc_rate()
527 parent_rate, cco_rate, ref_rate); in clk_pll_recalc_rate()
/Linux-v6.6/drivers/clk/ralink/
Dclk-mtmips.c528 static u32 mt7620_calc_rate(u32 ref_rate, u32 mul, u32 div) in mt7620_calc_rate() argument
532 t = ref_rate; in mt7620_calc_rate()
/Linux-v6.6/block/
Dbfq-iosched.c304 static int ref_rate[2] = {14000, 33000}; variable
7325 bfqd->rate_dur_prod = ref_rate[blk_queue_nonrot(bfqd->queue)] * in bfq_init_queue()
7327 bfqd->peak_rate = ref_rate[blk_queue_nonrot(bfqd->queue)] * 2 / 3; in bfq_init_queue()
/Linux-v6.6/drivers/net/wireless/realtek/rtw89/
Dmac.c2361 reg = rtw89_mac_reg_by_idx(rtwdev, rrsr->ref_rate.addr, mac_idx); in trxptcl_init()
2362 rtw89_write32_mask(rtwdev, reg, rrsr->ref_rate.mask, rrsr->ref_rate.data); in trxptcl_init()
Drtw8852a.c473 .ref_rate = {R_AX_TRXPTCL_RRSR_CTL_0, B_AX_WMAC_RESP_REF_RATE_SEL, 0},
Drtw8851b.c180 .ref_rate = {R_AX_TRXPTCL_RRSR_CTL_0, B_AX_WMAC_RESP_REF_RATE_SEL, 0},
Drtw8852b.c305 .ref_rate = {R_AX_TRXPTCL_RRSR_CTL_0, B_AX_WMAC_RESP_REF_RATE_SEL, 0},
Drtw8852c.c141 .ref_rate = {R_AX_TRXPTCL_RRSR_CTL_0, B_AX_WMAC_RESP_REF_RATE_SEL, 0},
Dcore.h3376 struct rtw89_reg3_def ref_rate; member