Home
last modified time | relevance | path

Searched refs:pixclock (Results 1 – 25 of 186) sorted by relevance

12345678

/linux-6.1.9/drivers/video/fbdev/i810/
Di810_dvt.c215 static int i810fb_find_best_mode(u32 xres, u32 yres, u32 pixclock) in i810fb_find_best_mode() argument
222 if (std_modes[i].pixclock <= pixclock) in i810fb_find_best_mode()
223 diff = pixclock - std_modes[i].pixclock; in i810fb_find_best_mode()
236 u32 i_best = i810fb_find_best_mode(xres, yres, par->regs.pixclock); in i810fb_encode_registers()
248 u32 mode, pixclock; in i810fb_fill_var_timings() local
253 pixclock = 1000000000 / var->pixclock; in i810fb_fill_var_timings()
254 mode = i810fb_find_best_mode(xres, yres, pixclock); in i810fb_fill_var_timings()
259 var->pixclock = 1000000000 / std_modes[mode].pixclock; in i810fb_fill_var_timings()
Di810_gtf.c228 u32 i, size = 0, pixclock, wm_best = 0, min, diff; in i810_get_watermark() local
262 pixclock = 1000000/var->pixclock; in i810_get_watermark()
265 if (pixclock <= wmark[i].freq) in i810_get_watermark()
266 diff = wmark[i].freq - pixclock; in i810_get_watermark()
268 diff = pixclock - wmark[i].freq; in i810_get_watermark()
/linux-6.1.9/arch/powerpc/platforms/512x/
Dmpc512x_shared.c69 static void mpc512x_set_pixel_clock(unsigned int pixclock) in mpc512x_set_pixel_clock() argument
102 pr_debug("DIU pixclock in ps - %u\n", pixclock); in mpc512x_set_pixel_clock()
103 pixclock = (1000000000 / pixclock) * 1000; in mpc512x_set_pixel_clock()
104 pr_debug("DIU pixclock freq - %u\n", pixclock); in mpc512x_set_pixel_clock()
105 epsilon = pixclock / 20; /* pixclock * 0.05 */ in mpc512x_set_pixel_clock()
107 minpixclock = pixclock - epsilon; in mpc512x_set_pixel_clock()
108 maxpixclock = pixclock + epsilon; in mpc512x_set_pixel_clock()
136 for (offset = 0; offset <= epsilon; offset += pixclock / 64) { in mpc512x_set_pixel_clock()
137 want = pixclock - offset; in mpc512x_set_pixel_clock()
141 delta = abs(pixclock - got); in mpc512x_set_pixel_clock()
[all …]
/linux-6.1.9/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c246 unsigned int pixclock; in computeRegs() local
267 mt->pixclock = g450_mnp2f(minfo, mnp); in computeRegs()
271 pixclock = 1000000000U / mt->pixclock; in computeRegs()
273 dprintk(KERN_DEBUG "Got %u ps pixclock\n", pixclock); in computeRegs()
276 do_div(piic, mt->pixclock); in computeRegs()
285 hbp = (((outd->h_b_porch + pixclock) / pixclock)) & ~1; in computeRegs()
286 hfp = (((outd->h_f_porch + pixclock) / pixclock)) & ~1; in computeRegs()
287 hsl = (((outd->h_sync + pixclock) / pixclock)) & ~1; in computeRegs()
308 r->regs[0x09] = (outd->burst + pixclock - 1) / pixclock; /* burst length */ in computeRegs()
552 …mt->mnp = matroxfb_g450_setclk(minfo, mt->pixclock, (mt->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL… in matroxfb_g450_compute()
[all …]
/linux-6.1.9/drivers/video/fbdev/
Dmacmodes.c113 "mac1", 60, 512, 384, pixclock, left, right, upper, lower, hslen, vslen,
117 "mac3", 50, 640, 480, pixclock, left, right, upper, lower, hslen, vslen,
121 "mac4", 60, 640, 480, pixclock, left, right, upper, lower, hslen, vslen,
125 "mac8", 50, 768, 576, pixclock, left, right, upper, lower, hslen, vslen,
277 var->pixclock = mode->pixclock; in mac_vmode_to_var()
328 if (var->pixclock > mode->pixclock) in mac_var_to_vmode()
344 if (var->pixclock > mode->pixclock) in mac_var_to_vmode()
Dasiliantfb.c113 unsigned pixclock = *ppixclock; in asiliant_calc_dclk2() local
124 ratio = 1000000 / pixclock; in asiliant_calc_dclk2()
125 remainder = 1000000 % pixclock; in asiliant_calc_dclk2()
126 Ftarget = 1000000 * ratio + (1000000 * remainder) / pixclock; in asiliant_calc_dclk2()
171 *ppixclock = pixclock; in asiliant_calc_dclk2()
187 if ((p->var.xres == 640) && (p->var.yres == 480) && (p->var.pixclock == 39722)) { in asiliant_set_timing()
231 if (!var->pixclock) in asiliantfb_check_var()
234 ratio = 1000000 / var->pixclock; in asiliantfb_check_var()
235 remainder = 1000000 % var->pixclock; in asiliantfb_check_var()
236 Ftarget = 1000000 * ratio + (1000000 * remainder) / var->pixclock; in asiliantfb_check_var()
[all …]
Dda8xx-fb.c193 .pixclock = KHZ2PICOS(4607),
207 .pixclock = KHZ2PICOS(7833),
222 .pixclock = KHZ2PICOS(7833),
237 .pixclock = KHZ2PICOS(6400),
725 unsigned pixclock, in da8xx_fb_calc_clk_divider() argument
730 pixclock = PICOS2KHZ(pixclock) * 1000; in da8xx_fb_calc_clk_divider()
734 if (pixclock < (*lcdc_clk_rate / CLK_MAX_DIV)) { in da8xx_fb_calc_clk_divider()
736 pixclock * CLK_MAX_DIV); in da8xx_fb_calc_clk_divider()
738 } else if (pixclock > (*lcdc_clk_rate / CLK_MIN_DIV)) { in da8xx_fb_calc_clk_divider()
740 pixclock * CLK_MIN_DIV); in da8xx_fb_calc_clk_divider()
[all …]
Dfsl-diu-fb.c60 .pixclock = 15385,
74 .pixclock = 79440,
88 .pixclock = 39722,
102 .pixclock = 32052,
116 .pixclock = 31747,
130 .pixclock = 25057,
144 .pixclock = 22272,
158 .pixclock = 33805,
172 .pixclock = 25000,
186 .pixclock = 31518,
[all …]
/linux-6.1.9/drivers/video/fbdev/core/
Dfbcvt.c40 u32 pixclock; member
174 u32 pixclock; in fb_cvt_pixclock() local
177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock()
179 pixclock = (cvt->htotal * 1000000)/cvt->hperiod; in fb_cvt_pixclock()
181 pixclock /= 250; in fb_cvt_pixclock()
182 pixclock *= 250; in fb_cvt_pixclock()
183 pixclock *= 1000; in fb_cvt_pixclock()
185 return pixclock; in fb_cvt_pixclock()
263 mode->pixclock = KHZ2PICOS(cvt->pixclock/1000); in fb_cvt_convert_to_mode()
356 cvt.pixclock = fb_cvt_pixclock(&cvt); in fb_find_mode_cvt()
[all …]
Dfbmon.c395 mode->pixclock = var->pixclock; in calc_mode_timings()
545 && PICOS2KHZ(mode->pixclock) * 1000 > specs->dclkmax) { in get_std_timing()
569 mode->pixclock = PIXEL_CLOCK; in get_detailed_timing()
570 mode->pixclock /= 1000; in get_detailed_timing()
571 mode->pixclock = KHZ2PICOS(mode->pixclock); in get_detailed_timing()
721 int num_modes, hz, hscan, pixclock; in fb_get_monitor_limits() local
733 pixclock = PICOS2KHZ(modes[i].pixclock) * 1000; in fb_get_monitor_limits()
745 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits()
749 if (specs->dclkmax == 0 || specs->dclkmax < pixclock) in fb_get_monitor_limits()
750 specs->dclkmax = pixclock; in fb_get_monitor_limits()
[all …]
Dmodedb.c558 var->pixclock = mode->pixclock; in fb_try_mode()
849 u32 pixclock, hfreq, htotal, vtotal; in fb_var_to_videomode() local
854 mode->pixclock = var->pixclock; in fb_var_to_videomode()
866 if (!var->pixclock) in fb_var_to_videomode()
869 pixclock = PICOS2KHZ(var->pixclock) * 1000; in fb_var_to_videomode()
884 hfreq = pixclock/htotal; in fb_var_to_videomode()
902 var->pixclock = mode->pixclock; in fb_videomode_to_var()
926 mode1->pixclock == mode2->pixclock && in fb_mode_is_equal()
/linux-6.1.9/drivers/gpu/drm/msm/hdmi/
Dhdmi_audio.c30 unsigned long int pixclock; member
61 static const struct hdmi_msm_audio_arcs *get_arcs(unsigned long int pixclock) in get_arcs() argument
67 if (arcs->pixclock == pixclock) in get_arcs()
87 DBG("video: power_on=%d, pixclock=%lu", hdmi->power_on, hdmi->pixclock); in msm_hdmi_audio_update()
89 if (enabled && !(hdmi->power_on && hdmi->pixclock)) { in msm_hdmi_audio_update()
95 arcs = get_arcs(hdmi->pixclock); in msm_hdmi_audio_update()
98 hdmi->pixclock); in msm_hdmi_audio_update()
Dhdmi_phy_8960.c10 unsigned long int pixclock) in hdmi_phy_8960_powerup() argument
12 DBG("pixclock: %lu", pixclock); in hdmi_phy_8960_powerup()
Dhdmi.h45 unsigned long int pixclock; member
148 void (*powerup)(struct hdmi_phy *phy, unsigned long int pixclock);
182 void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock);
/linux-6.1.9/drivers/video/fbdev/geode/
Dvideo_cs5530.c24 long pixclock; /* ps */ member
77 min = cs5530_pll_table[0].pixclock - info->var.pixclock; in cs5530_set_dclk_frequency()
80 diff = cs5530_pll_table[i].pixclock - info->var.pixclock; in cs5530_set_dclk_frequency()
Dvideo_gx.c24 long pixclock; /* ps */ member
136 min = abs(pll_table[0].pixclock - info->var.pixclock); in gx_set_dclk_frequency()
138 diff = abs(pll_table[i].pixclock - info->var.pixclock); in gx_set_dclk_frequency()
/linux-6.1.9/arch/arm/mach-rpc/include/mach/
Dacornfb.h10 #define acornfb_bandwidth(var) ((var)->pixclock * 8 / (var)->bits_per_pixel)
17 if (!var->pixclock) in acornfb_valid_pixrate()
85 div = var->pixclock / 9090; /*9921*/ in acornfb_vidc20_find_rates()
133 vidc->pll_ctl = acornfb_vidc20_find_pll(var->pixclock / div); in acornfb_vidc20_find_rates()
/linux-6.1.9/arch/arm/mach-sa1100/
Dlart.c35 .pixclock = 150000, .bpp = 4,
51 .pixclock = 150000, .bpp = 16,
64 .pixclock = 39721, .bpp = 16,
80 .pixclock = 63291, .bpp = 16,
/linux-6.1.9/drivers/phy/rockchip/
Dphy-rockchip-inno-hdmi.c247 unsigned long pixclock; member
251 unsigned long pixclock; member
463 inno->pixclock); in inno_hdmi_phy_power_on()
530 for (; cfg->pixclock != 0; cfg++) in inno_hdmi_phy_get_pre_pll_cfg()
531 if (cfg->pixclock == rate && cfg->tmdsclock == tmdsclock) in inno_hdmi_phy_get_pre_pll_cfg()
534 if (cfg->pixclock == 0) in inno_hdmi_phy_get_pre_pll_cfg()
593 inno->pixclock = vco; in inno_hdmi_phy_rk3228_clk_recalc_rate()
595 dev_dbg(inno->dev, "%s rate %lu\n", __func__, inno->pixclock); in inno_hdmi_phy_rk3228_clk_recalc_rate()
608 for (; cfg->pixclock != 0; cfg++) in inno_hdmi_phy_rk3228_clk_round_rate()
609 if (cfg->pixclock == rate && !cfg->fracdiv) in inno_hdmi_phy_rk3228_clk_round_rate()
[all …]
/linux-6.1.9/arch/arm/mach-pxa/
Dlpd270.c292 .pixclock = 150000,
314 .pixclock = 50000,
336 .pixclock = 150000,
358 .pixclock = 25000,
380 .pixclock = 25000,
402 .pixclock = 150000,
/linux-6.1.9/include/linux/amba/
Dclcd.h70 unsigned long pixclock; member
239 regs->pixclock = var->pixclock; in clcdfb_decode()
275 CHECK(pixclock) || in clcdfb_check()
/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_dtv_encoder.c16 unsigned long int pixclock; member
53 mdp4_dtv_encoder->pixclock = mode->clock * 1000; in mdp4_dtv_encoder_mode_set()
55 DBG("pixclock=%lu", mdp4_dtv_encoder->pixclock); in mdp4_dtv_encoder_mode_set()
128 unsigned long pc = mdp4_dtv_encoder->pixclock; in mdp4_dtv_encoder_enable()
/linux-6.1.9/arch/powerpc/platforms/85xx/
Dp1022_rdk.c43 void p1022rdk_set_pixel_clock(unsigned int pixclock) in p1022rdk_set_pixel_clock() argument
67 do_div(temp, pixclock); in p1022rdk_set_pixel_clock()
Dt1042rdb_diu.c76 static void t1042rdb_set_pixel_clock(unsigned int pixclock) in t1042rdb_set_pixel_clock() argument
101 do_div(temp, pixclock); in t1042rdb_set_pixel_clock()
/linux-6.1.9/arch/arm/mach-s3c/
Dmach-qt2410.c96 .pixclock = 40000, /* HCLK/4 */
118 .pixclock = 40000, /* HCLK/4 */
140 .pixclock = 100000, /* HCLK/10 */

12345678