Home
last modified time | relevance | path

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

1234

/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()
381 time_us = (microschedule_lines * phantom->timing.h_total) / in subvp_subvp_schedulable()
396 …ve1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable()
398 …ve2_us = ((subvp_pipes[1]->stream->timing.v_addressable * subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable()
401 subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable()
404 subvp_pipes[1]->stream->timing.h_total) / 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()
467 subvp_active_us = main_timing->v_addressable * main_timing->h_total / in dml2_svp_drr_schedulable()
[all …]
/linux-6.12.1/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-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()
594 …mall_region_us = div64_u64(((uint64_t)phantom_timing->v_addressable * phantom_timing->h_total * 10… in populate_subvp_cmd_drr_info()
598 (((uint64_t)drr_timing->h_total * 1000000))); in populate_subvp_cmd_drr_info()
600 …4_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
602 …subvp_active_us = div64_u64(((uint64_t)main_timing->v_addressable * main_timing->h_total * 1000000… in populate_subvp_cmd_drr_info()
604 drr_active_us = div64_u64(((uint64_t)drr_timing->v_addressable * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
611 (((uint64_t)drr_timing->h_total * 1000000))); in populate_subvp_cmd_drr_info()
670 pipe_data->pipe_config.vblank_data.htotal = vblank_pipe->stream->timing.h_total; in populate_subvp_cmd_vblank_pipe_info()
721 (uint64_t)phantom_timing0->h_total * 1000000), in update_subvp_prefetch_end_to_mall_start()
724 (uint64_t)phantom_timing1->h_total * 1000000), in update_subvp_prefetch_end_to_mall_start()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/optc/dcn10/
Ddcn10_optc.c193 OTG_H_TOTAL, patched_crtc_timing.h_total - 1); in optc1_program_timing()
201 asic_blank_start = patched_crtc_timing.h_total - in optc1_program_timing()
605 h_blank = (timing->h_total - timing->h_addressable - in optc1_validate_timing()
626 if (timing->h_total > optc1->max_h_total || in optc1_validate_timing()
1318 hw_crtc_timing->h_total = s.h_total + 1; in optc1_get_hw_timing()
1319 hw_crtc_timing->h_addressable = s.h_total - ((s.h_total - s.h_blank_start) + s.h_blank_end); in optc1_get_hw_timing()
1320 hw_crtc_timing->h_front_porch = s.h_total + 1 - s.h_blank_start; in optc1_get_hw_timing()
1376 OTG_H_TOTAL, &s->h_total); in optc1_read_otg_state()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn32/
Ddcn32_resource_helpers.c450 sec_per_100_lines = timing->pix_clk_100hz / timing->h_total + 1; 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()
668 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_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()
729 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total); in dcn32_subvp_vblank_admissable()
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/freesync/
Dfreesync.c118 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total()
137 stream->timing.h_total) + 500000, 1000000); in mod_freesync_calc_v_total_from_refresh()
164 h_total_up_scaled = stream->timing.h_total * 10000; in calc_v_total_from_duration()
171 stream->timing.h_total), 1000); in calc_v_total_from_duration()
247 stream->timing.h_total), 1000); in update_v_total_for_static_ramp()
1003 if (stream->ctx->dc->caps.max_v_total != 0 && stream->timing.h_total != 0) { in mod_freesync_build_vrr_params()
1005 (stream->timing.h_total * (long long)stream->ctx->dc->caps.max_v_total)); in mod_freesync_build_vrr_params()
1295 unsigned int total = stream->timing.h_total * stream->timing.v_total; in mod_freesync_calc_nominal_field_rate()
/linux-6.12.1/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-6.12.1/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-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
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-6.12.1/drivers/gpu/drm/amd/display/dc/optc/dcn201/
Ddcn201_optc.c82 h_blank = (timing->h_total - timing->h_addressable - in optc201_validate_timing()
99 if (timing->h_total > optc1->max_h_total || in optc201_validate_timing()
/linux-6.12.1/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.c824 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
899 h_total = h_sync_end + h_sync_dly + var->left_margin; in aty_var_to_crtc()
977 h_total = h_disp + par->lcd_hblank_len; in aty_var_to_crtc()
988 h_total = (h_total >> 3) - 1; in aty_var_to_crtc()
996 FAIL_MAX("h_total too large", h_total, 0x1ff); in aty_var_to_crtc()
1031 crtc->h_tot_disp = h_total | (h_disp << 16); in aty_var_to_crtc()
1173 u32 h_total, h_disp, h_sync_strt, h_sync_dly, h_sync_wid, h_sync_pol; in aty_crtc_to_var() local
1179 h_total = crtc->h_tot_disp & 0x1ff; in aty_crtc_to_var()
1198 left = (h_total - h_sync_strt - h_sync_wid) * 8 - h_sync_dly; in aty_crtc_to_var()
1366 u32 h_disp, h_sync_strt, h_sync_end, h_total; in atyfb_set_par() local
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddcn32_fpu.c503 (double)ref_pipe->stream->timing.h_total; 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()
748 time_us = (microschedule_lines * phantom->timing.h_total) / in subvp_subvp_schedulable()
763 …ve1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable()
765 …ve2_us = ((subvp_pipes[1]->stream->timing.v_addressable * subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable()
768 subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable()
771 subvp_pipes[1]->stream->timing.h_total) / in subvp_subvp_schedulable()
853 …prefetch_us = (phantom_timing->v_total - phantom_timing->v_front_porch) * phantom_timing->h_total / in subvp_drr_schedulable()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.c671 uint32_t h_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()
718 uint32_t h_total, in dce_mi_allocate_dmif() argument
726 h_total, in dce_mi_allocate_dmif()
/linux-6.12.1/drivers/gpu/drm/bridge/
Dlontium-lt8912b.c286 u32 hactive, h_total, hpw, hfp, hbp; in lt8912_video_setup() local
298 h_total = hactive + hfp + hpw + hbp; in lt8912_video_setup()
322 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x34, h_total & 0xff); in lt8912_video_setup()
323 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x35, h_total >> 8); in lt8912_video_setup()
Dlontium-lt9611uxc.c306 u32 h_total, hactive, hsync_len, hfront_porch; in lt9611uxc_video_setup() local
309 h_total = mode->htotal; in lt9611uxc_video_setup()
326 regmap_write(lt9611uxc->regmap, 0xd011, (u8)(h_total / 256)); in lt9611uxc_video_setup()
327 regmap_write(lt9611uxc->regmap, 0xd012, (u8)(h_total % 256)); in lt9611uxc_video_setup()
Dlontium-lt9611.c131 u32 h_total, hactive, hsync_len, hfront_porch, hsync_porch; in lt9611_mipi_video_setup() local
134 h_total = mode->htotal; in lt9611_mipi_video_setup()
153 regmap_write(lt9611->regmap, 0x8311, (u8)(h_total / 256)); in lt9611_mipi_video_setup()
154 regmap_write(lt9611->regmap, 0x8312, (u8)(h_total % 256)); in lt9611_mipi_video_setup()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Ddce_calcs.c258 data->h_total[0] = data->h_total[4]; in calculate_bandwidth()
260 data->h_total[1] = data->h_total[4]; in calculate_bandwidth()
263 data->h_total[2] = data->h_total[5]; in calculate_bandwidth()
265 data->h_total[3] = data->h_total[5]; in calculate_bandwidth()
395 data->h_total[maximum_number_of_surfaces - 2] = data->h_total[5]; in calculate_bandwidth()
396 data->h_total[maximum_number_of_surfaces - 1] = data->h_total[5]; in calculate_bandwidth()
851 …al_blank_and_chunk_granularity_factor[i] = bw_div(data->h_total[i], (bw_div((bw_add(data->h_total[… in calculate_bandwidth()
853 …of_frame[i]), data->source_width_rounded_up_to_chunks[i]), (bw_div(data->h_total[i], data->pixel_r… in calculate_bandwidth()
1253 … data->v_scaler_efficiency), bw_div(data->source_width_rounded_up_to_chunks[i], data->h_total[i])); in calculate_bandwidth()
1298 …_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-6.12.1/drivers/gpu/drm/i915/display/
Dintel_audio.c440 unsigned int h_active, h_total, hblank_delta, pixel_clk; in calc_hblank_early_prog() local
446 h_total = crtc_state->hw.adjusted_mode.crtc_htotal; in calc_hblank_early_prog()
462 link_clks_available = (h_total - h_active) * link_clk / pixel_clk - 28; in calc_hblank_early_prog()
463 link_clks_required = DIV_ROUND_UP(192000 * h_total, 1000 * pixel_clk) * (48 / lanes + 2); in calc_hblank_early_prog()
484 unsigned int h_active, h_total, pixel_clk; in calc_samples_room() local
488 h_total = crtc_state->hw.adjusted_mode.htotal; in calc_samples_room()
493 return ((h_total - h_active) * link_clk - 12 * pixel_clk) / in calc_samples_room()
/linux-6.12.1/drivers/gpu/drm/amd/display/include/
Daudio_types.h47 uint32_t h_total; member
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_stream.c824 stream->timing.h_total, in dc_stream_log()
980 …g long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream->timing.h_total); 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 …g long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long long)stream->timing.h_total); in dc_stream_get_max_flickerless_instant_vtotal_delta()
1037 …64((long long)stream->timing.pix_clk_100hz*100, safe_refresh_hz*(long long)stream->timing.h_total); in dc_stream_get_max_flickerless_instant_vtotal_delta()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hpo/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-6.12.1/drivers/gpu/drm/amd/display/dc/inc/hw/
Dmem_input.h136 uint32_t h_total,/* for current target */
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/
Ddml2_pmo_dcn4_fams2.c688 unsigned long h_blank_start = timing->h_total - timing->h_front_porch; in is_h_timing_divisible_by()
690 return (timing->h_total % denominator == 0) && in is_h_timing_divisible_by()
931 …s->pmo_dcn4.group_line_time_us[timing_group_idx] = (double)master_timing->h_total / master_timing-… in build_synchronized_timing_groups()
1580 stream_fams2_meta->otg_vline_time_us = (double)timing->h_total / timing->pixel_clock_khz * 1000.0; in build_fams2_meta_per_stream()
1583 (stream_fams2_meta->nom_vtotal * timing->h_total); in build_fams2_meta_per_stream()
1591 …e)stream_descriptor->timing.drr_config.min_refresh_uhz * stream_descriptor->timing.h_total) * 1e9); in build_fams2_meta_per_stream()
1595 (48000000.0 * stream_descriptor->timing.h_total) * 1e9); in build_fams2_meta_per_stream()
1601 (stream_fams2_meta->max_vtotal * timing->h_total); in build_fams2_meta_per_stream()
2162 …in_out->base_display_config->display_config.stream_descriptors[i].timing.h_total / (in_out->base_d… in pmo_dcn4_fams2_init_for_stutter()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
Ddml2_core_shared.c906 …tream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)displa… in dml2_core_shared_mode_support()
907 …tream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)displa… in dml2_core_shared_mode_support()
910 …tream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)displa… in dml2_core_shared_mode_support()
913 …tream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)displa… in dml2_core_shared_mode_support()
914 …tream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total / ((double)displa… in dml2_core_shared_mode_support()
928 … * display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total in dml2_core_shared_mode_support()
934 … * display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total in dml2_core_shared_mode_support()
1254 display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total, in dml2_core_shared_mode_support()
1360 … display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total, in dml2_core_shared_mode_support()
1486 display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.h_total, in dml2_core_shared_mode_support()
[all …]

1234