Lines Matching refs:amdgpu_encoder

466 	struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder);  in dce_v8_0_program_fmt()  local
480 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v8_0_program_fmt()
484 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v8_0_program_fmt()
485 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v8_0_program_fmt()
1168 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_audio_select_pin() local
1169 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin()
1186 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_latency_fields() local
1187 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields()
1247 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_speaker_allocation() local
1248 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation()
1300 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_write_sad_regs() local
1301 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_sad_regs()
1468 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_update_ACR() local
1469 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_update_ACR()
1490 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_update_avi_infoframe() local
1491 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_update_avi_infoframe()
1510 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_audio_set_dto() local
1511 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_set_dto()
1537 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_setmode() local
1538 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_setmode()
1699 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_afmt_enable() local
1700 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_enable()
1719 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v8_0_afmt_enable()
2102 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_pick_dig_encoder() local
2103 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_pick_dig_encoder()
2105 switch (amdgpu_encoder->encoder_id) { in dce_v8_0_pick_dig_encoder()
2124 DRM_ERROR("invalid encoder_id: 0x%x\n", amdgpu_encoder->encoder_id); in dce_v8_0_pick_dig_encoder()
3256 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_encoder_mode_set() local
3258 amdgpu_encoder->pixel_clock = adjusted_mode->clock; in dce_v8_0_encoder_mode_set()
3275 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_encoder_prepare() local
3278 if ((amdgpu_encoder->active_device & in dce_v8_0_encoder_prepare()
3282 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_encoder_prepare()
3285 if (amdgpu_encoder->active_device & ATOM_DEVICE_DFP_SUPPORT) in dce_v8_0_encoder_prepare()
3323 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_encoder_disable() local
3331 dig = amdgpu_encoder->enc_priv; in dce_v8_0_encoder_disable()
3334 amdgpu_encoder->active_device = 0; in dce_v8_0_encoder_disable()
3397 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_encoder_destroy() local
3398 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in dce_v8_0_encoder_destroy()
3399 amdgpu_atombios_encoder_fini_backlight(amdgpu_encoder); in dce_v8_0_encoder_destroy()
3400 kfree(amdgpu_encoder->enc_priv); in dce_v8_0_encoder_destroy()
3402 kfree(amdgpu_encoder); in dce_v8_0_encoder_destroy()
3416 struct amdgpu_encoder *amdgpu_encoder; in dce_v8_0_encoder_add() local
3420 amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v8_0_encoder_add()
3421 if (amdgpu_encoder->encoder_enum == encoder_enum) { in dce_v8_0_encoder_add()
3422 amdgpu_encoder->devices |= supported_device; in dce_v8_0_encoder_add()
3429 amdgpu_encoder = kzalloc(sizeof(struct amdgpu_encoder), GFP_KERNEL); in dce_v8_0_encoder_add()
3430 if (!amdgpu_encoder) in dce_v8_0_encoder_add()
3433 encoder = &amdgpu_encoder->base; in dce_v8_0_encoder_add()
3450 amdgpu_encoder->enc_priv = NULL; in dce_v8_0_encoder_add()
3452 amdgpu_encoder->encoder_enum = encoder_enum; in dce_v8_0_encoder_add()
3453 amdgpu_encoder->encoder_id = (encoder_enum & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; in dce_v8_0_encoder_add()
3454 amdgpu_encoder->devices = supported_device; in dce_v8_0_encoder_add()
3455 amdgpu_encoder->rmx_type = RMX_OFF; in dce_v8_0_encoder_add()
3456 amdgpu_encoder->underscan_type = UNDERSCAN_OFF; in dce_v8_0_encoder_add()
3457 amdgpu_encoder->is_ext_encoder = false; in dce_v8_0_encoder_add()
3458 amdgpu_encoder->caps = caps; in dce_v8_0_encoder_add()
3460 switch (amdgpu_encoder->encoder_id) { in dce_v8_0_encoder_add()
3472 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in dce_v8_0_encoder_add()
3473 amdgpu_encoder->rmx_type = RMX_FULL; in dce_v8_0_encoder_add()
3476 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_lcd_info(amdgpu_encoder); in dce_v8_0_encoder_add()
3477 } else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) { in dce_v8_0_encoder_add()
3480 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); in dce_v8_0_encoder_add()
3484 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); in dce_v8_0_encoder_add()
3498 amdgpu_encoder->is_ext_encoder = true; in dce_v8_0_encoder_add()
3499 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in dce_v8_0_encoder_add()
3502 else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) in dce_v8_0_encoder_add()