Home
last modified time | relevance | path

Searched refs:dsc (Results 1 – 25 of 83) sorted by relevance

1234

/linux/drivers/gpu/drm/amd/display/dc/dsc/
H A Ddsc.h106 void (*dsc_read_state)(struct display_stream_compressor *dsc, struct dcn_dsc_state *s);
107 …void (*dsc_read_reg_state)(struct display_stream_compressor *dsc, struct dcn_dsc_reg_state *dccg_r…
108 …bool (*dsc_validate_stream)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cf…
109 void (*dsc_set_config)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
111 bool (*dsc_get_packed_pps)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
113 void (*dsc_enable)(struct display_stream_compressor *dsc, int opp_pipe);
114 void (*dsc_disable)(struct display_stream_compressor *dsc);
115 void (*dsc_disconnect)(struct display_stream_compressor *dsc);
116 void (*dsc_wait_disconnect_pending_clear)(struct display_stream_compressor *dsc);
118 void (*set_fgcg)(struct display_stream_compressor *dsc, bool enable);
H A DMakefile11 AMD_DISPLAY_FILES += $(addprefix $(AMDDALPATH)/dc/dsc/dcn20/,$(DSC_DCN20))
22 AMD_DISPLAY_FILES += $(addprefix $(AMDDALPATH)/dc/dsc/dcn35/,$(DSC_DCN35))
30 AMD_DISPLAY_FILES += $(addprefix $(AMDDALPATH)/dc/dsc/dcn401/,$(DSC_DCN401))
36 AMD_DAL_DSC = $(addprefix $(AMDDALPATH)/dc/dsc/,$(DSC))
/linux/drivers/gpu/drm/panel/
H A Dpanel-novatek-nt37801.c23 struct drm_dsc_config dsc; member
146 drm_dsc_pps_payload_pack(&pps, &ctx->dsc); in novatek_nt37801_prepare()
291 dsi->dsc = &ctx->dsc; in novatek_nt37801_probe()
292 ctx->dsc.dsc_version_major = 1; in novatek_nt37801_probe()
293 ctx->dsc.dsc_version_minor = 1; in novatek_nt37801_probe()
294 ctx->dsc.slice_height = 40; in novatek_nt37801_probe()
295 ctx->dsc.slice_width = 720; in novatek_nt37801_probe()
296 ctx->dsc.slice_count = 1440 / ctx->dsc.slice_width; in novatek_nt37801_probe()
297 ctx->dsc.bits_per_component = 8; in novatek_nt37801_probe()
298 ctx->dsc.bits_per_pixel = 8 << 4; /* 4 fractional bits */ in novatek_nt37801_probe()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_dsc.h71 const struct display_stream_compressor *dsc,
81 const struct display_stream_compressor *dsc,
97 void dc_dsc_dump_decoder_caps(const struct display_stream_compressor *dsc,
99 void dc_dsc_dump_encoder_caps(const struct display_stream_compressor *dsc,
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn35/
H A Ddcn35_hwseq.c329 struct display_stream_compressor *dsc = pipe_ctx->stream_res.dsc; in update_dsc_on_stream() local
336 ASSERT(dsc); in update_dsc_on_stream()
346 if (!dsc) { in update_dsc_on_stream()
351 if (dsc->funcs->dsc_read_state) { in update_dsc_on_stream()
352 dsc->funcs->dsc_read_state(dsc, &dsc_state); in update_dsc_on_stream()
369 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in update_dsc_on_stream()
370 dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); in update_dsc_on_stream()
372 struct display_stream_compressor *odm_dsc = odm_pipe->stream_res.dsc; in update_dsc_on_stream()
396 dsc->funcs->dsc_disable(pipe_ctx->stream_res.dsc); in update_dsc_on_stream()
398 ASSERT(odm_pipe->stream_res.dsc); in update_dsc_on_stream()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c1564 struct display_stream_compressor *dsc; in dp_dsc_clock_en_read() local
1585 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_clock_en_read()
1586 if (dsc) in dp_dsc_clock_en_read()
1587 dsc->funcs->dsc_read_state(dsc, &dsc_state); in dp_dsc_clock_en_read()
1750 struct display_stream_compressor *dsc; in dp_dsc_slice_width_read() local
1771 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_width_read()
1772 if (dsc) in dp_dsc_slice_width_read()
1773 dsc->funcs->dsc_read_state(dsc, &dsc_state); in dp_dsc_slice_width_read()
1934 struct display_stream_compressor *dsc; in dp_dsc_slice_height_read() local
1955 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_height_read()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dsc/dcn401/
H A Ddcn401_dsc.h13 #define TO_DCN401_DSC(dsc)\ argument
14 container_of(dsc, struct dcn401_dsc, base)
328 void dsc401_construct(struct dcn401_dsc *dsc,
337 void dsc401_read_state(struct display_stream_compressor *dsc, struct dcn_dsc_state *s);
338 bool dsc401_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg…
339 void dsc401_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
341 void dsc401_enable(struct display_stream_compressor *dsc, int opp_pipe);
342 void dsc401_disable(struct display_stream_compressor *dsc);
343 void dsc401_disconnect(struct display_stream_compressor *dsc);
344 void dsc401_wait_disconnect_pending_clear(struct display_stream_compressor *dsc);
/linux/drivers/gpu/drm/tests/
H A Ddrm_dp_mst_helper_test.c18 const bool dsc; member
26 .dsc = false,
32 .dsc = false,
38 .dsc = false,
44 .dsc = true,
50 .dsc = true,
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/drivers/net/ethernet/broadcom/
H A Dsb1250-mac.c773 struct sbdmadscr *dsc; in sbdma_add_rcvbuffer() local
780 dsc = d->sbdma_addptr; in sbdma_add_rcvbuffer()
837 dsc->dscr_a = virt_to_phys(sb_new->data) | in sbdma_add_rcvbuffer()
840 dsc->dscr_a = virt_to_phys(sb_new->data) | in sbdma_add_rcvbuffer()
846 dsc->dscr_b = 0; in sbdma_add_rcvbuffer()
852 d->sbdma_ctxtable[dsc-d->sbdma_dscrtable] = sb_new; in sbdma_add_rcvbuffer()
887 struct sbdmadscr *dsc; in sbdma_add_txbuffer() local
895 dsc = d->sbdma_addptr; in sbdma_add_txbuffer()
926 dsc->dscr_a = phys | in sbdma_add_txbuffer()
935 dsc->dscr_b = V_DMA_DSCRB_OPTIONS(K_DMA_ETHTX_APPENDCRC_APPENDPAD) | in sbdma_add_txbuffer()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn32/
H A Ddcn32_hwseq.c1022 struct display_stream_compressor *dsc = pipe_ctx->stream_res.dsc; in dcn32_update_dsc_on_stream() local
1040 ASSERT(dsc); in dcn32_update_dsc_on_stream()
1050 if (!dsc) { in dcn32_update_dsc_on_stream()
1055 if (dsc->funcs->dsc_read_state) { in dcn32_update_dsc_on_stream()
1056 dsc->funcs->dsc_read_state(dsc, &dsc_state); in dcn32_update_dsc_on_stream()
1076 dccg->funcs->set_dto_dscclk(dccg, dsc->inst, dsc_cfg.dc_dsc_cfg.num_slices_h); in dcn32_update_dsc_on_stream()
1077 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in dcn32_update_dsc_on_stream()
1078 dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); in dcn32_update_dsc_on_stream()
1080 struct display_stream_compressor *odm_dsc = odm_pipe->stream_res.dsc; in dcn32_update_dsc_on_stream()
1104 dsc->funcs->dsc_disconnect(pipe_ctx->stream_res.dsc); in dcn32_update_dsc_on_stream()
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_dp_mst.c143 bool dsc) in intel_dp_mst_max_dpt_bpp() argument
149 if (!intel_dp_is_uhbr(crtc_state) || DISPLAY_VER(display) >= 20 || !dsc) in intel_dp_mst_max_dpt_bpp()
250 int min_bpp_x16, int max_bpp_x16, int bpp_step_x16, bool dsc) in intel_dp_mtp_tu_compute_config() argument
265 drm_WARN_ON(display->drm, !dsc && (fxp_q4_to_frac(min_bpp_x16) || in intel_dp_mtp_tu_compute_config()
291 crtc_state->fec_enable = intel_dp_needs_8b10b_fec(crtc_state, dsc); in intel_dp_mtp_tu_compute_config()
299 if (crtc_state->fec_enable && dsc && in intel_dp_mtp_tu_compute_config()
303 max_dpt_bpp_x16 = fxp_q4_from_int(intel_dp_mst_max_dpt_bpp(crtc_state, dsc)); in intel_dp_mtp_tu_compute_config()
313 if (dsc) { in intel_dp_mtp_tu_compute_config()
330 if (dsc && !intel_dp_dsc_valid_compressed_bpp(intel_dp, bpp_x16)) { in intel_dp_mtp_tu_compute_config()
336 link_bpp_x16 = dsc ? bpp_x16 : in intel_dp_mtp_tu_compute_config()
[all …]
H A Dintel_bios.c75 struct dsc_compression_parameters_entry *dsc; member
2176 devdata->dsc = kmemdup(&params->data[index], in parse_compression_parameters()
2177 sizeof(*devdata->dsc), GFP_KERNEL); in parse_compression_parameters()
2740 devdata->dsc != NULL); in print_ddi_port()
3348 kfree(devdata->dsc); in intel_bios_driver_remove()
3547 struct dsc_compression_parameters_entry *dsc, in fill_dsc() argument
3551 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in fill_dsc()
3554 vdsc_cfg->dsc_version_major = dsc->version_major; in fill_dsc()
3555 vdsc_cfg->dsc_version_minor = dsc->version_minor; in fill_dsc()
3557 if (dsc->support_12bpc && dsc_max_bpc >= 12) in fill_dsc()
[all …]
H A Dintel_dp.c1413 bool dsc = false; in intel_dp_mode_valid() local
1482 dsc = dsc_max_compressed_bpp && dsc_slice_count; in intel_dp_mode_valid()
1489 dsc = intel_dp_mode_valid_with_dsc(connector, in intel_dp_mode_valid()
1498 if (intel_dp_joiner_needs_dsc(display, num_joined_pipes) && !dsc) in intel_dp_mode_valid()
1501 if (mode_rate > max_rate && !dsc) in intel_dp_mode_valid()
1904 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in intel_dp_dsc_compute_params()
2040 pipe_config->dsc.slice_count, in dsc_compute_link_config()
2234 pipe_config->dsc.compressed_bpp_x16 = max_bpp_x16; in dsc_compute_compressed_bpp()
2249 pipe_config->dsc.compressed_bpp_x16 = bpp_x16; in dsc_compute_compressed_bpp()
2387 pipe_config->dsc.slice_count = in intel_dp_dsc_compute_config()
[all …]
H A Dicl_dsi.c351 if (crtc_state->dsc.compression_enable) in afe_clk()
352 bpp = fxp_q4_to_int(crtc_state->dsc.compressed_bpp_x16); in afe_clk()
747 if (pipe_config->dsc.compression_enable) { in gen11_dsi_configure_transcoder()
892 if (crtc_state->dsc.compression_enable) { in gen11_dsi_set_transcoder_timings()
893 mul = fxp_q4_to_int(crtc_state->dsc.compressed_bpp_x16); in gen11_dsi_set_transcoder_timings()
916 if (crtc_state->dsc.compression_enable) in gen11_dsi_set_transcoder_timings()
917 bpp = fxp_q4_to_int(crtc_state->dsc.compressed_bpp_x16); in gen11_dsi_set_transcoder_timings()
1506 if (pipe_config->dsc.compressed_bpp_x16) { in gen11_dsi_get_timings()
1507 int div = fxp_q4_to_int(pipe_config->dsc.compressed_bpp_x16); in gen11_dsi_get_timings()
1615 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in gen11_dsi_dsc_compute_config()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_dpms.c751 static void dsc_optc_config_log(struct display_stream_compressor *dsc, in dsc_optc_config_log() argument
758 DC_LOGGER_INIT(dsc->ctx->logger); in dsc_optc_config_log()
808 struct display_stream_compressor *dsc = pipe_ctx->stream_res.dsc; in link_set_dsc_on_stream() local
825 DC_LOGGER_INIT(dsc->ctx->logger); in link_set_dsc_on_stream()
848 dccg->funcs->set_dto_dscclk(dccg, dsc->inst, dsc_cfg.dc_dsc_cfg.num_slices_h); in link_set_dsc_on_stream()
849 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in link_set_dsc_on_stream()
850 dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); in link_set_dsc_on_stream()
852 struct display_stream_compressor *odm_dsc = odm_pipe->stream_res.dsc; in link_set_dsc_on_stream()
868 dsc_optc_config_log(dsc, &dsc_optc_cfg); in link_set_dsc_on_stream()
880 dsc_optc_config_log(dsc, &dsc_optc_cfg); in link_set_dsc_on_stream()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn20/
H A Ddcn20_resource.c1064 struct dcn20_dsc *dsc = in dcn20_dsc_create() local
1067 if (!dsc) { in dcn20_dsc_create()
1072 dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask); in dcn20_dsc_create()
1073 return &dsc->base; in dcn20_dsc_create()
1076 void dcn20_dsc_destroy(struct display_stream_compressor **dsc) in dcn20_dsc_destroy() argument
1078 kfree(container_of(*dsc, struct dcn20_dsc, base)); in dcn20_dsc_destroy()
1079 *dsc = NULL; in dcn20_dsc_destroy()
1328 struct display_stream_compressor **dsc, in dcn20_acquire_dsc() argument
1333 … display_stream_compressor *dsc_old = dc->current_state->res_ctx.pipe_ctx[pipe_idx].stream_res.dsc; in dcn20_acquire_dsc()
1335 ASSERT(*dsc == NULL); /* If this ASSERT fails, dsc was not released properly */ in dcn20_acquire_dsc()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_hw_sequencer.c2262 struct display_stream_compressor *dsc = params->dsc_set_config_params.dsc; in hwss_dsc_set_config() local
2266 if (dsc && dsc->funcs->dsc_set_config) in hwss_dsc_set_config()
2267 dsc->funcs->dsc_set_config(dsc, dsc_cfg, dsc_optc_cfg); in hwss_dsc_set_config()
2272 struct display_stream_compressor *dsc = params->dsc_enable_params.dsc; in hwss_dsc_enable() local
2275 if (dsc && dsc->funcs->dsc_enable) in hwss_dsc_enable()
2276 dsc->funcs->dsc_enable(dsc, opp_inst); in hwss_dsc_enable()
2303 struct display_stream_compressor *dsc = params->dsc_disconnect_params.dsc; in hwss_dsc_disconnect() local
2305 if (dsc && dsc->funcs->dsc_disconnect) in hwss_dsc_disconnect()
2306 dsc->funcs->dsc_disconnect(dsc); in hwss_dsc_disconnect()
2311 struct display_stream_compressor *dsc = params->dsc_read_state_params.dsc; in hwss_dsc_read_state() local
[all …]
/linux/include/drm/display/
H A Ddrm_dsc_helper.h30 u8 drm_dsc_initial_scale_value(const struct drm_dsc_config *dsc);
31 u32 drm_dsc_flatness_det_thresh(const struct drm_dsc_config *dsc);
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_dsc.h37 struct drm_dsc_config *dsc,
47 struct drm_dsc_config *dsc);
H A Ddpu_encoder.c217 struct drm_dsc_config *dsc; member
303 return dpu_enc->dsc ? true : false; in dpu_encoder_is_dsc_enabled()
668 struct drm_dsc_config *dsc; in dpu_encoder_update_topology() local
676 dsc = dpu_encoder_get_dsc_config(drm_enc); in dpu_encoder_update_topology()
679 if (dsc) { in dpu_encoder_update_topology()
1345 dpu_enc->dsc = dpu_encoder_get_dsc_config(drm_enc); in dpu_encoder_virt_atomic_enable()
1967 dpu_encoder_dsc_initial_line_calc(struct drm_dsc_config *dsc, in dpu_encoder_dsc_initial_line_calc() argument
1972 soft_slice_per_enc = enc_ip_width / dsc->slice_width; in dpu_encoder_dsc_initial_line_calc()
1984 ssm_delay = ((dsc->bits_per_component < 10) ? 84 : 92); in dpu_encoder_dsc_initial_line_calc()
1985 total_pixels = ssm_delay * 3 + dsc->initial_xmit_delay + 47; in dpu_encoder_dsc_initial_line_calc()
[all …]
/linux/arch/mips/mm/
H A Dcerr-sb1.c466 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_stats.c50 #define MLX5E_READ_CTR_ATOMIC64(ptr, dsc, i) \ argument
51 atomic64_read((atomic64_t *)((char *)(ptr) + (dsc)[i].offset))
H A Dipsec_stats.c61 #define MLX5E_READ_CTR_ATOMIC64(ptr, dsc, i) \ argument
62 atomic64_read((atomic64_t *)((char *)(ptr) + (dsc)[i].offset))
/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c1136 int qla_get_buf(struct scsi_qla_host *vha, struct qla_qpair *qp, struct qla_buf_dsc *dsc) in qla_get_buf() argument
1143 dsc->tag = TAG_FREED; in qla_get_buf()
1170 dsc->buf = qp->buf_pool.buf_array[tag] = buf; in qla_get_buf()
1171 dsc->buf_dma = qp->buf_pool.dma_array[tag] = buf_dma; in qla_get_buf()
1174 dsc->buf = qp->buf_pool.buf_array[tag]; in qla_get_buf()
1175 dsc->buf_dma = qp->buf_pool.dma_array[tag]; in qla_get_buf()
1176 memset(dsc->buf, 0, FCP_CMND_DMA_POOL_SIZE); in qla_get_buf()
1183 dsc->tag = tag; in qla_get_buf()
1242 void qla_put_buf(struct qla_qpair *qp, struct qla_buf_dsc *dsc) in qla_put_buf() argument
1244 if (dsc->tag == TAG_FREED) in qla_put_buf()
[all …]
/linux/sound/pci/ctxfi/
H A Dctdaio.c432 struct daio_desc dsc = {0}; in dao_rsc_reinit() local
434 dsc.type = dao->daio.type; in dao_rsc_reinit()
435 dsc.msr = desc->msr; in dao_rsc_reinit()
436 dsc.passthru = desc->passthru; in dao_rsc_reinit()
437 dsc.output = dao->daio.output; in dao_rsc_reinit()
439 return dao_rsc_init(dao, &dsc, mgr); in dao_rsc_reinit()

1234