/openbmc/linux/drivers/gpu/drm/amd/display/modules/freesync/ |
H A D | freesync.c | 113 unsigned int v_total) in calc_duration_in_us_from_v_total() argument 116 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total() 127 unsigned int v_total; in mod_freesync_calc_v_total_from_refresh() local 134 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh() 139 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh() 140 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh() 141 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh() 144 return v_total; in mod_freesync_calc_v_total_from_refresh() 152 unsigned int v_total = 0; in calc_v_total_from_duration() local 164 v_total = div_u64((unsigned long long)duration_in_us in calc_v_total_from_duration() [all …]
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_g450.c | 234 unsigned int v_total; member 339 if (vtotal < outd->v_total) { in computeRegs() 340 unsigned int yovr = outd->v_total - vtotal; in computeRegs() 343 } else if (vtotal > outd->v_total) { in computeRegs() 344 vdisplay = outd->v_total - 4; in computeRegs() 345 vsyncend = outd->v_total; in computeRegs() 347 upper = (outd->v_total - vsyncend) >> 1; /* in field lines */ in computeRegs() 348 r->regs[0x17] = outd->v_total / 4; in computeRegs() 349 r->regs[0x18] = outd->v_total & 3; in computeRegs() 355 mt->VSyncStart = outd->v_total - 2; in computeRegs() [all …]
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-di.c | 207 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_interlaced() local 212 .run_count = v_total * 2 - 1, in ipu_di_sync_config_interlaced() 223 .run_count = v_total - 1, in ipu_di_sync_config_interlaced() 231 .run_count = v_total / 2, in ipu_di_sync_config_interlaced() 262 ipu_di_write(di, v_total / 2 - 1, DI_SCR_CONF); in ipu_di_sync_config_interlaced() 270 u32 v_total = sig->mode.vactive + sig->mode.vsync_len + in ipu_di_sync_config_noninterlaced() local 288 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced() 323 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced() 352 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced() 370 .run_count = v_total - 1, in ipu_di_sync_config_noninterlaced() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 166 uint32_t v_total; in optc1_program_timing() local 216 v_total = patched_crtc_timing.v_total - 1; in optc1_program_timing() 219 OTG_V_TOTAL, v_total); in optc1_program_timing() 224 optc->funcs->set_vtotal_min_max(optc, v_total, v_total); in optc1_program_timing() 234 asic_blank_start = patched_crtc_timing.v_total - in optc1_program_timing() 355 v_init = patched_crtc_timing.v_total - patched_crtc_timing.v_front_porch; in optc1_set_vtg_params() 596 v_blank = (timing->v_total - timing->v_addressable - in optc1_validate_timing() 621 timing->v_total > optc1->max_v_total) in optc1_validate_timing() 1317 hw_crtc_timing->v_total = s.v_total + 1; in optc1_get_hw_timing() 1318 hw_crtc_timing->v_addressable = s.v_total - ((s.v_total - s.v_blank_start) + s.v_blank_end); in optc1_get_hw_timing() [all …]
|
H A D | dcn10_opp.c | 317 uint32_t space1_size = timing->v_total - timing->v_addressable; in opp1_program_stereo() 319 uint32_t space2_size = timing->v_total - timing->v_addressable; in opp1_program_stereo()
|
/openbmc/u-boot/drivers/video/ |
H A D | ipu_disp.c | 838 uint32_t h_total, v_total; in ipu_init_sync_panel() local 854 v_total = height + v_sync_width + v_start_width + v_end_width; in ipu_init_sync_panel() 947 v_total * 2 - 1,/* run count */ in ipu_init_sync_panel() 964 v_total / 2 - 1,/* run count */ in ipu_init_sync_panel() 998 v_total - 1, /* run count */ in ipu_init_sync_panel() 1016 v_total / 2 - 1,/* run count */ in ipu_init_sync_panel() 1049 v_total - 1, /* run count */ in ipu_init_sync_panel() 1051 v_total / 2, /* offset */ in ipu_init_sync_panel() 1068 __raw_writel(v_total / 2 - 1, DI_SCR_CONF(disp)); in ipu_init_sync_panel() 1088 ipu_di_sync_config(disp, DI_SYNC_VSYNC, v_total - 1, in ipu_init_sync_panel() [all …]
|
H A D | videomodes.c | 390 int margin, h_total, v_total; in video_edid_dtd_to_ctfb_res_modes() local 408 v_total = mode->yres + EDID_DETAILED_TIMING_VERTICAL_BLANKING(*t); in video_edid_dtd_to_ctfb_res_modes() 410 (h_total * v_total); in video_edid_dtd_to_ctfb_res_modes()
|
H A D | logicore_dp_tx.h | 49 u16 v_total; member
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 487 curr_v_blank = timing->v_total - timing->v_addressable; in get_frame_rate_at_max_stretch_100hz() 489 stretched_frame_pix_cnt = (v_stretch_max + timing->v_total) * timing->h_total; in get_frame_rate_at_max_stretch_100hz() 529 h_v_total = timing->h_total * timing->v_total; in get_refresh_rate() 655 pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_drr_admissable() 656 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_drr_admissable() 713 pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_vblank_admissable() 714 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_vblank_admissable()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_dmub_srv.c | 470 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info() 479 …prefetch_us = div64_u64(((uint64_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * pha… in populate_subvp_cmd_drr_info() 546 pipe_data->pipe_config.vblank_data.vblank_start = vblank_pipe->stream->timing.v_total - in populate_subvp_cmd_vblank_pipe_info() 548 pipe_data->pipe_config.vblank_data.vtotal = vblank_pipe->stream->timing.v_total; in populate_subvp_cmd_vblank_pipe_info() 553 …vblank_pipe->stream->timing.v_total - vblank_pipe->stream->timing.v_front_porch - vblank_pipe->str… in populate_subvp_cmd_vblank_pipe_info() 585 …subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_por… in update_subvp_prefetch_end_to_mall_start() 588 …subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_por… in update_subvp_prefetch_end_to_mall_start() 641 pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total; in populate_subvp_cmd_pipe_info() 643 main_timing->v_total - main_timing->v_front_porch; in populate_subvp_cmd_pipe_info() 645 main_timing->v_total - main_timing->v_front_porch - main_timing->v_addressable; in populate_subvp_cmd_pipe_info() [all …]
|
/openbmc/u-boot/common/ |
H A D | edid.c | 287 uint32_t h_total, v_total, vfreq; in edid_print_dtd() local 296 v_total = v_active + v_blanking; in edid_print_dtd() 297 if (v_total > 0 && h_total > 0) in edid_print_dtd() 298 vfreq = pixclock / (v_total * h_total); in edid_print_dtd()
|
/openbmc/linux/drivers/gpu/drm/amd/display/modules/info_packet/ |
H A D | info_packet.c | 467 && stream->timing.v_total >= 2160 in mod_build_hf_vsif_infopacket() 574 info_packet->sb[1] = (stream->timing.v_total & 0x00FF); in mod_build_adaptive_sync_infopacket_v2() 575 info_packet->sb[2] = (stream->timing.v_total & 0xFF00) >> 8; in mod_build_adaptive_sync_infopacket_v2()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
H A D | dce110_clk_mgr.c | 101 uint32_t vertical_total_min = stream->timing.v_total; in dce110_get_min_vblank_time_us() 165 cfg->v_refresh = (cfg->v_refresh + stream->timing.v_total / 2) in dce110_fill_display_configs() 166 / stream->timing.v_total; in dce110_fill_display_configs()
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | lontium-lt9611.c | 131 u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch; in lt9611_mipi_video_setup() local 134 v_total = mode->vtotal; in lt9611_mipi_video_setup() 146 regmap_write(lt9611->regmap, 0x830d, (u8)(v_total / 256)); in lt9611_mipi_video_setup() 147 regmap_write(lt9611->regmap, 0x830e, (u8)(v_total % 256)); in lt9611_mipi_video_setup() 289 u32 v_total, vactive, hactive_a, hactive_b, h_total_sysclk; in lt9611_video_check() local 304 v_total = temp; in lt9611_video_check() 326 hactive_a, hactive_b, vactive, v_total, h_total_sysclk); in lt9611_video_check()
|
H A D | lontium-lt8912b.c | 276 u32 vactive, v_total, vpw, vfp, vbp; in lt8912_video_setup() local 294 v_total = vactive + vfp + vpw + vbp; in lt8912_video_setup() 314 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x36, v_total & 0xff); in lt8912_video_setup() 315 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x37, v_total >> 8); in lt8912_video_setup()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_tv.c | 428 unsigned int h_total, v_total, f_total; in radeon_legacy_tv_init_restarts() local 439 v_total = const_ptr->ver_total; in radeon_legacy_tv_init_restarts() 485 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(NTSC_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 487 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(PAL_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 496 tv_dac->tv.vrestart = restart % v_total; in radeon_legacy_tv_init_restarts() 497 restart /= v_total; in radeon_legacy_tv_init_restarts()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_optc.c | 85 v_blank = (timing->v_total - timing->v_addressable - in optc201_validate_timing() 106 timing->v_total > optc1->max_v_total) in optc201_validate_timing()
|
/openbmc/linux/drivers/video/fbdev/aty/ |
H A D | aty128fb.c | 415 u32 v_total, v_sync_strt_wid; member 1020 aty_st_le32(CRTC_V_TOTAL_DISP, crtc->v_total); in aty128_set_crtc() 1037 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty128_var_to_crtc() local 1099 v_total = (yres + upper + vslen + lower - 1) & 0xFFFFL; in aty128_var_to_crtc() 1102 if (((h_total >> 3) - 1) > 0x1ff || (v_total - 1) > 0x7FF) { in aty128_var_to_crtc() 1131 crtc->v_total = v_total | (v_disp << 16); in aty128_var_to_crtc() 1226 u32 v_total, v_disp, v_sync_strt, v_sync_wid, v_sync_pol, c_sync; in aty128_crtc_to_var() local 1236 v_total = crtc->v_total & 0x7ff; in aty128_crtc_to_var() 1237 v_disp = (crtc->v_total >> 16) & 0x7ff; in aty128_crtc_to_var() 1250 upper = v_total - v_sync_strt - v_sync_wid; in aty128_crtc_to_var() [all …]
|
/openbmc/linux/drivers/video/fbdev/nvidia/ |
H A D | nvidia.c | 310 int v_total = (info->var.yres + info->var.lower_margin + in nvidia_calc_regs() local 313 int v_blank_e = v_total + 1; in nvidia_calc_regs() 320 v_total |= 1; in nvidia_calc_regs() 323 v_start = v_total - 3; in nvidia_calc_regs() 324 v_end = v_total - 2; in nvidia_calc_regs() 339 state->crtc[0x6] = SetBitField(v_total, 7: 0, 7:0); in nvidia_calc_regs() 340 state->crtc[0x7] = SetBitField(v_total, 8: 8, 0:0) in nvidia_calc_regs() 345 | SetBitField(v_total, 9: 9, 5:5) in nvidia_calc_regs() 368 | SetBitField(v_total, 10: 10, 0:0); in nvidia_calc_regs() 375 state->extra = SetBitField(v_total, 11: 11, 0:0) in nvidia_calc_regs()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_stream.c | 314 stream->timing.v_total * stream->timing.h_total - (uint64_t)1); in is_subvp_high_refresh_candidate() 315 refresh_rate = div_u64(refresh_rate, stream->timing.v_total); in is_subvp_high_refresh_candidate() 370 ((stream->timing.pix_clk_100hz * 100) / stream->timing.v_total / stream->timing.h_total) < 120) in dc_stream_set_cursor_attributes() 373 ((stream->timing.pix_clk_100hz * 100) / stream->timing.v_total / stream->timing.h_total) < 120) in dc_stream_set_cursor_attributes() 764 stream->timing.v_total, in dc_stream_log()
|
/openbmc/u-boot/drivers/video/tegra124/ |
H A D | display.c | 27 int h_total, v_total, refresh; in tegra_dc_calc_refresh() local 32 v_total = timing->vactive.typ + timing->vfront_porch.typ + in tegra_dc_calc_refresh() 34 if (!pclk || !h_total || !v_total) in tegra_dc_calc_refresh() 38 refresh /= v_total; in tegra_dc_calc_refresh()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce120/ |
H A D | dce120_timing_generator.c | 108 (timing->v_total - timing->v_addressable - in dce120_timing_generator_validate_timing() 451 timing->v_total - 1); in dce120_timing_generator_program_blanking() 459 timing->v_total - 1); in dce120_timing_generator_program_blanking() 464 timing->v_total - 1); in dce120_timing_generator_program_blanking() 476 tmp1 = timing->v_total - (v_sync_start + timing->v_border_top); in dce120_timing_generator_program_blanking() 628 timing->v_total - timing->v_addressable - in dce120_timing_generator_enable_advanced_request()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_mem_input.c | 674 uint32_t v_total, in get_dmif_switch_time_us() argument 686 if (!h_total || v_total || !pix_clk_khz) in get_dmif_switch_time_us() 691 pixels_per_frame = h_total * v_total; in get_dmif_switch_time_us() 721 uint32_t v_total, in dce_mi_allocate_dmif() argument 729 v_total, in dce_mi_allocate_dmif()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | dcn32_fpu.c | 612 phantom_stream->timing.v_total = phantom_stream->timing.v_addressable + in dcn32_set_phantom_stream_timing() 690 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in dcn32_assign_subvp_pipe() 691 / (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total); in dcn32_assign_subvp_pipe() 716 unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total / in dcn32_assign_subvp_pipe() 815 microschedule_lines = (phantom->timing.v_total - phantom->timing.v_front_porch) + in subvp_subvp_schedulable() 838 …vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressa… in subvp_subvp_schedulable() 841 …vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressa… in subvp_subvp_schedulable() 915 prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable() 920 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in subvp_drr_schedulable() 926 drr_stretched_vblank_us = (drr_timing->v_total - drr_timing->v_addressable) * drr_timing->h_total / in subvp_drr_schedulable() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | dcn314_fpu.c | 301 v_blank = timing->v_total - v_active; in get_vertical_back_porch() 336 pipes[pipe_cnt].pipe.dest.vtotal = timing->v_total; in dcn314_populate_dml_pipes_from_context_fpu() 340 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive; in dcn314_populate_dml_pipes_from_context_fpu()
|