Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/amd/display/dc/dcn30/
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 { struct
133 struct afmt base; argument
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()
117 struct afmt *afmt, in afmt3_se_audio_setup() argument
121 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_se_audio_setup()
145 struct afmt *afmt, in afmt3_audio_mute_control() argument
148 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_audio_mute_control()
155 struct afmt *afmt) in afmt3_audio_info_immediate_update() argument
157 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_audio_info_immediate_update()
164 struct afmt *afmt) in afmt3_setup_dp_audio() argument
166 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_setup_dp_audio()
Ddcn30_dio_stream_encoder.c654 ASSERT (enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute()
655 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute()
669 ASSERT (enc->afmt); in enc3_audio_mute_control()
670 enc->afmt->funcs->audio_mute_control(enc->afmt, mute); in enc3_audio_mute_control()
678 ASSERT (enc->afmt); in enc3_se_dp_audio_setup()
679 enc->afmt->funcs->se_audio_setup(enc->afmt, az_inst, info); in enc3_se_dp_audio_setup()
700 ASSERT (enc->afmt); in enc3_se_setup_dp_audio()
701 enc->afmt->funcs->setup_dp_audio(enc->afmt); in enc3_se_setup_dp_audio()
721 ASSERT (enc->afmt); in enc3_se_setup_hdmi_audio()
722 enc->afmt->funcs->setup_hdmi_audio(enc->afmt); in enc3_se_setup_hdmi_audio()
[all …]
Ddcn30_resource.c1129 static struct afmt *dcn30_afmt_create( in dcn30_afmt_create()
1152 struct afmt *afmt; in dcn30_stream_encoder_create() local
1165 afmt = dcn30_afmt_create(ctx, afmt_inst); in dcn30_stream_encoder_create()
1167 if (!enc1 || !vpg || !afmt) { in dcn30_stream_encoder_create()
1170 kfree(afmt); in dcn30_stream_encoder_create()
1175 eng_id, vpg, afmt, in dcn30_stream_encoder_create()
1219 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn30_resource_destruct()
1220 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn30_resource_destruct()
1221 pool->base.stream_enc[i]->afmt = NULL; in dcn30_resource_destruct()
Ddcn30_dio_stream_encoder.h281 struct afmt *afmt,
/drivers/gpu/drm/radeon/
Devergreen_hdmi.c408 if (!dig || !dig->afmt) in evergreen_hdmi_enable()
415 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
420 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
423 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
426 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
430 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + 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()
438 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable()
449 if (!dig || !dig->afmt) in evergreen_dp_enable()
[all …]
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()
287 result = dig->afmt->last_buffer_filled_status != status; 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()
[all …]
Dradeon_audio.c476 if (dig && dig->afmt && radeon_encoder->audio && in radeon_audio_set_avi_packet()
478 radeon_encoder->audio->set_avi_packet(rdev, dig->afmt->offset, in radeon_audio_set_avi_packet()
566 if (!dig || !dig->afmt) in radeon_audio_update_acr()
570 radeon_encoder->audio->update_acr(encoder, dig->afmt->offset, acr); in radeon_audio_update_acr()
578 if (!dig || !dig->afmt) in radeon_audio_set_vbi_packet()
582 radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); in radeon_audio_set_vbi_packet()
591 if (!dig || !dig->afmt) in radeon_hdmi_set_color_depth()
600 radeon_encoder->audio->set_color_depth(encoder, dig->afmt->offset, bpc); in radeon_hdmi_set_color_depth()
608 if (!dig || !dig->afmt) in radeon_audio_set_audio_packet()
612 radeon_encoder->audio->set_audio_packet(encoder, dig->afmt->offset); in radeon_audio_set_audio_packet()
[all …]
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()
Dradeon_display.c1498 rdev->mode_info.afmt[i] = NULL; in radeon_afmt_init()
1531 rdev->mode_info.afmt[i] = kzalloc(sizeof(struct radeon_afmt), GFP_KERNEL); in radeon_afmt_init()
1532 if (rdev->mode_info.afmt[i]) { in radeon_afmt_init()
1533 rdev->mode_info.afmt[i]->offset = eg_offsets[i]; in radeon_afmt_init()
1534 rdev->mode_info.afmt[i]->id = i; in radeon_afmt_init()
1539 rdev->mode_info.afmt[0] = kzalloc(sizeof(struct radeon_afmt), GFP_KERNEL); in radeon_afmt_init()
1540 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init()
1541 rdev->mode_info.afmt[0]->offset = DCE3_HDMI_OFFSET0; in radeon_afmt_init()
1542 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init()
1544 rdev->mode_info.afmt[1] = kzalloc(sizeof(struct radeon_afmt), GFP_KERNEL); in radeon_afmt_init()
[all …]
Dradeon_irq_kms.c137 rdev->irq.afmt[i] = false; in radeon_driver_irq_preinstall_kms()
191 rdev->irq.afmt[i] = false; in radeon_driver_irq_uninstall_kms()
507 rdev->irq.afmt[block] = true; in radeon_irq_kms_enable_afmt()
529 rdev->irq.afmt[block] = false; in radeon_irq_kms_disable_afmt()
Dradeon_mode.h248 struct radeon_afmt *afmt[RADEON_MAX_AFMT_BLOCKS]; member
441 struct radeon_afmt *afmt; member
Datombios_encoders.c2502 dig->afmt = rdev->mode_info.afmt[dig->dig_encoder]; in radeon_atom_encoder_prepare()
2505 dig->afmt = rdev->mode_info.afmt[0]; in radeon_atom_encoder_prepare()
/drivers/gpu/drm/amd/amdgpu/
Ddce_v6_0.c1121 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin()
1124 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce_v6_0_audio_select_pin()
1126 dig->afmt->pin->id)); in dce_v6_0_audio_select_pin()
1170 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_latency_fields()
1208 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1229 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1311 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, eld_reg_to_type[i][0], tmp); in dce_v6_0_audio_write_sad_regs()
1400 tmp = RREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_vbi_packet()
1404 WREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_vbi_packet()
1417 tmp = RREG32(mmHDMI_ACR_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_acr()
[all …]
Ddce_v10_0.c1218 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin()
1221 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin()
1222 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()
1223 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin()
1239 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields()
1269 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields()
1286 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation()
1310 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation()
1323 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation()
1356 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_sad_regs()
[all …]
Ddce_v11_0.c1244 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin()
1247 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v11_0_afmt_audio_select_pin()
1248 tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); in dce_v11_0_afmt_audio_select_pin()
1249 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v11_0_afmt_audio_select_pin()
1265 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields()
1295 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_latency_fields()
1312 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_speaker_allocation()
1336 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_speaker_allocation()
1349 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_speaker_allocation()
1382 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_sad_regs()
[all …]
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()
1161 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin()
1176 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields()
1179 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields()
1239 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation()
1242 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_speaker_allocation()
1307 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs()
1310 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_sad_regs()
1454 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_ACR()
[all …]
Damdgpu_mode.h325 struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS]; member
452 struct amdgpu_afmt *afmt; member
/drivers/gpu/drm/amd/display/dc/inc/hw/
Dstream_encoder.h108 struct afmt *afmt; member
/drivers/gpu/drm/amd/display/dc/dcn302/
Ddcn302_resource.c464 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create()
530 struct afmt *afmt; in dcn302_stream_encoder_create() local
543 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create()
545 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
548 kfree(afmt); in dcn302_stream_encoder_create()
552 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create()
1142 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct()
1143 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct()
1144 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct()
/drivers/gpu/drm/amd/display/dc/dcn303/
Ddcn303_resource.c435 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create()
498 struct afmt *afmt; in dcn303_stream_encoder_create() local
511 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create()
513 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
516 kfree(afmt); in dcn303_stream_encoder_create()
520 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create()
1068 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct()
1069 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct()
1070 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct()
/drivers/gpu/drm/amd/display/dc/dcn301/
Ddcn301_resource.c1160 static struct afmt *dcn301_afmt_create( in dcn301_afmt_create()
1183 struct afmt *afmt; in dcn301_stream_encoder_create() local
1196 afmt = dcn301_afmt_create(ctx, afmt_inst); in dcn301_stream_encoder_create()
1198 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create()
1201 kfree(afmt); in dcn301_stream_encoder_create()
1206 eng_id, vpg, afmt, in dcn301_stream_encoder_create()
1250 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct()
1251 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct()
1252 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct()
/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_resource.c1256 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1279 struct afmt *afmt; in dcn31_stream_encoder_create() local
1292 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_stream_encoder_create()
1294 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create()
1297 kfree(afmt); in dcn31_stream_encoder_create()
1302 eng_id, vpg, afmt, in dcn31_stream_encoder_create()
1346 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct()
1347 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct()
1348 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct()
/drivers/s390/scsi/
Dzfcp_fc.c265 unsigned int afmt; in zfcp_fc_incoming_rscn() local
293 afmt = page->rscn_page_flags & ELS_RSCN_ADDR_FMT_MASK; in zfcp_fc_incoming_rscn()
294 _zfcp_fc_incoming_rscn(fsf_req, zfcp_fc_rscn_range_mask[afmt], in zfcp_fc_incoming_rscn()
/drivers/gpu/drm/i2c/
Dtda998x_drv.c1712 u8 afmt = be32_to_cpup(&port_data[2*i]); in tda998x_get_audio_ports() local
1715 switch (afmt) { in tda998x_get_audio_ports()
1724 "Bad audio format %u\n", afmt); in tda998x_get_audio_ports()

12