/Linux-v6.6/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_dsc_1_2.c | 86 struct drm_dsc_config *dsc, in dpu_hw_dsc_config_1_2() argument 97 if (!hw_dsc || !dsc) in dpu_hw_dsc_config_1_2() 110 num_active_slice_per_enc = dsc->slice_count; in dpu_hw_dsc_config_1_2() 112 num_active_slice_per_enc = dsc->slice_count / 2; in dpu_hw_dsc_config_1_2() 127 data = (dsc->dsc_version_minor & 0xf) << 28; in dpu_hw_dsc_config_1_2() 128 if (dsc->dsc_version_minor == 0x2) { in dpu_hw_dsc_config_1_2() 129 if (dsc->native_422) in dpu_hw_dsc_config_1_2() 131 if (dsc->native_420) in dpu_hw_dsc_config_1_2() 135 bpp = dsc->bits_per_pixel; in dpu_hw_dsc_config_1_2() 139 if (dsc->native_422 || dsc->native_420) in dpu_hw_dsc_config_1_2() [all …]
|
D | dpu_hw_dsc.c | 36 static void dpu_hw_dsc_disable(struct dpu_hw_dsc *dsc) in dpu_hw_dsc_disable() argument 38 struct dpu_hw_blk_reg_map *c = &dsc->hw; in dpu_hw_dsc_disable() 44 struct drm_dsc_config *dsc, in dpu_hw_dsc_config() argument 59 slice_last_group_size = (dsc->slice_width + 2) % 3; in dpu_hw_dsc_config() 64 data |= (dsc->bits_per_pixel << 8); in dpu_hw_dsc_config() 65 data |= (dsc->block_pred_enable << 7); in dpu_hw_dsc_config() 66 data |= (dsc->line_buf_depth << 3); in dpu_hw_dsc_config() 67 data |= (dsc->simple_422 << 2); in dpu_hw_dsc_config() 68 data |= (dsc->convert_rgb << 1); in dpu_hw_dsc_config() 69 data |= dsc->bits_per_component; in dpu_hw_dsc_config() [all …]
|
D | dpu_hw_dsc.h | 37 struct drm_dsc_config *dsc, 47 struct drm_dsc_config *dsc); 87 void dpu_hw_dsc_destroy(struct dpu_hw_dsc *dsc);
|
D | dpu_encoder.c | 209 struct drm_dsc_config *dsc; member 536 if (dpu_enc->dsc) in dpu_encoder_use_dsc_merge() 559 struct drm_dsc_config *dsc) in dpu_encoder_get_topology() argument 591 if (dsc) { in dpu_encoder_get_topology() 617 struct drm_dsc_config *dsc; in dpu_encoder_virt_atomic_check() local 653 dsc = dpu_encoder_get_dsc_config(drm_enc); in dpu_encoder_virt_atomic_check() 655 topology = dpu_encoder_get_topology(dpu_enc, dpu_kms, adj_mode, crtc_state, dsc); in dpu_encoder_virt_atomic_check() 1200 dpu_enc->dsc = dpu_encoder_get_dsc_config(drm_enc); in dpu_encoder_virt_atomic_enable() 1770 dpu_encoder_dsc_initial_line_calc(struct drm_dsc_config *dsc, in dpu_encoder_dsc_initial_line_calc() argument 1775 soft_slice_per_enc = enc_ip_width / dsc->slice_width; in dpu_encoder_dsc_initial_line_calc() [all …]
|
/Linux-v6.6/drivers/gpu/drm/i915/display/ |
D | intel_vdsc.c | 244 struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config; in intel_dsc_compute_params() 245 u16 compressed_bpp = pipe_config->dsc.compressed_bpp; in intel_dsc_compute_params() 251 pipe_config->dsc.slice_count); in intel_dsc_compute_params() 355 int num_vdsc_instances = (crtc_state->dsc.dsc_split) ? 2 : 1; in intel_dsc_get_num_vdsc_instances() 367 const struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dsc_pps_configure() 404 if (crtc_state->dsc.dsc_split) in intel_dsc_pps_configure() 411 if (crtc_state->dsc.dsc_split) in intel_dsc_pps_configure() 428 if (crtc_state->dsc.dsc_split) in intel_dsc_pps_configure() 435 if (crtc_state->dsc.dsc_split) in intel_dsc_pps_configure() 453 if (crtc_state->dsc.dsc_split) in intel_dsc_pps_configure() [all …]
|
D | intel_dp_mst.c | 51 bool dsc) in intel_dp_mst_check_constraints() argument 53 if (intel_dp_is_uhbr(crtc_state) && DISPLAY_VER(i915) <= 13 && dsc) { in intel_dp_mst_check_constraints() 76 bool dsc) in intel_dp_mst_find_vcpi_slots_for_bpp() argument 107 ret = intel_dp_mst_check_constraints(i915, bpp, adjusted_mode, crtc_state, dsc); in intel_dp_mst_find_vcpi_slots_for_bpp() 112 dsc ? bpp << 4 : bpp, in intel_dp_mst_find_vcpi_slots_for_bpp() 113 dsc); in intel_dp_mst_find_vcpi_slots_for_bpp() 140 if (!dsc) in intel_dp_mst_find_vcpi_slots_for_bpp() 143 crtc_state->dsc.compressed_bpp = bpp; in intel_dp_mst_find_vcpi_slots_for_bpp() 144 drm_dbg_kms(&i915->drm, "Got %d slots for pipe bpp %d dsc %d\n", slots, bpp, dsc); in intel_dp_mst_find_vcpi_slots_for_bpp() 238 last_compressed_bpp = crtc_state->dsc.compressed_bpp; in intel_dp_dsc_mst_compute_link_config() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dsc.c | 33 static void dsc_write_to_registers(struct display_stream_compressor *dsc, const struct dsc_reg_valu… 36 static void dsc2_read_state(struct display_stream_compressor *dsc, struct dcn_dsc_state *s); 37 static bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *ds… 38 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, 40 static void dsc2_enable(struct display_stream_compressor *dsc, int opp_pipe); 41 static void dsc2_disable(struct display_stream_compressor *dsc); 42 static void dsc2_disconnect(struct display_stream_compressor *dsc); 66 dsc->ctx->logger 77 void dsc2_construct(struct dcn20_dsc *dsc, in dsc2_construct() argument 84 dsc->base.ctx = ctx; in dsc2_construct() [all …]
|
D | dcn20_resource.c | 1066 struct dcn20_dsc *dsc = in dcn20_dsc_create() local 1069 if (!dsc) { in dcn20_dsc_create() 1074 dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask); in dcn20_dsc_create() 1075 return &dsc->base; in dcn20_dsc_create() 1078 void dcn20_dsc_destroy(struct display_stream_compressor **dsc) in dcn20_dsc_destroy() argument 1080 kfree(container_of(*dsc, struct dcn20_dsc, base)); in dcn20_dsc_destroy() 1081 *dsc = NULL; in dcn20_dsc_destroy() 1311 struct display_stream_compressor **dsc, in dcn20_acquire_dsc() argument 1316 … display_stream_compressor *dsc_old = dc->current_state->res_ctx.pipe_ctx[pipe_idx].stream_res.dsc; in dcn20_acquire_dsc() 1318 ASSERT(*dsc == NULL); /* If this ASSERT fails, dsc was not released properly */ in dcn20_acquire_dsc() [all …]
|
D | dcn20_resource.h | 101 void dcn20_dsc_destroy(struct display_stream_compressor **dsc); 132 struct display_stream_compressor **dsc); 146 struct display_stream_compressor **dsc,
|
/Linux-v6.6/drivers/gpu/drm/panel/ |
D | panel-visionox-r66451.c | 196 if (!dsi->dsc) { in visionox_r66451_enable() 201 drm_dsc_pps_payload_pack(&pps, dsi->dsc); in visionox_r66451_enable() 298 struct drm_dsc_config *dsc; in visionox_r66451_probe() local 305 dsc = devm_kzalloc(dev, sizeof(*dsc), GFP_KERNEL); in visionox_r66451_probe() 306 if (!dsc) in visionox_r66451_probe() 310 dsc->dsc_version_major = 0x1; in visionox_r66451_probe() 311 dsc->dsc_version_minor = 0x2; in visionox_r66451_probe() 313 dsc->slice_height = 20; in visionox_r66451_probe() 314 dsc->slice_width = 540; in visionox_r66451_probe() 315 dsc->slice_count = 2; in visionox_r66451_probe() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | dsc.h | 99 void (*dsc_read_state)(struct display_stream_compressor *dsc, struct dcn_dsc_state *s); 100 …bool (*dsc_validate_stream)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cf… 101 void (*dsc_set_config)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, 103 bool (*dsc_get_packed_pps)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, 105 void (*dsc_enable)(struct display_stream_compressor *dsc, int opp_pipe); 106 void (*dsc_disable)(struct display_stream_compressor *dsc); 107 void (*dsc_disconnect)(struct display_stream_compressor *dsc);
|
/Linux-v6.6/drivers/gpu/drm/msm/ |
D | msm_dsc_helper.h | 21 static inline u32 msm_dsc_get_slices_per_intf(const struct drm_dsc_config *dsc, u32 intf_width) in msm_dsc_get_slices_per_intf() argument 23 return DIV_ROUND_UP(intf_width, dsc->slice_width); in msm_dsc_get_slices_per_intf() 33 static inline u32 msm_dsc_get_bytes_per_line(const struct drm_dsc_config *dsc) in msm_dsc_get_bytes_per_line() argument 35 return dsc->slice_count * dsc->slice_chunk_size; in msm_dsc_get_bytes_per_line()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn314/ |
D | dcn314_hwseq.c | 97 struct display_stream_compressor *dsc = pipe_ctx->stream_res.dsc; in update_dsc_on_stream() local 102 ASSERT(dsc); in update_dsc_on_stream() 121 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in update_dsc_on_stream() 122 dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); in update_dsc_on_stream() 124 struct display_stream_compressor *odm_dsc = odm_pipe->stream_res.dsc; in update_dsc_on_stream() 148 dsc->funcs->dsc_disable(pipe_ctx->stream_res.dsc); in update_dsc_on_stream() 150 ASSERT(odm_pipe->stream_res.dsc); in update_dsc_on_stream() 151 odm_pipe->stream_res.dsc->funcs->dsc_disable(odm_pipe->stream_res.dsc); in update_dsc_on_stream() 222 if (pipe_ctx->stream_res.dsc) { in dcn314_update_odm() 229 current_pipe_ctx->next_odm_pipe->stream_res.dsc) { in dcn314_update_odm() [all …]
|
/Linux-v6.6/drivers/gpu/drm/msm/dsi/ |
D | dsi_host.c | 38 static int dsi_populate_dsc_params(struct msm_dsi_host *msm_host, struct drm_dsc_config *dsc); 162 struct drm_dsc_config *dsc; member 532 const struct drm_dsc_config *dsc) in dsi_adjust_pclk_for_compression() argument 534 int new_hdisplay = DIV_ROUND_UP(mode->hdisplay * drm_dsc_get_bpp_int(dsc), in dsi_adjust_pclk_for_compression() 535 dsc->bits_per_component * 3); in dsi_adjust_pclk_for_compression() 543 const struct drm_dsc_config *dsc, bool is_bonded_dsi) in dsi_get_pclk_rate() argument 549 if (dsc) in dsi_get_pclk_rate() 550 pclk_rate = dsi_adjust_pclk_for_compression(mode, dsc); in dsi_get_pclk_rate() 570 unsigned long pclk_rate = dsi_get_pclk_rate(mode, msm_host->dsc, is_bonded_dsi); in dsi_byte_clk_get_rate() 589 msm_host->pixel_clk_rate = dsi_get_pclk_rate(msm_host->mode, msm_host->dsc, is_bonded_dsi); in dsi_calc_pclk() [all …]
|
/Linux-v6.6/drivers/gpu/drm/tests/ |
D | drm_dp_mst_helper_test.c | 18 const bool dsc; member 26 .dsc = false, 32 .dsc = false, 38 .dsc = false, 44 .dsc = true, 50 .dsc = true, 59 KUNIT_EXPECT_EQ(test, drm_dp_calc_pbn_mode(params->clock, params->bpp, params->dsc), in drm_test_dp_mst_calc_pbn_mode() 65 sprintf(desc, "Clock %d BPP %d DSC %s", t->clock, t->bpp, t->dsc ? "enabled" : "disabled"); in dp_mst_calc_pbn_mode_desc()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_debugfs.c | 1451 struct display_stream_compressor *dsc; in dp_dsc_clock_en_read() local 1472 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_clock_en_read() 1473 if (dsc) in dp_dsc_clock_en_read() 1474 dsc->funcs->dsc_read_state(dsc, &dsc_state); in dp_dsc_clock_en_read() 1637 struct display_stream_compressor *dsc; in dp_dsc_slice_width_read() local 1658 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_width_read() 1659 if (dsc) in dp_dsc_slice_width_read() 1660 dsc->funcs->dsc_read_state(dsc, &dsc_state); in dp_dsc_slice_width_read() 1821 struct display_stream_compressor *dsc; in dp_dsc_slice_height_read() local 1842 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_height_read() [all …]
|
/Linux-v6.6/drivers/net/ethernet/broadcom/ |
D | sb1250-mac.c | 775 struct sbdmadscr *dsc; in sbdma_add_rcvbuffer() local 782 dsc = d->sbdma_addptr; in sbdma_add_rcvbuffer() 839 dsc->dscr_a = virt_to_phys(sb_new->data) | in sbdma_add_rcvbuffer() 842 dsc->dscr_a = virt_to_phys(sb_new->data) | in sbdma_add_rcvbuffer() 848 dsc->dscr_b = 0; in sbdma_add_rcvbuffer() 854 d->sbdma_ctxtable[dsc-d->sbdma_dscrtable] = sb_new; in sbdma_add_rcvbuffer() 889 struct sbdmadscr *dsc; in sbdma_add_txbuffer() local 897 dsc = d->sbdma_addptr; in sbdma_add_txbuffer() 928 dsc->dscr_a = phys | in sbdma_add_txbuffer() 937 dsc->dscr_b = V_DMA_DSCRB_OPTIONS(K_DMA_ETHTX_APPENDCRC_APPENDPAD) | in sbdma_add_txbuffer() [all …]
|
/Linux-v6.6/include/linux/irqchip/ |
D | irq-partition-percpu.h | 28 struct irq_domain *partition_get_domain(struct partition_desc *dsc); 47 struct irq_domain *partition_get_domain(struct partition_desc *dsc) in partition_get_domain() argument
|
/Linux-v6.6/include/drm/display/ |
D | drm_dsc_helper.h | 28 u8 drm_dsc_initial_scale_value(const struct drm_dsc_config *dsc); 29 u32 drm_dsc_flatness_det_thresh(const struct drm_dsc_config *dsc);
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_hwseq.c | 1000 struct display_stream_compressor *dsc = pipe_ctx->stream_res.dsc; in update_dsc_on_stream() local 1005 ASSERT(dsc); in update_dsc_on_stream() 1024 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in update_dsc_on_stream() 1025 dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); in update_dsc_on_stream() 1027 struct display_stream_compressor *odm_dsc = odm_pipe->stream_res.dsc; in update_dsc_on_stream() 1051 dsc->funcs->dsc_disable(pipe_ctx->stream_res.dsc); in update_dsc_on_stream() 1053 ASSERT(odm_pipe->stream_res.dsc); in update_dsc_on_stream() 1054 odm_pipe->stream_res.dsc->funcs->dsc_disable(odm_pipe->stream_res.dsc); in update_dsc_on_stream() 1127 if (pipe_ctx->stream_res.dsc) { in dcn32_update_odm() 1134 current_pipe_ctx->next_odm_pipe->stream_res.dsc) { in dcn32_update_odm() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/link/ |
D | link_dpms.c | 737 static void dsc_optc_config_log(struct display_stream_compressor *dsc, in dsc_optc_config_log() argument 744 DC_LOGGER_INIT(dsc->ctx->logger); in dsc_optc_config_log() 777 struct display_stream_compressor *dsc = pipe_ctx->stream_res.dsc; in link_set_dsc_on_stream() local 781 DC_LOGGER_INIT(dsc->ctx->logger); in link_set_dsc_on_stream() 801 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in link_set_dsc_on_stream() 802 dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); in link_set_dsc_on_stream() 804 struct display_stream_compressor *odm_dsc = odm_pipe->stream_res.dsc; in link_set_dsc_on_stream() 817 dsc_optc_config_log(dsc, &dsc_optc_cfg); in link_set_dsc_on_stream() 828 dsc_optc_config_log(dsc, &dsc_optc_cfg); in link_set_dsc_on_stream() 857 pipe_ctx->stream_res.dsc->funcs->dsc_disable(pipe_ctx->stream_res.dsc); in link_set_dsc_on_stream() [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_stats.h | 36 #define MLX5E_READ_CTR64_CPU(ptr, dsc, i) \ argument 37 (*(u64 *)((char *)ptr + dsc[i].offset)) 38 #define MLX5E_READ_CTR64_BE(ptr, dsc, i) \ argument 39 be64_to_cpu(*(__be64 *)((char *)ptr + dsc[i].offset)) 40 #define MLX5E_READ_CTR32_CPU(ptr, dsc, i) \ argument 41 (*(u32 *)((char *)ptr + dsc[i].offset)) 42 #define MLX5E_READ_CTR32_BE(ptr, dsc, i) \ argument 43 be32_to_cpu(*(__be32 *)((char *)ptr + dsc[i].offset))
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls_stats.c | 50 #define MLX5E_READ_CTR_ATOMIC64(ptr, dsc, i) \ argument 51 atomic64_read((atomic64_t *)((char *)(ptr) + (dsc)[i].offset))
|
/Linux-v6.6/arch/mips/mm/ |
D | cerr-sb1.c | 466 struct dc_state *dsc = dc_states; in dc_state_str() local 467 while (dsc->val != 0xff) { in dc_state_str() 468 if (dsc->val == state) in dc_state_str() 470 dsc++; in dc_state_str() 472 return dsc->name; in dc_state_str()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/ |
D | dc_dsc.h | 70 const struct display_stream_compressor *dsc, 80 const struct display_stream_compressor *dsc,
|