/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() 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 …]
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-di.c | 205 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 485 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 188 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()
|
/openbmc/u-boot/common/ |
H A D | edid.c | 287 uint32_t h_total, v_total, vfreq; in edid_print_dtd() local 295 h_total = h_active + h_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/freesync/ |
H A D | freesync.c | 117 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total() 136 stream->timing.h_total) + 500000, 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()
|
/openbmc/u-boot/drivers/video/ |
H A D | videomodes.c | 390 int margin, h_total, v_total; in video_edid_dtd_to_ctfb_res_modes() local 407 h_total = mode->xres + EDID_DETAILED_TIMING_HORIZONTAL_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.c | 140 u16 h_total; member 2014 h_blank = msa_config->h_total - msa_config->h_active; in set_line_reset() 2016 h_reduced_blank = 2 * msa_config->h_total; in set_line_reset() 2080 set_reg(dev, REG_MAIN_STREAM_HTOTAL, msa_config->h_total); in set_msa_values() 2132 dp_tx->main_stream_attributes.h_total = msa->h_total; in logicore_dp_tx_set_msa() 2206 .h_total = 800, in logicore_dp_tx_enable() 2223 .h_total = 900, in logicore_dp_tx_enable() 2240 .h_total = 1344, in logicore_dp_tx_enable()
|
H A D | logicore_dp_tx.h | 44 u16 h_total; member
|
H A D | ipu_disp.c | 838 uint32_t h_total, v_total; in ipu_init_sync_panel() local 853 h_total = width + h_sync_width + h_start_width + h_end_width; in ipu_init_sync_panel() 913 h_total / 2 - 1,/* run count */ in ipu_init_sync_panel() 930 h_total - 1, /* run count */ in ipu_init_sync_panel() 1076 ipu_di_sync_config(disp, 1, h_total - 1, DI_SYNC_CLK, in ipu_init_sync_panel() 1082 ipu_di_sync_config(disp, DI_SYNC_HSYNC, h_total - 1, in ipu_init_sync_panel()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
H A D | dce110_clk_mgr.c | 106 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()
|
/openbmc/linux/drivers/video/fbdev/nvidia/ |
H A D | nvidia.c | 302 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()
|
/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 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_optc.c | 88 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | dcn32_fpu.c | 574 (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 …]
|
/openbmc/linux/drivers/video/fbdev/aty/ |
H A D | aty128fb.c | 414 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 …]
|
/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() 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()
|
/openbmc/u-boot/drivers/video/tegra124/ |
H A D | display.c | 27 int h_total, v_total, refresh; in tegra_dc_calc_refresh() local 30 h_total = timing->hactive.typ + timing->hfront_porch.typ + in tegra_dc_calc_refresh() 34 if (!pclk || !h_total || !v_total) in tegra_dc_calc_refresh() 36 refresh = pclk / h_total; in tegra_dc_calc_refresh()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_mem_input.c | 673 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/include/ |
H A D | audio_types.h | 37 uint32_t h_total; member
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | lontium-lt8912b.c | 275 u32 hactive, h_total, hpw, hfp, hbp; in lt8912_video_setup() local 287 h_total = hactive + hfp + hpw + hbp; in lt8912_video_setup() 311 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x34, h_total & 0xff); in lt8912_video_setup() 312 ret |= regmap_write(lt->regmap[I2C_CEC_DSI], 0x35, h_total >> 8); in lt8912_video_setup()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dce_calcs.c | 260 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 …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_audio.c | 426 unsigned int h_active, h_total, hblank_delta, pixel_clk; in calc_hblank_early_prog() local 432 h_total = crtc_state->hw.adjusted_mode.crtc_htotal; in calc_hblank_early_prog() 448 link_clks_available = (h_total - h_active) * link_clk / pixel_clk - 28; in calc_hblank_early_prog() 449 link_clks_required = DIV_ROUND_UP(192000 * h_total, 1000 * pixel_clk) * (48 / lanes + 2); in calc_hblank_early_prog() 470 unsigned int h_active, h_total, pixel_clk; in calc_samples_room() local 474 h_total = crtc_state->hw.adjusted_mode.htotal; in calc_samples_room() 479 return ((h_total - h_active) * link_clk - 12 * pixel_clk) / in calc_samples_room()
|
/openbmc/u-boot/arch/arm/mach-exynos/include/mach/ |
H A D | dp_info.h | 26 unsigned int h_total; member
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_hpo_dp_stream_encoder.c | 346 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()
|