Lines Matching refs:args
318 DAC_ENCODER_CONTROL_PS_ALLOCATION args; in amdgpu_atombios_encoder_setup_dac() local
321 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dac()
334 args.ucAction = action; in amdgpu_atombios_encoder_setup_dac()
335 args.ucDacStandard = ATOM_DAC1_PS2; in amdgpu_atombios_encoder_setup_dac()
336 args.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dac()
338 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dac()
381 union dvo_encoder_control args; in amdgpu_atombios_encoder_setup_dvo() local
385 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dvo()
395 args.ext_tmds.sXTmdsEncoder.ucEnable = action; in amdgpu_atombios_encoder_setup_dvo()
398 args.ext_tmds.sXTmdsEncoder.ucMisc |= PANEL_ENCODER_MISC_DUAL; in amdgpu_atombios_encoder_setup_dvo()
400 args.ext_tmds.sXTmdsEncoder.ucMisc |= ATOM_PANEL_MISC_888RGB; in amdgpu_atombios_encoder_setup_dvo()
404 args.dvo.sDVOEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
405 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
407 args.dvo.sDVOEncoder.ucDeviceType = ATOM_DEVICE_DFP1_INDEX; in amdgpu_atombios_encoder_setup_dvo()
410 args.dvo.sDVOEncoder.usDevAttr.sDigAttrib.ucAttribute |= PANEL_ENCODER_MISC_DUAL; in amdgpu_atombios_encoder_setup_dvo()
414 args.dvo_v3.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
415 args.dvo_v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
416 args.dvo_v3.ucDVOConfig = 0; /* XXX */ in amdgpu_atombios_encoder_setup_dvo()
420 args.dvo_v4.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
421 args.dvo_v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
422 args.dvo_v4.ucDVOConfig = 0; /* XXX */ in amdgpu_atombios_encoder_setup_dvo()
423 args.dvo_v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dvo()
435 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dvo()
568 union dig_encoder_control args; in amdgpu_atombios_encoder_setup_dig_encoder() local
589 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_encoder()
598 args.v1.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
599 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
601 args.v3.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
603 args.v1.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
605 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
606 args.v1.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
608 args.v1.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
610 args.v1.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
612 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode) && (dp_clock == 270000)) in amdgpu_atombios_encoder_setup_dig_encoder()
613 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
616 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER1; in amdgpu_atombios_encoder_setup_dig_encoder()
620 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER2; in amdgpu_atombios_encoder_setup_dig_encoder()
623 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER3; in amdgpu_atombios_encoder_setup_dig_encoder()
627 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKB; in amdgpu_atombios_encoder_setup_dig_encoder()
629 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKA; in amdgpu_atombios_encoder_setup_dig_encoder()
633 args.v3.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
634 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
636 args.v3.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
638 args.v3.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
640 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
641 args.v3.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
643 args.v3.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
645 args.v3.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
647 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode) && (dp_clock == 270000)) in amdgpu_atombios_encoder_setup_dig_encoder()
648 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
649 args.v3.acConfig.ucDigSel = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
650 args.v3.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
653 args.v4.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
654 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
656 args.v4.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
658 args.v4.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
660 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
661 args.v4.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
663 args.v4.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
665 args.v4.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
667 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_dig_encoder()
669 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
671 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
673 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
675 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
677 args.v4.acConfig.ucDigSel = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
678 args.v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
680 args.v4.ucHPD_ID = 0; in amdgpu_atombios_encoder_setup_dig_encoder()
682 args.v4.ucHPD_ID = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_encoder()
687 args.v5.asDPPanelModeParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
688 args.v5.asDPPanelModeParam.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
689 args.v5.asDPPanelModeParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
692 args.v5.asStreamParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
693 args.v5.asStreamParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
694 args.v5.asStreamParam.ucDigMode = in amdgpu_atombios_encoder_setup_dig_encoder()
696 if (ENCODER_MODE_IS_DP(args.v5.asStreamParam.ucDigMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
697 args.v5.asStreamParam.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
700 args.v5.asStreamParam.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
702 args.v5.asStreamParam.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
703 args.v5.asStreamParam.ulPixelClock = in amdgpu_atombios_encoder_setup_dig_encoder()
705 args.v5.asStreamParam.ucBitPerColor = in amdgpu_atombios_encoder_setup_dig_encoder()
707 args.v5.asStreamParam.ucLinkRateIn270Mhz = dp_clock / 27000; in amdgpu_atombios_encoder_setup_dig_encoder()
717 args.v5.asCmdParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
718 args.v5.asCmdParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
735 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_encoder()
757 union dig_transmitter_control args; in amdgpu_atombios_encoder_setup_dig_transmitter() local
801 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_transmitter()
825 args.v1.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
827 args.v1.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
829 args.v1.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
830 args.v1.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
833 args.v1.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
835 args.v1.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
837 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
840 args.v1.ucConfig = ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL; in amdgpu_atombios_encoder_setup_dig_transmitter()
843 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER; in amdgpu_atombios_encoder_setup_dig_transmitter()
845 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER; in amdgpu_atombios_encoder_setup_dig_transmitter()
848 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKB; in amdgpu_atombios_encoder_setup_dig_transmitter()
850 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKA; in amdgpu_atombios_encoder_setup_dig_transmitter()
853 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in amdgpu_atombios_encoder_setup_dig_transmitter()
856 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in amdgpu_atombios_encoder_setup_dig_transmitter()
858 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_8LANE_LINK; in amdgpu_atombios_encoder_setup_dig_transmitter()
862 args.v2.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
864 args.v2.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
866 args.v2.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
867 args.v2.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
870 args.v2.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
872 args.v2.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
874 args.v2.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
877 args.v2.acConfig.ucEncoderSel = dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
879 args.v2.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
883 args.v2.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
886 args.v2.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
889 args.v2.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
894 args.v2.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
895 args.v2.acConfig.fDPConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
898 args.v2.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
900 args.v2.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
904 args.v3.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
906 args.v3.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
908 args.v3.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
909 args.v3.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
912 args.v3.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
914 args.v3.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
916 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
920 args.v3.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
922 args.v3.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
924 args.v3.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
927 args.v3.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
929 args.v3.acConfig.ucEncoderSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
937 args.v3.acConfig.ucRefClkSource = 2; /* external src */ in amdgpu_atombios_encoder_setup_dig_transmitter()
939 args.v3.acConfig.ucRefClkSource = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
943 args.v3.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
946 args.v3.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
949 args.v3.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
954 args.v3.acConfig.fCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
957 args.v3.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
959 args.v3.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
963 args.v4.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
965 args.v4.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
967 args.v4.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
968 args.v4.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
971 args.v4.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
973 args.v4.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
975 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
979 args.v4.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
981 args.v4.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
983 args.v4.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
986 args.v4.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
988 args.v4.acConfig.ucEncoderSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
997 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_EXTCLK; in amdgpu_atombios_encoder_setup_dig_transmitter()
999 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_DCPLL; in amdgpu_atombios_encoder_setup_dig_transmitter()
1001 args.v4.acConfig.ucRefClkSource = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1005 args.v4.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1008 args.v4.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1011 args.v4.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
1016 args.v4.acConfig.fCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
1019 args.v4.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1021 args.v4.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1025 args.v5.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
1027 args.v5.usSymClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1029 args.v5.usSymClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1034 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYB; in amdgpu_atombios_encoder_setup_dig_transmitter()
1036 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYA; in amdgpu_atombios_encoder_setup_dig_transmitter()
1040 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYD; in amdgpu_atombios_encoder_setup_dig_transmitter()
1042 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYC; in amdgpu_atombios_encoder_setup_dig_transmitter()
1046 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYF; in amdgpu_atombios_encoder_setup_dig_transmitter()
1048 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYE; in amdgpu_atombios_encoder_setup_dig_transmitter()
1051 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYG; in amdgpu_atombios_encoder_setup_dig_transmitter()
1055 args.v5.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1057 args.v5.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1059 args.v5.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1060 args.v5.ucConnObjId = connector_object_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1061 args.v5.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_transmitter()
1064 args.v5.asConfig.ucPhyClkSrcId = ENCODER_REFCLK_SRC_EXTCLK; in amdgpu_atombios_encoder_setup_dig_transmitter()
1066 args.v5.asConfig.ucPhyClkSrcId = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1069 args.v5.asConfig.ucCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
1072 args.v5.asConfig.ucCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1075 args.v5.asConfig.ucHPDSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1077 args.v5.asConfig.ucHPDSel = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1078 args.v5.ucDigEncoderSel = 1 << dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
1079 args.v5.ucDPLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
1082 args.v6.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
1084 args.v6.ulSymClock = cpu_to_le32(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1086 args.v6.ulSymClock = cpu_to_le32(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1091 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYB; in amdgpu_atombios_encoder_setup_dig_transmitter()
1093 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYA; in amdgpu_atombios_encoder_setup_dig_transmitter()
1097 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYD; in amdgpu_atombios_encoder_setup_dig_transmitter()
1099 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYC; in amdgpu_atombios_encoder_setup_dig_transmitter()
1103 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYF; in amdgpu_atombios_encoder_setup_dig_transmitter()
1105 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYE; in amdgpu_atombios_encoder_setup_dig_transmitter()
1108 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYG; in amdgpu_atombios_encoder_setup_dig_transmitter()
1112 args.v6.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1114 args.v6.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1116 args.v6.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1117 args.v6.ucConnObjId = connector_object_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1119 args.v6.ucDPLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
1121 args.v6.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_transmitter()
1124 args.v6.ucHPDSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1126 args.v6.ucHPDSel = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1127 args.v6.ucDigEncoderSel = 1 << dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
1139 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_transmitter()
1149 union dig_transmitter_control args; in amdgpu_atombios_encoder_set_edp_panel_power() local
1163 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_set_edp_panel_power()
1165 args.v1.ucAction = action; in amdgpu_atombios_encoder_set_edp_panel_power()
1167 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_edp_panel_power()
1198 union external_encoder_control args; in amdgpu_atombios_encoder_setup_external_encoder() local
1223 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_external_encoder()
1236 args.v1.sDigEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_external_encoder()
1237 args.v1.sDigEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_external_encoder()
1238 args.v1.sDigEncoder.ucEncoderMode = in amdgpu_atombios_encoder_setup_external_encoder()
1241 if (ENCODER_MODE_IS_DP(args.v1.sDigEncoder.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_external_encoder()
1243 args.v1.sDigEncoder.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1244 args.v1.sDigEncoder.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_external_encoder()
1246 args.v1.sDigEncoder.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_external_encoder()
1248 args.v1.sDigEncoder.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_external_encoder()
1251 args.v3.sExtEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_external_encoder()
1253 args.v3.sExtEncoder.usConnectorId = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_external_encoder()
1255 args.v3.sExtEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_external_encoder()
1256 args.v3.sExtEncoder.ucEncoderMode = in amdgpu_atombios_encoder_setup_external_encoder()
1259 if (ENCODER_MODE_IS_DP(args.v3.sExtEncoder.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_external_encoder()
1261 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1263 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_5_40GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1264 args.v3.sExtEncoder.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_external_encoder()
1266 args.v3.sExtEncoder.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_external_encoder()
1268 args.v3.sExtEncoder.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_external_encoder()
1271 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER1; in amdgpu_atombios_encoder_setup_external_encoder()
1274 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER2; in amdgpu_atombios_encoder_setup_external_encoder()
1277 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER3; in amdgpu_atombios_encoder_setup_external_encoder()
1280 args.v3.sExtEncoder.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_external_encoder()
1291 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_external_encoder()
1439 union crtc_source_param args; in amdgpu_atombios_encoder_set_crtc_source() local
1444 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_set_crtc_source()
1454 args.v1.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1458 args.v1.ucDevice = ATOM_DEVICE_DFP1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1463 args.v1.ucDevice = ATOM_DEVICE_LCD1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1465 args.v1.ucDevice = ATOM_DEVICE_DFP3_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1470 args.v1.ucDevice = ATOM_DEVICE_DFP2_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1475 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1477 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1479 args.v1.ucDevice = ATOM_DEVICE_CRT1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1484 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1486 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1488 args.v1.ucDevice = ATOM_DEVICE_CRT2_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1493 args.v2.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1498 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1500 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in amdgpu_atombios_encoder_set_crtc_source()
1502 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1504 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1506 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1517 args.v2.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1520 args.v2.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1523 args.v2.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1526 args.v2.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1529 args.v2.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1532 args.v2.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1535 args.v2.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1540 args.v2.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1544 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1546 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1548 args.v2.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1552 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1554 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1556 args.v2.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1561 args.v3.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1566 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1568 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in amdgpu_atombios_encoder_set_crtc_source()
1570 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1572 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1574 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1576 args.v3.ucDstBpc = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1586 args.v3.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1589 args.v3.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1592 args.v3.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1595 args.v3.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1598 args.v3.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1601 args.v3.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1604 args.v3.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1609 args.v3.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1613 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1615 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1617 args.v3.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1621 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1623 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1625 args.v3.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1636 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_crtc_source()
1678 DAC_LOAD_DETECTION_PS_ALLOCATION args; in amdgpu_atombios_encoder_dac_load_detect() local
1682 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_dac_load_detect()
1687 args.sDacload.ucMisc = 0; in amdgpu_atombios_encoder_dac_load_detect()
1691 args.sDacload.ucDacType = ATOM_DAC_A; in amdgpu_atombios_encoder_dac_load_detect()
1693 args.sDacload.ucDacType = ATOM_DAC_B; in amdgpu_atombios_encoder_dac_load_detect()
1696 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT1_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1698 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT2_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1700 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CV_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1702 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in amdgpu_atombios_encoder_dac_load_detect()
1704 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_TV1_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1706 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in amdgpu_atombios_encoder_dac_load_detect()
1709 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_dac_load_detect()