Home
last modified time | relevance | path

Searched refs:hfp (Results 1 – 25 of 55) sorted by relevance

123

/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_g450.c244 u_int32_t hfp; in computeRegs() local
286 hfp = (((outd->h_f_porch + pixclock) / pixclock)) & ~1; in computeRegs()
288 hlen = hvis + hfp + hsl + hbp; in computeRegs()
291 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs()
294 hfp -= over; in computeRegs()
298 hfp += 4; in computeRegs()
301 hfp += 16; in computeRegs()
310 r->regs[0x2C] = hfp; in computeRegs()
314 …dprintk(KERN_DEBUG "PG: vis=%04X, hf=%02X, hs=%02X, hb=%02X, total=%04X\n", hvis, hfp, hsl, hbp, h… in computeRegs()
/linux/drivers/gpu/drm/bridge/adv7511/
H A Dadv7533.c31 unsigned int hsw, hfp, hbp, vsw, vfp, vbp; in adv7511_dsi_config_timing_gen() local
35 hfp = mode->hsync_start - mode->hdisplay; in adv7511_dsi_config_timing_gen()
50 regmap_write(adv->regmap_cec, 0x2c, hfp >> 4); in adv7511_dsi_config_timing_gen()
51 regmap_write(adv->regmap_cec, 0x2d, (hfp << 4) & 0xff); in adv7511_dsi_config_timing_gen()
/linux/drivers/gpu/drm/panel/
H A Dpanel-olimex-lcd-olinuxino.c30 u32 hfp; member
126 mode->hsync_start = lcd_mode->hactive + lcd_mode->hfp; in lcd_olinuxino_get_modes()
127 mode->hsync_end = lcd_mode->hactive + lcd_mode->hfp + in lcd_olinuxino_get_modes()
129 mode->htotal = lcd_mode->hactive + lcd_mode->hfp + in lcd_olinuxino_get_modes()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Ddsi.c3449 int hsa, hfp, hbp, width_bytes, bllp, lp_clk_div; in dsi_config_cmd_mode_interleaving() local
3471 hfp = FLD_GET(r, 23, 12); in dsi_config_cmd_mode_interleaving()
3495 bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); in dsi_config_cmd_mode_interleaving()
3507 hfp_interleave_hs = dsi_compute_interleave_hs(hfp, ddr_alwon, in dsi_config_cmd_mode_interleaving()
3510 hfp_interleave_lp = dsi_compute_interleave_lp(hfp, in dsi_config_cmd_mode_interleaving()
3697 int hfp = dsi->vm_timings.hfp; in dsi_proto_timings() local
3715 tl = DIV_ROUND_UP(4, ndl) + (hsync_end ? hsa : 0) + t_he + hfp + in dsi_proto_timings()
3719 hfp, hsync_end ? hsa : 0, tl); in dsi_proto_timings()
3725 r = FLD_MOD(r, hfp, 23, 12); /* HFP */ in dsi_proto_timings()
4326 bl = t->hss + t->hsa + t->hse + t->hbp + t->hfp; in print_dsi_vm()
[all …]
H A Dhdmi_wp.c171 timing_h |= FLD_VAL(timings->hfp, 19, 8); in hdmi_wp_video_config_timing()
193 timings->hfp = param->timings.hfp; in hdmi_wp_init_vid_fmt_timings()
H A Dhdmi5_core.c288 video_cfg->v_fc_config.timings.hfp = cfg->timings.hfp; in hdmi_core_init()
289 video_cfg->hblank = cfg->timings.hfp + in hdmi_core_init()
346 cfg->v_fc_config.timings.hfp >> 8, 4, 0); in hdmi_core_video_config()
348 cfg->v_fc_config.timings.hfp & 0xFF, 7, 0); in hdmi_core_video_config()
H A Ddisplay.c267 ovt->hfp = vm->hfront_porch; in videomode_to_omap_video_timings()
300 vm->hfront_porch = ovt->hfp; in omap_video_timings_to_videomode()
H A Ddisplay-sysfs.c99 t.x_res, t.hfp, t.hbp, t.hsw, in display_timings_show()
124 &t.x_res, &t.hfp, &t.hbp, &t.hsw, in display_timings_store()
/linux/drivers/gpu/drm/omapdrm/dss/
H A Ddsi.c2642 int hsa, hfp, hbp, width_bytes, bllp, lp_clk_div; in dsi_config_cmd_mode_interleaving() local
2664 hfp = FLD_GET(r, 23, 12); in dsi_config_cmd_mode_interleaving()
2688 bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); in dsi_config_cmd_mode_interleaving()
2700 hfp_interleave_hs = dsi_compute_interleave_hs(hfp, ddr_alwon, in dsi_config_cmd_mode_interleaving()
2703 hfp_interleave_lp = dsi_compute_interleave_lp(hfp, in dsi_config_cmd_mode_interleaving()
2888 int hfp = dsi->vm_timings.hfp; in dsi_proto_timings() local
2906 tl = DIV_ROUND_UP(4, ndl) + (hsync_end ? hsa : 0) + t_he + hfp + in dsi_proto_timings()
2910 hfp, hsync_end ? hsa : 0, tl); in dsi_proto_timings()
2916 r = FLD_MOD(r, hfp, 23, 12); /* HFP */ in dsi_proto_timings()
3584 bl = t->hss + t->hsa + t->hse + t->hbp + t->hfp; in print_dsi_vm()
[all …]
/linux/drivers/gpu/drm/tilcdc/
H A Dtilcdc_crtc.c279 uint32_t reg, hbp, hfp, hsw, vbp, vfp, vsw; in tilcdc_crtc_set_mode() local
316 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_set_mode()
323 mode->hdisplay, mode->vdisplay, hbp, hfp, hsw, vbp, vfp, vsw); in tilcdc_crtc_set_mode()
337 reg |= ((hfp-1) & 0x300) >> 8; in tilcdc_crtc_set_mode()
345 (((hfp-1) & 0xff) << 16) | in tilcdc_crtc_set_mode()
776 uint32_t hbp, hfp, hsw, vbp, vfp, vsw; in tilcdc_crtc_mode_valid() local
797 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_mode_valid()
808 if ((hfp-1) & ~0x3ff) { in tilcdc_crtc_mode_valid()
/linux/drivers/gpu/drm/logicvc/
H A Dlogicvc_crtc.c74 unsigned int hact, hfp, hsl, hbp; in logicvc_crtc_atomic_enable() local
82 hfp = mode->hsync_start - mode->hdisplay; in logicvc_crtc_atomic_enable()
91 regmap_write(logicvc->regmap, LOGICVC_HSYNC_FRONT_PORCH_REG, hfp - 1); in logicvc_crtc_atomic_enable()
/linux/drivers/gpu/drm/i915/display/
H A Dvlv_dsi.c1028 u16 hactive, hfp, hsync, hbp, vfp, vsync; in bxt_dsi_get_pipe_config() local
1067 hfp = intel_de_read(display, MIPI_HFP_COUNT(display, port)); in bxt_dsi_get_pipe_config()
1077 hfp = pixels_from_txbyteclkhs(hfp, bpp, lane_count, in bxt_dsi_get_pipe_config()
1085 hfp *= 2; in bxt_dsi_get_pipe_config()
1094 adjusted_mode->crtc_htotal = hactive + hfp + hsync + hbp; in bxt_dsi_get_pipe_config()
1095 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1228 u16 hactive, hfp, hsync, hbp, vfp, vsync, vbp; in set_dsi_timings() local
1231 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings()
1239 hfp /= 2; in set_dsi_timings()
1251 hfp = txbyteclkhs(hfp, bpp, lane_count, intel_dsi->burst_mode_ratio); in set_dsi_timings()
[all …]
/linux/drivers/gpu/drm/bridge/
H A Dlontium-lt8912b.c286 u32 hactive, h_total, hpw, hfp, hbp; in lt8912_video_setup() local
295 hfp = lt->mode.hfront_porch; in lt8912_video_setup()
298 h_total = hactive + hfp + hpw + hbp; in lt8912_video_setup()
337 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x3e, hfp & 0xff); in lt8912_video_setup()
338 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x3f, hfp >> 8); in lt8912_video_setup()
H A Dchipone-icn6211.c350 u16 hfp, hbp, hsync; in chipone_atomic_enable() local
389 hfp = mode->hsync_start - mode->hdisplay; in chipone_atomic_enable()
393 chipone_writeb(icn, HFP_LI, hfp & 0xff); in chipone_atomic_enable()
398 HFP_HSW_HBP_HI_HFP(hfp) | in chipone_atomic_enable()
410 chipone_writeb(icn, HFP_MIN, hfp & 0xff); in chipone_atomic_enable()
H A Dsamsung-dsim.c995 int hfp = DIV64_U64_ROUND_UP((m->hsync_start - m->hdisplay) * byte_clk, pix_clk); in samsung_dsim_set_display_mode() local
1000 hfp = max(hfp - 6, 0); in samsung_dsim_set_display_mode()
1005 hfp, hbp, hsa); in samsung_dsim_set_display_mode()
1012 reg = DSIM_MAIN_HFP(hfp) | DSIM_MAIN_HBP(hbp); in samsung_dsim_set_display_mode()
1620 int hfp = adjusted_mode->hsync_start - adjusted_mode->hdisplay; in samsung_dsim_atomic_check() local
1621 int remainder = hfp % dsi->lanes; in samsung_dsim_atomic_check()
/linux/drivers/gpu/drm/mcde/
H A Dmcde_dsi.c435 int hfp; in mcde_dsi_setup_video_mode() local
521 hfp = (mode->hsync_start - mode->hdisplay) * cpp - 6 - 2; in mcde_dsi_setup_video_mode()
546 if (hfp < 0) { in mcde_dsi_setup_video_mode()
548 hfp = 0; in mcde_dsi_setup_video_mode()
559 hfp, hbp, hsa); in mcde_dsi_setup_video_mode()
566 val |= hfp << DSI_VID_HSIZE1_HFP_LENGTH_SHIFT; in mcde_dsi_setup_video_mode()
652 if (d->mdsi->lanes == 2 && (hsa & 0x01) && (hfp & 0x01) in mcde_dsi_setup_video_mode()
/linux/drivers/video/fbdev/omap/
H A Dlcd_palmte.c27 .hfp = 8,
H A Dlcd_ams_delta.c113 .hfp = 1,
H A Domapfb.h68 int hfp; /* Horizontal front porch */ member
/linux/drivers/gpu/drm/bridge/cadence/
H A Dcdns-dsi-core.h36 unsigned int hfp; member
/linux/drivers/gpu/drm/pl111/
H A Dpl111_display.c133 u32 ppl, hsw, hfp, hbp; in pl111_display_enable() local
149 hfp = mode->hsync_start - mode->hdisplay - 1; in pl111_display_enable()
161 (hfp << 16) | in pl111_display_enable()
/linux/drivers/gpu/drm/arm/display/komeda/d71/
H A Dd71_regs.h417 #define BS_H_INTVALS(hfp, hbp) (((hfp) & 0xFFF) + (((hbp) & 0x3FF) << 16)) argument
/linux/drivers/gpu/drm/stm/
H A Ddw_mipi_dsi-stm.c529 int dsi_short_packet_size_px, hfp, hsync, hbp, delay_to_lp; in dw_mipi_dsi_stm_mode_valid() local
548 hfp = mode->hsync_start - mode->hdisplay; in dw_mipi_dsi_stm_mode_valid()
577 if (hfp < delay_to_lp && hbp < delay_to_lp) in dw_mipi_dsi_stm_mode_valid()
/linux/drivers/gpu/drm/sun4i/
H A Dsun6i_mipi_dsi.c535 u16 hbp = 0, hfp = 0, hsa = 0, hblk = 0, vblk = 0; in sun6i_dsi_setup_timings() local
577 hfp = max(HFP_PACKET_OVERHEAD, in sun6i_dsi_setup_timings()
600 bytes = max_t(size_t, max(max(hfp, hblk), max(hsa, hbp)), vblk); in sun6i_dsi_setup_timings()
651 sun6i_dsi_build_blk0_pkt(device->channel, hfp)); in sun6i_dsi_setup_timings()
653 sun6i_dsi_build_blk1_pkt(0, buffer, hfp)); in sun6i_dsi_setup_timings()
/linux/drivers/gpu/drm/
H A Ddrm_modes.c337 unsigned int hfp, hfp_duration_ns; in fill_analog_mode() local
418 hfp = params->bt601_hfp; in fill_analog_mode()
426 hfp = hfp_min + DIV_ROUND_UP(porches_rem, 2); in fill_analog_mode()
429 drm_dbg_kms(dev, "Horizontal Front Porch: %u\n", hfp); in fill_analog_mode()
431 hfp_duration_ns = hfp * pixel_duration_ns; in fill_analog_mode()
440 hbp = porches - hfp; in fill_analog_mode()
452 if (htotal != (hactive + hfp + hslen + hbp)) in fill_analog_mode()
457 mode->hsync_start = mode->hdisplay + hfp; in fill_analog_mode()

123