/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_util.c | 173 DPU_REG_WRITE(c, in _dpu_hw_setup_scaler3_lut() 183 DPU_REG_WRITE(c, QSEED3_COEF_LUT_CTRL + offset, BIT(0)); in _dpu_hw_setup_scaler3_lut() 197 DPU_REG_WRITE(c, QSEED3LITE_DIR_FILTER_WEIGHT + offset, scaler3_cfg->dir_weight); in _dpu_hw_setup_scaler3lite_lut() 225 DPU_REG_WRITE(c, in _dpu_hw_setup_scaler3lite_lut() 234 DPU_REG_WRITE(c, QSEED3_COEF_LUT_CTRL + offset, BIT(0)); in _dpu_hw_setup_scaler3lite_lut() 272 DPU_REG_WRITE(c, QSEED3_DE_SHARPEN + offset, sharp_lvl); in _dpu_hw_setup_scaler3_de() 273 DPU_REG_WRITE(c, QSEED3_DE_SHARPEN_CTL + offset, sharp_ctl); in _dpu_hw_setup_scaler3_de() 274 DPU_REG_WRITE(c, QSEED3_DE_SHAPE_CTL + offset, shape_ctl); in _dpu_hw_setup_scaler3_de() 275 DPU_REG_WRITE(c, QSEED3_DE_THRESHOLD + offset, de_thr); in _dpu_hw_setup_scaler3_de() 276 DPU_REG_WRITE(c, QSEED3_DE_ADJUST_DATA_0 + offset, adjust_a); in _dpu_hw_setup_scaler3_de() [all …]
|
D | dpu_hw_dsc_1_2.c | 81 DPU_REG_WRITE(hw, sblk->ctl.base + DSC_CFG, 0); in dpu_hw_dsc_disable_1_2() 83 DPU_REG_WRITE(hw, sblk->enc.base + ENC_DF_CTRL, 0); in dpu_hw_dsc_disable_1_2() 84 DPU_REG_WRITE(hw, sblk->enc.base + DSC_MAIN_CONF, 0); in dpu_hw_dsc_disable_1_2() 118 DPU_REG_WRITE(hw, DSC_CMN_MAIN_CNF, data); in dpu_hw_dsc_config_1_2() 127 DPU_REG_WRITE(hw, sblk->enc.base + ENC_DF_CTRL, data); in dpu_hw_dsc_config_1_2() 155 DPU_REG_WRITE(hw, sblk->enc.base + DSC_MAIN_CONF, data); in dpu_hw_dsc_config_1_2() 160 DPU_REG_WRITE(hw, sblk->enc.base + DSC_PICTURE_SIZE, data); in dpu_hw_dsc_config_1_2() 165 DPU_REG_WRITE(hw, sblk->enc.base + DSC_SLICE_SIZE, data); in dpu_hw_dsc_config_1_2() 167 DPU_REG_WRITE(hw, sblk->enc.base + DSC_MISC_SIZE, in dpu_hw_dsc_config_1_2() 173 DPU_REG_WRITE(hw, sblk->enc.base + DSC_HRD_DELAYS, data); in dpu_hw_dsc_config_1_2() [all …]
|
D | dpu_hw_dsc.c | 42 DPU_REG_WRITE(c, DSC_COMMON_MODE, 0); in dpu_hw_dsc_disable() 56 DPU_REG_WRITE(c, DSC_COMMON_MODE, mode); in dpu_hw_dsc_config() 73 DPU_REG_WRITE(c, DSC_ENC, data); in dpu_hw_dsc_config() 77 DPU_REG_WRITE(c, DSC_PICTURE, data); in dpu_hw_dsc_config() 81 DPU_REG_WRITE(c, DSC_SLICE, data); in dpu_hw_dsc_config() 84 DPU_REG_WRITE(c, DSC_CHUNK_SIZE, data); in dpu_hw_dsc_config() 88 DPU_REG_WRITE(c, DSC_DELAY, data); in dpu_hw_dsc_config() 91 DPU_REG_WRITE(c, DSC_SCALE_INITIAL, data); in dpu_hw_dsc_config() 94 DPU_REG_WRITE(c, DSC_SCALE_DEC_INTERVAL, data); in dpu_hw_dsc_config() 97 DPU_REG_WRITE(c, DSC_SCALE_INC_INTERVAL, data); in dpu_hw_dsc_config() [all …]
|
D | dpu_hw_intf.c | 224 DPU_REG_WRITE(c, INTF_HSYNC_CTL, hsync_ctl); in dpu_hw_intf_setup_timing_engine() 225 DPU_REG_WRITE(c, INTF_VSYNC_PERIOD_F0, vsync_period * hsync_period); in dpu_hw_intf_setup_timing_engine() 226 DPU_REG_WRITE(c, INTF_VSYNC_PULSE_WIDTH_F0, in dpu_hw_intf_setup_timing_engine() 228 DPU_REG_WRITE(c, INTF_DISPLAY_HCTL, display_hctl); in dpu_hw_intf_setup_timing_engine() 229 DPU_REG_WRITE(c, INTF_DISPLAY_V_START_F0, display_v_start); in dpu_hw_intf_setup_timing_engine() 230 DPU_REG_WRITE(c, INTF_DISPLAY_V_END_F0, display_v_end); in dpu_hw_intf_setup_timing_engine() 231 DPU_REG_WRITE(c, INTF_ACTIVE_HCTL, active_hctl); in dpu_hw_intf_setup_timing_engine() 232 DPU_REG_WRITE(c, INTF_ACTIVE_V_START_F0, active_v_start); in dpu_hw_intf_setup_timing_engine() 233 DPU_REG_WRITE(c, INTF_ACTIVE_V_END_F0, active_v_end); in dpu_hw_intf_setup_timing_engine() 234 DPU_REG_WRITE(c, INTF_BORDER_COLOR, p->border_clr); in dpu_hw_intf_setup_timing_engine() [all …]
|
D | dpu_hw_dspp.c | 47 DPU_REG_WRITE(&ctx->hw, base, PCC_DIS); in dpu_setup_dspp_pcc() 51 DPU_REG_WRITE(&ctx->hw, base + PCC_RED_R_OFF, cfg->r.r); in dpu_setup_dspp_pcc() 52 DPU_REG_WRITE(&ctx->hw, base + PCC_RED_G_OFF, cfg->r.g); in dpu_setup_dspp_pcc() 53 DPU_REG_WRITE(&ctx->hw, base + PCC_RED_B_OFF, cfg->r.b); in dpu_setup_dspp_pcc() 55 DPU_REG_WRITE(&ctx->hw, base + PCC_GREEN_R_OFF, cfg->g.r); in dpu_setup_dspp_pcc() 56 DPU_REG_WRITE(&ctx->hw, base + PCC_GREEN_G_OFF, cfg->g.g); in dpu_setup_dspp_pcc() 57 DPU_REG_WRITE(&ctx->hw, base + PCC_GREEN_B_OFF, cfg->g.b); in dpu_setup_dspp_pcc() 59 DPU_REG_WRITE(&ctx->hw, base + PCC_BLUE_R_OFF, cfg->b.r); in dpu_setup_dspp_pcc() 60 DPU_REG_WRITE(&ctx->hw, base + PCC_BLUE_G_OFF, cfg->b.g); in dpu_setup_dspp_pcc() 61 DPU_REG_WRITE(&ctx->hw, base + PCC_BLUE_B_OFF, cfg->b.b); in dpu_setup_dspp_pcc() [all …]
|
D | dpu_hw_wb.c | 60 DPU_REG_WRITE(c, WB_DST0_ADDR, data->dest.plane_addr[0]); in dpu_hw_wb_setup_outaddress() 61 DPU_REG_WRITE(c, WB_DST1_ADDR, data->dest.plane_addr[1]); in dpu_hw_wb_setup_outaddress() 62 DPU_REG_WRITE(c, WB_DST2_ADDR, data->dest.plane_addr[2]); in dpu_hw_wb_setup_outaddress() 63 DPU_REG_WRITE(c, WB_DST3_ADDR, data->dest.plane_addr[3]); in dpu_hw_wb_setup_outaddress() 115 DPU_REG_WRITE(c, WB_ALPHA_X_VALUE, 0xFF); in dpu_hw_wb_setup_format() 116 DPU_REG_WRITE(c, WB_DST_FORMAT, dst_format); in dpu_hw_wb_setup_format() 117 DPU_REG_WRITE(c, WB_DST_OP_MODE, opmode); in dpu_hw_wb_setup_format() 118 DPU_REG_WRITE(c, WB_DST_PACK_PATTERN, pattern); in dpu_hw_wb_setup_format() 119 DPU_REG_WRITE(c, WB_DST_YSTRIDE0, ystride0); in dpu_hw_wb_setup_format() 120 DPU_REG_WRITE(c, WB_DST_YSTRIDE1, ystride1); in dpu_hw_wb_setup_format() [all …]
|
D | dpu_hw_cdm.c | 98 DPU_REG_WRITE(c, CDM_CDWN2_COEFF_COSITE_H_0, in dpu_hw_cdm_setup_cdwn() 100 DPU_REG_WRITE(c, CDM_CDWN2_COEFF_COSITE_H_1, in dpu_hw_cdm_setup_cdwn() 102 DPU_REG_WRITE(c, CDM_CDWN2_COEFF_COSITE_H_2, in dpu_hw_cdm_setup_cdwn() 108 DPU_REG_WRITE(c, CDM_CDWN2_COEFF_OFFSITE_H_0, in dpu_hw_cdm_setup_cdwn() 110 DPU_REG_WRITE(c, CDM_CDWN2_COEFF_OFFSITE_H_1, in dpu_hw_cdm_setup_cdwn() 112 DPU_REG_WRITE(c, CDM_CDWN2_COEFF_OFFSITE_H_2, in dpu_hw_cdm_setup_cdwn() 138 DPU_REG_WRITE(c, in dpu_hw_cdm_setup_cdwn() 146 DPU_REG_WRITE(c, in dpu_hw_cdm_setup_cdwn() 163 DPU_REG_WRITE(c, CDM_CDWN2_OUT_SIZE, out_size); in dpu_hw_cdm_setup_cdwn() 164 DPU_REG_WRITE(c, CDM_CDWN2_OP_MODE, opmode); in dpu_hw_cdm_setup_cdwn() [all …]
|
D | dpu_hw_pingpong.c | 56 DPU_REG_WRITE(c, base + PP_DITHER_EN, 0); in dpu_hw_pp_setup_dither() 66 DPU_REG_WRITE(c, base + PP_DITHER_BITDEPTH, data); in dpu_hw_pp_setup_dither() 73 DPU_REG_WRITE(c, base + PP_DITHER_MATRIX + i, data); in dpu_hw_pp_setup_dither() 75 DPU_REG_WRITE(c, base + PP_DITHER_EN, 1); in dpu_hw_pp_setup_dither() 94 DPU_REG_WRITE(c, PP_SYNC_CONFIG_VSYNC, cfg); in dpu_hw_pp_enable_te() 95 DPU_REG_WRITE(c, PP_SYNC_CONFIG_HEIGHT, te->sync_cfg_height); in dpu_hw_pp_enable_te() 96 DPU_REG_WRITE(c, PP_VSYNC_INIT_VAL, te->vsync_init_val); in dpu_hw_pp_enable_te() 97 DPU_REG_WRITE(c, PP_RD_PTR_IRQ, te->rd_ptr_irq); in dpu_hw_pp_enable_te() 98 DPU_REG_WRITE(c, PP_START_POS, te->start_pos); in dpu_hw_pp_enable_te() 99 DPU_REG_WRITE(c, PP_SYNC_THRESH, in dpu_hw_pp_enable_te() [all …]
|
D | dpu_hw_sspp.c | 169 DPU_REG_WRITE(&ctx->hw, SSPP_MULTIRECT_OPMODE, mode_mask); in dpu_hw_sspp_setup_multirect() 189 DPU_REG_WRITE(&ctx->hw, sblk->scaler_blk.base + SSPP_VIG_OP_MODE, opmode); in _sspp_setup_opmode() 204 DPU_REG_WRITE(&ctx->hw, sblk->csc_blk.base + SSPP_VIG_CSC_10_OP_MODE, opmode); in _sspp_setup_csc10_opmode() 276 DPU_REG_WRITE(c, SSPP_FETCH_CONFIG, in dpu_hw_sspp_setup_format() 282 DPU_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL, in dpu_hw_sspp_setup_format() 289 DPU_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL, in dpu_hw_sspp_setup_format() 294 DPU_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL, in dpu_hw_sspp_setup_format() 299 DPU_REG_WRITE(c, SSPP_UBWC_STATIC_CTRL, in dpu_hw_sspp_setup_format() 323 DPU_REG_WRITE(c, format_off, src_format); in dpu_hw_sspp_setup_format() 324 DPU_REG_WRITE(c, unpack_pat_off, unpack); in dpu_hw_sspp_setup_format() [all …]
|
D | dpu_hw_ctl.c | 91 DPU_REG_WRITE(&ctx->hw, CTL_START, 0x1); in dpu_hw_ctl_trigger_start() 103 DPU_REG_WRITE(&ctx->hw, CTL_PREPARE, 0x1); in dpu_hw_ctl_trigger_pending() 139 DPU_REG_WRITE(&ctx->hw, CTL_MERGE_3D_FLUSH, in dpu_hw_ctl_trigger_flush_v1() 142 DPU_REG_WRITE(&ctx->hw, CTL_INTF_FLUSH, in dpu_hw_ctl_trigger_flush_v1() 145 DPU_REG_WRITE(&ctx->hw, CTL_WB_FLUSH, in dpu_hw_ctl_trigger_flush_v1() 151 DPU_REG_WRITE(&ctx->hw, in dpu_hw_ctl_trigger_flush_v1() 157 DPU_REG_WRITE(&ctx->hw, CTL_PERIPH_FLUSH, in dpu_hw_ctl_trigger_flush_v1() 161 DPU_REG_WRITE(&ctx->hw, CTL_DSC_FLUSH, in dpu_hw_ctl_trigger_flush_v1() 165 DPU_REG_WRITE(&ctx->hw, CTL_CDM_FLUSH, in dpu_hw_ctl_trigger_flush_v1() 168 DPU_REG_WRITE(&ctx->hw, CTL_FLUSH, ctx->pending_flush_mask); in dpu_hw_ctl_trigger_flush_v1() [all …]
|
D | dpu_hw_lm.c | 60 DPU_REG_WRITE(c, LM_OUT_SIZE, outsize); in dpu_hw_lm_setup_out() 67 DPU_REG_WRITE(c, LM_OP_MODE, op_mode); in dpu_hw_lm_setup_out() 77 DPU_REG_WRITE(c, LM_BORDER_COLOR_0, in dpu_hw_lm_setup_border_color() 80 DPU_REG_WRITE(c, LM_BORDER_COLOR_1, in dpu_hw_lm_setup_border_color() 111 DPU_REG_WRITE(c, LM_BLEND0_CONST_ALPHA + stage_off, const_alpha); in dpu_hw_lm_setup_blend_config_combined_alpha() 112 DPU_REG_WRITE(c, LM_BLEND0_OP + stage_off, blend_op); in dpu_hw_lm_setup_blend_config_combined_alpha() 128 DPU_REG_WRITE(c, LM_BLEND0_FG_ALPHA + stage_off, fg_alpha); in dpu_hw_lm_setup_blend_config() 129 DPU_REG_WRITE(c, LM_BLEND0_BG_ALPHA + stage_off, bg_alpha); in dpu_hw_lm_setup_blend_config() 130 DPU_REG_WRITE(c, LM_BLEND0_OP + stage_off, blend_op); in dpu_hw_lm_setup_blend_config() 144 DPU_REG_WRITE(c, LM_OP_MODE, op_mode); in dpu_hw_lm_setup_color3()
|
D | dpu_hw_top.c | 64 DPU_REG_WRITE(c, SSPP_SPARE, cfg->split_flush_en ? 0x1 : 0x0); in dpu_hw_setup_split_pipe() 65 DPU_REG_WRITE(c, SPLIT_DISPLAY_LOWER_PIPE_CTRL, lower_pipe); in dpu_hw_setup_split_pipe() 66 DPU_REG_WRITE(c, SPLIT_DISPLAY_UPPER_PIPE_CTRL, upper_pipe); in dpu_hw_setup_split_pipe() 67 DPU_REG_WRITE(c, SPLIT_DISPLAY_EN, cfg->en & 0x1); in dpu_hw_setup_split_pipe() 154 DPU_REG_WRITE(c, wd_load_value, in dpu_hw_setup_wd_timer() 157 DPU_REG_WRITE(c, wd_ctl, BIT(0)); /* clear timer */ in dpu_hw_setup_wd_timer() 161 DPU_REG_WRITE(c, wd_ctl2, reg); in dpu_hw_setup_wd_timer() 190 DPU_REG_WRITE(c, MDP_VSYNC_SEL, reg); in dpu_hw_setup_vsync_sel() 233 DPU_REG_WRITE(c, HDMI_DP_CORE_SELECT, 0x1); in dpu_hw_intf_audio_select() 263 DPU_REG_WRITE(c, MDP_DP_PHY_INTF_SEL, sel); in dpu_hw_dp_phy_intf_sel()
|
D | dpu_hw_vbif.c | 54 DPU_REG_WRITE(c, VBIF_XIN_CLR_ERR, pnd | src); in dpu_hw_clear_errors() 84 DPU_REG_WRITE(c, reg_off, reg_val); in dpu_hw_set_mem_type() 105 DPU_REG_WRITE(c, reg_off, reg_val); in dpu_hw_set_limit_conf() 143 DPU_REG_WRITE(c, VBIF_XIN_HALT_CTRL0, reg_val); in dpu_hw_set_halt_ctrl() 183 DPU_REG_WRITE(c, VBIF_XINL_QOS_RP_REMAP_000 + reg_high, reg_val); in dpu_hw_set_qos_remap() 184 DPU_REG_WRITE(c, reg_lvl + reg_high, reg_val_lvl); in dpu_hw_set_qos_remap() 199 DPU_REG_WRITE(c, VBIF_WRITE_GATHER_EN, reg_val); in dpu_hw_set_write_gather_en()
|
D | dpu_hw_merge3d.c | 28 DPU_REG_WRITE(c, MERGE_3D_MODE, 0); in dpu_hw_merge_3d_setup_3d_mode() 29 DPU_REG_WRITE(c, MERGE_3D_MUX, 0); in dpu_hw_merge_3d_setup_3d_mode() 32 DPU_REG_WRITE(c, MERGE_3D_MODE, data); in dpu_hw_merge_3d_setup_3d_mode()
|
D | dpu_hw_interrupts.c | 267 DPU_REG_WRITE(&intr->hw, intr->intr_set[reg_idx].clr_off, in dpu_core_irq() 340 DPU_REG_WRITE(&intr->hw, reg->clr_off, DPU_IRQ_MASK(irq_idx)); in dpu_hw_intr_enable_irq_locked() 342 DPU_REG_WRITE(&intr->hw, reg->en_off, cache_irq_mask); in dpu_hw_intr_enable_irq_locked() 392 DPU_REG_WRITE(&intr->hw, reg->en_off, cache_irq_mask); in dpu_hw_intr_disable_irq_locked() 394 DPU_REG_WRITE(&intr->hw, reg->clr_off, DPU_IRQ_MASK(irq_idx)); in dpu_hw_intr_disable_irq_locked() 419 DPU_REG_WRITE(&intr->hw, in dpu_clear_irqs() 437 DPU_REG_WRITE(&intr->hw, in dpu_disable_all_irqs() 468 DPU_REG_WRITE(&intr->hw, intr->intr_set[reg_idx].clr_off, in dpu_core_irq_read()
|
D | dpu_hw_util.h | 339 #define DPU_REG_WRITE(c, off, val) dpu_reg_write(c, off, val, #off) macro
|