Home
last modified time | relevance | path

Searched refs:afmt (Results 1 – 25 of 39) 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()
H A Dradeon_display.c1509 rdev->mode_info.afmt[i] = NULL; in radeon_afmt_init()
1542 rdev->mode_info.afmt[i] = kzalloc_obj(struct radeon_afmt); in radeon_afmt_init()
1543 if (rdev->mode_info.afmt[i]) { in radeon_afmt_init()
1544 rdev->mode_info.afmt[i]->offset = eg_offsets[i]; in radeon_afmt_init()
1545 rdev->mode_info.afmt[i]->id = i; in radeon_afmt_init()
1550 rdev->mode_info.afmt[0] = kzalloc_obj(struct radeon_afmt); in radeon_afmt_init()
1551 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init()
1552 rdev->mode_info.afmt[0]->offset = DCE3_HDMI_OFFSET0; in radeon_afmt_init()
1553 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init()
1555 rdev->mode_info.afmt[1] = kzalloc_obj(struct radeon_afmt); in radeon_afmt_init()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Ddce_v10_0.c1216 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin()
1219 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin()
1220 tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); in dce_v10_0_afmt_audio_select_pin()
1221 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin()
1237 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields()
1267 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields()
1284 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation()
1308 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation()
1321 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation()
1354 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_sad_regs()
[all …]
H A Ddce_v6_0.c1188 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin()
1191 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce_v6_0_audio_select_pin()
1193 dig->afmt->pin->id)); in dce_v6_0_audio_select_pin()
1237 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_latency_fields()
1275 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1296 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1330 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_write_sad_regs()
1333 offset = dig->afmt->pin->offset; in dce_v6_0_audio_write_sad_regs()
1470 tmp = RREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_vbi_packet()
1474 WREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_vbi_packet()
[all …]
H A Ddce_v8_0.c1171 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin()
1174 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin()
1177 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin()
1192 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields()
1195 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields()
1255 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation()
1258 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_speaker_allocation()
1323 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs()
1326 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_sad_regs()
1464 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_ACR()
[all …]
/linux/sound/soc/intel/catpt/
H A Dpcm.c374 struct catpt_audio_format afmt; in catpt_dai_hw_params() local
383 memset(&afmt, 0, sizeof(afmt)); in catpt_dai_hw_params()
384 afmt.sample_rate = params_rate(params); in catpt_dai_hw_params()
385 afmt.bit_depth = params_physical_width(params); in catpt_dai_hw_params()
386 afmt.valid_bit_depth = params_width(params); in catpt_dai_hw_params()
387 afmt.num_channels = params_channels(params); in catpt_dai_hw_params()
388 afmt.channel_config = catpt_get_channel_config(afmt.num_channels); in catpt_dai_hw_params()
389 afmt.channel_map = catpt_get_channel_map(afmt.channel_config); in catpt_dai_hw_params()
390 afmt.interleaving = CATPT_INTERLEAVING_PER_CHANNEL; in catpt_dai_hw_params()
404 &afmt, &rinfo, in catpt_dai_hw_params()
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.c322 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create()
385 struct afmt *afmt; in dcn303_stream_encoder_create() local
398 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create()
400 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
403 kfree(afmt); 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()
945 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct()
946 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct()
947 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c332 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create()
398 struct afmt *afmt; in dcn302_stream_encoder_create() local
411 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create()
413 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
416 kfree(afmt); 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()
1001 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct()
1002 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct()
1003 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/
H A Ddcn301_resource.c966 static struct afmt *dcn301_afmt_create( in dcn301_afmt_create()
988 struct afmt *afmt; in dcn301_stream_encoder_create() local
1001 afmt = dcn301_afmt_create(ctx, afmt_inst); in dcn301_stream_encoder_create()
1003 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create()
1006 kfree(afmt); in dcn301_stream_encoder_create()
1011 eng_id, vpg, afmt, in dcn301_stream_encoder_create()
1047 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct()
1048 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct()
1049 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c882 .afmt = true,
1175 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1219 struct afmt *afmt; in dcn316_stream_encoder_create() local
1232 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn316_stream_encoder_create()
1234 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create()
1237 kfree(afmt); in dcn316_stream_encoder_create()
1242 eng_id, vpg, afmt, in dcn316_stream_encoder_create()
1351 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct()
1352 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct()
1353 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c907 .afmt = true,
1241 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1283 struct afmt *afmt; in dcn314_stream_encoder_create() local
1296 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn314_stream_encoder_create()
1298 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create()
1301 kfree(afmt); in dcn314_stream_encoder_create()
1306 eng_id, vpg, afmt, in dcn314_stream_encoder_create()
1414 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct()
1415 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct()
1416 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c887 .afmt = true,
1182 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1224 struct afmt *afmt; in dcn315_stream_encoder_create() local
1239 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn315_stream_encoder_create()
1241 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create()
1244 kfree(afmt); in dcn315_stream_encoder_create()
1249 eng_id, vpg, afmt, in dcn315_stream_encoder_create()
1356 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct()
1357 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct()
1358 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c887 .afmt = true,
1183 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1225 struct afmt *afmt; in dcn31_stream_encoder_create() local
1238 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_stream_encoder_create()
1240 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create()
1243 kfree(afmt); in dcn31_stream_encoder_create()
1248 eng_id, vpg, afmt, in dcn31_stream_encoder_create()
1355 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct()
1356 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct()
1357 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/
H A Ddcn36_resource.c734 .afmt = true,
1200 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1258 struct afmt *afmt; in dcn35_stream_encoder_create() local
1271 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1273 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1276 kfree(afmt); in dcn35_stream_encoder_create()
1289 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1412 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn36_resource_destruct()
1413 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn36_resource_destruct()
1414 pool->base.stream_enc[i]->afmt = NULL; in dcn36_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/
H A Ddcn35_resource.c747 .afmt = true,
1213 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1271 struct afmt *afmt; in dcn35_stream_encoder_create() local
1284 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1286 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1289 kfree(afmt); in dcn35_stream_encoder_create()
1302 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1425 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn35_resource_destruct()
1426 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn35_resource_destruct()
1427 pool->base.stream_enc[i]->afmt = NULL; in dcn35_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/
H A Ddcn351_resource.c727 .afmt = true,
1193 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1251 struct afmt *afmt; in dcn35_stream_encoder_create() local
1264 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1266 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1269 kfree(afmt); in dcn35_stream_encoder_create()
1282 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1405 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn351_resource_destruct()
1406 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn351_resource_destruct()
1407 pool->base.stream_enc[i]->afmt = NULL; in dcn351_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/
H A Ddcn321_resource.c1132 static struct afmt *dcn321_afmt_create( in dcn321_afmt_create()
1188 struct afmt *afmt; in dcn321_stream_encoder_create() local
1201 afmt = dcn321_afmt_create(ctx, afmt_inst); in dcn321_stream_encoder_create()
1203 if (!enc1 || !vpg || !afmt) { in dcn321_stream_encoder_create()
1206 kfree(afmt); in dcn321_stream_encoder_create()
1219 eng_id, vpg, afmt, in dcn321_stream_encoder_create()
1342 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct()
1343 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct()
1344 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,

12