Lines Matching refs:dig

1152 	struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv;  in dce_v8_0_afmt_audio_select_pin()  local
1155 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()
1170 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields() local
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()
1231 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation() local
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()
1284 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_sad_regs() local
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()
1452 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_update_ACR() local
1453 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_ACR()
1474 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_update_avi_infoframe() local
1475 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_avi_infoframe()
1494 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_set_dto() local
1499 if (!dig || !dig->afmt) in dce_v8_0_audio_set_dto()
1521 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_setmode() local
1529 if (!dig || !dig->afmt) in dce_v8_0_afmt_setmode()
1533 if (!dig->afmt->enabled) in dce_v8_0_afmt_setmode()
1536 offset = dig->afmt->offset; in dce_v8_0_afmt_setmode()
1545 dig->afmt->pin = dce_v8_0_audio_get_pin(adev); in dce_v8_0_afmt_setmode()
1546 dce_v8_0_audio_enable(adev, dig->afmt->pin, false); in dce_v8_0_afmt_setmode()
1675 dce_v8_0_audio_enable(adev, dig->afmt->pin, true); in dce_v8_0_afmt_setmode()
1683 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_enable() local
1685 if (!dig || !dig->afmt) in dce_v8_0_afmt_enable()
1689 if (enable && dig->afmt->enabled) in dce_v8_0_afmt_enable()
1691 if (!enable && !dig->afmt->enabled) in dce_v8_0_afmt_enable()
1694 if (!enable && dig->afmt->pin) { in dce_v8_0_afmt_enable()
1695 dce_v8_0_audio_enable(adev, dig->afmt->pin, false); in dce_v8_0_afmt_enable()
1696 dig->afmt->pin = NULL; in dce_v8_0_afmt_enable()
1699 dig->afmt->enabled = enable; in dce_v8_0_afmt_enable()
1702 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v8_0_afmt_enable()
2085 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_pick_dig_encoder() local
2089 if (dig->linkb) in dce_v8_0_pick_dig_encoder()
2094 if (dig->linkb) in dce_v8_0_pick_dig_encoder()
2099 if (dig->linkb) in dce_v8_0_pick_dig_encoder()
3263 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_encoder_prepare() local
3264 if (dig) { in dce_v8_0_encoder_prepare()
3265 dig->dig_encoder = dce_v8_0_pick_dig_encoder(encoder); in dce_v8_0_encoder_prepare()
3267 dig->afmt = adev->mode_info.afmt[dig->dig_encoder]; in dce_v8_0_encoder_prepare()
3305 struct amdgpu_encoder_atom_dig *dig; in dce_v8_0_encoder_disable() local
3312 dig = amdgpu_encoder->enc_priv; in dce_v8_0_encoder_disable()
3313 dig->dig_encoder = -1; in dce_v8_0_encoder_disable()