Lines Matching defs:dev_priv

87 		base -= dev_priv->mm.gtt->stolen_size;
99 struct drm_i915_private *dev_priv = dev->dev_private;
103 compressed_fb = drm_mm_search_free(&dev_priv->mm.stolen,
106 compressed_fb = drm_mm_search_free(&dev_priv->mm.stolen,
118 compressed_llb = drm_mm_search_free(&dev_priv->mm.stolen,
126 dev_priv->compressed_llb = compressed_llb;
129 dev_priv->mm.stolen_base + compressed_fb->start);
131 dev_priv->mm.stolen_base + compressed_llb->start);
134 dev_priv->compressed_fb = compressed_fb;
135 dev_priv->cfb_size = size;
150 struct drm_i915_private *dev_priv = dev->dev_private;
152 if (!drm_mm_initialized(&dev_priv->mm.stolen))
155 if (size < dev_priv->cfb_size)
166 struct drm_i915_private *dev_priv = dev->dev_private;
168 if (dev_priv->cfb_size == 0)
171 if (dev_priv->compressed_fb)
172 drm_mm_put_block(dev_priv->compressed_fb);
174 if (dev_priv->compressed_llb)
175 drm_mm_put_block(dev_priv->compressed_llb);
177 dev_priv->cfb_size = 0;
182 struct drm_i915_private *dev_priv = dev->dev_private;
184 if (!drm_mm_initialized(&dev_priv->mm.stolen))
188 drm_mm_takedown(&dev_priv->mm.stolen);
193 struct drm_i915_private *dev_priv = dev->dev_private;
196 dev_priv->mm.stolen_base = i915_stolen_to_physical(dev);
197 if (dev_priv->mm.stolen_base == 0)
201 dev_priv->gtt.stolen_size, dev_priv->mm.stolen_base);
207 drm_mm_init(&dev_priv->mm.stolen, 0, dev_priv->gtt.stolen_size -
218 struct drm_i915_private *dev_priv = dev->dev_private;
222 BUG_ON(offset > dev_priv->gtt.stolen_size - size);
243 sg_dma_address(sg) = (dma_addr_t)dev_priv->mm.stolen_base + offset;
311 struct drm_i915_private *dev_priv = dev->dev_private;
315 if (!drm_mm_initialized(&dev_priv->mm.stolen))
322 stolen = drm_mm_search_free(&dev_priv->mm.stolen, size, 4096, 0);
343 struct drm_i915_private *dev_priv = dev->dev_private;
347 if (!drm_mm_initialized(&dev_priv->mm.stolen))
360 stolen = drm_mm_create_block(&dev_priv->mm.stolen,
384 if (drm_mm_initialized(&dev_priv->mm.gtt_space)) {
385 obj->gtt_space = drm_mm_create_block(&dev_priv->mm.gtt_space,
399 list_add_tail(&obj->global_list, &dev_priv->mm.bound_list, (caddr_t)obj);
400 list_add_tail(&obj->mm_list, &dev_priv->mm.inactive_list, (caddr_t)obj);