Lines Matching refs:dev
47 struct drm_device *dev = ifbdev->helper.dev;
48 struct drm_i915_private *dev_priv = dev->dev_private;
79 mutex_lock(&dev->struct_mutex);
81 ret = intel_framebuffer_init(dev, &ifbdev->ifb, &mode_cmd, obj);
89 mutex_unlock(&dev->struct_mutex);
97 mutex_unlock(&dev->struct_mutex);
108 static void intel_fbdev_destroy(struct drm_device *dev,
123 int intel_fbdev_init(struct drm_device *dev)
126 struct drm_i915_private *dev_priv = dev->dev_private;
136 ret = drm_fb_helper_init(dev, &ifbdev->helper,
137 INTEL_INFO(dev)->num_pipes,
148 void intel_fbdev_initial_config(struct drm_device *dev)
150 struct drm_i915_private *dev_priv = dev->dev_private;
156 void intel_fbdev_fini(struct drm_device *dev)
158 struct drm_i915_private *dev_priv = dev->dev_private;
162 intel_fbdev_destroy(dev, dev_priv->fbdev);
167 void intel_fb_output_poll_changed(struct drm_device *dev)
169 struct drm_i915_private *dev_priv = dev->dev_private;
174 void intel_fb_restore_mode(struct drm_device *dev)
177 struct drm_i915_private *dev_priv = dev->dev_private;
179 if (INTEL_INFO(dev)->num_pipes == 0)
182 drm_modeset_lock_all(dev);
188 drm_modeset_unlock_all(dev);