• Home
  • Raw
  • Download

Lines Matching refs:args

321 	DAC_ENCODER_CONTROL_PS_ALLOCATION args;  in amdgpu_atombios_encoder_setup_dac()  local
324 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dac()
337 args.ucAction = action; in amdgpu_atombios_encoder_setup_dac()
338 args.ucDacStandard = ATOM_DAC1_PS2; in amdgpu_atombios_encoder_setup_dac()
339 args.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dac()
341 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dac()
384 union dvo_encoder_control args; in amdgpu_atombios_encoder_setup_dvo() local
388 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dvo()
398 args.ext_tmds.sXTmdsEncoder.ucEnable = action; in amdgpu_atombios_encoder_setup_dvo()
401 args.ext_tmds.sXTmdsEncoder.ucMisc |= PANEL_ENCODER_MISC_DUAL; in amdgpu_atombios_encoder_setup_dvo()
403 args.ext_tmds.sXTmdsEncoder.ucMisc |= ATOM_PANEL_MISC_888RGB; in amdgpu_atombios_encoder_setup_dvo()
407 args.dvo.sDVOEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
408 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
410 args.dvo.sDVOEncoder.ucDeviceType = ATOM_DEVICE_DFP1_INDEX; in amdgpu_atombios_encoder_setup_dvo()
413 args.dvo.sDVOEncoder.usDevAttr.sDigAttrib.ucAttribute |= PANEL_ENCODER_MISC_DUAL; in amdgpu_atombios_encoder_setup_dvo()
417 args.dvo_v3.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
418 args.dvo_v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
419 args.dvo_v3.ucDVOConfig = 0; /* XXX */ in amdgpu_atombios_encoder_setup_dvo()
423 args.dvo_v4.ucAction = action; in amdgpu_atombios_encoder_setup_dvo()
424 args.dvo_v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dvo()
425 args.dvo_v4.ucDVOConfig = 0; /* XXX */ in amdgpu_atombios_encoder_setup_dvo()
426 args.dvo_v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dvo()
438 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dvo()
571 union dig_encoder_control args; in amdgpu_atombios_encoder_setup_dig_encoder() local
592 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_encoder()
601 args.v1.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
602 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
604 args.v3.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
606 args.v1.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
608 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
609 args.v1.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
611 args.v1.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
613 args.v1.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
615 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode) && (dp_clock == 270000)) in amdgpu_atombios_encoder_setup_dig_encoder()
616 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
619 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER1; in amdgpu_atombios_encoder_setup_dig_encoder()
623 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER2; in amdgpu_atombios_encoder_setup_dig_encoder()
626 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER3; in amdgpu_atombios_encoder_setup_dig_encoder()
630 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKB; in amdgpu_atombios_encoder_setup_dig_encoder()
632 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKA; in amdgpu_atombios_encoder_setup_dig_encoder()
636 args.v3.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
637 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
639 args.v3.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
641 args.v3.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
643 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
644 args.v3.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
646 args.v3.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
648 args.v3.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
650 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode) && (dp_clock == 270000)) in amdgpu_atombios_encoder_setup_dig_encoder()
651 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
652 args.v3.acConfig.ucDigSel = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
653 args.v3.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
656 args.v4.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
657 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_encoder()
659 args.v4.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
661 args.v4.ucEncoderMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
663 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
664 args.v4.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
666 args.v4.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
668 args.v4.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
670 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_dig_encoder()
672 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
674 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
676 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
678 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ; in amdgpu_atombios_encoder_setup_dig_encoder()
680 args.v4.acConfig.ucDigSel = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
681 args.v4.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_dig_encoder()
683 args.v4.ucHPD_ID = 0; in amdgpu_atombios_encoder_setup_dig_encoder()
685 args.v4.ucHPD_ID = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_encoder()
690 args.v5.asDPPanelModeParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
691 args.v5.asDPPanelModeParam.ucPanelMode = panel_mode; in amdgpu_atombios_encoder_setup_dig_encoder()
692 args.v5.asDPPanelModeParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
695 args.v5.asStreamParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
696 args.v5.asStreamParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
697 args.v5.asStreamParam.ucDigMode = in amdgpu_atombios_encoder_setup_dig_encoder()
699 if (ENCODER_MODE_IS_DP(args.v5.asStreamParam.ucDigMode)) in amdgpu_atombios_encoder_setup_dig_encoder()
700 args.v5.asStreamParam.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_encoder()
703 args.v5.asStreamParam.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_encoder()
705 args.v5.asStreamParam.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_encoder()
706 args.v5.asStreamParam.ulPixelClock = in amdgpu_atombios_encoder_setup_dig_encoder()
708 args.v5.asStreamParam.ucBitPerColor = in amdgpu_atombios_encoder_setup_dig_encoder()
710 args.v5.asStreamParam.ucLinkRateIn270Mhz = dp_clock / 27000; in amdgpu_atombios_encoder_setup_dig_encoder()
720 args.v5.asCmdParam.ucAction = action; in amdgpu_atombios_encoder_setup_dig_encoder()
721 args.v5.asCmdParam.ucDigId = dig->dig_encoder; in amdgpu_atombios_encoder_setup_dig_encoder()
738 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_encoder()
760 union dig_transmitter_control args; in amdgpu_atombios_encoder_setup_dig_transmitter() local
805 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_dig_transmitter()
829 args.v1.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
831 args.v1.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
833 args.v1.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
834 args.v1.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
837 args.v1.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
839 args.v1.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
841 args.v1.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
844 args.v1.ucConfig = ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL; in amdgpu_atombios_encoder_setup_dig_transmitter()
847 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER; in amdgpu_atombios_encoder_setup_dig_transmitter()
849 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER; in amdgpu_atombios_encoder_setup_dig_transmitter()
856 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_0_3; in amdgpu_atombios_encoder_setup_dig_transmitter()
858 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_4_7; in amdgpu_atombios_encoder_setup_dig_transmitter()
860 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_8_11; in amdgpu_atombios_encoder_setup_dig_transmitter()
862 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_12_15; in amdgpu_atombios_encoder_setup_dig_transmitter()
865 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_0_7; in amdgpu_atombios_encoder_setup_dig_transmitter()
867 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_8_15; in amdgpu_atombios_encoder_setup_dig_transmitter()
872 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKB; in amdgpu_atombios_encoder_setup_dig_transmitter()
874 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKA; in amdgpu_atombios_encoder_setup_dig_transmitter()
877 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in amdgpu_atombios_encoder_setup_dig_transmitter()
880 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in amdgpu_atombios_encoder_setup_dig_transmitter()
882 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_8LANE_LINK; in amdgpu_atombios_encoder_setup_dig_transmitter()
886 args.v2.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
888 args.v2.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
890 args.v2.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
891 args.v2.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
894 args.v2.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
896 args.v2.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
898 args.v2.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
901 args.v2.acConfig.ucEncoderSel = dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
903 args.v2.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
907 args.v2.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
910 args.v2.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
913 args.v2.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
918 args.v2.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
919 args.v2.acConfig.fDPConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
922 args.v2.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
924 args.v2.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
928 args.v3.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
930 args.v3.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
932 args.v3.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
933 args.v3.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
936 args.v3.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
938 args.v3.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
940 args.v3.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
944 args.v3.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
946 args.v3.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
948 args.v3.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
951 args.v3.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
953 args.v3.acConfig.ucEncoderSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
961 args.v3.acConfig.ucRefClkSource = 2; /* external src */ in amdgpu_atombios_encoder_setup_dig_transmitter()
963 args.v3.acConfig.ucRefClkSource = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
967 args.v3.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
970 args.v3.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
973 args.v3.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
978 args.v3.acConfig.fCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
981 args.v3.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
983 args.v3.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
987 args.v4.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
989 args.v4.usInitInfo = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_dig_transmitter()
991 args.v4.asMode.ucLaneSel = lane_num; in amdgpu_atombios_encoder_setup_dig_transmitter()
992 args.v4.asMode.ucLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
995 args.v4.usPixelClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
997 args.v4.usPixelClock = cpu_to_le16((amdgpu_encoder->pixel_clock / 2) / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
999 args.v4.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1003 args.v4.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1005 args.v4.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1007 args.v4.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1010 args.v4.acConfig.ucLinkSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1012 args.v4.acConfig.ucEncoderSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1021 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_EXTCLK; in amdgpu_atombios_encoder_setup_dig_transmitter()
1023 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_DCPLL; in amdgpu_atombios_encoder_setup_dig_transmitter()
1025 args.v4.acConfig.ucRefClkSource = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1029 args.v4.acConfig.ucTransmitterSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1032 args.v4.acConfig.ucTransmitterSel = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1035 args.v4.acConfig.ucTransmitterSel = 2; in amdgpu_atombios_encoder_setup_dig_transmitter()
1040 args.v4.acConfig.fCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
1043 args.v4.acConfig.fCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1045 args.v4.acConfig.fDualLinkConnector = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1049 args.v5.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
1051 args.v5.usSymClock = cpu_to_le16(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1053 args.v5.usSymClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1058 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYB; in amdgpu_atombios_encoder_setup_dig_transmitter()
1060 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYA; in amdgpu_atombios_encoder_setup_dig_transmitter()
1064 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYD; in amdgpu_atombios_encoder_setup_dig_transmitter()
1066 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYC; in amdgpu_atombios_encoder_setup_dig_transmitter()
1070 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYF; in amdgpu_atombios_encoder_setup_dig_transmitter()
1072 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYE; in amdgpu_atombios_encoder_setup_dig_transmitter()
1075 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYG; in amdgpu_atombios_encoder_setup_dig_transmitter()
1079 args.v5.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1081 args.v5.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1083 args.v5.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1084 args.v5.ucConnObjId = connector_object_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1085 args.v5.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_transmitter()
1088 args.v5.asConfig.ucPhyClkSrcId = ENCODER_REFCLK_SRC_EXTCLK; in amdgpu_atombios_encoder_setup_dig_transmitter()
1090 args.v5.asConfig.ucPhyClkSrcId = pll_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1093 args.v5.asConfig.ucCoherentMode = 1; /* DP requires coherent */ in amdgpu_atombios_encoder_setup_dig_transmitter()
1096 args.v5.asConfig.ucCoherentMode = 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1099 args.v5.asConfig.ucHPDSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1101 args.v5.asConfig.ucHPDSel = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1102 args.v5.ucDigEncoderSel = 1 << dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
1103 args.v5.ucDPLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
1106 args.v6.ucAction = action; in amdgpu_atombios_encoder_setup_dig_transmitter()
1108 args.v6.ulSymClock = cpu_to_le32(dp_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1110 args.v6.ulSymClock = cpu_to_le32(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_dig_transmitter()
1115 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYB; in amdgpu_atombios_encoder_setup_dig_transmitter()
1117 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYA; in amdgpu_atombios_encoder_setup_dig_transmitter()
1121 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYD; in amdgpu_atombios_encoder_setup_dig_transmitter()
1123 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYC; in amdgpu_atombios_encoder_setup_dig_transmitter()
1127 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYF; in amdgpu_atombios_encoder_setup_dig_transmitter()
1129 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYE; in amdgpu_atombios_encoder_setup_dig_transmitter()
1132 args.v6.ucPhyId = ATOM_PHY_ID_UNIPHYG; in amdgpu_atombios_encoder_setup_dig_transmitter()
1136 args.v6.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_dig_transmitter()
1138 args.v6.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_dig_transmitter()
1140 args.v6.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_dig_transmitter()
1141 args.v6.ucConnObjId = connector_object_id; in amdgpu_atombios_encoder_setup_dig_transmitter()
1143 args.v6.ucDPLaneSet = lane_set; in amdgpu_atombios_encoder_setup_dig_transmitter()
1145 args.v6.ucDigMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_setup_dig_transmitter()
1148 args.v6.ucHPDSel = 0; in amdgpu_atombios_encoder_setup_dig_transmitter()
1150 args.v6.ucHPDSel = hpd_id + 1; in amdgpu_atombios_encoder_setup_dig_transmitter()
1151 args.v6.ucDigEncoderSel = 1 << dig_encoder; in amdgpu_atombios_encoder_setup_dig_transmitter()
1163 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_dig_transmitter()
1173 union dig_transmitter_control args; in amdgpu_atombios_encoder_set_edp_panel_power() local
1187 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_set_edp_panel_power()
1189 args.v1.ucAction = action; in amdgpu_atombios_encoder_set_edp_panel_power()
1191 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_edp_panel_power()
1222 union external_encoder_control args; in amdgpu_atombios_encoder_setup_external_encoder() local
1247 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_setup_external_encoder()
1260 args.v1.sDigEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_external_encoder()
1261 args.v1.sDigEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_external_encoder()
1262 args.v1.sDigEncoder.ucEncoderMode = in amdgpu_atombios_encoder_setup_external_encoder()
1265 if (ENCODER_MODE_IS_DP(args.v1.sDigEncoder.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_external_encoder()
1267 args.v1.sDigEncoder.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1268 args.v1.sDigEncoder.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_external_encoder()
1270 args.v1.sDigEncoder.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_external_encoder()
1272 args.v1.sDigEncoder.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_external_encoder()
1275 args.v3.sExtEncoder.ucAction = action; in amdgpu_atombios_encoder_setup_external_encoder()
1277 args.v3.sExtEncoder.usConnectorId = cpu_to_le16(connector_object_id); in amdgpu_atombios_encoder_setup_external_encoder()
1279 args.v3.sExtEncoder.usPixelClock = cpu_to_le16(amdgpu_encoder->pixel_clock / 10); in amdgpu_atombios_encoder_setup_external_encoder()
1280 args.v3.sExtEncoder.ucEncoderMode = in amdgpu_atombios_encoder_setup_external_encoder()
1283 if (ENCODER_MODE_IS_DP(args.v3.sExtEncoder.ucEncoderMode)) { in amdgpu_atombios_encoder_setup_external_encoder()
1285 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1287 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_5_40GHZ; in amdgpu_atombios_encoder_setup_external_encoder()
1288 args.v3.sExtEncoder.ucLaneNum = dp_lane_count; in amdgpu_atombios_encoder_setup_external_encoder()
1290 args.v3.sExtEncoder.ucLaneNum = 8; in amdgpu_atombios_encoder_setup_external_encoder()
1292 args.v3.sExtEncoder.ucLaneNum = 4; in amdgpu_atombios_encoder_setup_external_encoder()
1295 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER1; in amdgpu_atombios_encoder_setup_external_encoder()
1298 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER2; in amdgpu_atombios_encoder_setup_external_encoder()
1301 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER3; in amdgpu_atombios_encoder_setup_external_encoder()
1304 args.v3.sExtEncoder.ucBitPerColor = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_setup_external_encoder()
1315 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_setup_external_encoder()
1463 union crtc_source_param args; in amdgpu_atombios_encoder_set_crtc_source() local
1468 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_set_crtc_source()
1478 args.v1.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1482 args.v1.ucDevice = ATOM_DEVICE_DFP1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1487 args.v1.ucDevice = ATOM_DEVICE_LCD1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1489 args.v1.ucDevice = ATOM_DEVICE_DFP3_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1494 args.v1.ucDevice = ATOM_DEVICE_DFP2_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1499 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1501 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1503 args.v1.ucDevice = ATOM_DEVICE_CRT1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1508 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1510 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1512 args.v1.ucDevice = ATOM_DEVICE_CRT2_INDEX; in amdgpu_atombios_encoder_set_crtc_source()
1517 args.v2.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1522 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1524 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in amdgpu_atombios_encoder_set_crtc_source()
1526 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1528 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1530 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1541 args.v2.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1544 args.v2.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1547 args.v2.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1550 args.v2.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1553 args.v2.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1556 args.v2.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1559 args.v2.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1564 args.v2.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1568 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1570 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1572 args.v2.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1576 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1578 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1580 args.v2.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1585 args.v3.ucCRTC = amdgpu_crtc->crtc_id; in amdgpu_atombios_encoder_set_crtc_source()
1590 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1592 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in amdgpu_atombios_encoder_set_crtc_source()
1594 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1596 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in amdgpu_atombios_encoder_set_crtc_source()
1598 args.v2.ucEncodeMode = amdgpu_atombios_encoder_get_encoder_mode(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1600 args.v3.ucDstBpc = amdgpu_atombios_encoder_get_bpc(encoder); in amdgpu_atombios_encoder_set_crtc_source()
1610 args.v3.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1613 args.v3.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1616 args.v3.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1619 args.v3.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1622 args.v3.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1625 args.v3.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1628 args.v3.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1633 args.v3.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1637 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1639 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1641 args.v3.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1645 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1647 args.v3.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1649 args.v3.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in amdgpu_atombios_encoder_set_crtc_source()
1660 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_set_crtc_source()
1702 DAC_LOAD_DETECTION_PS_ALLOCATION args; in amdgpu_atombios_encoder_dac_load_detect() local
1706 memset(&args, 0, sizeof(args)); in amdgpu_atombios_encoder_dac_load_detect()
1711 args.sDacload.ucMisc = 0; in amdgpu_atombios_encoder_dac_load_detect()
1715 args.sDacload.ucDacType = ATOM_DAC_A; in amdgpu_atombios_encoder_dac_load_detect()
1717 args.sDacload.ucDacType = ATOM_DAC_B; in amdgpu_atombios_encoder_dac_load_detect()
1720 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT1_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1722 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT2_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1724 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CV_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1726 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in amdgpu_atombios_encoder_dac_load_detect()
1728 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_TV1_SUPPORT); in amdgpu_atombios_encoder_dac_load_detect()
1730 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in amdgpu_atombios_encoder_dac_load_detect()
1733 amdgpu_atom_execute_table(adev->mode_info.atom_context, index, (uint32_t *)&args); in amdgpu_atombios_encoder_dac_load_detect()