Lines Matching full:args

319 	DAC_ENCODER_CONTROL_PS_ALLOCATION args;  in amdgpu_atombios_encoder_setup_dac()  local
322 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dac()
335 args.ucAction = action; in amdgpu_atombios_encoder_setup_dac()
336 args.ucDacStandard = ATOM_DAC1_PS2; in amdgpu_atombios_encoder_setup_dac()
337 args.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dac()
339 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dac()
382 union dvo_encoder_control args; in amdgpu_atombios_encoder_setup_dvo() local
386 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dvo()
396 args.ext_tmds.sXTmdsEncoder.ucEnable = action; in amdgpu_atombios_encoder_setup_dvo()
399 args.ext_tmds.sXTmdsEncoder.ucMisc |= PANEL_ENCODER_MISC_DUAL; in amdgpu_atombios_encoder_setup_dvo()
401 args.ext_tmds.sXTmdsEncoder.ucMisc |= ATOM_PANEL_MISC_888RGB; in amdgpu_atombios_encoder_setup_dvo()
405 args.dvo.sDVOEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
406 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
408 args.dvo.sDVOEncoder.ucDeviceType = ATOM_DEVICE_DFP1_INDEX; in amdgpu_atombios_encoder_setup_dvo()
411 args.dvo.sDVOEncoder.usDevAttr.sDigAttrib.ucAttribute |= PANEL_ENCODER_MISC_DUAL; in amdgpu_atombios_encoder_setup_dvo()
415 args.dvo_v3.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
416 args.dvo_v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
417 args.dvo_v3.ucDVOConfig = 0; /* XXX */ in amdgpu_atombios_encoder_setup_dvo()
421 args.dvo_v4.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
422 args.dvo_v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
423 args.dvo_v4.ucDVOConfig = 0; /* XXX */ in amdgpu_atombios_encoder_setup_dvo()
424 args.dvo_v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dvo()
436 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dvo()
569 union dig_encoder_control args; in amdgpu_atombios_encoder_setup_dig_encoder() local
590 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_encoder()
599 args.v1.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
600 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
602 args.v3.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
604 args.v1.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
606 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
607 args.v1.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
609 args.v1.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
611 args.v1.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
613 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode) && (dp_clock == 270000)) in amdgpu_atombios_encoder_setup_dig_encoder()
614 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
617 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER1; in amdgpu_atombios_encoder_setup_dig_encoder()
621 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER2; in amdgpu_atombios_encoder_setup_dig_encoder()
624 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER3; in amdgpu_atombios_encoder_setup_dig_encoder()
628 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKB; in amdgpu_atombios_encoder_setup_dig_encoder()
630 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKA; in amdgpu_atombios_encoder_setup_dig_encoder()
634 args.v3.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
635 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
637 args.v3.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
639 args.v3.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
641 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
642 args.v3.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
644 args.v3.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
646 args.v3.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
648 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode) && (dp_clock == 270000)) in amdgpu_atombios_encoder_setup_dig_encoder()
649 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
650 args.v3.acConfig.ucDigSel = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
651 args.v3.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
654 args.v4.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
655 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
657 args.v4.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
659 args.v4.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
661 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
662 args.v4.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
664 args.v4.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
666 args.v4.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
668 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_dig_encoder()
670 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
672 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
674 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
676 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
678 args.v4.acConfig.ucDigSel = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
679 args.v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
681 args.v4.ucHPD_ID = 0; in amdgpu_atombios_encoder_setup_dig_encoder()
683 args.v4.ucHPD_ID = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_encoder()
688 args.v5.asDPPanelModeParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
689 args.v5.asDPPanelModeParam.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
690 args.v5.asDPPanelModeParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
693 args.v5.asStreamParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
694 args.v5.asStreamParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
695 args.v5.asStreamParam.ucDigMode = in amdgpu_atombios_encoder_setup_dig_encoder()
697 if (ENCODER_MODE_IS_DP(args.v5.asStreamParam.ucDigMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
698 args.v5.asStreamParam.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
701 args.v5.asStreamParam.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
703 args.v5.asStreamParam.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
704 args.v5.asStreamParam.ulPixelClock = in amdgpu_atombios_encoder_setup_dig_encoder()
706 args.v5.asStreamParam.ucBitPerColor = in amdgpu_atombios_encoder_setup_dig_encoder()
708 args.v5.asStreamParam.ucLinkRateIn270Mhz = dp_clock / 27000; in amdgpu_atombios_encoder_setup_dig_encoder()
718 args.v5.asCmdParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
719 args.v5.asCmdParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
736 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_encoder()
758 union dig_transmitter_control args; in amdgpu_atombios_encoder_setup_dig_transmitter() local
802 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_transmitter()
826 args.v1.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
828 args.v1.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
830 args.v1.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
831 args.v1.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
834 args.v1.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
836 args.v1.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
838 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
841 args.v1.ucConfig = ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL; in amdgpu_atombios_encoder_setup_dig_transmitter()
844 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER; in amdgpu_atombios_encoder_setup_dig_transmitter()
846 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER; in amdgpu_atombios_encoder_setup_dig_transmitter()
849 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKB; in amdgpu_atombios_encoder_setup_dig_transmitter()
851 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKA; in amdgpu_atombios_encoder_setup_dig_transmitter()
854 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in amdgpu_atombios_encoder_setup_dig_transmitter()
857 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in amdgpu_atombios_encoder_setup_dig_transmitter()
859 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_8LANE_LINK; in amdgpu_atombios_encoder_setup_dig_transmitter()
863 args.v2.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
865 args.v2.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
867 args.v2.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
868 args.v2.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
871 args.v2.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
873 args.v2.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
875 args.v2.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
878 args.v2.acConfig.ucEncoderSel = dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
880 args.v2.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
884 args.v2.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
887 args.v2.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
890 args.v2.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
895 args.v2.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
896 args.v2.acConfig.fDPConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
899 args.v2.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
901 args.v2.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
905 args.v3.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
907 args.v3.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
909 args.v3.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
910 args.v3.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
913 args.v3.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
915 args.v3.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
917 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
921 args.v3.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
923 args.v3.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
925 args.v3.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
928 args.v3.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
930 args.v3.acConfig.ucEncoderSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
938 args.v3.acConfig.ucRefClkSource = 2; /* external src */ in amdgpu_atombios_encoder_setup_dig_transmitter()
940 args.v3.acConfig.ucRefClkSource = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
944 args.v3.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
947 args.v3.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
950 args.v3.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
955 args.v3.acConfig.fCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
958 args.v3.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
960 args.v3.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
964 args.v4.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
966 args.v4.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
968 args.v4.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
969 args.v4.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
972 args.v4.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
974 args.v4.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
976 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
980 args.v4.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
982 args.v4.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
984 args.v4.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
987 args.v4.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
989 args.v4.acConfig.ucEncoderSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
998 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_EXTCLK; in amdgpu_atombios_encoder_setup_dig_transmitter()
1000 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_DCPLL; in amdgpu_atombios_encoder_setup_dig_transmitter()
1002 args.v4.acConfig.ucRefClkSource = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1006 args.v4.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1009 args.v4.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1012 args.v4.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
1017 args.v4.acConfig.fCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
1020 args.v4.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1022 args.v4.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1026 args.v5.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
1028 args.v5.usSymClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1030 args.v5.usSymClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1035 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYB; in amdgpu_atombios_encoder_setup_dig_transmitter()
1037 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYA; in amdgpu_atombios_encoder_setup_dig_transmitter()
1041 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYD; in amdgpu_atombios_encoder_setup_dig_transmitter()
1043 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYC; in amdgpu_atombios_encoder_setup_dig_transmitter()
1047 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYF; in amdgpu_atombios_encoder_setup_dig_transmitter()
1049 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYE; in amdgpu_atombios_encoder_setup_dig_transmitter()
1052 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYG; in amdgpu_atombios_encoder_setup_dig_transmitter()
1056 args.v5.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1058 args.v5.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1060 args.v5.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1061 args.v5.ucConnObjId = connector_object_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1062 args.v5.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_transmitter()
1065 args.v5.asConfig.ucPhyClkSrcId = ENCODER_REFCLK_SRC_EXTCLK; in amdgpu_atombios_encoder_setup_dig_transmitter()
1067 args.v5.asConfig.ucPhyClkSrcId = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1070 args.v5.asConfig.ucCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
1073 args.v5.asConfig.ucCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1076 args.v5.asConfig.ucHPDSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1078 args.v5.asConfig.ucHPDSel = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1079 args.v5.ucDigEncoderSel = 1 << dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
1080 args.v5.ucDPLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
1083 args.v6.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
1085 args.v6.ulSymClock = cpu_to_le32(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1087 args.v6.ulSymClock = cpu_to_le32(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1092 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYB; in amdgpu_atombios_encoder_setup_dig_transmitter()
1094 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYA; in amdgpu_atombios_encoder_setup_dig_transmitter()
1098 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYD; in amdgpu_atombios_encoder_setup_dig_transmitter()
1100 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYC; in amdgpu_atombios_encoder_setup_dig_transmitter()
1104 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYF; in amdgpu_atombios_encoder_setup_dig_transmitter()
1106 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYE; in amdgpu_atombios_encoder_setup_dig_transmitter()
1109 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYG; in amdgpu_atombios_encoder_setup_dig_transmitter()
1113 args.v6.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1115 args.v6.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1117 args.v6.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1118 args.v6.ucConnObjId = connector_object_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1120 args.v6.ucDPLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
1122 args.v6.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_transmitter()
1125 args.v6.ucHPDSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1127 args.v6.ucHPDSel = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1128 args.v6.ucDigEncoderSel = 1 << dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
1140 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_transmitter()
1150 union dig_transmitter_control args; in amdgpu_atombios_encoder_set_edp_panel_power() local
1164 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_set_edp_panel_power()
1166 args.v1.ucAction = action; in amdgpu_atombios_encoder_set_edp_panel_power()
1168 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_edp_panel_power()
1199 union external_encoder_control args; in amdgpu_atombios_encoder_setup_external_encoder() local
1224 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_external_encoder()
1237 args.v1.sDigEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_external_encoder()
1238 args.v1.sDigEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_external_encoder()
1239 args.v1.sDigEncoder.ucEncoderMode = in amdgpu_atombios_encoder_setup_external_encoder()
1242 if (ENCODER_MODE_IS_DP(args.v1.sDigEncoder.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_external_encoder()
1244 args.v1.sDigEncoder.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1245 args.v1.sDigEncoder.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_external_encoder()
1247 args.v1.sDigEncoder.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_external_encoder()
1249 args.v1.sDigEncoder.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_external_encoder()
1252 args.v3.sExtEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_external_encoder()
1254 args.v3.sExtEncoder.usConnectorId = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_external_encoder()
1256 args.v3.sExtEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_external_encoder()
1257 args.v3.sExtEncoder.ucEncoderMode = in amdgpu_atombios_encoder_setup_external_encoder()
1260 if (ENCODER_MODE_IS_DP(args.v3.sExtEncoder.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_external_encoder()
1262 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1264 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_5_40GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1265 args.v3.sExtEncoder.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_external_encoder()
1267 args.v3.sExtEncoder.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_external_encoder()
1269 args.v3.sExtEncoder.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_external_encoder()
1272 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER1; in amdgpu_atombios_encoder_setup_external_encoder()
1275 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER2; in amdgpu_atombios_encoder_setup_external_encoder()
1278 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER3; in amdgpu_atombios_encoder_setup_external_encoder()
1281 args.v3.sExtEncoder.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_external_encoder()
1292 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_external_encoder()
1440 union crtc_source_param args; in amdgpu_atombios_encoder_set_crtc_source() local
1445 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_set_crtc_source()
1455 args.v1.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1459 args.v1.ucDevice = ATOM_DEVICE_DFP1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1464 args.v1.ucDevice = ATOM_DEVICE_LCD1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1466 args.v1.ucDevice = ATOM_DEVICE_DFP3_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1471 args.v1.ucDevice = ATOM_DEVICE_DFP2_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1476 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1478 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1480 args.v1.ucDevice = ATOM_DEVICE_CRT1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1485 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1487 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1489 args.v1.ucDevice = ATOM_DEVICE_CRT2_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1494 args.v2.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1499 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1501 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in amdgpu_atombios_encoder_set_crtc_source()
1503 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1505 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1507 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1518 args.v2.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1521 args.v2.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1524 args.v2.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1527 args.v2.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1530 args.v2.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1533 args.v2.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1536 args.v2.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1541 args.v2.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1545 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1547 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1549 args.v2.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1553 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1555 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1557 args.v2.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1562 args.v3.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1567 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1569 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in amdgpu_atombios_encoder_set_crtc_source()
1571 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1573 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1575 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1577 args.v3.ucDstBpc = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1587 args.v3.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1590 args.v3.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1593 args.v3.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1596 args.v3.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1599 args.v3.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1602 args.v3.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1605 args.v3.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1610 args.v3.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1614 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1616 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1618 args.v3.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1622 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1624 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1626 args.v3.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1637 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_crtc_source()
1679 DAC_LOAD_DETECTION_PS_ALLOCATION args; in amdgpu_atombios_encoder_dac_load_detect() local
1683 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_dac_load_detect()
1688 args.sDacload.ucMisc = 0; in amdgpu_atombios_encoder_dac_load_detect()
1692 args.sDacload.ucDacType = ATOM_DAC_A; in amdgpu_atombios_encoder_dac_load_detect()
1694 args.sDacload.ucDacType = ATOM_DAC_B; in amdgpu_atombios_encoder_dac_load_detect()
1697 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT1_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1699 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT2_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1701 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CV_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1703 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in amdgpu_atombios_encoder_dac_load_detect()
1705 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_TV1_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1707 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in amdgpu_atombios_encoder_dac_load_detect()
1710 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_dac_load_detect()