Lines Matching refs:pipe
34 static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
39 /* On IVB, 3rd pipe shares PLL with another one */
40 if (pipe > 1)
44 dpll_reg = PCH_DPLL(pipe);
46 dpll_reg = (pipe == PIPE_A) ? _DPLL_A : _DPLL_B;
51 static void i915_save_palette(struct drm_device *dev, enum pipe pipe)
54 unsigned long reg = (pipe == PIPE_A ? _PALETTE_A : _PALETTE_B);
58 if (!i915_pipe_enabled(dev, pipe))
62 reg = (pipe == PIPE_A) ? _LGC_PALETTE_A : _LGC_PALETTE_B;
64 if (pipe == PIPE_A)
73 static void i915_restore_palette(struct drm_device *dev, enum pipe pipe)
76 unsigned long reg = (pipe == PIPE_A ? _PALETTE_A : _PALETTE_B);
80 if (!i915_pipe_enabled(dev, pipe))
84 reg = (pipe == PIPE_A) ? _LGC_PALETTE_A : _LGC_PALETTE_B;
86 if (pipe == PIPE_A)