| /linux-6.15/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | vpg.h | 31 struct vpg; 35 struct vpg *vpg, 41 struct vpg *vpg); 44 struct vpg *vpg); 47 struct vpg { struct
|
| H A D | stream_encoder.h | 118 struct vpg *vpg; member 296 struct vpg *vpg; member
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dcn31/ |
| H A D | dcn31_vpg.c | 52 void vpg31_powerdown(struct vpg *vpg) in vpg31_powerdown() argument 54 struct dcn31_vpg *vpg31 = DCN31_VPG_FROM_VPG(vpg); in vpg31_powerdown() 56 if (vpg->ctx->dc->debug.enable_mem_low_power.bits.vpg == false) in vpg31_powerdown() 62 void vpg31_poweron(struct vpg *vpg) in vpg31_poweron() argument 64 struct dcn31_vpg *vpg31 = DCN31_VPG_FROM_VPG(vpg); in vpg31_poweron() 70 if (vpg->ctx->dc->debug.enable_mem_low_power.bits.vpg == false && in vpg31_poweron()
|
| H A D | dcn31_vpg.h | 31 #define DCN31_VPG_FROM_VPG(vpg)\ argument 32 container_of(vpg, struct dcn31_vpg, base) 144 struct vpg base; 151 struct vpg *vpg); 154 struct vpg *vpg);
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dio/dcn30/ |
| H A D | dcn30_dio_stream_encoder.c | 59 enc1->base.vpg, in enc3_update_hdmi_info_packet() 350 enc1->base.vpg, in enc3_dp_set_dsc_pps_info_packet() 431 enc->vpg, in enc3_stream_encoder_update_dp_info_packets() 446 enc->vpg, in enc3_stream_encoder_update_dp_info_packets() 461 enc->vpg, in enc3_stream_encoder_update_dp_info_packets() 468 enc->vpg, in enc3_stream_encoder_update_dp_info_packets() 475 enc->vpg, in enc3_stream_encoder_update_dp_info_packets() 486 enc->vpg, in enc3_stream_encoder_update_dp_info_packets() 882 struct vpg *vpg, in dcn30_dio_stream_encoder_construct() argument 892 enc1->base.vpg = vpg; in dcn30_dio_stream_encoder_construct() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/hpo/dcn31/ |
| H A D | dcn31_hpo_dp_stream_encoder.c | 458 enc->vpg->funcs->update_generic_info_packet( in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 459 enc->vpg, in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 465 enc->vpg->funcs->update_generic_info_packet( in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 466 enc->vpg, in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 472 enc->vpg->funcs->update_generic_info_packet( in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 473 enc->vpg, in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 483 enc->vpg->funcs->update_generic_info_packet( in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 484 enc->vpg, in dcn31_hpo_dp_stream_enc_update_dp_info_packets() 574 enc3->base.vpg, in dcn31_hpo_dp_stream_enc_set_dsc_pps_info_packet() 764 struct vpg *vpg, in dcn31_hpo_dp_stream_encoder_construct() argument [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dcn30/ |
| H A D | dcn30_vpg.h | 31 #define DCN30_VPG_FROM_VPG(vpg)\ argument 32 container_of(vpg, struct dcn30_vpg, base) 137 struct vpg base; 144 struct vpg *vpg,
|
| H A D | dcn30_vpg.c | 47 struct vpg *vpg, in vpg3_update_generic_info_packet() argument 52 struct dcn30_vpg *vpg3 = DCN30_VPG_FROM_VPG(vpg); in vpg3_update_generic_info_packet()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dio/dcn314/ |
| H A D | dcn314_dio_stream_encoder.c | 489 struct vpg *vpg, in dcn314_dio_stream_encoder_construct() argument 499 enc1->base.vpg = vpg; in dcn314_dio_stream_encoder_construct() 504 enc1->base.stream_enc_inst = vpg->inst; in dcn314_dio_stream_encoder_construct()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dio/dcn32/ |
| H A D | dcn32_dio_stream_encoder.c | 476 struct vpg *vpg, in dcn32_dio_stream_encoder_construct() argument 486 enc1->base.vpg = vpg; in dcn32_dio_stream_encoder_construct() 491 enc1->base.stream_enc_inst = vpg->inst; in dcn32_dio_stream_encoder_construct()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dio/dcn35/ |
| H A D | dcn35_dio_stream_encoder.c | 503 struct vpg *vpg, in dcn35_dio_stream_encoder_construct() argument 513 enc1->base.vpg = vpg; in dcn35_dio_stream_encoder_construct() 518 enc1->base.stream_enc_inst = vpg->inst; in dcn35_dio_stream_encoder_construct()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
| H A D | dcn316_resource.c | 881 .vpg = true, 1157 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1217 struct vpg *vpg; in dcn316_stream_encoder_create() local 1230 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn316_stream_encoder_create() 1233 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create() 1235 kfree(vpg); in dcn316_stream_encoder_create() 1241 eng_id, vpg, afmt, in dcn316_stream_encoder_create() 1254 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1284 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1286 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-mipi-dsi.c | 262 bool vpg; member 616 if (dsi->vpg_defs.vpg) { in dw_mipi_dsi_video_mode_config() 1105 struct debugfs_entries *vpg = data; in dw_mipi_dsi_debugfs_write() local 1109 if (!vpg) in dw_mipi_dsi_debugfs_write() 1112 dsi = vpg->dsi; in dw_mipi_dsi_debugfs_write() 1114 *vpg->reg = (bool)val; in dw_mipi_dsi_debugfs_write() 1118 if (*vpg->reg) in dw_mipi_dsi_debugfs_write() 1119 mode_cfg |= vpg->mask; in dw_mipi_dsi_debugfs_write() 1121 mode_cfg &= ~vpg->mask; in dw_mipi_dsi_debugfs_write() 1132 if (!vpg) in dw_mipi_dsi_debugfs_show() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn314/ |
| H A D | dcn314_resource.c | 906 .vpg = true, 1221 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1279 struct vpg *vpg; in dcn314_stream_encoder_create() local 1292 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn314_stream_encoder_create() 1295 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create() 1297 kfree(vpg); in dcn314_stream_encoder_create() 1303 eng_id, vpg, afmt, in dcn314_stream_encoder_create() 1315 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1346 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1348 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn35/ |
| H A D | dcn35_resource.c | 746 .vpg = true, 1181 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1268 struct vpg *vpg; in dcn35_stream_encoder_create() local 1281 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn35_stream_encoder_create() 1284 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create() 1286 kfree(vpg); in dcn35_stream_encoder_create() 1300 eng_id, vpg, afmt, in dcn35_stream_encoder_create() 1312 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1342 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1344 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn315/ |
| H A D | dcn315_resource.c | 886 .vpg = true, 1163 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1221 struct vpg *vpg; in dcn315_stream_encoder_create() local 1236 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn315_stream_encoder_create() 1239 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create() 1241 kfree(vpg); in dcn315_stream_encoder_create() 1247 eng_id, vpg, afmt, in dcn315_stream_encoder_create() 1259 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1289 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1291 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| H A D | dcn31_resource.c | 886 .vpg = true, 1165 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1223 struct vpg *vpg; in dcn31_stream_encoder_create() local 1236 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_stream_encoder_create() 1239 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create() 1241 kfree(vpg); in dcn31_stream_encoder_create() 1247 eng_id, vpg, afmt, in dcn31_stream_encoder_create() 1259 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1289 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1291 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn36/ |
| H A D | dcn36_resource.c | 727 .vpg = true, 1162 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1249 struct vpg *vpg; in dcn35_stream_encoder_create() local 1262 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn35_stream_encoder_create() 1265 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create() 1267 kfree(vpg); in dcn35_stream_encoder_create() 1281 eng_id, vpg, afmt, in dcn35_stream_encoder_create() 1293 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1323 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1325 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn351/ |
| H A D | dcn351_resource.c | 726 .vpg = true, 1161 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create() 1248 struct vpg *vpg; in dcn35_stream_encoder_create() local 1261 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn35_stream_encoder_create() 1264 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create() 1266 kfree(vpg); in dcn35_stream_encoder_create() 1280 eng_id, vpg, afmt, in dcn35_stream_encoder_create() 1292 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local 1322 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create() 1324 kfree(vpg); in dcn31_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn321/ |
| H A D | dcn321_resource.c | 1101 static struct vpg *dcn321_vpg_create( in dcn321_vpg_create() 1186 struct vpg *vpg; in dcn321_stream_encoder_create() local 1199 vpg = dcn321_vpg_create(ctx, vpg_inst); in dcn321_stream_encoder_create() 1202 if (!enc1 || !vpg || !afmt) { in dcn321_stream_encoder_create() 1204 kfree(vpg); in dcn321_stream_encoder_create() 1218 eng_id, vpg, afmt, in dcn321_stream_encoder_create() 1230 struct vpg *vpg; in dcn321_hpo_dp_stream_encoder_create() local 1257 vpg = dcn321_vpg_create(ctx, vpg_inst); in dcn321_hpo_dp_stream_encoder_create() 1260 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn321_hpo_dp_stream_encoder_create() 1262 kfree(vpg); in dcn321_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn401/ |
| H A D | dcn401_resource.c | 1094 static struct vpg *dcn401_vpg_create( in dcn401_vpg_create() 1178 struct vpg *vpg; in dcn401_stream_encoder_create() local 1191 vpg = dcn401_vpg_create(ctx, vpg_inst); in dcn401_stream_encoder_create() 1196 kfree(vpg); in dcn401_stream_encoder_create() 1209 eng_id, vpg, afmt, in dcn401_stream_encoder_create() 1220 struct vpg *vpg; in dcn401_hpo_dp_stream_encoder_create() local 1247 vpg = dcn401_vpg_create(ctx, vpg_inst); in dcn401_hpo_dp_stream_encoder_create() 1250 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn401_hpo_dp_stream_encoder_create() 1252 kfree(vpg); in dcn401_hpo_dp_stream_encoder_create() 1265 hpo_dp_inst, eng_id, vpg, apg, in dcn401_hpo_dp_stream_encoder_create() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/hwss/dcn31/ |
| H A D | dcn31_hwseq.c | 98 …if (dc->debug.enable_mem_low_power.bits.vpg && dc->res_pool->stream_enc[0]->vpg->funcs->vpg_powerd… in enable_memory_low_power() 101 if (dc->res_pool->stream_enc[i]->vpg) in enable_memory_low_power() 102 dc->res_pool->stream_enc[i]->vpg->funcs->vpg_powerdown(dc->res_pool->stream_enc[i]->vpg); in enable_memory_low_power() 104 …dc->res_pool->hpo_dp_stream_enc[i]->vpg->funcs->vpg_powerdown(dc->res_pool->hpo_dp_stream_enc[i]->… in enable_memory_low_power()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/link/ |
| H A D | link_dpms.c | 2346 struct vpg *vpg = pipe_ctx->stream_res.stream_enc->vpg; in link_set_dpms_off() local 2354 vpg = pipe_ctx->stream_res.hpo_dp_stream_enc->vpg; in link_set_dpms_off() 2438 if (vpg && vpg->funcs->vpg_powerdown) in link_set_dpms_off() 2439 vpg->funcs->vpg_powerdown(vpg); in link_set_dpms_off() 2460 struct vpg *vpg = pipe_ctx->stream_res.stream_enc->vpg; in link_set_dpms_on() local 2470 vpg = pipe_ctx->stream_res.hpo_dp_stream_enc->vpg; in link_set_dpms_on() 2510 if (vpg && vpg->funcs->vpg_poweron) in link_set_dpms_on() 2511 vpg->funcs->vpg_poweron(vpg); in link_set_dpms_on()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dio/dcn401/ |
| H A D | dcn401_dio_stream_encoder.c | 777 struct vpg *vpg, in dcn401_dio_stream_encoder_construct() argument 787 enc1->base.vpg = vpg; in dcn401_dio_stream_encoder_construct() 792 enc1->base.stream_enc_inst = vpg->inst; in dcn401_dio_stream_encoder_construct()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn303/ |
| H A D | dcn303_resource.c | 290 static struct vpg *dcn303_vpg_create(struct dc_context *ctx, uint32_t inst) in dcn303_vpg_create() 381 struct vpg *vpg; in dcn303_stream_encoder_create() local 394 vpg = dcn303_vpg_create(ctx, vpg_inst); in dcn303_stream_encoder_create() 397 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create() 399 kfree(vpg); in dcn303_stream_encoder_create() 404 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create() 938 if (pool->stream_enc[i]->vpg != NULL) { in dcn303_resource_destruct() 939 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn303_resource_destruct() 940 pool->stream_enc[i]->vpg = NULL; in dcn303_resource_destruct()
|