Lines Matching full:args

104 	DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION args;  in atombios_set_backlight_level()  local
121 args.ucAction = ATOM_LCD_BLOFF; in atombios_set_backlight_level()
122 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_backlight_level()
124 args.ucAction = ATOM_LCD_BL_BRIGHTNESS_CONTROL; in atombios_set_backlight_level()
125 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_backlight_level()
126 args.ucAction = ATOM_LCD_BLON; in atombios_set_backlight_level()
127 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_backlight_level()
350 DAC_ENCODER_CONTROL_PS_ALLOCATION args; in atombios_dac_setup() local
354 memset(&args, 0, sizeof(args)); in atombios_dac_setup()
367 args.ucAction = action; in atombios_dac_setup()
370 args.ucDacStandard = ATOM_DAC1_PS2; in atombios_dac_setup()
372 args.ucDacStandard = ATOM_DAC1_CV; in atombios_dac_setup()
380 args.ucDacStandard = ATOM_DAC1_PAL; in atombios_dac_setup()
386 args.ucDacStandard = ATOM_DAC1_NTSC; in atombios_dac_setup()
390 args.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dac_setup()
392 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dac_setup()
402 TV_ENCODER_CONTROL_PS_ALLOCATION args; in atombios_tv_setup() local
406 memset(&args, 0, sizeof(args)); in atombios_tv_setup()
410 args.sTVEncoder.ucAction = action; in atombios_tv_setup()
413 args.sTVEncoder.ucTvStandard = ATOM_TV_CV; in atombios_tv_setup()
417 args.sTVEncoder.ucTvStandard = ATOM_TV_NTSC; in atombios_tv_setup()
420 args.sTVEncoder.ucTvStandard = ATOM_TV_PAL; in atombios_tv_setup()
423 args.sTVEncoder.ucTvStandard = ATOM_TV_PALM; in atombios_tv_setup()
426 args.sTVEncoder.ucTvStandard = ATOM_TV_PAL60; in atombios_tv_setup()
429 args.sTVEncoder.ucTvStandard = ATOM_TV_NTSCJ; in atombios_tv_setup()
432 args.sTVEncoder.ucTvStandard = ATOM_TV_PAL; /* ??? */ in atombios_tv_setup()
435 args.sTVEncoder.ucTvStandard = ATOM_TV_SECAM; in atombios_tv_setup()
438 args.sTVEncoder.ucTvStandard = ATOM_TV_PALCN; in atombios_tv_setup()
441 args.sTVEncoder.ucTvStandard = ATOM_TV_NTSC; in atombios_tv_setup()
446 args.sTVEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_tv_setup()
448 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_tv_setup()
491 union dvo_encoder_control args; in atombios_dvo_setup() local
495 memset(&args, 0, sizeof(args)); in atombios_dvo_setup()
509 args.ext_tmds.sXTmdsEncoder.ucEnable = action; in atombios_dvo_setup()
512 args.ext_tmds.sXTmdsEncoder.ucMisc |= PANEL_ENCODER_MISC_DUAL; in atombios_dvo_setup()
514 args.ext_tmds.sXTmdsEncoder.ucMisc |= ATOM_PANEL_MISC_888RGB; in atombios_dvo_setup()
518 args.dvo.sDVOEncoder.ucAction = action; in atombios_dvo_setup()
519 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dvo_setup()
521 args.dvo.sDVOEncoder.ucDeviceType = ATOM_DEVICE_DFP1_INDEX; in atombios_dvo_setup()
524 args.dvo.sDVOEncoder.usDevAttr.sDigAttrib.ucAttribute |= PANEL_ENCODER_MISC_DUAL; in atombios_dvo_setup()
528 args.dvo_v3.ucAction = action; in atombios_dvo_setup()
529 args.dvo_v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dvo_setup()
530 args.dvo_v3.ucDVOConfig = 0; /* XXX */ in atombios_dvo_setup()
534 args.dvo_v4.ucAction = action; in atombios_dvo_setup()
535 args.dvo_v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dvo_setup()
536 args.dvo_v4.ucDVOConfig = 0; /* XXX */ in atombios_dvo_setup()
537 args.dvo_v4.ucBitPerColor = radeon_atom_get_bpc(encoder); in atombios_dvo_setup()
549 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dvo_setup()
564 union lvds_encoder_control args; in atombios_digital_setup() local
575 memset(&args, 0, sizeof(args)); in atombios_digital_setup()
601 args.v1.ucMisc = 0; in atombios_digital_setup()
602 args.v1.ucAction = action; in atombios_digital_setup()
604 args.v1.ucMisc |= PANEL_ENCODER_MISC_HDMI_TYPE; in atombios_digital_setup()
605 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_digital_setup()
608 args.v1.ucMisc |= PANEL_ENCODER_MISC_DUAL; in atombios_digital_setup()
610 args.v1.ucMisc |= ATOM_PANEL_MISC_888RGB; in atombios_digital_setup()
613 args.v1.ucMisc |= PANEL_ENCODER_MISC_TMDS_LINKB; in atombios_digital_setup()
615 args.v1.ucMisc |= PANEL_ENCODER_MISC_DUAL; in atombios_digital_setup()
617 args.v1.ucMisc |= ATOM_PANEL_MISC_888RGB; in atombios_digital_setup()
622 args.v2.ucMisc = 0; in atombios_digital_setup()
623 args.v2.ucAction = action; in atombios_digital_setup()
626 args.v2.ucMisc |= PANEL_ENCODER_MISC_COHERENT; in atombios_digital_setup()
629 args.v2.ucMisc |= PANEL_ENCODER_MISC_HDMI_TYPE; in atombios_digital_setup()
630 args.v2.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_digital_setup()
631 args.v2.ucTruncate = 0; in atombios_digital_setup()
632 args.v2.ucSpatial = 0; in atombios_digital_setup()
633 args.v2.ucTemporal = 0; in atombios_digital_setup()
634 args.v2.ucFRC = 0; in atombios_digital_setup()
637 args.v2.ucMisc |= PANEL_ENCODER_MISC_DUAL; in atombios_digital_setup()
639 args.v2.ucSpatial = PANEL_ENCODER_SPATIAL_DITHER_EN; in atombios_digital_setup()
641 args.v2.ucSpatial |= PANEL_ENCODER_SPATIAL_DITHER_DEPTH; in atombios_digital_setup()
644 args.v2.ucTemporal = PANEL_ENCODER_TEMPORAL_DITHER_EN; in atombios_digital_setup()
646 args.v2.ucTemporal |= PANEL_ENCODER_TEMPORAL_DITHER_DEPTH; in atombios_digital_setup()
648 args.v2.ucTemporal |= PANEL_ENCODER_TEMPORAL_LEVEL_4; in atombios_digital_setup()
652 args.v2.ucMisc |= PANEL_ENCODER_MISC_TMDS_LINKB; in atombios_digital_setup()
654 args.v2.ucMisc |= PANEL_ENCODER_MISC_DUAL; in atombios_digital_setup()
667 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_digital_setup()
838 union dig_encoder_control args; in atombios_dig_encoder_setup2() local
859 memset(&args, 0, sizeof(args)); in atombios_dig_encoder_setup2()
877 args.v1.ucAction = action; in atombios_dig_encoder_setup2()
878 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_encoder_setup2()
880 args.v3.ucPanelMode = panel_mode; in atombios_dig_encoder_setup2()
882 args.v1.ucEncoderMode = atombios_get_encoder_mode(encoder); in atombios_dig_encoder_setup2()
884 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode)) in atombios_dig_encoder_setup2()
885 args.v1.ucLaneNum = dp_lane_count; in atombios_dig_encoder_setup2()
887 args.v1.ucLaneNum = 8; in atombios_dig_encoder_setup2()
889 args.v1.ucLaneNum = 4; in atombios_dig_encoder_setup2()
893 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER1; in atombios_dig_encoder_setup2()
897 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER2; in atombios_dig_encoder_setup2()
900 args.v1.ucConfig = ATOM_ENCODER_CONFIG_V2_TRANSMITTER3; in atombios_dig_encoder_setup2()
904 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKB; in atombios_dig_encoder_setup2()
906 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_LINKA; in atombios_dig_encoder_setup2()
908 if (ENCODER_MODE_IS_DP(args.v1.ucEncoderMode) && (dp_clock == 270000)) in atombios_dig_encoder_setup2()
909 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in atombios_dig_encoder_setup2()
914 args.v3.ucAction = action; in atombios_dig_encoder_setup2()
915 args.v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_encoder_setup2()
917 args.v3.ucPanelMode = panel_mode; in atombios_dig_encoder_setup2()
919 args.v3.ucEncoderMode = atombios_get_encoder_mode(encoder); in atombios_dig_encoder_setup2()
921 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode)) in atombios_dig_encoder_setup2()
922 args.v3.ucLaneNum = dp_lane_count; in atombios_dig_encoder_setup2()
924 args.v3.ucLaneNum = 8; in atombios_dig_encoder_setup2()
926 args.v3.ucLaneNum = 4; in atombios_dig_encoder_setup2()
928 if (ENCODER_MODE_IS_DP(args.v3.ucEncoderMode) && (dp_clock == 270000)) in atombios_dig_encoder_setup2()
929 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in atombios_dig_encoder_setup2()
931 args.v3.acConfig.ucDigSel = enc_override; in atombios_dig_encoder_setup2()
933 args.v3.acConfig.ucDigSel = dig->dig_encoder; in atombios_dig_encoder_setup2()
934 args.v3.ucBitPerColor = radeon_atom_get_bpc(encoder); in atombios_dig_encoder_setup2()
937 args.v4.ucAction = action; in atombios_dig_encoder_setup2()
938 args.v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_encoder_setup2()
940 args.v4.ucPanelMode = panel_mode; in atombios_dig_encoder_setup2()
942 args.v4.ucEncoderMode = atombios_get_encoder_mode(encoder); in atombios_dig_encoder_setup2()
944 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) in atombios_dig_encoder_setup2()
945 args.v4.ucLaneNum = dp_lane_count; in atombios_dig_encoder_setup2()
947 args.v4.ucLaneNum = 8; in atombios_dig_encoder_setup2()
949 args.v4.ucLaneNum = 4; in atombios_dig_encoder_setup2()
951 if (ENCODER_MODE_IS_DP(args.v4.ucEncoderMode)) { in atombios_dig_encoder_setup2()
953 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_5_40GHZ; in atombios_dig_encoder_setup2()
955 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_3_24GHZ; in atombios_dig_encoder_setup2()
957 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_2_70GHZ; in atombios_dig_encoder_setup2()
959 args.v1.ucConfig |= ATOM_ENCODER_CONFIG_V4_DPLINKRATE_1_62GHZ; in atombios_dig_encoder_setup2()
963 args.v4.acConfig.ucDigSel = enc_override; in atombios_dig_encoder_setup2()
965 args.v4.acConfig.ucDigSel = dig->dig_encoder; in atombios_dig_encoder_setup2()
966 args.v4.ucBitPerColor = radeon_atom_get_bpc(encoder); in atombios_dig_encoder_setup2()
968 args.v4.ucHPD_ID = 0; in atombios_dig_encoder_setup2()
970 args.v4.ucHPD_ID = hpd_id + 1; in atombios_dig_encoder_setup2()
982 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dig_encoder_setup2()
1008 union dig_transmitter_control args; in atombios_dig_transmitter_setup2() local
1054 memset(&args, 0, sizeof(args)); in atombios_dig_transmitter_setup2()
1078 args.v1.ucAction = action; in atombios_dig_transmitter_setup2()
1080 args.v1.usInitInfo = cpu_to_le16(connector_object_id); in atombios_dig_transmitter_setup2()
1082 args.v1.asMode.ucLaneSel = lane_num; in atombios_dig_transmitter_setup2()
1083 args.v1.asMode.ucLaneSet = lane_set; in atombios_dig_transmitter_setup2()
1086 args.v1.usPixelClock = cpu_to_le16(dp_clock / 10); in atombios_dig_transmitter_setup2()
1088 args.v1.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); in atombios_dig_transmitter_setup2()
1090 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_transmitter_setup2()
1093 args.v1.ucConfig = ATOM_TRANSMITTER_CONFIG_CLKSRC_PPLL; in atombios_dig_transmitter_setup2()
1096 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG2_ENCODER; in atombios_dig_transmitter_setup2()
1098 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_DIG1_ENCODER; in atombios_dig_transmitter_setup2()
1105 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_0_3; in atombios_dig_transmitter_setup2()
1107 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_4_7; in atombios_dig_transmitter_setup2()
1109 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_8_11; in atombios_dig_transmitter_setup2()
1111 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_12_15; in atombios_dig_transmitter_setup2()
1114 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_0_7; in atombios_dig_transmitter_setup2()
1116 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LANE_8_15; in atombios_dig_transmitter_setup2()
1121 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKB; in atombios_dig_transmitter_setup2()
1123 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_LINKA; in atombios_dig_transmitter_setup2()
1126 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in atombios_dig_transmitter_setup2()
1129 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_COHERENT; in atombios_dig_transmitter_setup2()
1131 args.v1.ucConfig |= ATOM_TRANSMITTER_CONFIG_8LANE_LINK; in atombios_dig_transmitter_setup2()
1135 args.v2.ucAction = action; in atombios_dig_transmitter_setup2()
1137 args.v2.usInitInfo = cpu_to_le16(connector_object_id); in atombios_dig_transmitter_setup2()
1139 args.v2.asMode.ucLaneSel = lane_num; in atombios_dig_transmitter_setup2()
1140 args.v2.asMode.ucLaneSet = lane_set; in atombios_dig_transmitter_setup2()
1143 args.v2.usPixelClock = cpu_to_le16(dp_clock / 10); in atombios_dig_transmitter_setup2()
1145 args.v2.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); in atombios_dig_transmitter_setup2()
1147 args.v2.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_transmitter_setup2()
1150 args.v2.acConfig.ucEncoderSel = dig_encoder; in atombios_dig_transmitter_setup2()
1152 args.v2.acConfig.ucLinkSel = 1; in atombios_dig_transmitter_setup2()
1156 args.v2.acConfig.ucTransmitterSel = 0; in atombios_dig_transmitter_setup2()
1159 args.v2.acConfig.ucTransmitterSel = 1; in atombios_dig_transmitter_setup2()
1162 args.v2.acConfig.ucTransmitterSel = 2; in atombios_dig_transmitter_setup2()
1167 args.v2.acConfig.fCoherentMode = 1; in atombios_dig_transmitter_setup2()
1168 args.v2.acConfig.fDPConnector = 1; in atombios_dig_transmitter_setup2()
1171 args.v2.acConfig.fCoherentMode = 1; in atombios_dig_transmitter_setup2()
1173 args.v2.acConfig.fDualLinkConnector = 1; in atombios_dig_transmitter_setup2()
1177 args.v3.ucAction = action; in atombios_dig_transmitter_setup2()
1179 args.v3.usInitInfo = cpu_to_le16(connector_object_id); in atombios_dig_transmitter_setup2()
1181 args.v3.asMode.ucLaneSel = lane_num; in atombios_dig_transmitter_setup2()
1182 args.v3.asMode.ucLaneSet = lane_set; in atombios_dig_transmitter_setup2()
1185 args.v3.usPixelClock = cpu_to_le16(dp_clock / 10); in atombios_dig_transmitter_setup2()
1187 args.v3.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); in atombios_dig_transmitter_setup2()
1189 args.v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_transmitter_setup2()
1193 args.v3.ucLaneNum = dp_lane_count; in atombios_dig_transmitter_setup2()
1195 args.v3.ucLaneNum = 8; in atombios_dig_transmitter_setup2()
1197 args.v3.ucLaneNum = 4; in atombios_dig_transmitter_setup2()
1200 args.v3.acConfig.ucLinkSel = 1; in atombios_dig_transmitter_setup2()
1202 args.v3.acConfig.ucEncoderSel = 1; in atombios_dig_transmitter_setup2()
1210 args.v3.acConfig.ucRefClkSource = 2; /* external src */ in atombios_dig_transmitter_setup2()
1212 args.v3.acConfig.ucRefClkSource = pll_id; in atombios_dig_transmitter_setup2()
1216 args.v3.acConfig.ucTransmitterSel = 0; in atombios_dig_transmitter_setup2()
1219 args.v3.acConfig.ucTransmitterSel = 1; in atombios_dig_transmitter_setup2()
1222 args.v3.acConfig.ucTransmitterSel = 2; in atombios_dig_transmitter_setup2()
1227 args.v3.acConfig.fCoherentMode = 1; /* DP requires coherent */ in atombios_dig_transmitter_setup2()
1230 args.v3.acConfig.fCoherentMode = 1; in atombios_dig_transmitter_setup2()
1232 args.v3.acConfig.fDualLinkConnector = 1; in atombios_dig_transmitter_setup2()
1236 args.v4.ucAction = action; in atombios_dig_transmitter_setup2()
1238 args.v4.usInitInfo = cpu_to_le16(connector_object_id); in atombios_dig_transmitter_setup2()
1240 args.v4.asMode.ucLaneSel = lane_num; in atombios_dig_transmitter_setup2()
1241 args.v4.asMode.ucLaneSet = lane_set; in atombios_dig_transmitter_setup2()
1244 args.v4.usPixelClock = cpu_to_le16(dp_clock / 10); in atombios_dig_transmitter_setup2()
1246 args.v4.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); in atombios_dig_transmitter_setup2()
1248 args.v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_transmitter_setup2()
1252 args.v4.ucLaneNum = dp_lane_count; in atombios_dig_transmitter_setup2()
1254 args.v4.ucLaneNum = 8; in atombios_dig_transmitter_setup2()
1256 args.v4.ucLaneNum = 4; in atombios_dig_transmitter_setup2()
1259 args.v4.acConfig.ucLinkSel = 1; in atombios_dig_transmitter_setup2()
1261 args.v4.acConfig.ucEncoderSel = 1; in atombios_dig_transmitter_setup2()
1270 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_EXTCLK; in atombios_dig_transmitter_setup2()
1272 args.v4.acConfig.ucRefClkSource = ENCODER_REFCLK_SRC_DCPLL; in atombios_dig_transmitter_setup2()
1274 args.v4.acConfig.ucRefClkSource = pll_id; in atombios_dig_transmitter_setup2()
1278 args.v4.acConfig.ucTransmitterSel = 0; in atombios_dig_transmitter_setup2()
1281 args.v4.acConfig.ucTransmitterSel = 1; in atombios_dig_transmitter_setup2()
1284 args.v4.acConfig.ucTransmitterSel = 2; in atombios_dig_transmitter_setup2()
1289 args.v4.acConfig.fCoherentMode = 1; /* DP requires coherent */ in atombios_dig_transmitter_setup2()
1292 args.v4.acConfig.fCoherentMode = 1; in atombios_dig_transmitter_setup2()
1294 args.v4.acConfig.fDualLinkConnector = 1; in atombios_dig_transmitter_setup2()
1298 args.v5.ucAction = action; in atombios_dig_transmitter_setup2()
1300 args.v5.usSymClock = cpu_to_le16(dp_clock / 10); in atombios_dig_transmitter_setup2()
1302 args.v5.usSymClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_dig_transmitter_setup2()
1307 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYB; in atombios_dig_transmitter_setup2()
1309 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYA; in atombios_dig_transmitter_setup2()
1313 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYD; in atombios_dig_transmitter_setup2()
1315 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYC; in atombios_dig_transmitter_setup2()
1319 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYF; in atombios_dig_transmitter_setup2()
1321 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYE; in atombios_dig_transmitter_setup2()
1324 args.v5.ucPhyId = ATOM_PHY_ID_UNIPHYG; in atombios_dig_transmitter_setup2()
1328 args.v5.ucLaneNum = dp_lane_count; in atombios_dig_transmitter_setup2()
1330 args.v5.ucLaneNum = 8; in atombios_dig_transmitter_setup2()
1332 args.v5.ucLaneNum = 4; in atombios_dig_transmitter_setup2()
1333 args.v5.ucConnObjId = connector_object_id; in atombios_dig_transmitter_setup2()
1334 args.v5.ucDigMode = atombios_get_encoder_mode(encoder); in atombios_dig_transmitter_setup2()
1337 args.v5.asConfig.ucPhyClkSrcId = ENCODER_REFCLK_SRC_EXTCLK; in atombios_dig_transmitter_setup2()
1339 args.v5.asConfig.ucPhyClkSrcId = pll_id; in atombios_dig_transmitter_setup2()
1342 args.v5.asConfig.ucCoherentMode = 1; /* DP requires coherent */ in atombios_dig_transmitter_setup2()
1345 args.v5.asConfig.ucCoherentMode = 1; in atombios_dig_transmitter_setup2()
1348 args.v5.asConfig.ucHPDSel = 0; in atombios_dig_transmitter_setup2()
1350 args.v5.asConfig.ucHPDSel = hpd_id + 1; in atombios_dig_transmitter_setup2()
1351 args.v5.ucDigEncoderSel = (fe != -1) ? (1 << fe) : (1 << dig_encoder); in atombios_dig_transmitter_setup2()
1352 args.v5.ucDPLaneSet = lane_set; in atombios_dig_transmitter_setup2()
1364 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dig_transmitter_setup2()
1379 union dig_transmitter_control args; in atombios_set_edp_panel_power() local
1396 memset(&args, 0, sizeof(args)); in atombios_set_edp_panel_power()
1398 args.v1.ucAction = action; in atombios_set_edp_panel_power()
1400 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_edp_panel_power()
1431 union external_encoder_control args; in atombios_external_encoder_setup() local
1456 memset(&args, 0, sizeof(args)); in atombios_external_encoder_setup()
1469 args.v1.sDigEncoder.ucAction = action; in atombios_external_encoder_setup()
1470 args.v1.sDigEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_external_encoder_setup()
1471 args.v1.sDigEncoder.ucEncoderMode = atombios_get_encoder_mode(encoder); in atombios_external_encoder_setup()
1473 if (ENCODER_MODE_IS_DP(args.v1.sDigEncoder.ucEncoderMode)) { in atombios_external_encoder_setup()
1475 args.v1.sDigEncoder.ucConfig |= ATOM_ENCODER_CONFIG_DPLINKRATE_2_70GHZ; in atombios_external_encoder_setup()
1476 args.v1.sDigEncoder.ucLaneNum = dp_lane_count; in atombios_external_encoder_setup()
1478 args.v1.sDigEncoder.ucLaneNum = 8; in atombios_external_encoder_setup()
1480 args.v1.sDigEncoder.ucLaneNum = 4; in atombios_external_encoder_setup()
1483 args.v3.sExtEncoder.ucAction = action; in atombios_external_encoder_setup()
1485 args.v3.sExtEncoder.usConnectorId = cpu_to_le16(connector_object_id); in atombios_external_encoder_setup()
1487 args.v3.sExtEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); in atombios_external_encoder_setup()
1488 args.v3.sExtEncoder.ucEncoderMode = atombios_get_encoder_mode(encoder); in atombios_external_encoder_setup()
1490 if (ENCODER_MODE_IS_DP(args.v3.sExtEncoder.ucEncoderMode)) { in atombios_external_encoder_setup()
1492 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_2_70GHZ; in atombios_external_encoder_setup()
1494 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_DPLINKRATE_5_40GHZ; in atombios_external_encoder_setup()
1495 args.v3.sExtEncoder.ucLaneNum = dp_lane_count; in atombios_external_encoder_setup()
1497 args.v3.sExtEncoder.ucLaneNum = 8; in atombios_external_encoder_setup()
1499 args.v3.sExtEncoder.ucLaneNum = 4; in atombios_external_encoder_setup()
1502 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER1; in atombios_external_encoder_setup()
1505 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER2; in atombios_external_encoder_setup()
1508 args.v3.sExtEncoder.ucConfig |= EXTERNAL_ENCODER_CONFIG_V3_ENCODER3; in atombios_external_encoder_setup()
1511 args.v3.sExtEncoder.ucBitPerColor = radeon_atom_get_bpc(encoder); in atombios_external_encoder_setup()
1522 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_external_encoder_setup()
1532 ENABLE_YUV_PS_ALLOCATION args; in atombios_yuv_setup() local
1536 memset(&args, 0, sizeof(args)); in atombios_yuv_setup()
1554 args.ucEnable = ATOM_ENABLE; in atombios_yuv_setup()
1555 args.ucCRTC = radeon_crtc->crtc_id; in atombios_yuv_setup()
1557 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_yuv_setup()
1568 DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION args; in radeon_atom_encoder_dpms_avivo() local
1571 memset(&args, 0, sizeof(args)); in radeon_atom_encoder_dpms_avivo()
1616 args.ucAction = ATOM_ENABLE; in radeon_atom_encoder_dpms_avivo()
1621 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in radeon_atom_encoder_dpms_avivo()
1624 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in radeon_atom_encoder_dpms_avivo()
1631 args.ucAction = ATOM_LCD_BLON; in radeon_atom_encoder_dpms_avivo()
1632 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in radeon_atom_encoder_dpms_avivo()
1639 args.ucAction = ATOM_DISABLE; in radeon_atom_encoder_dpms_avivo()
1640 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in radeon_atom_encoder_dpms_avivo()
1642 args.ucAction = ATOM_LCD_BLOFF; in radeon_atom_encoder_dpms_avivo()
1643 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in radeon_atom_encoder_dpms_avivo()
1851 union crtc_source_param args; in atombios_set_encoder_crtc_source() local
1856 memset(&args, 0, sizeof(args)); in atombios_set_encoder_crtc_source()
1867 args.v1.ucCRTC = radeon_crtc->crtc_id; in atombios_set_encoder_crtc_source()
1870 args.v1.ucCRTC = radeon_crtc->crtc_id; in atombios_set_encoder_crtc_source()
1872 args.v1.ucCRTC = radeon_crtc->crtc_id << 2; in atombios_set_encoder_crtc_source()
1877 args.v1.ucDevice = ATOM_DEVICE_DFP1_INDEX; in atombios_set_encoder_crtc_source()
1882 args.v1.ucDevice = ATOM_DEVICE_LCD1_INDEX; in atombios_set_encoder_crtc_source()
1884 args.v1.ucDevice = ATOM_DEVICE_DFP3_INDEX; in atombios_set_encoder_crtc_source()
1889 args.v1.ucDevice = ATOM_DEVICE_DFP2_INDEX; in atombios_set_encoder_crtc_source()
1894 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in atombios_set_encoder_crtc_source()
1896 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in atombios_set_encoder_crtc_source()
1898 args.v1.ucDevice = ATOM_DEVICE_CRT1_INDEX; in atombios_set_encoder_crtc_source()
1903 args.v1.ucDevice = ATOM_DEVICE_TV1_INDEX; in atombios_set_encoder_crtc_source()
1905 args.v1.ucDevice = ATOM_DEVICE_CV_INDEX; in atombios_set_encoder_crtc_source()
1907 args.v1.ucDevice = ATOM_DEVICE_CRT2_INDEX; in atombios_set_encoder_crtc_source()
1912 args.v2.ucCRTC = radeon_crtc->crtc_id; in atombios_set_encoder_crtc_source()
1917 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in atombios_set_encoder_crtc_source()
1919 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_CRT; in atombios_set_encoder_crtc_source()
1921 args.v2.ucEncodeMode = atombios_get_encoder_mode(encoder); in atombios_set_encoder_crtc_source()
1923 args.v2.ucEncodeMode = ATOM_ENCODER_MODE_LVDS; in atombios_set_encoder_crtc_source()
1925 args.v2.ucEncodeMode = atombios_get_encoder_mode(encoder); in atombios_set_encoder_crtc_source()
1936 args.v2.ucEncoderID = ASIC_INT_DIG1_ENCODER_ID; in atombios_set_encoder_crtc_source()
1939 args.v2.ucEncoderID = ASIC_INT_DIG2_ENCODER_ID; in atombios_set_encoder_crtc_source()
1942 args.v2.ucEncoderID = ASIC_INT_DIG3_ENCODER_ID; in atombios_set_encoder_crtc_source()
1945 args.v2.ucEncoderID = ASIC_INT_DIG4_ENCODER_ID; in atombios_set_encoder_crtc_source()
1948 args.v2.ucEncoderID = ASIC_INT_DIG5_ENCODER_ID; in atombios_set_encoder_crtc_source()
1951 args.v2.ucEncoderID = ASIC_INT_DIG6_ENCODER_ID; in atombios_set_encoder_crtc_source()
1954 args.v2.ucEncoderID = ASIC_INT_DIG7_ENCODER_ID; in atombios_set_encoder_crtc_source()
1959 args.v2.ucEncoderID = ASIC_INT_DVO_ENCODER_ID; in atombios_set_encoder_crtc_source()
1963 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in atombios_set_encoder_crtc_source()
1965 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in atombios_set_encoder_crtc_source()
1967 args.v2.ucEncoderID = ASIC_INT_DAC1_ENCODER_ID; in atombios_set_encoder_crtc_source()
1971 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in atombios_set_encoder_crtc_source()
1973 args.v2.ucEncoderID = ASIC_INT_TV_ENCODER_ID; in atombios_set_encoder_crtc_source()
1975 args.v2.ucEncoderID = ASIC_INT_DAC2_ENCODER_ID; in atombios_set_encoder_crtc_source()
1986 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_set_encoder_crtc_source()
2283 DAC_LOAD_DETECTION_PS_ALLOCATION args; in atombios_dac_load_detect() local
2287 memset(&args, 0, sizeof(args)); in atombios_dac_load_detect()
2292 args.sDacload.ucMisc = 0; in atombios_dac_load_detect()
2296 args.sDacload.ucDacType = ATOM_DAC_A; in atombios_dac_load_detect()
2298 args.sDacload.ucDacType = ATOM_DAC_B; in atombios_dac_load_detect()
2301 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT1_SUPPORT); in atombios_dac_load_detect()
2303 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT2_SUPPORT); in atombios_dac_load_detect()
2305 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CV_SUPPORT); in atombios_dac_load_detect()
2307 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in atombios_dac_load_detect()
2309 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_TV1_SUPPORT); in atombios_dac_load_detect()
2311 args.sDacload.ucMisc = DAC_LOAD_MISC_YPrPb; in atombios_dac_load_detect()
2314 atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args, sizeof(args)); in atombios_dac_load_detect()