Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_afmt.h108 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 …]
H A Ddcn30_afmt.c48 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 …]
H A Ddcn30_dio_stream_encoder.c702 ASSERT (enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute()
703 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute()
717 ASSERT (enc->afmt); in enc3_audio_mute_control()
718 enc->afmt->funcs->audio_mute_control(enc->afmt, mute); in enc3_audio_mute_control()
726 ASSERT (enc->afmt); in enc3_se_dp_audio_setup()
727 enc->afmt->funcs->se_audio_setup(enc->afmt, az_inst, info); in enc3_se_dp_audio_setup()
749 enc->afmt->funcs->setup_dp_audio(enc->afmt); in enc3_se_setup_dp_audio()
770 enc->afmt->funcs->setup_hdmi_audio(enc->afmt); in enc3_se_setup_hdmi_audio()
827 enc->afmt->funcs->se_audio_setup(enc->afmt, az_inst, info); in enc3_se_hdmi_audio_setup()
886 struct afmt *afmt, in dcn30_dio_stream_encoder_construct() argument
[all …]
/openbmc/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);
/openbmc/linux/drivers/gpu/drm/radeon/
H A Devergreen_hdmi.c408 if (!dig || !dig->afmt) in evergreen_hdmi_enable()
415 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
423 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
432 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, 0); in evergreen_hdmi_enable()
435 dig->afmt->enabled = enable; in evergreen_hdmi_enable()
449 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 …]
H A Dr600_hdmi.c251 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()
302 uint32_t offset = dig->afmt->offset; in r600_hdmi_audio_workaround()
425 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_update_audio_settings()
427 offset = dig->afmt->offset; in r600_hdmi_update_audio_settings()
478 if (!dig || !dig->afmt) in r600_hdmi_enable()
519 WREG32(HDMI0_CONTROL + dig->afmt->offset, hdmi); in r600_hdmi_enable()
526 radeon_irq_kms_enable_afmt(rdev, dig->afmt->id); in r600_hdmi_enable()
[all …]
H A Dradeon_audio.c481 if (dig && dig->afmt && radeon_encoder->audio && in radeon_audio_set_avi_packet()
483 radeon_encoder->audio->set_avi_packet(rdev, dig->afmt->offset, in radeon_audio_set_avi_packet()
571 if (!dig || !dig->afmt) in radeon_audio_update_acr()
583 if (!dig || !dig->afmt) in radeon_audio_set_vbi_packet()
587 radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); in radeon_audio_set_vbi_packet()
596 if (!dig || !dig->afmt) in radeon_hdmi_set_color_depth()
613 if (!dig || !dig->afmt) in radeon_audio_set_audio_packet()
625 if (!dig || !dig->afmt) in radeon_audio_set_mute()
629 radeon_encoder->audio->set_mute(encoder, dig->afmt->offset, mute); in radeon_audio_set_mute()
642 if (!dig || !dig->afmt) in radeon_audio_hdmi_mode_set()
[all …]
H A Ddce6_afmt.c117 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin()
120 WREG32(AFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce6_afmt_select_pin()
133 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields()
161 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_hdmi_write_speaker_allocation()
186 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_dp_write_speaker_allocation()
225 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_sad_regs()
H A Dradeon_display.c1503 rdev->mode_info.afmt[i] = NULL; in radeon_afmt_init()
1537 if (rdev->mode_info.afmt[i]) { in radeon_afmt_init()
1545 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init()
1547 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init()
1550 if (rdev->mode_info.afmt[1]) { in radeon_afmt_init()
1552 rdev->mode_info.afmt[1]->id = 1; in radeon_afmt_init()
1557 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init()
1559 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init()
1564 if (rdev->mode_info.afmt[1]) { in radeon_afmt_init()
1577 kfree(rdev->mode_info.afmt[i]); in radeon_afmt_fini()
[all …]
H A Dradeon_irq_kms.c138 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()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Ddce_v6_0.c1123 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin()
1659 if (!dig || !dig->afmt) in dce_v6_0_afmt_setmode()
1676 if (!dig->afmt->enabled) in dce_v6_0_afmt_setmode()
1680 if (!dig->afmt->pin) in dce_v6_0_afmt_setmode()
1723 if (!dig || !dig->afmt) in dce_v6_0_afmt_enable()
1733 if (!enable && dig->afmt->pin) { in dce_v6_0_afmt_enable()
1735 dig->afmt->pin = NULL; in dce_v6_0_afmt_enable()
1738 dig->afmt->enabled = enable; in dce_v6_0_afmt_enable()
1749 adev->mode_info.afmt[i] = NULL; in dce_v6_0_afmt_init()
1754 if (adev->mode_info.afmt[i]) { in dce_v6_0_afmt_init()
[all …]
H A Ddce_v10_0.c1214 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin()
1235 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields()
1282 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation()
1352 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_sad_regs()
1545 if (!dig || !dig->afmt) in dce_v10_0_audio_set_dto()
1578 if (!dig || !dig->afmt) in dce_v10_0_afmt_setmode()
1582 if (!dig->afmt->enabled) in dce_v10_0_afmt_setmode()
1752 if (!dig || !dig->afmt) in dce_v10_0_afmt_enable()
1763 dig->afmt->pin = NULL; in dce_v10_0_afmt_enable()
1766 dig->afmt->enabled = enable; in dce_v10_0_afmt_enable()
[all …]
H A Ddce_v11_0.c1246 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin()
1267 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields()
1314 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_speaker_allocation()
1384 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_sad_regs()
1594 if (!dig || !dig->afmt) in dce_v11_0_audio_set_dto()
1627 if (!dig || !dig->afmt) in dce_v11_0_afmt_setmode()
1631 if (!dig->afmt->enabled) in dce_v11_0_afmt_setmode()
1801 if (!dig || !dig->afmt) in dce_v11_0_afmt_enable()
1812 dig->afmt->pin = NULL; in dce_v11_0_afmt_enable()
1815 dig->afmt->enabled = enable; in dce_v11_0_afmt_enable()
[all …]
H A Ddce_v8_0.c1155 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin()
1158 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin()
1176 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields()
1239 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation()
1307 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs()
1499 if (!dig || !dig->afmt) in dce_v8_0_audio_set_dto()
1529 if (!dig || !dig->afmt) in dce_v8_0_afmt_setmode()
1533 if (!dig->afmt->enabled) in dce_v8_0_afmt_setmode()
1685 if (!dig || !dig->afmt) in dce_v8_0_afmt_enable()
1696 dig->afmt->pin = NULL; in dce_v8_0_afmt_enable()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_dio_stream_encoder.c222 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()
511 struct afmt *afmt, in dcn32_dio_stream_encoder_construct() argument
521 enc1->base.afmt = afmt; in dcn32_dio_stream_encoder_construct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/
H A Ddcn314_dio_stream_encoder.c255 ASSERT(enc->afmt); in enc314_stream_encoder_hdmi_set_stream_attribute()
256 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc314_stream_encoder_hdmi_set_stream_attribute()
480 struct afmt *afmt, in dcn314_dio_stream_encoder_construct() argument
490 enc1->base.afmt = afmt; in dcn314_dio_stream_encoder_construct()
/openbmc/linux/sound/soc/intel/catpt/
H A Dpcm.c380 struct catpt_audio_format afmt; in catpt_dai_hw_params() local
389 memset(&afmt, 0, sizeof(afmt)); in catpt_dai_hw_params()
390 afmt.sample_rate = params_rate(params); in catpt_dai_hw_params()
391 afmt.bit_depth = params_physical_width(params); in catpt_dai_hw_params()
392 afmt.valid_bit_depth = params_width(params); in catpt_dai_hw_params()
393 afmt.num_channels = params_channels(params); in catpt_dai_hw_params()
394 afmt.channel_config = catpt_get_channel_config(afmt.num_channels); in catpt_dai_hw_params()
395 afmt.channel_map = catpt_get_channel_map(afmt.channel_config); in catpt_dai_hw_params()
396 afmt.interleaving = CATPT_INTERLEAVING_PER_CHANNEL; in catpt_dai_hw_params()
410 &afmt, &rinfo, in catpt_dai_hw_params()
/openbmc/linux/fs/erofs/
H A Dzmap.c457 unsigned int lclusterbits, endoff, afmt; in z_erofs_do_map_blocks() local
546 afmt = vi->z_advise & Z_EROFS_ADVISE_INTERLACED_PCLUSTER ? in z_erofs_do_map_blocks()
550 afmt = m.headtype == Z_EROFS_LCLUSTER_TYPE_HEAD2 ? in z_erofs_do_map_blocks()
552 if (!(EROFS_I_SB(inode)->available_compr_algs & (1 << afmt))) { in z_erofs_do_map_blocks()
554 afmt, vi->nid); in z_erofs_do_map_blocks()
559 map->m_algorithmformat = afmt; in z_erofs_do_map_blocks()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn303/
H A Ddcn303_resource.c298 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create()
361 struct afmt *afmt; in dcn303_stream_encoder_create() local
374 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create()
376 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
379 kfree(afmt); in dcn303_stream_encoder_create()
383 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create()
921 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct()
922 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct()
923 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn302/
H A Ddcn302_resource.c326 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create()
392 struct afmt *afmt; in dcn302_stream_encoder_create() local
405 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create()
407 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
410 kfree(afmt); in dcn302_stream_encoder_create()
414 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create()
995 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct()
996 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct()
997 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn301/
H A Ddcn301_resource.c962 static struct afmt *dcn301_afmt_create( in dcn301_afmt_create()
984 struct afmt *afmt; in dcn301_stream_encoder_create() local
997 afmt = dcn301_afmt_create(ctx, afmt_inst); in dcn301_stream_encoder_create()
999 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create()
1002 kfree(afmt); in dcn301_stream_encoder_create()
1007 eng_id, vpg, afmt, in dcn301_stream_encoder_create()
1043 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct()
1044 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct()
1045 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dstream_encoder.h118 struct afmt *afmt; member
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn316/
H A Ddcn316_resource.c884 .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()
1349 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct()
1350 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct()
1351 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn315/
H A Ddcn315_resource.c887 .afmt = true,
1179 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1221 struct afmt *afmt; in dcn315_stream_encoder_create() local
1236 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn315_stream_encoder_create()
1238 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create()
1241 kfree(afmt); in dcn315_stream_encoder_create()
1246 eng_id, vpg, afmt, in dcn315_stream_encoder_create()
1351 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct()
1352 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct()
1353 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct()

12