/Linux-v6.1/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | dpp.h | 44 struct dpp { struct 147 struct dpp *dpp_base, const struct pwl_params *params); 149 void (*dpp_set_pre_degam)(struct dpp *dpp_base, 152 void (*dpp_program_cm_dealpha)(struct dpp *dpp_base, 156 struct dpp *dpp_base, 159 void (*dpp_read_state)(struct dpp *dpp, struct dcn_dpp_state *s); 161 void (*dpp_reset)(struct dpp *dpp); 163 void (*dpp_set_scaler)(struct dpp *dpp, 167 struct dpp *dpp, 172 struct dpp *dpp, [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_dpp_cm.c | 43 dpp->tf_regs->reg 46 dpp->base.ctx 50 dpp->tf_shift->field_name, dpp->tf_mask->field_name 92 struct dcn10_dpp *dpp, in program_gamut_remap() argument 118 gam_regs.shifts.csc_c11 = dpp->tf_shift->CM_GAMUT_REMAP_C11; in program_gamut_remap() 119 gam_regs.masks.csc_c11 = dpp->tf_mask->CM_GAMUT_REMAP_C11; in program_gamut_remap() 120 gam_regs.shifts.csc_c12 = dpp->tf_shift->CM_GAMUT_REMAP_C12; in program_gamut_remap() 121 gam_regs.masks.csc_c12 = dpp->tf_mask->CM_GAMUT_REMAP_C12; in program_gamut_remap() 129 dpp->base.ctx, in program_gamut_remap() 139 dpp->base.ctx, in program_gamut_remap() [all …]
|
D | dcn10_dpp.c | 42 dpp->tf_regs->reg 45 dpp->base.ctx 49 dpp->tf_shift->field_name, dpp->tf_mask->field_name 94 void dpp_read_state(struct dpp *dpp_base, in dpp_read_state() 97 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp_read_state() local 125 struct dpp *dpp, in dpp1_get_optimal_number_of_taps() argument 131 dpp->caps->dscl_data_proc_format == DSCL_DATA_PRCESSING_FIXED_FORMAT && in dpp1_get_optimal_number_of_taps() 137 dpp->ctx->dc->debug.max_downscale_src_width != 0 && in dpp1_get_optimal_number_of_taps() 138 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp1_get_optimal_number_of_taps() 174 if (!dpp->ctx->dc->debug.always_scale) { in dpp1_get_optimal_number_of_taps() [all …]
|
D | dcn10_dpp_dscl.c | 47 dpp->tf_regs->reg 50 dpp->base.ctx 54 dpp->tf_shift->field_name, dpp->tf_mask->field_name 127 struct dpp *dpp_base, in dpp1_dscl_get_dscl_mode() 161 struct dpp *dpp_base, in dpp1_power_on_dscl() 164 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_power_on_dscl() local 166 if (dpp->tf_regs->DSCL_MEM_PWR_CTRL) { in dpp1_power_on_dscl() 171 if (dpp->base.ctx->dc->debug.enable_mem_low_power.bits.dscl) { in dpp1_power_on_dscl() 172 dpp->base.ctx->dc->optimized_required = true; in dpp1_power_on_dscl() 173 dpp->base.deferred_reg_writes.bits.disable_dscl = true; in dpp1_power_on_dscl() [all …]
|
D | dcn10_resource.c | 571 static void dcn10_dpp_destroy(struct dpp **dpp) in dcn10_dpp_destroy() argument 573 kfree(TO_DCN10_DPP(*dpp)); in dcn10_dpp_destroy() 574 *dpp = NULL; in dcn10_dpp_destroy() 577 static struct dpp *dcn10_dpp_create( in dcn10_dpp_create() 581 struct dcn10_dpp *dpp = in dcn10_dpp_create() local 584 if (!dpp) in dcn10_dpp_create() 587 dpp1_construct(dpp, ctx, inst, in dcn10_dpp_create() 589 return &dpp->base; in dcn10_dpp_create() 1118 idle_pipe->plane_res.dpp = pool->dpps[idle_pipe->pipe_idx]; in dcn10_acquire_idle_pipe_for_layer() 1407 dc->caps.color.dpp.dcn_arch = 1; in dcn10_resource_construct() [all …]
|
D | dcn10_hw_sequencer.c | 298 struct dpp *dpp = pool->dpps[i]; in dcn10_log_hw_state() local 301 dpp->funcs->dpp_read_state(dpp, &s); in dcn10_log_hw_state() 308 dpp->inst, in dcn10_log_hw_state() 1155 int dpp_id = pipe_ctx->plane_res.dpp->inst; in dcn10_plane_atomic_disconnect() 1197 struct dpp *dpp, in dcn10_plane_atomic_power_down() argument 1208 hws->funcs.dpp_pg_control(hws, dpp->inst, false); in dcn10_plane_atomic_power_down() 1213 dpp->funcs->dpp_reset(dpp); in dcn10_plane_atomic_power_down() 1228 struct dpp *dpp = pipe_ctx->plane_res.dpp; in dcn10_plane_atomic_disable() local 1235 dpp->funcs->dpp_dppclk_control(dpp, false, false); in dcn10_plane_atomic_disable() 1246 pipe_ctx->plane_res.dpp, in dcn10_plane_atomic_disable() [all …]
|
D | dcn10_dpp.h | 30 #define TO_DCN10_DPP(dpp)\ argument 31 container_of(dpp, struct dcn10_dpp, base) 1353 struct dpp base; 1378 struct dpp *dpp_base, 1382 struct dpp *dpp_base, 1389 struct dpp *dpp_base, 1404 struct dpp *dpp_base, 1408 struct dpp *dpp_base, 1412 struct dpp *dpp_base, 1416 struct dpp *dpp_base, [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_dpp_cm.c | 34 dpp->tf_regs->reg 37 dpp->base.ctx 41 dpp->tf_shift->field_name, dpp->tf_mask->field_name 44 struct dpp *dpp_base) in dpp3_enable_cm_block() 46 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_enable_cm_block() local 57 static enum dc_lut_mode dpp30_get_gamcor_current(struct dpp *dpp_base) in dpp30_get_gamcor_current() 62 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp30_get_gamcor_current() local 81 struct dpp *dpp_base, in dpp3_program_gammcor_lut() 87 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_program_gammcor_lut() local 130 struct dpp *dpp_base, in dpp3_power_on_gamcor_lut() [all …]
|
D | dcn30_dpp.c | 34 dpp->tf_regs->reg 37 dpp->base.ctx 41 dpp->tf_shift->field_name, dpp->tf_mask->field_name 44 void dpp30_read_state(struct dpp *dpp_base, struct dcn_dpp_state *s) in dpp30_read_state() 46 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp30_read_state() local 55 struct dpp *dpp_base, in dpp3_program_post_csc() 60 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_program_post_csc() local 100 gam_regs.shifts.csc_c11 = dpp->tf_shift->CM_POST_CSC_C11; in dpp3_program_post_csc() 101 gam_regs.masks.csc_c11 = dpp->tf_mask->CM_POST_CSC_C11; in dpp3_program_post_csc() 102 gam_regs.shifts.csc_c12 = dpp->tf_shift->CM_POST_CSC_C12; in dpp3_program_post_csc() [all …]
|
D | dcn30_dpp.h | 30 #define TO_DCN30_DPP(dpp)\ argument 31 container_of(dpp, struct dcn3_dpp, base) 559 struct dpp base; 585 struct dpp *dpp_base, const struct pwl_params *params); 588 struct dpp *dpp_base, 591 void dpp30_read_state(struct dpp *dpp_base, 595 struct dpp *dpp, 600 struct dpp *dpp_base, 608 struct dpp *dpp_base, 612 struct dpp *dpp_base, [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dpp_cm.c | 37 dpp->tf_regs->reg 43 dpp->base.ctx 47 dpp->tf_shift->field_name, dpp->tf_mask->field_name 51 struct dpp *dpp_base) in dpp2_enable_cm_block() 53 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_enable_cm_block() local 65 struct dpp *dpp_base, in dpp2_degamma_ram_inuse() 70 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_degamma_ram_inuse() local 86 struct dpp *dpp_base, in dpp2_program_degamma_lut() 93 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_program_degamma_lut() local 117 struct dpp *dpp_base, in dpp2_set_degamma_pwl() [all …]
|
D | dcn20_dpp.c | 42 dpp->tf_regs->reg 45 dpp->base.ctx 49 dpp->tf_shift->field_name, dpp->tf_mask->field_name 51 void dpp20_read_state(struct dpp *dpp_base, in dpp20_read_state() 54 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp20_read_state() local 76 struct dpp *dpp_base, in dpp2_power_on_obuf() 79 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_power_on_obuf() local 91 struct dpp *dpp_base, in dpp2_dummy_program_input_lut() 96 struct dpp *dpp_base, in dpp2_cnv_setup() 103 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_cnv_setup() local [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn201/ |
D | dcn201_dpp.c | 35 dpp->tf_regs->reg 38 dpp->base.ctx 42 dpp->tf_shift->field_name, dpp->tf_mask->field_name 45 struct dpp *dpp_base, in dpp201_cnv_setup() 52 struct dcn201_dpp *dpp = TO_DCN201_DPP(dpp_base); in dpp201_cnv_setup() local 184 struct dpp *dpp, in dpp201_get_optimal_number_of_taps() argument 197 dpp->caps->dscl_data_proc_format == DSCL_DATA_PRCESSING_FIXED_FORMAT && in dpp201_get_optimal_number_of_taps() 202 dpp->ctx->dc->debug.max_downscale_src_width != 0 && in dpp201_get_optimal_number_of_taps() 203 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp201_get_optimal_number_of_taps() 247 if (!dpp->ctx->dc->debug.always_scale) { in dpp201_get_optimal_number_of_taps() [all …]
|
D | dcn201_resource.c | 620 static void dcn201_dpp_destroy(struct dpp **dpp) in dcn201_dpp_destroy() argument 622 kfree(TO_DCN201_DPP(*dpp)); in dcn201_dpp_destroy() 623 *dpp = NULL; in dcn201_dpp_destroy() 626 static struct dpp *dcn201_dpp_create( in dcn201_dpp_create() 630 struct dcn201_dpp *dpp = in dcn201_dpp_create() local 633 if (!dpp) in dcn201_dpp_create() 636 if (dpp201_construct(dpp, ctx, inst, in dcn201_dpp_create() 638 return &dpp->base; in dcn201_dpp_create() 640 kfree(dpp); in dcn201_dpp_create() 1024 idle_pipe->plane_res.dpp = pool->dpps[idle_pipe->pipe_idx]; in dcn201_acquire_idle_pipe_for_layer() [all …]
|
D | dcn201_dpp.h | 30 #define TO_DCN201_DPP(dpp)\ argument 31 container_of(dpp, struct dcn201_dpp, base) 58 struct dpp base;
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_dpp.c | 146 struct dcn3_dpp *dpp, in dpp32_construct() argument 153 dpp->base.ctx = ctx; in dpp32_construct() 155 dpp->base.inst = inst; in dpp32_construct() 156 dpp->base.funcs = &dcn32_dpp_funcs; in dpp32_construct() 157 dpp->base.caps = &dcn32_dpp_cap; in dpp32_construct() 159 dpp->tf_regs = tf_regs; in dpp32_construct() 160 dpp->tf_shift = tf_shift; in dpp32_construct() 161 dpp->tf_mask = tf_mask; in dpp32_construct()
|
/Linux-v6.1/drivers/firmware/efi/libstub/ |
D | zboot.c | 170 efi_device_path_protocol_t *parent_dp, *dpp, *lf2_dp, *li_dp; in efi_zboot_entry() local 226 dpp = (void *)((u8 *)lf2_dp + dp_len); in efi_zboot_entry() 227 append_rel_offset_node(&dpp, in efi_zboot_entry() 230 append_end_node(&dpp); in efi_zboot_entry() 235 li_dp = memcpy(dpp, lf2_dp, dp_len); in efi_zboot_entry() 236 dpp = (void *)((u8 *)li_dp + dp_len); in efi_zboot_entry() 237 append_ven_media_node(&dpp, &LINUX_EFI_ZBOOT_MEDIA_GUID); in efi_zboot_entry() 238 append_end_node(&dpp); in efi_zboot_entry()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn301/ |
D | dcn301_resource.c | 723 static void dcn301_dpp_destroy(struct dpp **dpp) in dcn301_dpp_destroy() argument 725 kfree(TO_DCN20_DPP(*dpp)); in dcn301_dpp_destroy() 726 *dpp = NULL; in dcn301_dpp_destroy() 729 static struct dpp *dcn301_dpp_create(struct dc_context *ctx, uint32_t inst) in dcn301_dpp_create() 731 struct dcn3_dpp *dpp = in dcn301_dpp_create() local 734 if (!dpp) in dcn301_dpp_create() 737 if (dpp3_construct(dpp, ctx, inst, in dcn301_dpp_create() 739 return &dpp->base; in dcn301_dpp_create() 742 kfree(dpp); in dcn301_dpp_create() 1461 dc->caps.color.dpp.dcn_arch = 1; in dcn301_resource_construct() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn302/ |
D | dcn302_resource.c | 543 static struct dpp *dcn302_dpp_create(struct dc_context *ctx, uint32_t inst) in dcn302_dpp_create() 545 struct dcn3_dpp *dpp = kzalloc(sizeof(struct dcn3_dpp), GFP_KERNEL); in dcn302_dpp_create() local 547 if (!dpp) in dcn302_dpp_create() 550 if (dpp3_construct(dpp, ctx, inst, &dpp_regs[inst], &tf_shift, &tf_mask)) in dcn302_dpp_create() 551 return &dpp->base; in dcn302_dpp_create() 554 kfree(dpp); in dcn302_dpp_create() 1236 dc->caps.color.dpp.dcn_arch = 1; in dcn302_resource_construct() 1237 dc->caps.color.dpp.input_lut_shared = 0; in dcn302_resource_construct() 1238 dc->caps.color.dpp.icsc = 1; in dcn302_resource_construct() 1239 dc->caps.color.dpp.dgam_ram = 0; // must use gamma_corr in dcn302_resource_construct() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn303/ |
D | dcn303_resource.c | 504 static struct dpp *dcn303_dpp_create(struct dc_context *ctx, uint32_t inst) in dcn303_dpp_create() 506 struct dcn3_dpp *dpp = kzalloc(sizeof(struct dcn3_dpp), GFP_KERNEL); in dcn303_dpp_create() local 508 if (!dpp) in dcn303_dpp_create() 511 if (dpp3_construct(dpp, ctx, inst, &dpp_regs[inst], &tf_shift, &tf_mask)) in dcn303_dpp_create() 512 return &dpp->base; in dcn303_dpp_create() 515 kfree(dpp); in dcn303_dpp_create() 1168 dc->caps.color.dpp.dcn_arch = 1; in dcn303_resource_construct() 1169 dc->caps.color.dpp.input_lut_shared = 0; in dcn303_resource_construct() 1170 dc->caps.color.dpp.icsc = 1; in dcn303_resource_construct() 1171 dc->caps.color.dpp.dgam_ram = 0; // must use gamma_corr in dcn303_resource_construct() [all …]
|
/Linux-v6.1/arch/sparc/vdso/ |
D | vma.c | 250 struct page *dp, **dpp = NULL; in init_vdso_image() local 290 dpp = kcalloc(dnpages, sizeof(struct page *), GFP_KERNEL); in init_vdso_image() 291 vvar_mapping.pages = dpp; in init_vdso_image() 293 if (!dpp) in init_vdso_image() 300 dpp[0] = dp; in init_vdso_image() 318 if (dpp != NULL) { in init_vdso_image() 320 if (dpp[i] != NULL) in init_vdso_image() 321 __free_page(dpp[i]); in init_vdso_image() 323 kfree(dpp); in init_vdso_image()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_resource.c | 501 static struct dpp *dcn21_dpp_create( in dcn21_dpp_create() 505 struct dcn20_dpp *dpp = in dcn21_dpp_create() local 508 if (!dpp) in dcn21_dpp_create() 511 if (dpp2_construct(dpp, ctx, inst, in dcn21_dpp_create() 513 return &dpp->base; in dcn21_dpp_create() 516 kfree(dpp); in dcn21_dpp_create() 1471 dc->caps.color.dpp.dcn_arch = 1; in dcn21_resource_construct() 1472 dc->caps.color.dpp.input_lut_shared = 0; in dcn21_resource_construct() 1473 dc->caps.color.dpp.icsc = 1; in dcn21_resource_construct() 1474 dc->caps.color.dpp.dgam_ram = 1; in dcn21_resource_construct() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn314/ |
D | dcn314_resource.c | 945 static void dcn31_dpp_destroy(struct dpp **dpp) in dcn31_dpp_destroy() argument 947 kfree(TO_DCN20_DPP(*dpp)); in dcn31_dpp_destroy() 948 *dpp = NULL; in dcn31_dpp_destroy() 951 static struct dpp *dcn31_dpp_create( in dcn31_dpp_create() 955 struct dcn3_dpp *dpp = in dcn31_dpp_create() local 958 if (!dpp) in dcn31_dpp_create() 961 if (dpp3_construct(dpp, ctx, inst, in dcn31_dpp_create() 963 return &dpp->base; in dcn31_dpp_create() 966 kfree(dpp); in dcn31_dpp_create() 1780 dc->caps.color.dpp.dcn_arch = 1; in dcn314_resource_construct() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn315/ |
D | dcn315_resource.c | 915 static void dcn31_dpp_destroy(struct dpp **dpp) in dcn31_dpp_destroy() argument 917 kfree(TO_DCN20_DPP(*dpp)); in dcn31_dpp_destroy() 918 *dpp = NULL; in dcn31_dpp_destroy() 921 static struct dpp *dcn31_dpp_create( in dcn31_dpp_create() 925 struct dcn3_dpp *dpp = in dcn31_dpp_create() local 928 if (!dpp) in dcn31_dpp_create() 931 if (dpp3_construct(dpp, ctx, inst, in dcn31_dpp_create() 933 return &dpp->base; in dcn31_dpp_create() 936 kfree(dpp); in dcn31_dpp_create() 1790 dc->caps.color.dpp.dcn_arch = 1; in dcn315_resource_construct() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn316/ |
D | dcn316_resource.c | 914 static void dcn31_dpp_destroy(struct dpp **dpp) in dcn31_dpp_destroy() argument 916 kfree(TO_DCN20_DPP(*dpp)); in dcn31_dpp_destroy() 917 *dpp = NULL; in dcn31_dpp_destroy() 920 static struct dpp *dcn31_dpp_create( in dcn31_dpp_create() 924 struct dcn3_dpp *dpp = in dcn31_dpp_create() local 927 if (!dpp) in dcn31_dpp_create() 930 if (dpp3_construct(dpp, ctx, inst, in dcn31_dpp_create() 932 return &dpp->base; in dcn31_dpp_create() 935 kfree(dpp); in dcn31_dpp_create() 1792 dc->caps.color.dpp.dcn_arch = 1; in dcn316_resource_construct() [all …]
|