| /drivers/gpu/drm/amd/display/dc/dcn30/ |
| A D | dcn30_afmt.h | 108 struct afmt *afmt); 111 struct afmt *afmt, 116 struct afmt *afmt, 120 struct afmt *afmt); 123 struct afmt *afmt); 126 struct afmt *afmt); 129 struct afmt *afmt); 146 struct afmt *afmt); 149 struct afmt *afmt, 154 struct afmt *afmt, [all …]
|
| A D | dcn30_afmt.c | 48 struct afmt *afmt) in afmt3_setup_hdmi_audio() argument 52 if (afmt->funcs->afmt_poweron) in afmt3_setup_hdmi_audio() 53 afmt->funcs->afmt_poweron(afmt); in afmt3_setup_hdmi_audio() 120 struct afmt *afmt, in afmt3_se_audio_setup() argument 147 struct afmt *afmt, in afmt3_audio_mute_control() argument 152 afmt->funcs->afmt_powerdown(afmt); in afmt3_audio_mute_control() 154 afmt->funcs->afmt_poweron(afmt); in afmt3_audio_mute_control() 160 struct afmt *afmt) in afmt3_audio_info_immediate_update() argument 169 struct afmt *afmt) in afmt3_setup_dp_audio() argument 173 if (afmt->funcs->afmt_poweron) in afmt3_setup_dp_audio() [all …]
|
| /drivers/gpu/drm/amd/display/dc/dcn31/ |
| A D | dcn31_afmt.c | 57 void afmt31_powerdown(struct afmt *afmt) in afmt31_powerdown() argument 59 struct dcn31_afmt *afmt31 = DCN31_AFMT_FROM_AFMT(afmt); in afmt31_powerdown() 61 if (afmt->ctx->dc->debug.enable_mem_low_power.bits.afmt == false) in afmt31_powerdown() 67 void afmt31_poweron(struct afmt *afmt) in afmt31_poweron() argument 69 struct dcn31_afmt *afmt31 = DCN31_AFMT_FROM_AFMT(afmt); in afmt31_poweron() 71 if (afmt->ctx->dc->debug.enable_mem_low_power.bits.afmt == false) in afmt31_poweron()
|
| A D | dcn31_afmt.h | 30 #define DCN31_AFMT_FROM_AFMT(afmt)\ argument 31 container_of(afmt, struct dcn31_afmt, base) 107 struct afmt base; 114 struct afmt *afmt); 117 struct afmt *afmt);
|
| /drivers/gpu/drm/radeon/ |
| A D | evergreen_hdmi.c | 409 if (!dig || !dig->afmt) in evergreen_hdmi_enable() 416 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 424 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 433 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, 0); in evergreen_hdmi_enable() 436 dig->afmt->enabled = enable; in evergreen_hdmi_enable() 450 if (!dig || !dig->afmt) in evergreen_dp_enable() 459 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_dp_enable() 462 WREG32(EVERGREEN_DP_SEC_TIMESTAMP + dig->afmt->offset, in evergreen_dp_enable() 478 WREG32(EVERGREEN_DP_SEC_CNTL + dig->afmt->offset, in evergreen_dp_enable() 484 WREG32(EVERGREEN_DP_SEC_CNTL + dig->afmt->offset, 0); in evergreen_dp_enable() [all …]
|
| A D | r600_hdmi.c | 251 uint32_t offset = dig->afmt->offset; in r600_hdmi_update_audio_infoframe() 269 uint32_t offset = dig->afmt->offset; in r600_hdmi_is_audio_buffer_filled() 283 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_buffer_status_changed() 288 dig->afmt->last_buffer_filled_status = status; in r600_hdmi_buffer_status_changed() 403 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_update_audio_settings() 405 offset = dig->afmt->offset; in r600_hdmi_update_audio_settings() 456 if (!dig || !dig->afmt) in r600_hdmi_enable() 497 WREG32(HDMI0_CONTROL + dig->afmt->offset, hdmi); in r600_hdmi_enable() 504 radeon_irq_kms_enable_afmt(rdev, dig->afmt->id); in r600_hdmi_enable() 506 radeon_irq_kms_disable_afmt(rdev, dig->afmt->id); in r600_hdmi_enable() [all …]
|
| A D | radeon_audio.c | 483 if (dig && dig->afmt && radeon_encoder->audio && in radeon_audio_set_avi_packet() 485 radeon_encoder->audio->set_avi_packet(rdev, dig->afmt->offset, in radeon_audio_set_avi_packet() 573 if (!dig || !dig->afmt) in radeon_audio_update_acr() 585 if (!dig || !dig->afmt) in radeon_audio_set_vbi_packet() 589 radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); in radeon_audio_set_vbi_packet() 598 if (!dig || !dig->afmt) in radeon_hdmi_set_color_depth() 615 if (!dig || !dig->afmt) in radeon_audio_set_audio_packet() 627 if (!dig || !dig->afmt) in radeon_audio_set_mute() 631 radeon_encoder->audio->set_mute(encoder, dig->afmt->offset, mute); in radeon_audio_set_mute() 644 if (!dig || !dig->afmt) in radeon_audio_hdmi_mode_set() [all …]
|
| A D | dce6_afmt.c | 118 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin() 121 WREG32(AFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce6_afmt_select_pin() 134 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields() 162 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_hdmi_write_speaker_allocation() 187 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_dp_write_speaker_allocation() 226 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_sad_regs()
|
| A D | radeon_display.c | 1499 rdev->mode_info.afmt[i] = NULL; in radeon_afmt_init() 1533 if (rdev->mode_info.afmt[i]) { in radeon_afmt_init() 1541 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init() 1543 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init() 1546 if (rdev->mode_info.afmt[1]) { in radeon_afmt_init() 1548 rdev->mode_info.afmt[1]->id = 1; in radeon_afmt_init() 1553 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init() 1555 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init() 1560 if (rdev->mode_info.afmt[1]) { in radeon_afmt_init() 1573 kfree(rdev->mode_info.afmt[i]); in radeon_afmt_fini() [all …]
|
| A D | radeon_irq_kms.c | 138 rdev->irq.afmt[i] = false; in radeon_driver_irq_preinstall_kms() 192 rdev->irq.afmt[i] = false; in radeon_driver_irq_uninstall_kms() 508 rdev->irq.afmt[block] = true; in radeon_irq_kms_enable_afmt() 530 rdev->irq.afmt[block] = false; in radeon_irq_kms_disable_afmt()
|
| /drivers/gpu/drm/amd/display/dc/dio/dcn30/ |
| A D | dcn30_dio_stream_encoder.c | 699 ASSERT (enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute() 700 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute() 714 ASSERT (enc->afmt); in enc3_audio_mute_control() 715 enc->afmt->funcs->audio_mute_control(enc->afmt, mute); in enc3_audio_mute_control() 723 ASSERT (enc->afmt); in enc3_se_dp_audio_setup() 724 enc->afmt->funcs->se_audio_setup(enc->afmt, az_inst, info); in enc3_se_dp_audio_setup() 746 enc->afmt->funcs->setup_dp_audio(enc->afmt); in enc3_se_setup_dp_audio() 767 enc->afmt->funcs->setup_hdmi_audio(enc->afmt); in enc3_se_setup_hdmi_audio() 824 enc->afmt->funcs->se_audio_setup(enc->afmt, az_inst, info); in enc3_se_hdmi_audio_setup() 883 struct afmt *afmt, in dcn30_dio_stream_encoder_construct() argument [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | dce_v10_0.c | 1217 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin() 1238 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields() 1285 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation() 1355 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_sad_regs() 1548 if (!dig || !dig->afmt) in dce_v10_0_audio_set_dto() 1581 if (!dig || !dig->afmt) in dce_v10_0_afmt_setmode() 1585 if (!dig->afmt->enabled) in dce_v10_0_afmt_setmode() 1755 if (!dig || !dig->afmt) in dce_v10_0_afmt_enable() 1766 dig->afmt->pin = NULL; in dce_v10_0_afmt_enable() 1769 dig->afmt->enabled = enable; in dce_v10_0_afmt_enable() [all …]
|
| A D | dce_v6_0.c | 1189 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin() 1331 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_write_sad_regs() 1334 offset = dig->afmt->pin->offset; in dce_v6_0_audio_write_sad_regs() 1733 if (!dig || !dig->afmt) in dce_v6_0_afmt_setmode() 1750 if (!dig->afmt->enabled) in dce_v6_0_afmt_setmode() 1754 if (!dig->afmt->pin) in dce_v6_0_afmt_setmode() 1797 if (!dig || !dig->afmt) in dce_v6_0_afmt_enable() 1809 dig->afmt->pin = NULL; in dce_v6_0_afmt_enable() 1812 dig->afmt->enabled = enable; in dce_v6_0_afmt_enable() 1828 if (adev->mode_info.afmt[i]) { in dce_v6_0_afmt_init() [all …]
|
| A D | dce_v11_0.c | 1249 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin() 1270 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields() 1317 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_speaker_allocation() 1387 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_sad_regs() 1597 if (!dig || !dig->afmt) in dce_v11_0_audio_set_dto() 1630 if (!dig || !dig->afmt) in dce_v11_0_afmt_setmode() 1634 if (!dig->afmt->enabled) in dce_v11_0_afmt_setmode() 1804 if (!dig || !dig->afmt) in dce_v11_0_afmt_enable() 1815 dig->afmt->pin = NULL; in dce_v11_0_afmt_enable() 1818 dig->afmt->enabled = enable; in dce_v11_0_afmt_enable() [all …]
|
| A D | dce_v8_0.c | 1172 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin() 1175 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin() 1193 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields() 1256 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation() 1324 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs() 1516 if (!dig || !dig->afmt) in dce_v8_0_audio_set_dto() 1546 if (!dig || !dig->afmt) in dce_v8_0_afmt_setmode() 1550 if (!dig->afmt->enabled) in dce_v8_0_afmt_setmode() 1702 if (!dig || !dig->afmt) in dce_v8_0_afmt_enable() 1713 dig->afmt->pin = NULL; in dce_v8_0_afmt_enable() [all …]
|
| /drivers/gpu/drm/amd/display/dc/dio/dcn314/ |
| A D | dcn314_dio_stream_encoder.c | 264 ASSERT(enc->afmt); in enc314_stream_encoder_hdmi_set_stream_attribute() 265 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc314_stream_encoder_hdmi_set_stream_attribute() 490 struct afmt *afmt, in dcn314_dio_stream_encoder_construct() argument 500 enc1->base.afmt = afmt; in dcn314_dio_stream_encoder_construct()
|
| /drivers/gpu/drm/amd/display/dc/dio/dcn35/ |
| A D | dcn35_dio_stream_encoder.c | 210 ASSERT(enc->afmt); in enc35_stream_encoder_hdmi_set_stream_attribute() 211 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc35_stream_encoder_hdmi_set_stream_attribute() 504 struct afmt *afmt, in dcn35_dio_stream_encoder_construct() argument 514 enc1->base.afmt = afmt; in dcn35_dio_stream_encoder_construct()
|
| /drivers/gpu/drm/amd/display/dc/dio/dcn32/ |
| A D | dcn32_dio_stream_encoder.c | 222 ASSERT(enc->afmt); in enc32_stream_encoder_hdmi_set_stream_attribute() 223 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc32_stream_encoder_hdmi_set_stream_attribute() 477 struct afmt *afmt, in dcn32_dio_stream_encoder_construct() argument 487 enc1->base.afmt = afmt; in dcn32_dio_stream_encoder_construct()
|
| /drivers/gpu/drm/amd/display/dc/dio/dcn401/ |
| A D | dcn401_dio_stream_encoder.c | 221 ASSERT(enc->afmt); in enc401_stream_encoder_hdmi_set_stream_attribute() 222 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc401_stream_encoder_hdmi_set_stream_attribute() 778 struct afmt *afmt, in dcn401_dio_stream_encoder_construct() argument 788 enc1->base.afmt = afmt; in dcn401_dio_stream_encoder_construct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dcn302/ |
| A D | dcn302_resource.c | 328 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create() 394 struct afmt *afmt; in dcn302_stream_encoder_create() local 407 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create() 409 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create() 412 kfree(afmt); in dcn302_stream_encoder_create() 416 …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]->afmt != NULL) { in dcn302_resource_destruct() 998 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct() 999 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dcn303/ |
| A D | dcn303_resource.c | 319 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create() 382 struct afmt *afmt; in dcn303_stream_encoder_create() local 395 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create() 397 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create() 400 kfree(afmt); 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() 942 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct() 943 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct() 944 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dcn301/ |
| A D | dcn301_resource.c | 965 static struct afmt *dcn301_afmt_create( in dcn301_afmt_create() 987 struct afmt *afmt; in dcn301_stream_encoder_create() local 1000 afmt = dcn301_afmt_create(ctx, afmt_inst); in dcn301_stream_encoder_create() 1002 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create() 1005 kfree(afmt); in dcn301_stream_encoder_create() 1010 eng_id, vpg, afmt, in dcn301_stream_encoder_create() 1046 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct() 1047 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct() 1048 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
| A D | dcn316_resource.c | 882 .afmt = true, 1174 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create() 1218 struct afmt *afmt; in dcn316_stream_encoder_create() local 1231 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn316_stream_encoder_create() 1233 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create() 1236 kfree(afmt); in dcn316_stream_encoder_create() 1241 eng_id, vpg, afmt, in dcn316_stream_encoder_create() 1350 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct() 1351 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct() 1352 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dcn314/ |
| A D | dcn314_resource.c | 907 .afmt = true, 1239 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create() 1281 struct afmt *afmt; in dcn314_stream_encoder_create() local 1294 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn314_stream_encoder_create() 1296 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create() 1299 kfree(afmt); in dcn314_stream_encoder_create() 1304 eng_id, vpg, afmt, in dcn314_stream_encoder_create() 1412 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct() 1413 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct() 1414 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| A D | dcn31_resource.c | 887 .afmt = true, 1182 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create() 1224 struct afmt *afmt; in dcn31_stream_encoder_create() local 1237 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_stream_encoder_create() 1239 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create() 1242 kfree(afmt); in dcn31_stream_encoder_create() 1247 eng_id, vpg, afmt, in dcn31_stream_encoder_create() 1354 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct() 1355 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct() 1356 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct()
|