Home
last modified time | relevance | path

Searched refs:hdiv (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/cpufreq/
Ds3c2440-cpufreq.c59 unsigned int hdiv, pdiv; in s3c2440_cpufreq_calcdivs() local
79 for (hdiv = 1; hdiv < 9; hdiv++) { in s3c2440_cpufreq_calcdivs()
80 if (hdiv == 5 || hdiv == 7) in s3c2440_cpufreq_calcdivs()
81 hdiv++; in s3c2440_cpufreq_calcdivs()
83 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
88 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs()
90 if (hdiv > 8) in s3c2440_cpufreq_calcdivs()
103 pdiv *= hdiv; in s3c2440_cpufreq_calcdivs()
123 cfg->divs.h_divisor = hdiv; in s3c2440_cpufreq_calcdivs()
Ds3c2412-cpufreq.c45 unsigned int hdiv, pdiv, armdiv, dvs; in s3c2412_cpufreq_calcdivs() local
75 hdiv = armdiv_clk / hclk_max; in s3c2412_cpufreq_calcdivs()
76 if (hdiv < 1) in s3c2412_cpufreq_calcdivs()
77 hdiv = 1; in s3c2412_cpufreq_calcdivs()
79 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
88 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs()
90 if (hdiv > 4) in s3c2412_cpufreq_calcdivs()
105 pdiv *= hdiv; in s3c2412_cpufreq_calcdivs()
109 cfg->divs.h_divisor = hdiv * armdiv; in s3c2412_cpufreq_calcdivs()
Ds3c2410-cpufreq.c49 unsigned int hdiv, pdiv; in s3c2410_cpufreq_calcdivs() local
60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
61 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs()
76 pdiv *= hdiv; in s3c2410_cpufreq_calcdivs()
80 cfg->divs.h_divisor = hdiv; in s3c2410_cpufreq_calcdivs()
/Linux-v4.19/drivers/video/fbdev/core/
Dsvgalib.c512 u32 hmul, u32 hdiv, u32 vmul, u32 vdiv, u32 hborder, int node) in svga_set_timings() argument
518 value = (value * hmul) / hdiv; in svga_set_timings()
523 value = (value * hmul) / hdiv; in svga_set_timings()
528 value = (value * hmul) / hdiv; in svga_set_timings()
533 value = (value * hmul) / hdiv; in svga_set_timings()
538 value = (value * hmul) / hdiv; in svga_set_timings()
543 value = (value * hmul) / hdiv; in svga_set_timings()
/Linux-v4.19/drivers/video/fbdev/
Darkfb.c617 u32 value, mode, hmul, hdiv, offset_value, screen_size; in arkfb_set_par() local
700 hdiv = 1; in arkfb_set_par()
742 hdiv = 2; in arkfb_set_par()
766 hdiv = 2; in arkfb_set_par()
781 ark_set_pixclock(info, (hdiv * info->var.pixclock) / hmul); in arkfb_set_par()
782 svga_set_timings(par->state.vgabase, &ark_timing_regs, &(info->var), hmul, hdiv, in arkfb_set_par()
789 value = ((value * hmul / hdiv) / 8) - 5; in arkfb_set_par()
/Linux-v4.19/include/linux/
Dsvga.h120 …struct svga_timing_regs *tm, struct fb_var_screeninfo *var, u32 hmul, u32 hdiv, u32 vmul, u32 vdiv…
/Linux-v4.19/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c1658 unsigned hdiv = tpg->hdownsampling[p]; in tpg_precalculate_line() local
1661 memcpy(pos, pix[p], twopixsize / hdiv); in tpg_precalculate_line()
1726 unsigned hdiv = tpg->hdownsampling[p]; \
1737 (x / hdiv) * sizeof(PIXTYPE)); \
1743 if (hdiv == 2 && tpg->hflip) { \
1748 } else if (hdiv == 2) { \
1773 pos += (tpg->hflip ? -8 : 8) / hdiv; \