Lines Matching defs:dev

245 i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)
247 struct s3_i915_private *s3_priv = dev->s3_private;
256 i915_save_palette(struct drm_device *dev, enum pipe pipe)
258 struct s3_i915_private *s3_priv = dev->s3_private;
263 if (!i915_pipe_enabled(dev, pipe))
277 i915_restore_palette(struct drm_device *dev, enum pipe pipe)
279 struct s3_i915_private *s3_priv = dev->s3_private;
284 if (!i915_pipe_enabled(dev, pipe))
297 i915_save_vga(struct drm_device *dev)
299 struct s3_i915_private *s3_priv = dev->s3_private;
364 i915_restore_vga(struct drm_device *dev)
366 struct s3_i915_private *s3_priv = dev->s3_private;
441 * @dev: DRM device
445 void i915_save_display(struct drm_device *dev)
447 struct s3_i915_private *s3_priv = dev->s3_private;
460 if (IS_I965G(dev))
475 if (IS_I965G(dev)) {
479 i915_save_palette(dev, PIPE_A);
490 if (IS_I965G(dev))
505 if (IS_I965GM(dev) || IS_GM45(dev)) {
509 i915_save_palette(dev, PIPE_B);
523 if (IS_I965G(dev))
525 if (IS_MOBILE(dev) && !IS_I830(dev))
527 if (!IS_I830(dev) && !IS_845G(dev))
547 i915_save_vga(dev);
550 void i915_restore_display(struct drm_device *dev)
552 struct s3_i915_private *s3_priv = dev->s3_private;
570 if (IS_I965G(dev))
589 if (IS_I965G(dev)) {
594 i915_restore_palette(dev, PIPE_A);
610 if (IS_I965G(dev))
629 if (IS_I965G(dev)) {
634 i915_restore_palette(dev, PIPE_B);
643 if (IS_I965G(dev))
645 if (IS_MOBILE(dev) && !IS_I830(dev))
647 if (!IS_I830(dev) && !IS_845G(dev))
672 i915_restore_vga(dev);
675 i915_resume(struct drm_device *dev)
678 struct s3_i915_private *s3_priv = dev->s3_private;
681 if (pci_config_setup(dev->dip, &conf_hdl) != DDI_SUCCESS) {
692 if (IS_I965G(dev) && IS_MOBILE(dev))
694 if (IS_I965GM(dev))
698 if (IS_I965GM(dev))
701 i915_restore_display(dev);
724 drm_agp_rebind(dev);
730 i915_suspend(struct drm_device *dev)
733 struct s3_i915_private *s3_priv = dev->s3_private;
736 if (pci_config_setup(dev->dip, &conf_hdl) != DDI_SUCCESS) {
747 if (IS_I965G(dev) && IS_MOBILE(dev))
753 i915_save_display(dev);