Home
last modified time | relevance | path

Searched refs:vpg (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dvpg.h31 struct vpg;
35 struct vpg *vpg,
41 struct vpg *vpg);
44 struct vpg *vpg);
47 struct vpg { struct
/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_vpg.c52 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 Ddcn31_vpg.h31 #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/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_vpg.h31 #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 Ddcn30_vpg.c47 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/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c881 .vpg = true,
1158 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1218 struct vpg *vpg; in dcn316_stream_encoder_create() local
1231 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn316_stream_encoder_create()
1234 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create()
1236 kfree(vpg); in dcn316_stream_encoder_create()
1242 eng_id, vpg, afmt, in dcn316_stream_encoder_create()
1255 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1282 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1285 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-mipi-dsi.c263 bool vpg; member
617 if (dsi->vpg_defs.vpg) { in dw_mipi_dsi_video_mode_config()
1107 struct debugfs_entries *vpg = data; in dw_mipi_dsi_debugfs_write() local
1111 if (!vpg) in dw_mipi_dsi_debugfs_write()
1114 dsi = vpg->dsi; in dw_mipi_dsi_debugfs_write()
1116 *vpg->reg = (bool)val; in dw_mipi_dsi_debugfs_write()
1120 if (*vpg->reg) in dw_mipi_dsi_debugfs_write()
1121 mode_cfg |= vpg->mask; in dw_mipi_dsi_debugfs_write()
1123 mode_cfg &= ~vpg->mask; in dw_mipi_dsi_debugfs_write()
1132 struct debugfs_entries *vpg = data; in dw_mipi_dsi_debugfs_show() local
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c906 .vpg = true,
1224 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1282 struct vpg *vpg; in dcn314_stream_encoder_create() local
1295 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn314_stream_encoder_create()
1298 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create()
1300 kfree(vpg); in dcn314_stream_encoder_create()
1306 eng_id, vpg, afmt, in dcn314_stream_encoder_create()
1318 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1346 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1349 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c886 .vpg = true,
1165 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1223 struct vpg *vpg; in dcn315_stream_encoder_create() local
1238 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn315_stream_encoder_create()
1241 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create()
1243 kfree(vpg); in dcn315_stream_encoder_create()
1249 eng_id, vpg, afmt, in dcn315_stream_encoder_create()
1261 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1288 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1291 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c886 .vpg = true,
1166 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1224 struct vpg *vpg; in dcn31_stream_encoder_create() local
1237 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_stream_encoder_create()
1240 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create()
1242 kfree(vpg); in dcn31_stream_encoder_create()
1248 eng_id, vpg, afmt, in dcn31_stream_encoder_create()
1260 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1287 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1290 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/
H A Ddcn36_resource.c733 .vpg = true,
1170 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1257 struct vpg *vpg; in dcn35_stream_encoder_create() local
1270 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn35_stream_encoder_create()
1273 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1275 kfree(vpg); in dcn35_stream_encoder_create()
1289 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1301 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1328 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1331 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/
H A Ddcn35_resource.c746 .vpg = true,
1183 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1270 struct vpg *vpg; in dcn35_stream_encoder_create() local
1283 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn35_stream_encoder_create()
1286 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1288 kfree(vpg); in dcn35_stream_encoder_create()
1302 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1314 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1341 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1344 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/
H A Ddcn351_resource.c726 .vpg = true,
1163 static struct vpg *dcn31_vpg_create( in dcn31_vpg_create()
1250 struct vpg *vpg; in dcn35_stream_encoder_create() local
1263 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn35_stream_encoder_create()
1266 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1268 kfree(vpg); in dcn35_stream_encoder_create()
1282 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1294 struct vpg *vpg; in dcn31_hpo_dp_stream_encoder_create() local
1321 vpg = dcn31_vpg_create(ctx, vpg_inst); in dcn31_hpo_dp_stream_encoder_create()
1324 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn31_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/
H A Ddcn321_resource.c1102 static struct vpg *dcn321_vpg_create( in dcn321_vpg_create()
1187 struct vpg *vpg; in dcn321_stream_encoder_create() local
1200 vpg = dcn321_vpg_create(ctx, vpg_inst); in dcn321_stream_encoder_create()
1203 if (!enc1 || !vpg || !afmt) { in dcn321_stream_encoder_create()
1205 kfree(vpg); in dcn321_stream_encoder_create()
1219 eng_id, vpg, afmt, in dcn321_stream_encoder_create()
1231 struct vpg *vpg; in dcn321_hpo_dp_stream_encoder_create() local
1258 vpg = dcn321_vpg_create(ctx, vpg_inst); in dcn321_hpo_dp_stream_encoder_create()
1261 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn321_hpo_dp_stream_encoder_create()
1263 kfree(vpg); in dcn321_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn401/
H A Ddcn401_resource.c1128 static struct vpg *dcn401_vpg_create( in dcn401_vpg_create()
1212 struct vpg *vpg; in dcn401_stream_encoder_create() local
1225 vpg = dcn401_vpg_create(ctx, vpg_inst); in dcn401_stream_encoder_create()
1228 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn401_stream_encoder_create()
1230 kfree(vpg); in dcn401_stream_encoder_create()
1243 eng_id, vpg, afmt, in dcn401_stream_encoder_create()
1254 struct vpg *vpg; in dcn401_hpo_dp_stream_encoder_create() local
1281 vpg = dcn401_vpg_create(ctx, vpg_inst); in dcn401_hpo_dp_stream_encoder_create()
1284 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn401_hpo_dp_stream_encoder_create()
1286 kfree(vpg); in dcn401_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_dpms.c2314 struct vpg *vpg = pipe_ctx->stream_res.stream_enc->vpg; in link_set_dpms_off() local
2322 vpg = pipe_ctx->stream_res.hpo_dp_stream_enc->vpg; in link_set_dpms_off()
2406 if (vpg && vpg->funcs->vpg_powerdown) in link_set_dpms_off()
2407 vpg->funcs->vpg_powerdown(vpg); in link_set_dpms_off()
2428 struct vpg *vpg = pipe_ctx->stream_res.stream_enc->vpg; in link_set_dpms_on() local
2438 vpg = pipe_ctx->stream_res.hpo_dp_stream_enc->vpg; in link_set_dpms_on()
2480 if (vpg && vpg->funcs->vpg_poweron) in link_set_dpms_on()
2481 vpg->funcs->vpg_poweron(vpg); in link_set_dpms_on()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1121 static struct vpg *dcn32_vpg_create( in dcn32_vpg_create()
1206 struct vpg *vpg; in dcn32_stream_encoder_create() local
1219 vpg = dcn32_vpg_create(ctx, vpg_inst); in dcn32_stream_encoder_create()
1222 if (!enc1 || !vpg || !afmt) { in dcn32_stream_encoder_create()
1224 kfree(vpg); in dcn32_stream_encoder_create()
1238 eng_id, vpg, afmt, in dcn32_stream_encoder_create()
1250 struct vpg *vpg; in dcn32_hpo_dp_stream_encoder_create() local
1277 vpg = dcn32_vpg_create(ctx, vpg_inst); in dcn32_hpo_dp_stream_encoder_create()
1280 if (!hpo_dp_enc31 || !vpg || !apg) { in dcn32_hpo_dp_stream_encoder_create()
1282 kfree(vpg); in dcn32_hpo_dp_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c293 static struct vpg *dcn303_vpg_create(struct dc_context *ctx, uint32_t inst) in dcn303_vpg_create()
384 struct vpg *vpg; in dcn303_stream_encoder_create() local
397 vpg = dcn303_vpg_create(ctx, vpg_inst); in dcn303_stream_encoder_create()
400 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
402 kfree(vpg); in dcn303_stream_encoder_create()
407 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create()
941 if (pool->stream_enc[i]->vpg != NULL) { in dcn303_resource_destruct()
942 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn303_resource_destruct()
943 pool->stream_enc[i]->vpg = NULL; in dcn303_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c300 static struct vpg *dcn302_vpg_create(struct dc_context *ctx, uint32_t inst) in dcn302_vpg_create()
397 struct vpg *vpg; in dcn302_stream_encoder_create() local
410 vpg = dcn302_vpg_create(ctx, vpg_inst); in dcn302_stream_encoder_create()
413 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
415 kfree(vpg); in dcn302_stream_encoder_create()
420 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create()
997 if (pool->stream_enc[i]->vpg != NULL) { in dcn302_resource_destruct()
998 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn302_resource_destruct()
999 pool->stream_enc[i]->vpg = NULL; in dcn302_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn31/
H A Ddcn31_hwseq.c100 …if (dc->debug.enable_mem_low_power.bits.vpg && dc->res_pool->stream_enc[0]->vpg->funcs->vpg_powerd… in enable_memory_low_power()
103 if (dc->res_pool->stream_enc[i]->vpg) in enable_memory_low_power()
104 dc->res_pool->stream_enc[i]->vpg->funcs->vpg_powerdown(dc->res_pool->stream_enc[i]->vpg); in enable_memory_low_power()
106 …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/drivers/gpu/drm/amd/display/dc/resource/dcn301/
H A Ddcn301_resource.c949 static struct vpg *dcn301_vpg_create( in dcn301_vpg_create()
987 struct vpg *vpg; in dcn301_stream_encoder_create() local
1000 vpg = dcn301_vpg_create(ctx, vpg_inst); in dcn301_stream_encoder_create()
1003 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create()
1005 kfree(vpg); in dcn301_stream_encoder_create()
1011 eng_id, vpg, afmt, in dcn301_stream_encoder_create()
1043 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn301_destruct()
1044 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn301_destruct()
1045 pool->base.stream_enc[i]->vpg = NULL; in dcn301_destruct()
/linux/drivers/gpu/drm/amd/display/dc/hpo/dcn31/
H A Ddcn31_hpo_dp_stream_encoder.h238 struct vpg *vpg,
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn32/
H A Ddcn32_dio_stream_encoder.h192 struct vpg *vpg,
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c978 static struct vpg *dcn30_vpg_create( in dcn30_vpg_create()
1016 struct vpg *vpg; in dcn30_stream_encoder_create() local
1029 vpg = dcn30_vpg_create(ctx, vpg_inst); in dcn30_stream_encoder_create()
1032 if (!enc1 || !vpg || !afmt) { in dcn30_stream_encoder_create()
1034 kfree(vpg); in dcn30_stream_encoder_create()
1040 eng_id, vpg, afmt, in dcn30_stream_encoder_create()
1072 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn30_resource_destruct()
1073 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn30_resource_destruct()
1074 pool->base.stream_enc[i]->vpg = NULL; in dcn30_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn35/
H A Ddcn35_dio_stream_encoder.h280 struct vpg *vpg,

12