/kernel/linux/linux-6.6/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 * 1000000), in populate_subvp_cmd_drr_info() 477 (((uint64_t)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) * 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 * 100000 in update_subvp_prefetch_end_to_mall_start() [all...] |
/kernel/linux/linux-5.10/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() 323 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced() 339 .run_count = h_total - 1, in ipu_di_sync_config_noninterlaced() 365 .run_count = h_total in ipu_di_sync_config_noninterlaced() [all...] |
/kernel/linux/linux-6.6/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 in ipu_di_sync_config_noninterlaced() [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 171 /* CRTC_H_TOTAL = vesa.h_total - 1 */ in optc1_program_timing() 173 OTG_H_TOTAL, patched_crtc_timing.h_total - 1); in optc1_program_timing() 181 asic_blank_start = patched_crtc_timing.h_total - in optc1_program_timing() 567 h_blank = (timing->h_total - timing->h_addressable - in optc1_validate_timing() 588 if (timing->h_total > optc1->max_h_total || in optc1_validate_timing() 1297 hw_crtc_timing->h_total = s.h_total + 1; in optc1_get_hw_timing() 1298 hw_crtc_timing->h_addressable = s.h_total - ((s.h_total - s.h_blank_start) + s.h_blank_end); in optc1_get_hw_timing() 1299 hw_crtc_timing->h_front_porch = s.h_total in optc1_get_hw_timing() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 186 /* CRTC_H_TOTAL = vesa.h_total - 1 */ in optc1_program_timing() 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 in optc1_get_hw_timing() [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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() 241 pp_display_cfg->line_time_in_us = timing->h_total * 10000 / timing->pix_clk_100hz; in dce11_pplib_apply_display_requirements()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/ |
H A D | aty128fb.c | 414 u32 h_total, h_sync_strt_wid; member 1020 aty_st_le32(CRTC_H_TOTAL_DISP, crtc->h_total); in aty128_set_crtc() 1038 u32 h_total, h_disp, h_sync_strt, h_sync_wid, h_sync_pol; in aty128_var_to_crtc() local 1098 h_total = (((xres + right + hslen + left) >> 3) - 1) & 0xFFFFL; in aty128_var_to_crtc() 1103 /* check to make sure h_total and v_total are in range */ in aty128_var_to_crtc() 1104 if (((h_total >> 3) - 1) > 0x1ff || (v_total - 1) > 0x7FF) { in aty128_var_to_crtc() 1132 crtc->h_total = h_total | (h_disp << 16); in aty128_var_to_crtc() 1227 u32 h_total, h_disp, h_sync_strt, h_sync_dly, h_sync_wid, h_sync_pol; in aty128_crtc_to_var() local 1232 h_total in aty128_crtc_to_var() [all...] |
/kernel/linux/linux-6.6/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() 1101 /* check to make sure h_total and v_total are in range */ 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 in aty128_crtc_to_var() [all...] |
/kernel/linux/linux-6.6/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() 761 "\tpix_clk_khz: %d, h_total: %d, v_total: %d, pixelencoder:%d, displaycolorDepth:%d\n", in dc_stream_log() 763 stream->timing.h_total, in dc_stream_log()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_tv.c | 429 unsigned int h_total, v_total, f_total; in radeon_legacy_tv_init_restarts() local 439 h_total = const_ptr->hor_total; in radeon_legacy_tv_init_restarts() 486 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(NTSC_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 488 v_offset = ((int)(v_total * h_total) * 2 * tv_dac->v_pos) / (int)(PAL_TV_LINES_PER_FRAME); in radeon_legacy_tv_init_restarts() 495 tv_dac->tv.hrestart = restart % h_total; in radeon_legacy_tv_init_restarts() 496 restart /= h_total; in radeon_legacy_tv_init_restarts()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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), 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/include/ |
H A D | audio_types.h | 37 uint32_t h_total; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/include/ |
H A D | audio_types.h | 37 uint32_t h_total; member
|
/kernel/linux/linux-6.6/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 vactive1_us = ((subvp_pipes[0]->stream->timing.v_addressable * subvp_pipes[0]->stream->timing.h_total) / in subvp_subvp_schedulable() 836 vactive2_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...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/nvidia/ |
H A D | nvidia.c | 301 int h_total = (info->var.xres + info->var.right_margin + in nvidia_calc_regs() local 304 int h_blank_e = h_total + 4; in nvidia_calc_regs() 325 h_start = h_total - 5; in nvidia_calc_regs() 326 h_end = h_total - 2; in nvidia_calc_regs() 327 h_blank_e = h_total + 4; in nvidia_calc_regs() 330 state->crtc[0x0] = Set8Bits(h_total); in nvidia_calc_regs() 369 state->horiz = SetBitField(h_total, 8: 8, 0:0) in nvidia_calc_regs() 380 h_total = (h_total >> 1) & ~1; in nvidia_calc_regs() 381 state->interlace = Set8Bits(h_total); in nvidia_calc_regs() [all...] |
/kernel/linux/linux-6.6/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() [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_audio.c | 523 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_audio.c | 523 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/freesync/ |
H A D | freesync.c | 115 * 10000) * stream->timing.h_total, in calc_duration_in_us_from_v_total() 134 stream->timing.h_total), 1000000); in calc_v_total_from_refresh() 160 stream->timing.h_total), 1000); in calc_v_total_from_duration() 235 stream->timing.h_total), 1000); in update_v_total_for_static_ramp() 1166 unsigned int total = stream->timing.h_total * stream->timing.v_total; in mod_freesync_calc_nominal_field_rate()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_mem_input.c | 671 uint32_t h_total, in get_dmif_switch_time_us() 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() 726 h_total, in dce_mi_allocate_dmif() 670 get_dmif_switch_time_us( uint32_t h_total, uint32_t v_total, uint32_t pix_clk_khz) get_dmif_switch_time_us() argument 716 dce_mi_allocate_dmif( struct mem_input *mi, uint32_t h_total, uint32_t v_total, uint32_t pix_clk_khz, uint32_t total_stream_num) dce_mi_allocate_dmif() argument
|