Home
last modified time | relevance | path

Searched refs:h_total (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v6.6/drivers/gpu/drm/amd/display/dc/
Ddc_dmub_srv.c470 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
473 …mall_region_us = div64_u64(((uint64_t)phantom_timing->v_addressable * phantom_timing->h_total * 10… in populate_subvp_cmd_drr_info()
477 (((uint64_t)drr_timing->h_total * 1000000))); in populate_subvp_cmd_drr_info()
479 …4_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
481 …subvp_active_us = div64_u64(((uint64_t)main_timing->v_addressable * main_timing->h_total * 1000000… in populate_subvp_cmd_drr_info()
483 drr_active_us = div64_u64(((uint64_t)drr_timing->v_addressable * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
490 (((uint64_t)drr_timing->h_total * 1000000))); in populate_subvp_cmd_drr_info()
549 pipe_data->pipe_config.vblank_data.htotal = vblank_pipe->stream->timing.h_total; in populate_subvp_cmd_vblank_pipe_info()
586 (uint64_t)phantom_timing0->h_total * 1000000), in update_subvp_prefetch_end_to_mall_start()
589 (uint64_t)phantom_timing1->h_total * 1000000), in update_subvp_prefetch_end_to_mall_start()
[all …]
/Linux-v6.6/drivers/gpu/ipu-v3/
Dipu-di.c205 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_interlaced() local
216 .run_count = h_total - 1, in ipu_di_sync_config_interlaced()
233 .offset_count = h_total / 2, in ipu_di_sync_config_interlaced()
255 .run_count = h_total / 2 - 1, in ipu_di_sync_config_interlaced()
268 u32 h_total = sig->mode.hactive + sig->mode.hsync_len + in ipu_di_sync_config_noninterlaced() local
275 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced()
279 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced()
319 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced()
335 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced()
361 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_resource_helpers.c485 sec_per_100_lines = timing->pix_clk_100hz / timing->h_total + 1; 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()
657 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_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()
715 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total); in dcn32_subvp_vblank_admissable()
Ddcn32_dio_stream_encoder.c255 h_blank_start = timing->h_total - timing->h_front_porch; in is_h_timing_divisible_by_2()
262 divisible = (timing->h_total % 2 == 0) && in is_h_timing_divisible_by_2()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_optc.c188 OTG_H_TOTAL, patched_crtc_timing.h_total - 1); in optc1_program_timing()
196 asic_blank_start = patched_crtc_timing.h_total - in optc1_program_timing()
599 h_blank = (timing->h_total - timing->h_addressable - in optc1_validate_timing()
620 if (timing->h_total > optc1->max_h_total || in optc1_validate_timing()
1312 hw_crtc_timing->h_total = s.h_total + 1; in optc1_get_hw_timing()
1313 hw_crtc_timing->h_addressable = s.h_total - ((s.h_total - s.h_blank_start) + s.h_blank_end); in optc1_get_hw_timing()
1314 hw_crtc_timing->h_front_porch = s.h_total + 1 - s.h_blank_start; in optc1_get_hw_timing()
1370 OTG_H_TOTAL, &s->h_total); in optc1_read_otg_state()
/Linux-v6.6/drivers/gpu/drm/amd/display/modules/freesync/
Dfreesync.c117 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total()
136 stream->timing.h_total), 1000000); in mod_freesync_calc_v_total_from_refresh()
163 h_total_up_scaled = stream->timing.h_total * 10000; in calc_v_total_from_duration()
170 stream->timing.h_total), 1000); in calc_v_total_from_duration()
246 stream->timing.h_total), 1000); in update_v_total_for_static_ramp()
1006 if (stream->ctx->dc->caps.max_v_total != 0 && stream->timing.h_total != 0) { in mod_freesync_build_vrr_params()
1008 (stream->timing.h_total * stream->ctx->dc->caps.max_v_total)); in mod_freesync_build_vrr_params()
1296 unsigned int total = stream->timing.h_total * stream->timing.v_total; in mod_freesync_calc_nominal_field_rate()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
Ddce110_clk_mgr.c106 vertical_blank_in_pixels = stream->timing.h_total * in dce110_get_min_vblank_time_us()
164 cfg->v_refresh /= stream->timing.h_total; in dce110_fill_display_configs()
242 pp_display_cfg->line_time_in_us = timing->h_total * 10000 / timing->pix_clk_100hz; in dce11_pplib_apply_display_requirements()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn201/
Ddcn201_optc.c88 h_blank = (timing->h_total - timing->h_addressable - in optc201_validate_timing()
105 if (timing->h_total > optc1->max_h_total || in optc201_validate_timing()
/Linux-v6.6/drivers/gpu/drm/radeon/
Dradeon_legacy_tv.c428 unsigned int h_total, v_total, f_total; in radeon_legacy_tv_init_restarts() local
438 h_total = const_ptr->hor_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()
494 tv_dac->tv.hrestart = restart % h_total; in radeon_legacy_tv_init_restarts()
495 restart /= h_total; in radeon_legacy_tv_init_restarts()
/Linux-v6.6/drivers/video/fbdev/nvidia/
Dnvidia.c302 int h_total = (info->var.xres + info->var.right_margin + in nvidia_calc_regs() local
305 int h_blank_e = h_total + 4; in nvidia_calc_regs()
326 h_start = h_total - 5; in nvidia_calc_regs()
327 h_end = h_total - 2; in nvidia_calc_regs()
328 h_blank_e = h_total + 4; in nvidia_calc_regs()
331 state->crtc[0x0] = Set8Bits(h_total); in nvidia_calc_regs()
370 state->horiz = SetBitField(h_total, 8: 8, 0:0) in nvidia_calc_regs()
381 h_total = (h_total >> 1) & ~1; in nvidia_calc_regs()
382 state->interlace = Set8Bits(h_total); in nvidia_calc_regs()
383 state->horiz |= SetBitField(h_total, 8: 8, 4:4); in nvidia_calc_regs()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddcn32_fpu.c574 (double)ref_pipe->stream->timing.h_total; 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()
819 time_us = (microschedule_lines * phantom->timing.h_total) / in subvp_subvp_schedulable()
834 …ve1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable()
836 …ve2_us = ((subvp_pipes[1]->stream->timing.v_addressable * subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable()
839 subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable()
842 subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable()
915 prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable()
[all …]
/Linux-v6.6/drivers/video/fbdev/aty/
Daty128fb.c414 u32 h_total, h_sync_strt_wid; member
1018 aty_st_le32(CRTC_H_TOTAL_DISP, crtc->h_total); in aty128_set_crtc()
1036 u32 h_total, h_disp, h_sync_strt, h_sync_wid, h_sync_pol; in aty128_var_to_crtc() local
1096 h_total = (((xres + right + hslen + left) >> 3) - 1) & 0xFFFFL; in aty128_var_to_crtc()
1102 if (((h_total >> 3) - 1) > 0x1ff || (v_total - 1) > 0x7FF) { in aty128_var_to_crtc()
1130 crtc->h_total = h_total | (h_disp << 16); in aty128_var_to_crtc()
1225 u32 h_total, h_disp, h_sync_strt, h_sync_dly, h_sync_wid, h_sync_pol; in aty128_crtc_to_var() local
1230 h_total = crtc->h_total & 0x1ff; in aty128_crtc_to_var()
1231 h_disp = (crtc->h_total >> 16) & 0xff; in aty128_crtc_to_var()
1247 left = ((h_total - h_sync_strt - h_sync_wid) << 3) - h_sync_dly; in aty128_crtc_to_var()
[all …]
Datyfb_base.c821 u32 h_total, h_disp, h_sync_strt, h_sync_end, h_sync_dly, h_sync_wid, h_sync_pol; in aty_var_to_crtc() local
896 h_total = h_sync_end + h_sync_dly + var->left_margin; in aty_var_to_crtc()
974 h_total = h_disp + par->lcd_hblank_len; in aty_var_to_crtc()
985 h_total = (h_total >> 3) - 1; in aty_var_to_crtc()
993 FAIL_MAX("h_total too large", h_total, 0x1ff); in aty_var_to_crtc()
1028 crtc->h_tot_disp = h_total | (h_disp << 16); in aty_var_to_crtc()
1170 u32 h_total, h_disp, h_sync_strt, h_sync_dly, h_sync_wid, h_sync_pol; in aty_crtc_to_var() local
1176 h_total = crtc->h_tot_disp & 0x1ff; in aty_crtc_to_var()
1195 left = (h_total - h_sync_strt - h_sync_wid) * 8 - h_sync_dly; in aty_crtc_to_var()
1363 u32 h_disp, h_sync_strt, h_sync_end, h_total; in atyfb_set_par() local
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/core/
Ddc_stream.c314 stream->timing.v_total * stream->timing.h_total - (uint64_t)1); in is_subvp_high_refresh_candidate()
316 refresh_rate = div_u64(refresh_rate, stream->timing.h_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()
763 stream->timing.h_total, in dc_stream_log()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.c673 uint32_t h_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()
720 uint32_t h_total, in dce_mi_allocate_dmif() argument
728 h_total, in dce_mi_allocate_dmif()
/Linux-v6.6/drivers/gpu/drm/amd/display/include/
Daudio_types.h37 uint32_t h_total; member
/Linux-v6.6/drivers/gpu/drm/bridge/
Dlontium-lt8912b.c276 u32 hactive, h_total, hpw, hfp, hbp; in lt8912_video_setup() local
288 h_total = hactive + hfp + hpw + hbp; in lt8912_video_setup()
312 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x34, h_total & 0xff); in lt8912_video_setup()
313 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x35, h_total >> 8); in lt8912_video_setup()
Dlontium-lt9611uxc.c391 u32 h_total, hactive, hsync_len, hfront_porch; in lt9611uxc_video_setup() local
394 h_total = mode->htotal; in lt9611uxc_video_setup()
411 regmap_write(lt9611uxc->regmap, 0xd011, (u8)(h_total / 256)); in lt9611uxc_video_setup()
412 regmap_write(lt9611uxc->regmap, 0xd012, (u8)(h_total % 256)); in lt9611uxc_video_setup()
Dlontium-lt9611.c130 u32 h_total, hactive, hsync_len, hfront_porch, hsync_porch; in lt9611_mipi_video_setup() local
133 h_total = mode->htotal; in lt9611_mipi_video_setup()
152 regmap_write(lt9611->regmap, 0x8311, (u8)(h_total / 256)); in lt9611_mipi_video_setup()
153 regmap_write(lt9611->regmap, 0x8312, (u8)(h_total % 256)); in lt9611_mipi_video_setup()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/
Ddce_calcs.c260 data->h_total[0] = data->h_total[4]; in calculate_bandwidth()
262 data->h_total[1] = data->h_total[4]; in calculate_bandwidth()
265 data->h_total[2] = data->h_total[5]; in calculate_bandwidth()
267 data->h_total[3] = data->h_total[5]; in calculate_bandwidth()
397 data->h_total[maximum_number_of_surfaces - 2] = data->h_total[5]; in calculate_bandwidth()
398 data->h_total[maximum_number_of_surfaces - 1] = data->h_total[5]; in calculate_bandwidth()
853 …al_blank_and_chunk_granularity_factor[i] = bw_div(data->h_total[i], (bw_div((bw_add(data->h_total[… in calculate_bandwidth()
855 …of_frame[i]), data->source_width_rounded_up_to_chunks[i]), (bw_div(data->h_total[i], data->pixel_r… in calculate_bandwidth()
1255 … data->v_scaler_efficiency), bw_div(data->source_width_rounded_up_to_chunks[i], data->h_total[i])); in calculate_bandwidth()
1300 …_mul((bw_sub(dceip->cursor_dcp_buffer_lines, bw_int_to_fixed(1))), data->h_total[i]), data->vsr[i]… in calculate_bandwidth()
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/display/
Dintel_audio.c523 unsigned int h_active, h_total, hblank_delta, pixel_clk; in calc_hblank_early_prog() local
529 h_total = crtc_state->hw.adjusted_mode.crtc_htotal; in calc_hblank_early_prog()
545 link_clks_available = (h_total - h_active) * link_clk / pixel_clk - 28; in calc_hblank_early_prog()
546 link_clks_required = DIV_ROUND_UP(192000 * h_total, 1000 * pixel_clk) * (48 / lanes + 2); in calc_hblank_early_prog()
567 unsigned int h_active, h_total, pixel_clk; in calc_samples_room() local
571 h_total = crtc_state->hw.adjusted_mode.htotal; in calc_samples_room()
576 return ((h_total - h_active) * link_clk - 12 * pixel_clk) / in calc_samples_room()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_hpo_dp_stream_encoder.c346 h_blank = hw_crtc_timing.h_total - hw_crtc_timing.h_border_left - in dcn31_hpo_dp_stream_enc_set_stream_attribute()
397 MSA_DATA_LANE_0, hw_crtc_timing.h_total >> 8, in dcn31_hpo_dp_stream_enc_set_stream_attribute()
403 MSA_DATA_LANE_0, hw_crtc_timing.h_total & 0xff, in dcn31_hpo_dp_stream_enc_set_stream_attribute()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/inc/hw/
Dmem_input.h127 uint32_t h_total,/* for current target */
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_psr.c161 stream->timing.h_total); in amdgpu_dm_psr_enable()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_timing_generator.c309 bp_params.h_total = patched_crtc_timing.h_total; in dce110_timing_generator_program_timing_generator()
622 timing->h_total - 1, in dce110_timing_generator_program_blanking()
660 tmp = timing->h_total - in dce110_timing_generator_program_blanking()
1144 if (timing->h_total > tg110->max_h_total || in dce110_timing_generator_validate_timing()
1148 h_blank = (timing->h_total - timing->h_addressable - in dce110_timing_generator_validate_timing()

123