Home
last modified time | relevance | path

Searched refs:afmt (Results 1 – 25 of 32) 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 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/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c355 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create()
418 struct afmt *afmt; in dcn303_stream_encoder_create() local
431 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create()
433 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
436 kfree(afmt); in dcn303_stream_encoder_create()
440 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create()
470 struct afmt *afmt; in dcn303_hpo_frl_stream_encoder_create() local
484 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_hpo_frl_stream_encoder_create()
486 if (!hpo_enc3 || !vpg || !afmt) { in dcn303_hpo_frl_stream_encoder_create()
489 kfree(afmt); in dcn303_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c365 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create()
431 struct afmt *afmt; in dcn302_stream_encoder_create() local
444 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create()
446 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
449 kfree(afmt); in dcn302_stream_encoder_create()
453 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create()
483 struct afmt *afmt; in dcn302_hpo_frl_stream_encoder_create() local
497 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_hpo_frl_stream_encoder_create()
499 if (!hpo_enc3 || !vpg || !afmt) { in dcn302_hpo_frl_stream_encoder_create()
502 kfree(afmt); in dcn302_hpo_frl_stream_encoder_create()
[all …]
/linux/sound/soc/intel/catpt/
H A Dpcm.c392 struct catpt_audio_format afmt; in catpt_dai_hw_params()
401 memset(&afmt, 0, sizeof(afmt)); in catpt_dai_hw_params()
402 afmt.sample_rate = params_rate(params); in catpt_dai_hw_params()
403 afmt.bit_depth = params_physical_width(params); in catpt_dai_hw_params()
404 afmt.valid_bit_depth = params_width(params); in catpt_dai_hw_params()
405 afmt.num_channels = params_channels(params); in catpt_dai_hw_params()
406 afmt.channel_config = catpt_get_channel_config(afmt.num_channels); in catpt_dai_hw_params()
407 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/dcn316/
H A Ddcn316_resource.c942 .afmt = true,
1251 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1295 struct afmt *afmt; in dcn316_stream_encoder_create() local
1308 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn316_stream_encoder_create()
1310 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create()
1313 kfree(afmt); in dcn316_stream_encoder_create()
1318 eng_id, vpg, afmt, in dcn316_stream_encoder_create()
1329 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1345 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1347 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c967 .afmt = true,
1316 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1358 struct afmt *afmt; in dcn314_stream_encoder_create() local
1371 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn314_stream_encoder_create()
1373 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create()
1376 kfree(afmt); in dcn314_stream_encoder_create()
1381 eng_id, vpg, afmt, in dcn314_stream_encoder_create()
1392 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1409 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1411 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/
H A Ddcn36_resource.c786 .afmt = true,
1269 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1327 struct afmt *afmt; in dcn35_stream_encoder_create() local
1340 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1342 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1345 kfree(afmt); in dcn35_stream_encoder_create()
1358 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1371 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1390 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1392 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c947 .afmt = true,
1259 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1301 struct afmt *afmt; in dcn31_stream_encoder_create() local
1314 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_stream_encoder_create()
1316 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create()
1319 kfree(afmt); in dcn31_stream_encoder_create()
1324 eng_id, vpg, afmt, in dcn31_stream_encoder_create()
1335 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1351 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1353 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/
H A Ddcn35_resource.c799 .afmt = true,
1282 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1340 struct afmt *afmt; in dcn35_stream_encoder_create() local
1353 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1355 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1358 kfree(afmt); in dcn35_stream_encoder_create()
1371 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1384 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1403 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1405 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c947 .afmt = true,
1258 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1300 struct afmt *afmt; in dcn315_stream_encoder_create() local
1315 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn315_stream_encoder_create()
1317 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create()
1320 kfree(afmt); in dcn315_stream_encoder_create()
1325 eng_id, vpg, afmt, in dcn315_stream_encoder_create()
1336 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1352 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1354 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/
H A Ddcn351_resource.c779 .afmt = true,
1262 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1320 struct afmt *afmt; in dcn35_stream_encoder_create() local
1333 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1335 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1338 kfree(afmt); in dcn35_stream_encoder_create()
1351 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1364 struct afmt *afmt; in dcn31_hpo_frl_stream_encoder_create() local
1383 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_hpo_frl_stream_encoder_create()
1385 if (!hpo_enc3 || !vpg || !afmt) { in dcn31_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/
H A Ddcn321_resource.c1200 static struct afmt *dcn321_afmt_create( in dcn321_afmt_create()
1256 struct afmt *afmt; in dcn321_stream_encoder_create() local
1269 afmt = dcn321_afmt_create(ctx, afmt_inst); in dcn321_stream_encoder_create()
1271 if (!enc1 || !vpg || !afmt) { in dcn321_stream_encoder_create()
1274 kfree(afmt); in dcn321_stream_encoder_create()
1287 eng_id, vpg, afmt, in dcn321_stream_encoder_create()
1298 struct afmt *afmt; in dcn321_hpo_frl_stream_encoder_create() local
1319 afmt = dcn321_afmt_create(ctx, afmt_inst); in dcn321_hpo_frl_stream_encoder_create()
1321 if (!hpo_enc3 || !vpg || !afmt) { in dcn321_hpo_frl_stream_encoder_create()
1324 kfree(afmt); in dcn321_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn401/
H A Ddcn401_resource.c1211 static struct afmt *dcn401_afmt_create( in dcn401_afmt_create()
1266 struct afmt *afmt; in dcn401_stream_encoder_create() local
1279 afmt = dcn401_afmt_create(ctx, afmt_inst); in dcn401_stream_encoder_create()
1281 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn401_stream_encoder_create()
1284 kfree(afmt); in dcn401_stream_encoder_create()
1296 eng_id, vpg, afmt, in dcn401_stream_encoder_create()
1308 struct afmt *afmt; in dcn401_hpo_frl_stream_encoder_create() local
1327 afmt = dcn401_afmt_create(ctx, afmt_inst); in dcn401_hpo_frl_stream_encoder_create()
1329 if (!hpo_enc401 || !vpg || !afmt) { in dcn401_hpo_frl_stream_encoder_create()
1332 kfree(afmt); in dcn401_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c1068 static struct afmt *dcn30_afmt_create( in dcn30_afmt_create()
1090 struct afmt *afmt; in dcn30_stream_encoder_create() local
1103 afmt = dcn30_afmt_create(ctx, afmt_inst); in dcn30_stream_encoder_create()
1105 if (!enc1 || !vpg || !afmt) { in dcn30_stream_encoder_create()
1108 kfree(afmt); in dcn30_stream_encoder_create()
1113 eng_id, vpg, afmt, in dcn30_stream_encoder_create()
1124 struct afmt *afmt; in dcn30_hpo_frl_stream_encoder_create() local
1140 afmt = dcn30_afmt_create(ctx, afmt_inst); in dcn30_hpo_frl_stream_encoder_create()
1142 if (!hpo_enc3 || !vpg || !afmt) { in dcn30_hpo_frl_stream_encoder_create()
1145 kfree(afmt); in dcn30_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1225 static struct afmt *dcn32_afmt_create( in dcn32_afmt_create()
1281 struct afmt *afmt; in dcn32_stream_encoder_create() local
1294 afmt = dcn32_afmt_create(ctx, afmt_inst); in dcn32_stream_encoder_create()
1296 if (!enc1 || !vpg || !afmt) { in dcn32_stream_encoder_create()
1299 kfree(afmt); in dcn32_stream_encoder_create()
1312 eng_id, vpg, afmt, in dcn32_stream_encoder_create()
1323 struct afmt *afmt; in dcn32_hpo_frl_stream_encoder_create() local
1344 afmt = dcn32_afmt_create(ctx, afmt_inst); in dcn32_hpo_frl_stream_encoder_create()
1346 if (!hpo_enc3 || !vpg || !afmt) { in dcn32_hpo_frl_stream_encoder_create()
1349 kfree(afmt); in dcn32_hpo_frl_stream_encoder_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn32/
H A Ddcn32_dio_stream_encoder.h193 struct afmt *afmt,
/linux/sound/soc/codecs/
H A Dpcm512x.c1364 int afmt; in pcm512x_set_fmt() local
1405 afmt = PCM512x_AFMT_I2S; in pcm512x_set_fmt()
1408 afmt = PCM512x_AFMT_RTJ; in pcm512x_set_fmt()
1411 afmt = PCM512x_AFMT_LTJ; in pcm512x_set_fmt()
1417 afmt = PCM512x_AFMT_DSP; in pcm512x_set_fmt()
1426 PCM512x_AFMT, afmt); in pcm512x_set_fmt()
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn35/
H A Ddcn35_dio_stream_encoder.h281 struct afmt *afmt,
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn314/
H A Ddcn314_dio_stream_encoder.h271 struct afmt *afmt,

12