Searched refs:pre_div (Results 1 - 11 of 11) sorted by relevance

/drivers/clk/qcom/
H A Dclk-rcg.h23 u8 pre_div; member in struct:freq_tbl
51 * struct pre_div - pre-divider
55 struct pre_div { struct
89 struct pre_div p;
124 struct pre_div p[2];
H A Dclk-rcg.c109 static u32 ns_to_pre_div(struct pre_div *p, u32 ns)
116 static u32 pre_div_to_ns(struct pre_div *p, u8 pre_div, u32 ns) argument
124 ns |= pre_div << p->pre_div_shift;
199 struct pre_div *p;
245 ns = pre_div_to_ns(p, f->pre_div - 1, ns);
280 f.pre_div = ns_to_pre_div(&rcg->p[bank], ns) + 1;
293 * pre_div n
296 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div) argument
298 if (pre_div)
315 u32 pre_div, m = 0, n = 0, ns, md, mode = 0; local
340 u32 m, n, pre_div, ns, md, mode, reg; local
[all...]
H A Dclk-rcg2.c189 if (f->pre_div) {
191 rate *= f->pre_div + 1;
241 cfg = f->pre_div << CFG_SRC_DIV_SHIFT;
342 f.pre_div = hid_div;
343 f.pre_div >>= CFG_SRC_DIV_SHIFT;
344 f.pre_div &= mask;
443 f.pre_div = div;
521 f.pre_div = hid_div;
522 f.pre_div >>= CFG_SRC_DIV_SHIFT;
523 f.pre_div
[all...]
H A Dmmcc-msm8960.c1393 { .src = P_HDMI_PLL, .pre_div = 1 },
/drivers/mmc/host/
H A Dsdhci-of-esdhc.c202 int pre_div = 2; local
224 while (host->max_clk / pre_div / 16 > clock && pre_div < 256)
225 pre_div *= 2;
227 while (host->max_clk / pre_div / div > clock && div < 16)
231 clock, host->max_clk / pre_div / div);
233 pre_div >>= 1;
239 | (pre_div << ESDHC_PREDIV_SHIFT));
H A Dsdhci-esdhc-imx.c595 int pre_div = 2; local
611 pre_div = 1;
618 while (host_clock / pre_div / 16 > clock && pre_div < 256)
619 pre_div *= 2;
621 while (host_clock / pre_div / div > clock && div < 16)
624 host->mmc->actual_clock = host_clock / pre_div / div;
629 pre_div >>= 2;
631 pre_div >>= 1;
637 | (pre_div << ESDHC_PREDIV_SHIF
[all...]
/drivers/clk/bcm/
H A Dclk-kona-setup.c74 div = &peri->pre_div;
140 div = &peri->pre_div;
374 struct bcm_clk_div *pre_div; local
379 if (!divider_exists(&peri->div) || !divider_exists(&peri->pre_div))
383 pre_div = &peri->pre_div;
384 if (divider_is_fixed(div) || divider_is_fixed(pre_div))
389 return div->u.s.frac_width + pre_div->u.s.frac_width <= limit;
410 struct bcm_clk_div *pre_div; local
452 pre_div
[all...]
H A Dclk-kona.c706 struct bcm_clk_div *div, struct bcm_clk_div *pre_div,
728 if (pre_div && divider_exists(pre_div)) {
731 scaled_rate = scale_rate(pre_div, parent_rate);
733 scaled_div = divider_read_scaled(ccu, pre_div);
761 struct bcm_clk_div *pre_div,
786 if (divider_exists(pre_div)) {
790 scaled_rate = scale_rate(pre_div, parent_rate);
792 scaled_pre_div = divider_read_scaled(ccu, pre_div);
1016 return clk_recalc_rate(bcm_clk->ccu, &data->div, &data->pre_div,
705 clk_recalc_rate(struct ccu_data *ccu, struct bcm_clk_div *div, struct bcm_clk_div *pre_div, unsigned long parent_rate) argument
760 round_rate(struct ccu_data *ccu, struct bcm_clk_div *div, struct bcm_clk_div *pre_div, unsigned long rate, unsigned long parent_rate, u64 *scaled_div) argument
[all...]
H A Dclk-bcm281xx.c178 .pre_div = FIXED_DIVIDER(2),
H A Dclk-kona.h395 struct bcm_clk_div pre_div; member in struct:peri_clk_data
/drivers/atm/
H A Deni.c1250 static const int pre_div[] = { 4,16,128,2048 }; local
1259 if (TS_CLOCK/pre_div[*pre]/64 <= *pcr) break;
1260 div = pre_div[*pre]**pcr;
1269 if (TS_CLOCK/pre_div[*pre]/64 > -*pcr) break;
1271 div = pre_div[*pre]*-*pcr;
1278 *pcr = TS_CLOCK/pre_div[*pre]/(*res+1);

Completed in 1467 milliseconds