Lines Matching defs:dev

34 static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
36 struct drm_i915_private *dev_priv = dev->dev_private;
43 if (HAS_PCH_SPLIT(dev))
51 static void i915_save_palette(struct drm_device *dev, enum pipe pipe)
53 struct drm_i915_private *dev_priv = dev->dev_private;
58 if (!i915_pipe_enabled(dev, pipe))
61 if (HAS_PCH_SPLIT(dev))
73 static void i915_restore_palette(struct drm_device *dev, enum pipe pipe)
75 struct drm_i915_private *dev_priv = dev->dev_private;
80 if (!i915_pipe_enabled(dev, pipe))
83 if (HAS_PCH_SPLIT(dev))
95 void i915_save_display_reg(struct drm_device *dev)
97 struct drm_i915_private *dev_priv = dev->dev_private;
107 if (IS_GEN2(dev))
110 if (HAS_PCH_SPLIT(dev)) {
118 if (HAS_PCH_SPLIT(dev)) {
127 if (INTEL_INFO(dev)->gen >= 4 && !HAS_PCH_SPLIT(dev))
135 if (!HAS_PCH_SPLIT(dev))
138 if (HAS_PCH_SPLIT(dev)) {
165 if (INTEL_INFO(dev)->gen >= 4) {
169 i915_save_palette(dev, PIPE_A);
175 if (HAS_PCH_SPLIT(dev)) {
184 if (INTEL_INFO(dev)->gen >= 4 && !HAS_PCH_SPLIT(dev))
192 if (!HAS_PCH_SPLIT(dev))
195 if (HAS_PCH_SPLIT(dev)) {
222 if (INTEL_INFO(dev)->gen >= 4) {
226 i915_save_palette(dev, PIPE_B);
230 switch (INTEL_INFO(dev)->gen) {
242 if (IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev))
252 if (HAS_PCH_SPLIT(dev))
258 if (SUPPORTS_INTEGRATED_DP(dev)) {
276 void i915_restore_display_reg(struct drm_device *dev)
278 struct drm_i915_private *dev_priv = dev->dev_private;
284 if (SUPPORTS_INTEGRATED_DP(dev)) {
296 switch (INTEL_INFO(dev)->gen) {
309 if (IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev))
318 if (HAS_PCH_SPLIT(dev)) {
334 if (HAS_PCH_SPLIT(dev)) {
353 if (INTEL_INFO(dev)->gen >= 4 && !HAS_PCH_SPLIT(dev)) {
366 if (!HAS_PCH_SPLIT(dev))
369 if (HAS_PCH_SPLIT(dev)) {
397 if (INTEL_INFO(dev)->gen >= 4) {
404 i915_restore_palette(dev, PIPE_A);
422 if (INTEL_INFO(dev)->gen >= 4 && !HAS_PCH_SPLIT(dev)) {
435 if (!HAS_PCH_SPLIT(dev))
438 if (HAS_PCH_SPLIT(dev)) {
466 if (INTEL_INFO(dev)->gen >= 4) {
473 i915_restore_palette(dev, PIPE_B);
485 if (IS_GEN2(dev))
489 if (HAS_PCH_SPLIT(dev))
495 if (SUPPORTS_INTEGRATED_DP(dev)) {