/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_afmt.h | 30 #define DCN30_AFMT_FROM_AFMT(afmt)\ argument 31 container_of(afmt, struct dcn30_afmt, base) 186 struct afmt; 191 struct afmt *afmt); 194 struct afmt *afmt, 199 struct afmt *afmt, 203 struct afmt *afmt); 206 struct afmt *afmt); 209 struct afmt { struct 216 struct afmt base; argument
|
D | dcn30_afmt.c | 47 struct afmt *afmt) in afmt3_setup_hdmi_audio() argument 49 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_setup_hdmi_audio() 116 struct afmt *afmt, in afmt3_se_audio_setup() argument 120 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_se_audio_setup() 144 struct afmt *afmt, in afmt3_audio_mute_control() argument 147 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_audio_mute_control() 154 struct afmt *afmt) in afmt3_audio_info_immediate_update() argument 156 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_audio_info_immediate_update() 163 struct afmt *afmt) in afmt3_setup_dp_audio() argument 165 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_setup_dp_audio()
|
D | dcn30_dio_stream_encoder.c | 655 ASSERT (enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute() 656 enc->afmt->funcs->audio_info_immediate_update(enc->afmt); in enc3_stream_encoder_hdmi_set_stream_attribute() 670 ASSERT (enc->afmt); in enc3_audio_mute_control() 671 enc->afmt->funcs->audio_mute_control(enc->afmt, mute); in enc3_audio_mute_control() 679 ASSERT (enc->afmt); in enc3_se_dp_audio_setup() 680 enc->afmt->funcs->se_audio_setup(enc->afmt, az_inst, info); in enc3_se_dp_audio_setup() 701 ASSERT (enc->afmt); in enc3_se_setup_dp_audio() 702 enc->afmt->funcs->setup_dp_audio(enc->afmt); in enc3_se_setup_dp_audio() 722 ASSERT (enc->afmt); in enc3_se_setup_hdmi_audio() 723 enc->afmt->funcs->setup_hdmi_audio(enc->afmt); in enc3_se_setup_hdmi_audio() [all …]
|
D | dcn30_dio_stream_encoder.h | 265 struct afmt *afmt,
|
D | dcn30_resource.c | 1125 static struct afmt *dcn30_afmt_create( in dcn30_afmt_create() 1148 struct afmt *afmt; in dcn30_stream_encoder_create() local 1161 afmt = dcn30_afmt_create(ctx, afmt_inst); in dcn30_stream_encoder_create() 1163 if (!enc1 || !vpg || !afmt) in dcn30_stream_encoder_create() 1167 eng_id, vpg, afmt, in dcn30_stream_encoder_create() 1211 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn30_resource_destruct() 1212 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn30_resource_destruct() 1213 pool->base.stream_enc[i]->afmt = NULL; in dcn30_resource_destruct()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | evergreen_hdmi.c | 407 if (!dig || !dig->afmt) in evergreen_hdmi_enable() 414 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 419 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 422 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 425 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 429 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 431 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, 0); in evergreen_hdmi_enable() 434 dig->afmt->enabled = enable; in evergreen_hdmi_enable() 437 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable() 448 if (!dig || !dig->afmt) in evergreen_dp_enable() [all …]
|
D | r600_hdmi.c | 250 uint32_t offset = dig->afmt->offset; in r600_hdmi_update_audio_infoframe() 268 uint32_t offset = dig->afmt->offset; in r600_hdmi_is_audio_buffer_filled() 282 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_buffer_status_changed() 286 result = dig->afmt->last_buffer_filled_status != status; in r600_hdmi_buffer_status_changed() 287 dig->afmt->last_buffer_filled_status = status; in r600_hdmi_buffer_status_changed() 301 uint32_t offset = dig->afmt->offset; in r600_hdmi_audio_workaround() 424 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_update_audio_settings() 426 offset = dig->afmt->offset; in r600_hdmi_update_audio_settings() 477 if (!dig || !dig->afmt) in r600_hdmi_enable() 518 WREG32(HDMI0_CONTROL + dig->afmt->offset, hdmi); in r600_hdmi_enable() [all …]
|
D | radeon_audio.c | 538 if (dig && dig->afmt && radeon_encoder->audio && in radeon_audio_set_avi_packet() 540 radeon_encoder->audio->set_avi_packet(rdev, dig->afmt->offset, in radeon_audio_set_avi_packet() 628 if (!dig || !dig->afmt) in radeon_audio_update_acr() 632 radeon_encoder->audio->update_acr(encoder, dig->afmt->offset, acr); in radeon_audio_update_acr() 640 if (!dig || !dig->afmt) in radeon_audio_set_vbi_packet() 644 radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); in radeon_audio_set_vbi_packet() 653 if (!dig || !dig->afmt) in radeon_hdmi_set_color_depth() 662 radeon_encoder->audio->set_color_depth(encoder, dig->afmt->offset, bpc); in radeon_hdmi_set_color_depth() 670 if (!dig || !dig->afmt) in radeon_audio_set_audio_packet() 674 radeon_encoder->audio->set_audio_packet(encoder, dig->afmt->offset); in radeon_audio_set_audio_packet() [all …]
|
D | dce6_afmt.c | 116 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin() 119 WREG32(AFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce6_afmt_select_pin() 132 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields() 160 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_hdmi_write_speaker_allocation() 185 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_dp_write_speaker_allocation() 224 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_sad_regs()
|
D | radeon_display.c | 1507 rdev->mode_info.afmt[i] = NULL; in radeon_afmt_init() 1540 rdev->mode_info.afmt[i] = kzalloc(sizeof(struct radeon_afmt), GFP_KERNEL); in radeon_afmt_init() 1541 if (rdev->mode_info.afmt[i]) { in radeon_afmt_init() 1542 rdev->mode_info.afmt[i]->offset = eg_offsets[i]; in radeon_afmt_init() 1543 rdev->mode_info.afmt[i]->id = i; in radeon_afmt_init() 1548 rdev->mode_info.afmt[0] = kzalloc(sizeof(struct radeon_afmt), GFP_KERNEL); in radeon_afmt_init() 1549 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init() 1550 rdev->mode_info.afmt[0]->offset = DCE3_HDMI_OFFSET0; in radeon_afmt_init() 1551 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init() 1553 rdev->mode_info.afmt[1] = kzalloc(sizeof(struct radeon_afmt), GFP_KERNEL); in radeon_afmt_init() [all …]
|
D | radeon_irq_kms.c | 138 rdev->irq.afmt[i] = false; in radeon_driver_irq_preinstall_kms() 192 rdev->irq.afmt[i] = false; in radeon_driver_irq_uninstall_kms() 478 rdev->irq.afmt[block] = true; in radeon_irq_kms_enable_afmt() 500 rdev->irq.afmt[block] = false; in radeon_irq_kms_disable_afmt()
|
D | radeon_mode.h | 248 struct radeon_afmt *afmt[RADEON_MAX_AFMT_BLOCKS]; member 441 struct radeon_afmt *afmt; member
|
D | atombios_encoders.c | 2504 dig->afmt = rdev->mode_info.afmt[dig->dig_encoder]; in radeon_atom_encoder_prepare() 2507 dig->afmt = rdev->mode_info.afmt[0]; in radeon_atom_encoder_prepare()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | dce_v6_0.c | 1121 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 …]
|
D | dce_v10_0.c | 1217 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin() 1220 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin() 1221 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() 1222 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin() 1238 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields() 1268 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields() 1285 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation() 1309 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation() 1322 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation() 1355 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_sad_regs() [all …]
|
D | dce_v11_0.c | 1243 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin() 1246 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v11_0_afmt_audio_select_pin() 1247 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() 1248 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v11_0_afmt_audio_select_pin() 1264 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields() 1294 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_latency_fields() 1311 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_speaker_allocation() 1335 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_speaker_allocation() 1348 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_speaker_allocation() 1381 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_sad_regs() [all …]
|
D | dce_v8_0.c | 1154 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin() 1157 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin() 1160 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin() 1175 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields() 1178 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields() 1238 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation() 1241 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_speaker_allocation() 1306 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs() 1309 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_sad_regs() 1453 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_ACR() [all …]
|
D | amdgpu_mode.h | 322 struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS]; member 449 struct amdgpu_afmt *afmt; member
|
/kernel/linux/linux-5.10/sound/soc/intel/catpt/ |
D | pcm.c | 333 struct catpt_audio_format afmt; in catpt_dai_hw_params() local 343 memset(&afmt, 0, sizeof(afmt)); in catpt_dai_hw_params() 344 afmt.sample_rate = params_rate(params); in catpt_dai_hw_params() 345 afmt.bit_depth = params_physical_width(params); in catpt_dai_hw_params() 346 afmt.valid_bit_depth = params_width(params); in catpt_dai_hw_params() 347 afmt.num_channels = params_channels(params); in catpt_dai_hw_params() 348 afmt.channel_config = catpt_get_channel_config(afmt.num_channels); in catpt_dai_hw_params() 349 afmt.channel_map = catpt_get_channel_map(afmt.channel_config); in catpt_dai_hw_params() 350 afmt.interleaving = CATPT_INTERLEAVING_PER_CHANNEL; in catpt_dai_hw_params() 364 &afmt, &rinfo, in catpt_dai_hw_params()
|
D | messages.c | 48 struct catpt_audio_format *afmt, in catpt_ipc_alloc_stream() argument 76 input.input_format = *afmt; in catpt_ipc_alloc_stream()
|
D | messages.h | 210 struct catpt_audio_format *afmt,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | stream_encoder.h | 109 struct afmt *afmt; member
|
/kernel/linux/linux-5.10/drivers/s390/scsi/ |
D | zfcp_fc.c | 265 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()
|
/kernel/linux/linux-5.10/sound/oss/dmasound/ |
D | dmasound_core.c | 1232 static char *get_afmt_string(int afmt) in get_afmt_string() argument 1234 switch(afmt) { in get_afmt_string()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i2c/ |
D | tda998x_drv.c | 1712 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()
|