Lines Matching refs:amdgpu_encoder
448 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_program_fmt() local
462 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v6_0_program_fmt()
1161 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_select_pin() local
1162 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_select_pin()
1176 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_latency_fields() local
1177 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_latency_fields()
1216 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_speaker_allocation() local
1217 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_speaker_allocation()
1273 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_write_sad_regs() local
1274 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_sad_regs()
1427 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_set_vbi_packet() local
1428 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_set_vbi_packet()
1444 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_set_acr() local
1445 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_set_acr()
1481 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_set_avi_infoframe() local
1482 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_set_avi_infoframe()
1556 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_set_packet() local
1557 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_set_packet()
1600 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_set_mute() local
1601 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_set_mute()
1613 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_hdmi_enable() local
1614 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_hdmi_enable()
1650 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_audio_dp_enable() local
1651 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_dp_enable()
1679 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_afmt_setmode() local
1680 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_afmt_setmode()
1745 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_afmt_enable() local
1746 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_afmt_enable()
1766 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v6_0_afmt_enable()
2137 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_pick_dig_encoder() local
2138 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_pick_dig_encoder()
2140 switch (amdgpu_encoder->encoder_id) { in dce_v6_0_pick_dig_encoder()
2150 DRM_ERROR("invalid encoder_id: 0x%x\n", amdgpu_encoder->encoder_id); in dce_v6_0_pick_dig_encoder()
3137 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_encoder_mode_set() local
3140 amdgpu_encoder->pixel_clock = adjusted_mode->clock; in dce_v6_0_encoder_mode_set()
3158 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_encoder_prepare() local
3161 if ((amdgpu_encoder->active_device & in dce_v6_0_encoder_prepare()
3165 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_encoder_prepare()
3168 if (amdgpu_encoder->active_device & ATOM_DEVICE_DFP_SUPPORT) in dce_v6_0_encoder_prepare()
3208 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_encoder_disable() local
3217 dig = amdgpu_encoder->enc_priv; in dce_v6_0_encoder_disable()
3220 amdgpu_encoder->active_device = 0; in dce_v6_0_encoder_disable()
3291 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_encoder_destroy() local
3292 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in dce_v6_0_encoder_destroy()
3293 amdgpu_atombios_encoder_fini_backlight(amdgpu_encoder); in dce_v6_0_encoder_destroy()
3294 kfree(amdgpu_encoder->enc_priv); in dce_v6_0_encoder_destroy()
3296 kfree(amdgpu_encoder); in dce_v6_0_encoder_destroy()
3310 struct amdgpu_encoder *amdgpu_encoder; in dce_v6_0_encoder_add() local
3314 amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v6_0_encoder_add()
3315 if (amdgpu_encoder->encoder_enum == encoder_enum) { in dce_v6_0_encoder_add()
3316 amdgpu_encoder->devices |= supported_device; in dce_v6_0_encoder_add()
3323 amdgpu_encoder = kzalloc(sizeof(struct amdgpu_encoder), GFP_KERNEL); in dce_v6_0_encoder_add()
3324 if (!amdgpu_encoder) in dce_v6_0_encoder_add()
3327 encoder = &amdgpu_encoder->base; in dce_v6_0_encoder_add()
3344 amdgpu_encoder->enc_priv = NULL; in dce_v6_0_encoder_add()
3345 amdgpu_encoder->encoder_enum = encoder_enum; in dce_v6_0_encoder_add()
3346 amdgpu_encoder->encoder_id = (encoder_enum & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; in dce_v6_0_encoder_add()
3347 amdgpu_encoder->devices = supported_device; in dce_v6_0_encoder_add()
3348 amdgpu_encoder->rmx_type = RMX_OFF; in dce_v6_0_encoder_add()
3349 amdgpu_encoder->underscan_type = UNDERSCAN_OFF; in dce_v6_0_encoder_add()
3350 amdgpu_encoder->is_ext_encoder = false; in dce_v6_0_encoder_add()
3351 amdgpu_encoder->caps = caps; in dce_v6_0_encoder_add()
3353 switch (amdgpu_encoder->encoder_id) { in dce_v6_0_encoder_add()
3365 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in dce_v6_0_encoder_add()
3366 amdgpu_encoder->rmx_type = RMX_FULL; in dce_v6_0_encoder_add()
3369 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_lcd_info(amdgpu_encoder); in dce_v6_0_encoder_add()
3370 } else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) { in dce_v6_0_encoder_add()
3373 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); in dce_v6_0_encoder_add()
3377 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); in dce_v6_0_encoder_add()
3391 amdgpu_encoder->is_ext_encoder = true; in dce_v6_0_encoder_add()
3392 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in dce_v6_0_encoder_add()
3395 else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) in dce_v6_0_encoder_add()