Searched refs:hfreq (Results 1 - 12 of 12) sorted by relevance

/linux-4.4.14/drivers/video/fbdev/core/
H A Dfbmon.c1106 u32 hfreq; member in struct:__fb_timings
1118 * @hfreq: horizontal freq
1127 * flyback * hfreq
1131 static u32 fb_get_vblank(u32 hfreq) fb_get_vblank() argument
1135 vblank = (hfreq * FLYBACK)/1000; fb_get_vblank()
1141 * fb_get_hblank_by_freq - get horizontal blank time given hfreq
1142 * @hfreq: horizontal freq
1160 static u32 fb_get_hblank_by_hfreq(u32 hfreq, u32 xres) fb_get_hblank_by_hfreq() argument
1167 m_val = (m_val * 1000000)/hfreq; fb_get_hblank_by_hfreq()
1223 * hfreq = -------------------------------------
1230 u32 divisor, hfreq; fb_get_hfreq() local
1233 hfreq = (yres + V_FRONTPORCH) * vfreq * 1000; fb_get_hfreq()
1234 return (hfreq/divisor); fb_get_hfreq()
1239 timings->hfreq = fb_get_hfreq(timings->vfreq, timings->vactive); fb_timings_vfreq()
1240 timings->vblank = fb_get_vblank(timings->hfreq); fb_timings_vfreq()
1242 timings->hblank = fb_get_hblank_by_hfreq(timings->hfreq, fb_timings_vfreq()
1245 timings->dclk = timings->htotal * timings->hfreq; fb_timings_vfreq()
1250 timings->vblank = fb_get_vblank(timings->hfreq); fb_timings_hfreq()
1252 timings->vfreq = timings->hfreq/timings->vtotal; fb_timings_hfreq()
1253 timings->hblank = fb_get_hblank_by_hfreq(timings->hfreq, fb_timings_hfreq()
1256 timings->dclk = timings->htotal * timings->hfreq; fb_timings_hfreq()
1264 timings->hfreq = timings->dclk/timings->htotal; fb_timings_dclk()
1265 timings->vblank = fb_get_vblank(timings->hfreq); fb_timings_dclk()
1267 timings->vfreq = timings->hfreq/timings->vtotal; fb_timings_dclk()
1350 timings->hfreq = hfmax; fb_get_mode()
1366 timings->hfreq = val; fb_get_mode()
1380 timings->hfreq < hfmin || timings->hfreq > hfmax || fb_get_mode()
1528 u32 hfreq, vfreq, htotal, vtotal, pixclock; fb_validate_mode() local
1566 hfreq = pixclock/htotal; fb_validate_mode()
1567 hfreq = (hfreq + 500) / 1000 * 1000; fb_validate_mode()
1569 vfreq = hfreq/vtotal; fb_validate_mode()
1572 hfreq < hfmin || hfreq > hfmax || fb_validate_mode()
H A Dfbcvt.c43 u32 hfreq; member in struct:fb_cvt_data
368 cvt.hfreq = cvt.pixclock/cvt.htotal; fb_find_mode_cvt()
H A Dmodedb.c885 u32 pixclock, hfreq, htotal, vtotal; fb_var_to_videomode() local
917 hfreq = pixclock/htotal; fb_var_to_videomode()
918 mode->refresh = hfreq/vtotal; fb_var_to_videomode()
/linux-4.4.14/drivers/media/v4l2-core/
H A Dv4l2-dv-timings.c355 * @hfreq - the horizontal frequency in Hz.
370 unsigned hfreq, v4l2_detect_cvt()
402 if (hfreq == 0) v4l2_detect_cvt()
409 v_fp = (CVT_RB_MIN_V_BLANK * hfreq) / 1000000 + 1; v4l2_detect_cvt()
416 v_bp = (CVT_RB_MIN_V_BLANK * hfreq) / 1000000 + 1; v4l2_detect_cvt()
424 v_bp = (CVT_MIN_VSYNC_BP * hfreq) / 1000000 + 1 - vsync; v4l2_detect_cvt()
476 pix_clk = (image_width + h_blank) * hfreq; v4l2_detect_cvt()
486 100 * CVT_C_PRIME - (CVT_M_PRIME * 100000) / hfreq; v4l2_detect_cvt()
496 pix_clk = (image_width + h_blank) * hfreq; v4l2_detect_cvt()
571 * @hfreq - the horizontal frequency in Hz.
588 unsigned hfreq, v4l2_detect_gtf()
611 if (hfreq == 0) v4l2_detect_gtf()
616 v_bp = (GTF_MIN_VSYNC_BP * hfreq + 500000) / 1000000 - vsync; v4l2_detect_gtf()
637 num = ((image_width * GTF_D_C_PRIME * (u64)hfreq) - v4l2_detect_gtf()
639 den = (hfreq * (100 - GTF_D_C_PRIME) + GTF_D_M_PRIME * 1000) * v4l2_detect_gtf()
647 num = ((image_width * GTF_S_C_PRIME * (u64)hfreq) - v4l2_detect_gtf()
649 den = (hfreq * (100 - GTF_S_C_PRIME) + GTF_S_M_PRIME * 1000) * v4l2_detect_gtf()
657 pix_clk = (image_width + h_blank) * hfreq; v4l2_detect_gtf()
369 v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync, unsigned active_width, u32 polarities, bool interlaced, struct v4l2_dv_timings *fmt) v4l2_detect_cvt() argument
587 v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync, u32 polarities, bool interlaced, struct v4l2_fract aspect, struct v4l2_dv_timings *fmt) v4l2_detect_gtf() argument
/linux-4.4.14/include/media/
H A Dv4l2-dv-timings.h131 * @hfreq: the horizontal frequency in Hz.
145 bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
153 * @hfreq: the horizontal frequency in Hz.
169 bool v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync,
/linux-4.4.14/drivers/video/fbdev/
H A Datafb.c934 int hfreq, vfreq; falcon_decode_var() local
948 Additional constraints: hfreq. falcon_decode_var()
1280 /* if this happens increase margins, decrease hfreq. */ falcon_decode_var()
1291 hfreq = pclock->f / ((par->HHT + 2) * prescale * 2); falcon_decode_var()
1292 if (hfreq > fb_info.monspecs.hfmax && mon_type != F_MON_VGA) { falcon_decode_var()
1299 if (hfreq > fb_info.monspecs.hfmax || hfreq < fb_info.monspecs.hfmin) falcon_decode_var()
1329 vfreq = (hfreq * 2) / (par->VFT + 1); falcon_decode_var()
1343 (hfreq * 2) / (par->VFT + 1 + 4 * lines - 2 * yres) > falcon_decode_var()
1354 (hfreq * 2) / (par->VFT + 1 + 4 * lines) > falcon_decode_var()
1365 (hfreq * 2) / (par->VFT + 1 + 4 * lines) > falcon_decode_var()
H A Damifb.c953 static u32 amifb_hfmin __initdata; /* monitor hfreq lower limit (Hz) */
954 static u32 amifb_hfmax __initdata; /* monitor hfreq upper limit (Hz) */
/linux-4.4.14/include/linux/
H A Dfb.h74 __u32 hfmin; /* hfreq lower limit (Hz) */
75 __u32 hfmax; /* hfreq upper limit (Hz) */
/linux-4.4.14/drivers/video/fbdev/i810/
H A Di810_main.c2017 int err = -1, vfreq, hfreq, pixclock; i810fb_init_pci() local
2075 hfreq = pixclock/(info->var.xres + info->var.left_margin + i810fb_init_pci()
2077 vfreq = hfreq/(info->var.yres + info->var.upper_margin + i810fb_init_pci()
/linux-4.4.14/drivers/media/i2c/
H A Dadv7604.c1329 u32 hfreq = (ADV76XX_FSC * 8) / stdi->bl; stdi2dv_timings() local
1339 pix_clk = hfreq * htotal(&adv76xx_timings[i].bt); stdi2dv_timings()
1348 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0, stdi2dv_timings()
1353 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs, stdi2dv_timings()
H A Dadv7842.c1421 u32 hfreq = (ADV7842_fsc * 8) / stdi->bl; stdi2dv_timings() local
1437 pix_clk = hfreq * htotal(bt); stdi2dv_timings()
1446 if (v4l2_detect_cvt(stdi->lcf + 1, hfreq, stdi->lcvs, 0, stdi2dv_timings()
1451 if (v4l2_detect_gtf(stdi->lcf + 1, hfreq, stdi->lcvs, stdi2dv_timings()
/linux-4.4.14/drivers/video/fbdev/omap/
H A Domapfb_main.c1782 pr_info("omapfb: Pixclock %lu kHz hfreq %lu.%lu kHz " omapfb_do_probe()

Completed in 510 milliseconds