Lines Matching defs:radeon_output

179     RADEONOutputPrivatePtr radeon_output = output->driver_private;
182 radeon_tvout_ptr tvout = &radeon_output->tvout;
187 int clock = radeon_output->pixel_clock;
209 if (radeon_output->active_device & (ATOM_DEVICE_CRT_SUPPORT))
211 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
249 RADEONOutputPrivatePtr radeon_output = output->driver_private;
250 radeon_tvout_ptr tvout = &radeon_output->tvout;
255 int clock = radeon_output->pixel_clock;
261 if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
313 RADEONOutputPrivatePtr radeon_output = output->driver_private;
319 int clock = radeon_output->pixel_clock;
347 RADEONOutputPrivatePtr radeon_output = output->driver_private;
352 int clock = radeon_output->pixel_clock;
378 RADEONOutputPrivatePtr radeon_output = output->driver_private;
389 int clock = radeon_output->pixel_clock;
394 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT)) {
414 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT))
432 if ((radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_A) ||
433 (radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_B))
436 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT)) {
442 if (radeon_output->linkb)
456 if (radeon_output->coherent_mode) {
461 if ((radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_A) ||
462 (radeon_output->ConnectorType == CONNECTOR_HDMI_TYPE_B))
469 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT)) {
485 if (radeon_output->linkb)
533 RADEONOutputPrivatePtr radeon_output = output->driver_private;
536 switch (radeon_output->ConnectorType) {
538 if (radeon_output->active_device & (ATOM_DEVICE_DFP_SUPPORT))
559 if (radeon_output->MonType == MT_DP)
573 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
575 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
601 RADEONOutputPrivatePtr radeon_output = output->driver_private;
603 int max_link_bw = radeon_output->dpcd[1];
668 RADEONOutputPrivatePtr radeon_output = output->driver_private;
670 int max_link_bw = radeon_output->dpcd[1];
766 RADEONOutputPrivatePtr radeon_output = output->driver_private;
773 int clock = radeon_output->pixel_clock;
782 else if (radeon_output->dig_encoder)
803 disp_data.v3.acConfig.ucDigSel = radeon_output->dig_encoder;
818 if (radeon_output->linkb)
829 /* ErrorF("Output DIG%d encoder setup success\n", radeon_output->dig_encoder); */
833 ErrorF("Output DIG%d setup failed\n", radeon_output->dig_encoder);
847 RADEONOutputPrivatePtr radeon_output = output->driver_private;
855 int clock = radeon_output->pixel_clock;
879 disp_data.v1.usInitInfo = radeon_output->connector_object_id;
884 if (radeon_output->MonType == MT_DP)
894 if (radeon_output->MonType == MT_DP)
901 if (radeon_output->linkb) {
907 if (radeon_output->MonType == MT_DP && info->dp_extclk)
910 disp_data.v3.acConfig.ucRefClkSource = radeon_output->pll_id;
927 if (radeon_output->MonType == MT_DP)
929 else if (radeon_output->active_device & (ATOM_DEVICE_DFP_SUPPORT)) {
930 if (radeon_output->coherent_mode)
936 if (radeon_output->dig_encoder)
939 if (radeon_output->linkb)
957 if (radeon_output->MonType == MT_DP)
959 else if (radeon_output->active_device & (ATOM_DEVICE_DFP_SUPPORT)) {
960 if (radeon_output->coherent_mode)
968 if (radeon_output->dig_encoder)
977 if (radeon_output->igp_lane_info & 0x3)
979 else if (radeon_output->igp_lane_info & 0xc)
982 if (radeon_output->igp_lane_info & 0x1)
984 else if (radeon_output->igp_lane_info & 0x2)
986 else if (radeon_output->igp_lane_info & 0x4)
988 else if (radeon_output->igp_lane_info & 0x8)
994 if (radeon_output->linkb)
999 if (radeon_output->MonType == MT_DP)
1001 else if (radeon_output->active_device & (ATOM_DEVICE_DFP_SUPPORT)) {
1002 if (radeon_output->coherent_mode)
1265 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1281 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1284 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1318 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1332 if (radeon_output->Flags & RADEON_USE_RMX) {
1333 if (radeon_output->rmx_type == RMX_FULL) {
1338 } else if (radeon_output->rmx_type == RMX_CENTER) {
1343 } else if (radeon_output->rmx_type == RMX_ASPECT) {
1374 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1375 radeon_tvout_ptr tvout = &radeon_output->tvout;
1388 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT)) {
1420 } else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT)) {
1424 } else if (radeon_output->Flags & RADEON_USE_RMX) {
1426 if (radeon_output->rmx_type == RMX_FULL)
1428 else if (radeon_output->rmx_type == RMX_CENTER)
1430 else if (radeon_output->rmx_type == RMX_ASPECT)
1445 if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT | ATOM_DEVICE_TV_SUPPORT)
1462 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1496 if (radeon_output->active_device & (ATOM_DEVICE_LCD_SUPPORT))
1506 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1508 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1519 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1521 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1531 radeon_encoder->devices |= radeon_output->active_device;
1534 if (((radeon_output->ConnectorType == CONNECTOR_DISPLAY_PORT) ||
1535 (radeon_output->ConnectorType == CONNECTOR_EDP)) &&
1536 (radeon_output->MonType == MT_DP)) {
1556 device_name[radeon_get_device_index(radeon_output->active_device)]);
1560 device_name[radeon_get_device_index(radeon_output->active_device)]);
1565 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1571 radeon_encoder->devices &= ~(radeon_output->active_device);
1575 if (((radeon_output->ConnectorType == CONNECTOR_DISPLAY_PORT) ||
1576 (radeon_output->ConnectorType == CONNECTOR_EDP)) &&
1577 (radeon_output->MonType == MT_DP)) {
1591 device_name[radeon_get_device_index(radeon_output->active_device)]);
1595 device_name[radeon_get_device_index(radeon_output->active_device)]);
1610 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1650 if (radeon_output->active_device & ATOM_DEVICE_LCD1_SUPPORT)
1662 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1664 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1671 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1673 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1689 switch (radeon_output->dig_encoder) {
1714 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1716 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1722 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT))
1724 else if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT))
1755 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1764 if (radeon_output->MonType == MT_LCD) {
1765 if (radeon_output->devices & ATOM_DEVICE_LCD1_SUPPORT) {
1777 if (!(radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT | ATOM_DEVICE_TV_SUPPORT))) {
1784 (radeon_output->active_device & (ATOM_DEVICE_DFP_SUPPORT))) {
1801 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1819 if (radeon_output->linkb)
1820 radeon_output->dig_encoder = 1;
1822 radeon_output->dig_encoder = 0;
1826 if (radeon_output->linkb)
1827 radeon_output->dig_encoder = 1;
1829 radeon_output->dig_encoder = 0;
1832 if (radeon_output->linkb)
1833 radeon_output->dig_encoder = 3;
1835 radeon_output->dig_encoder = 2;
1838 if (radeon_output->linkb)
1839 radeon_output->dig_encoder = 5;
1841 radeon_output->dig_encoder = 4;
1853 radeon_output->dig_encoder = radeon_crtc->crtc_id;
1874 radeon_output->dig_encoder = 1;
1878 radeon_output->dig_encoder = 0;
1880 radeon_output->dig_encoder = 1;
1887 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1893 radeon_output->pixel_clock = adjusted_mode->Clock;
1899 if (radeon_output->active_device & (ATOM_DEVICE_CV_SUPPORT | ATOM_DEVICE_TV_SUPPORT))
1945 if (radeon_output->devices & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT)) {
1946 if (radeon_output->active_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))
1959 RADEONOutputPrivatePtr radeon_output = output->driver_private;
1971 if (radeon_output->devices & ATOM_DEVICE_CRT1_SUPPORT) {
1979 } else if (radeon_output->devices & ATOM_DEVICE_CRT2_SUPPORT) {
1987 } else if (radeon_output->devices & ATOM_DEVICE_CV_SUPPORT) {
1997 } else if (radeon_output->devices & ATOM_DEVICE_TV1_SUPPORT) {
2029 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2034 if (radeon_output->devices & ATOM_DEVICE_TV1_SUPPORT) {
2036 if (radeon_output->ConnectorType == CONNECTOR_STV)
2051 if (radeon_output->devices & ATOM_DEVICE_CRT1_SUPPORT) {
2054 } else if (radeon_output->devices & ATOM_DEVICE_CRT2_SUPPORT) {
2057 } else if (radeon_output->devices & ATOM_DEVICE_CV_SUPPORT) {
2060 } else if (radeon_output->devices & ATOM_DEVICE_TV1_SUPPORT) {
2074 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2076 if (radeon_output->dig_encoder)
2080 if (radeon_output->linkb)
2096 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2118 args.v1.ucChannelID = radeon_output->ucI2cId;
2121 args.v2.ucHPD_ID = radeon_output->hpd_id;
2176 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2178 return RADEONDPEncoderService(output, ATOM_DP_ACTION_GET_SINK_TYPE, radeon_output->ucI2cId, 0);
2231 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2237 memcpy(radeon_output->dpcd, msg, 8);
2242 ErrorF("%02x ", radeon_output->dpcd[i]);
2251 radeon_output->dpcd[0] = 0;
2314 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2317 radeon_output->dp_i2c_addr = addr;
2318 radeon_output->dp_i2c_running = TRUE;
2321 ret = atom_dp_aux_i2c_transaction(output, radeon_output->dp_i2c_addr,
2338 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2340 if (radeon_output->dp_i2c_running)
2341 atom_dp_aux_i2c_transaction(output, radeon_output->dp_i2c_addr,
2343 radeon_output->dp_i2c_running = FALSE;
2352 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2355 ret = (atom_dp_aux_i2c_transaction(output, radeon_output->dp_i2c_addr,
2365 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2368 ret = (atom_dp_aux_i2c_transaction(output, radeon_output->dp_i2c_addr,
2545 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2547 if (radeon_output->dpcd[0] >= 0x11) {
2598 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2601 if (radeon_output->dpcd[0] >= 0x11) {
2602 max_lane_count = radeon_output->dpcd[2] & 0x1f;
2615 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2618 radeon_output->dp_lane_count = dp_lanes_for_mode_clock(output, clock);
2619 radeon_output->dp_clock = dp_link_clock_for_mode_clock(output, clock);
2620 if (!radeon_output->dp_lane_count || !radeon_output->dp_clock)
2627 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2629 for (i = 0; i < radeon_output->dp_lane_count; i++)
2632 atom_dp_aux_native_write(output, DP_TRAINING_LANE0_SET, radeon_output->dp_lane_count, train_set);
2639 RADEONOutputPrivatePtr radeon_output = output->driver_private;
2654 if (radeon_output->dp_clock == 27000)
2658 dp_link_configuration[1] = radeon_output->dp_lane_count;
2660 if (radeon_output->dpcd[0] >= 0x11) {
2701 if (dp_clock_recovery_ok(link_status, radeon_output->dp_lane_count)) {
2706 for (i = 0; i < radeon_output->dp_lane_count; i++)
2709 if (i == radeon_output->dp_lane_count) {
2728 dp_get_adjust_train(output, link_status, radeon_output->dp_lane_count, train_set);
2751 if (dp_channel_eq_ok(link_status, radeon_output->dp_lane_count)) {
2764 dp_get_adjust_train(output, link_status, radeon_output->dp_lane_count, train_set);