Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/cpufreq/
Ds3c2440-cpufreq.c57 unsigned int hdiv, pdiv; in s3c2440_cpufreq_calcdivs() local
77 for (hdiv = 1; hdiv < 9; hdiv++) { in s3c2440_cpufreq_calcdivs()
78 if (hdiv == 5 || hdiv == 7) in s3c2440_cpufreq_calcdivs()
79 hdiv++; in s3c2440_cpufreq_calcdivs()
81 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
86 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs()
88 if (hdiv > 8) in s3c2440_cpufreq_calcdivs()
101 pdiv *= hdiv; in s3c2440_cpufreq_calcdivs()
121 cfg->divs.h_divisor = hdiv; in s3c2440_cpufreq_calcdivs()
Ds3c2412-cpufreq.c43 unsigned int hdiv, pdiv, armdiv, dvs; in s3c2412_cpufreq_calcdivs() local
73 hdiv = armdiv_clk / hclk_max; in s3c2412_cpufreq_calcdivs()
74 if (hdiv < 1) in s3c2412_cpufreq_calcdivs()
75 hdiv = 1; in s3c2412_cpufreq_calcdivs()
77 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
86 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs()
88 if (hdiv > 4) in s3c2412_cpufreq_calcdivs()
103 pdiv *= hdiv; in s3c2412_cpufreq_calcdivs()
107 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-4.4.14/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-4.4.14/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-4.4.14/include/linux/
Dsvga.h119 …struct svga_timing_regs *tm, struct fb_var_screeninfo *var, u32 hmul, u32 hdiv, u32 vmul, u32 vdiv…
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-tpg.c1497 unsigned hdiv = tpg->hdownsampling[p]; in tpg_precalculate_line() local
1500 memcpy(pos, pix[p], twopixsize / hdiv); in tpg_precalculate_line()
1565 unsigned hdiv = tpg->hdownsampling[p]; \
1576 (x / hdiv) * sizeof(PIXTYPE)); \
1582 if (hdiv == 2 && tpg->hflip) { \
1587 } else if (hdiv == 2) { \
1612 pos += (tpg->hflip ? -8 : 8) / hdiv; \