Home
last modified time | relevance | path

Searched refs:v_total (Results 1 – 25 of 80) sorted by relevance

1234

/linux-6.12.1/drivers/gpu/drm/amd/display/modules/freesync/
Dfreesync.c114 unsigned int v_total) in calc_duration_in_us_from_v_total() argument
117 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total()
128 unsigned int v_total; in mod_freesync_calc_v_total_from_refresh() local
135 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
140 if (v_total < stream->timing.v_total) { in mod_freesync_calc_v_total_from_refresh()
141 ASSERT(v_total < stream->timing.v_total); in mod_freesync_calc_v_total_from_refresh()
142 v_total = stream->timing.v_total; in mod_freesync_calc_v_total_from_refresh()
145 return v_total; in mod_freesync_calc_v_total_from_refresh()
153 unsigned int v_total = 0; in calc_v_total_from_duration() local
165 v_total = div_u64((unsigned long long)duration_in_us in calc_v_total_from_duration()
[all …]
/linux-6.12.1/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c234 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 …]
/linux-6.12.1/drivers/gpu/ipu-v3/
Dipu-di.c207 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 …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/optc/dcn10/
Ddcn10_optc.c170 uint32_t v_total; in optc1_program_timing() local
221 v_total = patched_crtc_timing.v_total - 1; in optc1_program_timing()
224 OTG_V_TOTAL, v_total); in optc1_program_timing()
229 optc->funcs->set_vtotal_min_max(optc, v_total, v_total); in optc1_program_timing()
239 asic_blank_start = patched_crtc_timing.v_total - in optc1_program_timing()
361 v_init = patched_crtc_timing.v_total - patched_crtc_timing.v_front_porch; in optc1_set_vtg_params()
602 v_blank = (timing->v_total - timing->v_addressable - in optc1_validate_timing()
627 timing->v_total > optc1->max_v_total) in optc1_validate_timing()
1323 hw_crtc_timing->v_total = s.v_total + 1; in optc1_get_hw_timing()
1324 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 …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddml2_mall_phantom.c247 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in assign_subvp_pipe()
248 / (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total); in assign_subvp_pipe()
266 unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total / in assign_subvp_pipe()
377 microschedule_lines = (phantom->timing.v_total - phantom->timing.v_front_porch) + in subvp_subvp_schedulable()
400 …vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressa… in subvp_subvp_schedulable()
403 …vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressa… in subvp_subvp_schedulable()
464 prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in dml2_svp_drr_schedulable()
469 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in dml2_svp_drr_schedulable()
475 drr_stretched_vblank_us = (drr_timing->v_total - drr_timing->v_addressable) * drr_timing->h_total / in dml2_svp_drr_schedulable()
562 …prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_vblank_schedulable()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn32/
Ddcn32_resource_helpers.c452 curr_v_blank = timing->v_total - timing->v_addressable; in get_frame_rate_at_max_stretch_100hz()
454 stretched_frame_pix_cnt = (v_stretch_max + timing->v_total) * timing->h_total; in get_frame_rate_at_max_stretch_100hz()
498 h_v_total = timing->h_total * timing->v_total; in get_refresh_rate()
666 pipe->stream->timing.v_total * (unsigned long long)pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_drr_admissable()
667 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_drr_admissable()
727 pipe->stream->timing.v_total * (unsigned long long)pipe->stream->timing.h_total - (uint64_t)1); in dcn32_subvp_vblank_admissable()
728 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_vblank_admissable()
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/info_packet/
Dinfo_packet.c467 && stream->timing.v_total >= 2160 in mod_build_hf_vsif_infopacket()
572 info_packet->sb[1] = (stream->timing.v_total & 0x00FF); in mod_build_adaptive_sync_infopacket_v2()
573 info_packet->sb[2] = (stream->timing.v_total & 0xFF00) >> 8; in mod_build_adaptive_sync_infopacket_v2()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_stream.c825 stream->timing.v_total, in dc_stream_log()
980 …return (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long lo… in dc_stream_calculate_flickerless_refresh_rate()
1026 if (stream->timing.v_total * stream->timing.h_total == 0) in dc_stream_get_max_flickerless_instant_vtotal_delta()
1029 …nt)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream… in dc_stream_get_max_flickerless_instant_vtotal_delta()
1040 …return (((int) stream->timing.v_total - safe_refresh_v_total) >= 0) ? (stream->timing.v_total - sa… in dc_stream_get_max_flickerless_instant_vtotal_delta()
1042 …(safe_refresh_v_total - (int) stream->timing.v_total) >= 0) ? (safe_refresh_v_total - stream->timi… in dc_stream_get_max_flickerless_instant_vtotal_delta()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
Ddce110_clk_mgr.c101 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()
/linux-6.12.1/drivers/gpu/drm/bridge/
Dlontium-lt9611.c132 u32 v_total, vactive, vsync_len, vfront_porch, vsync_porch; in lt9611_mipi_video_setup() local
135 v_total = mode->vtotal; in lt9611_mipi_video_setup()
147 regmap_write(lt9611->regmap, 0x830d, (u8)(v_total / 256)); in lt9611_mipi_video_setup()
148 regmap_write(lt9611->regmap, 0x830e, (u8)(v_total % 256)); in lt9611_mipi_video_setup()
290 u32 v_total, vactive, hactive_a, hactive_b, h_total_sysclk; in lt9611_video_check() local
305 v_total = temp; in lt9611_video_check()
327 hactive_a, hactive_b, vactive, v_total, h_total_sysclk); in lt9611_video_check()
Dlontium-lt8912b.c287 u32 vactive, v_total, vpw, vfp, vbp; in lt8912_video_setup() local
305 v_total = vactive + vfp + vpw + vbp; in lt8912_video_setup()
325 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x36, v_total & 0xff); in lt8912_video_setup()
326 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x37, v_total >> 8); in lt8912_video_setup()
Dlontium-lt9611uxc.c307 u32 v_total, vactive, vsync_len, vfront_porch; in lt9611uxc_video_setup() local
310 v_total = mode->vtotal; in lt9611uxc_video_setup()
320 regmap_write(lt9611uxc->regmap, 0xd00d, (u8)(v_total / 256)); in lt9611uxc_video_setup()
321 regmap_write(lt9611uxc->regmap, 0xd00e, (u8)(v_total % 256)); in lt9611uxc_video_setup()
/linux-6.12.1/drivers/gpu/drm/radeon/
Dradeon_legacy_tv.c428 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()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/optc/dcn201/
Ddcn201_optc.c79 v_blank = (timing->v_total - timing->v_addressable - in optc201_validate_timing()
100 timing->v_total > optc1->max_v_total) in optc201_validate_timing()
/linux-6.12.1/drivers/video/fbdev/aty/
Daty128fb.c415 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 …]
/linux-6.12.1/drivers/video/fbdev/nvidia/
Dnvidia.c310 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()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_timing_generator.c108 (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()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.c672 uint32_t v_total, in get_dmif_switch_time_us() argument
684 if (!h_total || v_total || !pix_clk_khz) in get_dmif_switch_time_us()
689 pixels_per_frame = h_total * v_total; in get_dmif_switch_time_us()
719 uint32_t v_total, in dce_mi_allocate_dmif() argument
727 v_total, in dce_mi_allocate_dmif()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn35/
Ddcn35_fpu.c429 v_blank = timing->v_total - v_active; in get_vertical_back_porch()
465 pipe->stream->adjust.v_total_min > timing->v_total) { in dcn35_populate_dml_pipes_from_context_fpu()
468 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - in dcn35_populate_dml_pipes_from_context_fpu()
472 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive; in dcn35_populate_dml_pipes_from_context_fpu()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn351/
Ddcn351_fpu.c463 v_blank = timing->v_total - v_active; in get_vertical_back_porch()
499 pipe->stream->adjust.v_total_min > timing->v_total) { in dcn351_populate_dml_pipes_from_context_fpu()
502 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - in dcn351_populate_dml_pipes_from_context_fpu()
506 pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive; in dcn351_populate_dml_pipes_from_context_fpu()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddcn314_fpu.c301 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()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/opp/dcn10/
Ddcn10_opp.c331 uint32_t space1_size = timing->v_total - timing->v_addressable; in opp1_program_stereo()
333 uint32_t space2_size = timing->v_total - timing->v_addressable; in opp1_program_stereo()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/
Ddc_dmub_srv.c591 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
600 …prefetch_us = div64_u64(((uint64_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * pha… in populate_subvp_cmd_drr_info()
667 pipe_data->pipe_config.vblank_data.vblank_start = vblank_pipe->stream->timing.v_total - in populate_subvp_cmd_vblank_pipe_info()
669 pipe_data->pipe_config.vblank_data.vtotal = vblank_pipe->stream->timing.v_total; in populate_subvp_cmd_vblank_pipe_info()
674 …vblank_pipe->stream->timing.v_total - vblank_pipe->stream->timing.v_front_porch - vblank_pipe->str… in populate_subvp_cmd_vblank_pipe_info()
720 …subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_por… in update_subvp_prefetch_end_to_mall_start()
723 …subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_por… in update_subvp_prefetch_end_to_mall_start()
782 pipe_data->pipe_config.subvp_data.vtotal = subvp_pipe->stream->timing.v_total; in populate_subvp_cmd_pipe_info()
784 main_timing->v_total - main_timing->v_front_porch; in populate_subvp_cmd_pipe_info()
786 main_timing->v_total - main_timing->v_front_porch - main_timing->v_addressable; in populate_subvp_cmd_pipe_info()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddcn32_fpu.c541 phantom_stream->timing.v_total = phantom_stream->timing.v_addressable + in dcn32_set_phantom_stream_timing()
619 pipe->stream->timing.v_total * pipe->stream->timing.h_total - 1) in dcn32_assign_subvp_pipe()
620 / (double)(pipe->stream->timing.v_total * pipe->stream->timing.h_total); in dcn32_assign_subvp_pipe()
645 unsigned int frame_us = (stream->timing.v_total * stream->timing.h_total / in dcn32_assign_subvp_pipe()
744 microschedule_lines = (phantom->timing.v_total - phantom->timing.v_front_porch) + in subvp_subvp_schedulable()
767 …vblank1_us = (((subvp_pipes[0]->stream->timing.v_total - subvp_pipes[0]->stream->timing.v_addressa… in subvp_subvp_schedulable()
770 …vblank2_us = (((subvp_pipes[1]->stream->timing.v_total - subvp_pipes[1]->stream->timing.v_addressa… in subvp_subvp_schedulable()
853 …prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable()
858 drr_frame_us = drr_timing->v_total * drr_timing->h_total / in subvp_drr_schedulable()
864 …drr_stretched_vblank_us = (drr_timing->v_total - drr_timing->v_addressable) * drr_timing->h_total / in subvp_drr_schedulable()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_timing_generator.c312 bp_params.v_total = patched_crtc_timing.v_total; in dce110_timing_generator_program_timing_generator()
631 timing->v_total - 1, in dce110_timing_generator_program_blanking()
643 timing->v_total - 1, in dce110_timing_generator_program_blanking()
652 timing->v_total - 1, in dce110_timing_generator_program_blanking()
683 tmp = timing->v_total - (v_sync_start + timing->v_border_top); in dce110_timing_generator_program_blanking()
1145 timing->v_total > tg110->max_v_total) in dce110_timing_generator_validate_timing()

1234