Lines Matching refs:amdgpu_encoder
716 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_program_fmt() local
730 if (amdgpu_encoder->devices & ATOM_DEVICE_LCD_SUPPORT) in dce_v10_0_program_fmt()
734 if ((amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1) || in dce_v10_0_program_fmt()
735 (amdgpu_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2)) in dce_v10_0_program_fmt()
1418 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_audio_select_pin() local
1419 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin()
1434 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_latency_fields() local
1435 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields()
1476 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_speaker_allocation() local
1477 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation()
1528 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_write_sad_regs() local
1529 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_sad_regs()
1678 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_update_ACR() local
1679 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_update_ACR()
1713 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_update_avi_infoframe() local
1714 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_update_avi_infoframe()
1732 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_audio_set_dto() local
1733 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_set_dto()
1763 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_setmode() local
1764 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_setmode()
1943 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_afmt_enable() local
1944 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_enable()
1963 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v10_0_afmt_enable()
2368 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_pick_dig_encoder() local
2369 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_pick_dig_encoder()
2371 switch (amdgpu_encoder->encoder_id) { in dce_v10_0_pick_dig_encoder()
2394 DRM_ERROR("invalid encoder_id: 0x%x\n", amdgpu_encoder->encoder_id); in dce_v10_0_pick_dig_encoder()
3506 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_encoder_mode_set() local
3508 amdgpu_encoder->pixel_clock = adjusted_mode->clock; in dce_v10_0_encoder_mode_set()
3525 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_encoder_prepare() local
3528 if ((amdgpu_encoder->active_device & in dce_v10_0_encoder_prepare()
3532 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_encoder_prepare()
3535 if (amdgpu_encoder->active_device & ATOM_DEVICE_DFP_SUPPORT) in dce_v10_0_encoder_prepare()
3573 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_encoder_disable() local
3581 dig = amdgpu_encoder->enc_priv; in dce_v10_0_encoder_disable()
3584 amdgpu_encoder->active_device = 0; in dce_v10_0_encoder_disable()
3655 struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_encoder_destroy() local
3656 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in dce_v10_0_encoder_destroy()
3657 amdgpu_atombios_encoder_fini_backlight(amdgpu_encoder); in dce_v10_0_encoder_destroy()
3658 kfree(amdgpu_encoder->enc_priv); in dce_v10_0_encoder_destroy()
3660 kfree(amdgpu_encoder); in dce_v10_0_encoder_destroy()
3674 struct amdgpu_encoder *amdgpu_encoder; in dce_v10_0_encoder_add() local
3678 amdgpu_encoder = to_amdgpu_encoder(encoder); in dce_v10_0_encoder_add()
3679 if (amdgpu_encoder->encoder_enum == encoder_enum) { in dce_v10_0_encoder_add()
3680 amdgpu_encoder->devices |= supported_device; in dce_v10_0_encoder_add()
3687 amdgpu_encoder = kzalloc(sizeof(struct amdgpu_encoder), GFP_KERNEL); in dce_v10_0_encoder_add()
3688 if (!amdgpu_encoder) in dce_v10_0_encoder_add()
3691 encoder = &amdgpu_encoder->base; in dce_v10_0_encoder_add()
3708 amdgpu_encoder->enc_priv = NULL; in dce_v10_0_encoder_add()
3710 amdgpu_encoder->encoder_enum = encoder_enum; in dce_v10_0_encoder_add()
3711 amdgpu_encoder->encoder_id = (encoder_enum & OBJECT_ID_MASK) >> OBJECT_ID_SHIFT; in dce_v10_0_encoder_add()
3712 amdgpu_encoder->devices = supported_device; in dce_v10_0_encoder_add()
3713 amdgpu_encoder->rmx_type = RMX_OFF; in dce_v10_0_encoder_add()
3714 amdgpu_encoder->underscan_type = UNDERSCAN_OFF; in dce_v10_0_encoder_add()
3715 amdgpu_encoder->is_ext_encoder = false; in dce_v10_0_encoder_add()
3716 amdgpu_encoder->caps = caps; in dce_v10_0_encoder_add()
3718 switch (amdgpu_encoder->encoder_id) { in dce_v10_0_encoder_add()
3730 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { in dce_v10_0_encoder_add()
3731 amdgpu_encoder->rmx_type = RMX_FULL; in dce_v10_0_encoder_add()
3734 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_lcd_info(amdgpu_encoder); in dce_v10_0_encoder_add()
3735 } else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) { in dce_v10_0_encoder_add()
3738 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); in dce_v10_0_encoder_add()
3742 amdgpu_encoder->enc_priv = amdgpu_atombios_encoder_get_dig_info(amdgpu_encoder); in dce_v10_0_encoder_add()
3756 amdgpu_encoder->is_ext_encoder = true; in dce_v10_0_encoder_add()
3757 if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) in dce_v10_0_encoder_add()
3760 else if (amdgpu_encoder->devices & (ATOM_DEVICE_CRT_SUPPORT)) in dce_v10_0_encoder_add()