Lines Matching defs:port
48 * is_edp - is the given port attached to an eDP panel (either CPU or PCH)
316 } else if (intel_dig_port->port == PORT_A) {
687 enum port port = dp_to_dig_port(intel_dp)->port;
697 if (HAS_PCH_SPLIT(dev) && !HAS_DDI(dev) && port != PORT_A)
833 enum port port = dp_to_dig_port(intel_dp)->port;
873 if (port == PORT_A && IS_GEN7(dev) && !IS_VALLEYVIEW(dev)) {
884 } else if (!HAS_PCH_CPT(dev) || port == PORT_A) {
903 if (port == PORT_A && !IS_VALLEYVIEW(dev))
1224 DRM_ERROR("dp port still on, should be off\n");
1251 DRM_ERROR("dp port still on, should be off\n");
1296 enum port port = dp_to_dig_port(intel_dp)->port;
1304 if (port == PORT_A && IS_GEN7(dev) && !IS_VALLEYVIEW(dev)) {
1306 } else if (!HAS_PCH_CPT(dev) || port == PORT_A) {
1335 DRM_DEBUG_KMS("No pipe for dp port 0x%x found\n",
1349 enum port port = dp_to_dig_port(intel_dp)->port;
1352 if ((port == PORT_A) || !HAS_PCH_CPT(dev)) {
1382 enum port port = dp_to_dig_port(intel_dp)->port;
1393 if (!(port == PORT_A || IS_VALLEYVIEW(dev)))
1400 enum port port = dp_to_dig_port(intel_dp)->port;
1403 if (port == PORT_A || IS_VALLEYVIEW(dev)) {
1447 if (dport->port == PORT_A && !IS_VALLEYVIEW(dev))
1453 int port = vlv_dport_to_channel(dport);
1457 val = vlv_dpio_read(dev_priv, DPIO_DATA_LANE_A(port));
1464 vlv_dpio_write(dev_priv, DPIO_DATA_CHANNEL(port), val);
1466 vlv_dpio_write(dev_priv, DPIO_PCS_CLOCKBUF0(port),
1468 vlv_dpio_write(dev_priv, DPIO_PCS_CLOCKBUF8(port),
1478 int port = vlv_dport_to_channel(dport);
1484 vlv_dpio_write(dev_priv, DPIO_PCS_TX(port),
1487 vlv_dpio_write(dev_priv, DPIO_PCS_CLK(port),
1494 vlv_dpio_write(dev_priv, DPIO_PCS_STAGGER1(port), 0x00750f00);
1495 vlv_dpio_write(dev_priv, DPIO_TX_CTL(port), 0x00001500);
1496 vlv_dpio_write(dev_priv, DPIO_TX_LANE(port), 0x40400000);
1558 enum port port = dp_to_dig_port(intel_dp)->port;
1562 else if (IS_GEN7(dev) && port == PORT_A)
1564 else if (HAS_PCH_CPT(dev) && port != PORT_A)
1574 enum port port = dp_to_dig_port(intel_dp)->port;
1600 } else if (IS_GEN7(dev) && port == PORT_A) {
1633 int port = vlv_dport_to_channel(dport);
1708 vlv_dpio_write(dev_priv, DPIO_TX_OCALINIT(port), 0x00000000);
1709 vlv_dpio_write(dev_priv, DPIO_TX_SWING_CTL4(port), demph_reg_value);
1710 vlv_dpio_write(dev_priv, DPIO_TX_SWING_CTL2(port),
1712 vlv_dpio_write(dev_priv, DPIO_TX_SWING_CTL3(port), 0x0C782040);
1713 vlv_dpio_write(dev_priv, DPIO_PCS_STAGGER0(port), 0x00030000);
1714 vlv_dpio_write(dev_priv, DPIO_PCS_CTL_OVER1(port), preemph_reg_value);
1715 vlv_dpio_write(dev_priv, DPIO_TX_OCALINIT(port), 0x80000000);
1887 enum port port = intel_dig_port->port;
1898 } else if (IS_GEN7(dev) && port == PORT_A) {
1901 } else if (IS_GEN6(dev) && port == PORT_A) {
1922 enum port port = intel_dig_port->port;
1926 uint32_t temp = I915_READ(DP_TP_CTL(port));
1949 I915_WRITE(DP_TP_CTL(port), temp);
1951 } else if (HAS_PCH_CPT(dev) && (IS_GEN7(dev) || port != PORT_A)) {
2015 enum port port = intel_dig_port->port;
2021 val = I915_READ(DP_TP_CTL(port));
2024 I915_WRITE(DP_TP_CTL(port), val);
2033 if (port == PORT_A)
2036 if (wait_for((I915_READ(DP_TP_STATUS(port)) & DP_TP_STATUS_IDLE_DONE),
2041 /* Enable corresponding port and start training pattern 1 */
2203 enum port port = intel_dig_port->port;
2213 * really should be disabling the port only on a complete crtc_disable
2220 * called us. We don't need to disable the whole port on this case, so
2233 if (HAS_PCH_CPT(dev) && (IS_GEN7(dev) || port != PORT_A)) {
2255 * port is enabled.
2264 /* We should never try to disable a port without a crtc
2300 return true; /* no per-port downstream info */
2305 return false; /* downstream port status fetch failed */
2420 /* if there's no downstream port, we're done */
2439 /* Well we tried, say unknown for unreliable port types */
2489 switch (intel_dig_port->port) {
2807 /* check the VBT to see whether the eDP is on DP-D port */
2975 /* Haswell doesn't have any port selection bits for the panel
2980 if (dp_to_dig_port(intel_dp)->port == PORT_A)
3085 enum port port = intel_dig_port->port;
3098 switch (port) {
3122 DRM_DEBUG_KMS("Adding %s connector on port %c\n",
3124 port_name(port));
3143 switch (intel_dig_port->port) {
3162 switch (port) {
3185 DRM_ERROR("intel_dp_i2c_init failed with error %d for port %c\n",
3186 error, port_name(port));
3207 * generated on the port when a cable is not attached.
3218 intel_dp_init(struct drm_device *dev, int output_reg, enum port port)
3252 intel_dig_port->port = port;