Home
last modified time | relevance | path

Searched refs:afmt (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_afmt.h30 #define DCN30_AFMT_FROM_AFMT(afmt)\ argument
31 container_of(afmt, struct dcn30_afmt, base)
103 struct afmt;
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);
[all …]
H A Ddcn30_afmt.c48 struct afmt *afmt) in afmt3_setup_hdmi_audio() argument
50 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_setup_hdmi_audio()
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
124 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_se_audio_setup()
142 if (afmt->funcs->afmt_poweron == NULL) in afmt3_se_audio_setup()
147 struct afmt *afmt, in afmt3_audio_mute_control() argument
150 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_audio_mute_control()
151 if (mute && afmt->funcs->afmt_powerdown) in afmt3_audio_mute_control()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_afmt.c57 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()
H A Ddcn31_afmt.h30 #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);
/linux/drivers/gpu/drm/radeon/
H A Devergreen_hdmi.c409 if (!dig || !dig->afmt) in evergreen_hdmi_enable()
416 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
421 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
424 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
427 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
431 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + 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()
439 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable()
450 if (!dig || !dig->afmt) in evergreen_dp_enable()
[all …]
H A Dradeon_audio.c483 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()
577 radeon_encoder->audio->update_acr(encoder, dig->afmt->offset, acr); 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()
607 radeon_encoder->audio->set_color_depth(encoder, dig->afmt->offset, bpc); in radeon_hdmi_set_color_depth()
615 if (!dig || !dig->afmt) in radeon_audio_set_audio_packet()
619 radeon_encoder->audio->set_audio_packet(encoder, dig->afmt->offset); in radeon_audio_set_audio_packet()
[all …]
H A Ddce6_afmt.c118 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()
/linux/sound/soc/intel/catpt/
H A Dpcm.c396 struct catpt_audio_format afmt; in catpt_dai_hw_params()
405 memset(&afmt, 0, sizeof(afmt)); in catpt_dai_hw_params()
406 afmt.sample_rate = params_rate(params); in catpt_dai_hw_params()
407 afmt.bit_depth = params_physical_width(params); in catpt_dai_hw_params()
408 afmt.valid_bit_depth = params_width(params); in catpt_dai_hw_params()
409 afmt.num_channels = params_channels(params); in catpt_dai_hw_params()
410 afmt.channel_config = catpt_get_channel_config(afmt.num_channels); in catpt_dai_hw_params()
411 afmt in catpt_dai_hw_params()
374 struct catpt_audio_format afmt; catpt_dai_hw_params() local
[all...]
H A Dmessages.c43 struct catpt_audio_format *afmt,
71 input.input_format = *afmt; in catpt_ipc_alloc_stream()
48 catpt_ipc_alloc_stream(struct catpt_dev * cdev,enum catpt_path_id path_id,enum catpt_stream_type type,struct catpt_audio_format * afmt,struct catpt_ring_info * rinfo,u8 num_modules,struct catpt_module_entry * modules,struct resource * persistent,struct resource * scratch,struct catpt_stream_info * sinfo) catpt_ipc_alloc_stream() argument
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c350 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create()
413 struct afmt *afmt; in dcn303_stream_encoder_create() local
426 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create()
428 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
431 kfree(afmt); in dcn303_stream_encoder_create()
435 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create()
974 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct()
975 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct()
976 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c360 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create()
426 struct afmt *afmt; in dcn302_stream_encoder_create() local
439 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create()
441 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
444 kfree(afmt); in dcn302_stream_encoder_create()
448 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create()
1030 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct()
1031 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct()
1032 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/
H A Ddcn301_resource.c995 static struct afmt *dcn301_afmt_create( in dcn301_afmt_create()
1017 struct afmt *afmt; in dcn301_stream_encoder_create() local
1030 afmt = dcn301_afmt_create(ctx, afmt_inst); in dcn301_stream_encoder_create()
1032 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create()
1035 kfree(afmt); in dcn301_stream_encoder_create()
1040 eng_id, vpg, afmt, in dcn301_stream_encoder_create()
1076 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct()
1077 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct()
1078 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c923 .afmt = true,
1270 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1312 struct afmt *afmt; in dcn314_stream_encoder_create() local
1325 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn314_stream_encoder_create()
1327 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create()
1330 kfree(afmt); in dcn314_stream_encoder_create()
1335 eng_id, vpg, afmt, in dcn314_stream_encoder_create()
1443 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct()
1444 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct()
1445 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c898 .afmt = true,
1204 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1248 struct afmt *afmt; in dcn316_stream_encoder_create() local
1261 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn316_stream_encoder_create()
1263 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create()
1266 kfree(afmt); in dcn316_stream_encoder_create()
1271 eng_id, vpg, afmt, in dcn316_stream_encoder_create()
1380 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct()
1381 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct()
1382 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/
H A Ddcn351_resource.c741 .afmt = true,
1223 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1281 struct afmt *afmt; in dcn35_stream_encoder_create() local
1294 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1296 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1299 kfree(afmt); in dcn35_stream_encoder_create()
1312 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1435 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn351_resource_destruct()
1436 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn351_resource_destruct()
1437 pool->base.stream_enc[i]->afmt = NULL; in dcn351_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/
H A Ddcn35_resource.c761 .afmt = true,
1243 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1301 struct afmt *afmt; in dcn35_stream_encoder_create() local
1314 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1316 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1319 kfree(afmt); in dcn35_stream_encoder_create()
1332 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1455 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn35_resource_destruct()
1456 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn35_resource_destruct()
1457 pool->base.stream_enc[i]->afmt = NULL; in dcn35_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c903 .afmt = true,
1212 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1254 struct afmt *afmt; in dcn31_stream_encoder_create() local
1267 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_stream_encoder_create()
1269 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create()
1272 kfree(afmt); in dcn31_stream_encoder_create()
1277 eng_id, vpg, afmt, in dcn31_stream_encoder_create()
1384 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct()
1385 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct()
1386 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c903 .afmt = true,
1211 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1253 struct afmt *afmt; in dcn315_stream_encoder_create() local
1268 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn315_stream_encoder_create()
1270 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create()
1273 kfree(afmt); in dcn315_stream_encoder_create()
1278 eng_id, vpg, afmt, in dcn315_stream_encoder_create()
1385 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct()
1386 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct()
1387 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/
H A Ddcn36_resource.c748 .afmt = true,
1230 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1288 struct afmt *afmt; in dcn35_stream_encoder_create() local
1301 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1303 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1306 kfree(afmt); in dcn35_stream_encoder_create()
1319 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1442 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn36_resource_destruct()
1443 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn36_resource_destruct()
1444 pool->base.stream_enc[i]->afmt = NULL; in dcn36_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/
H A Ddcn321_resource.c1162 static struct afmt *dcn321_afmt_create( in dcn321_afmt_create()
1218 struct afmt *afmt; in dcn321_stream_encoder_create() local
1231 afmt = dcn321_afmt_create(ctx, afmt_inst); in dcn321_stream_encoder_create()
1233 if (!enc1 || !vpg || !afmt) { in dcn321_stream_encoder_create()
1236 kfree(afmt); in dcn321_stream_encoder_create()
1249 eng_id, vpg, afmt, in dcn321_stream_encoder_create()
1372 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct()
1373 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct()
1374 pool->base.stream_enc[i]->afmt = NULL; in dcn321_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn32/
H A Ddcn32_dio_stream_encoder.h193 struct afmt *afmt,
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c1024 static struct afmt *dcn30_afmt_create( in dcn30_afmt_create()
1046 struct afmt *afmt; in dcn30_stream_encoder_create() local
1059 afmt = dcn30_afmt_create(ctx, afmt_inst); in dcn30_stream_encoder_create()
1061 if (!enc1 || !vpg || !afmt) { in dcn30_stream_encoder_create()
1064 kfree(afmt); in dcn30_stream_encoder_create()
1069 eng_id, vpg, afmt, in dcn30_stream_encoder_create()
1105 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn30_resource_destruct()
1106 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn30_resource_destruct()
1107 pool->base.stream_enc[i]->afmt = NULL; in dcn30_resource_destruct()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_mode.h317 struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS]; member
535 struct amdgpu_afmt *afmt; member
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1186 static struct afmt *dcn32_afmt_create( in dcn32_afmt_create()
1242 struct afmt *afmt; in dcn32_stream_encoder_create() local
1255 afmt = dcn32_afmt_create(ctx, afmt_inst); in dcn32_stream_encoder_create()
1257 if (!enc1 || !vpg || !afmt) { in dcn32_stream_encoder_create()
1260 kfree(afmt); in dcn32_stream_encoder_create()
1273 eng_id, vpg, afmt, in dcn32_stream_encoder_create()
1396 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn32_resource_destruct()
1397 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn32_resource_destruct()
1398 pool->base.stream_enc[i]->afmt = NULL; in dcn32_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn35/
H A Ddcn35_dio_stream_encoder.h281 struct afmt *afmt,

12