Lines Matching refs:drm
106 struct nv84_fence_priv *priv = chan->drm->fence; in nv84_fence_read()
113 struct drm_device *dev = chan->drm->dev; in nv84_fence_context_del()
114 struct nv84_fence_priv *priv = chan->drm->fence; in nv84_fence_context_del()
135 struct nv84_fence_priv *priv = chan->drm->fence; in nv84_fence_context_new()
158 for (i = 0; !ret && i < chan->drm->dev->mode_config.num_crtc; i++) { in nv84_fence_context_new()
159 struct nouveau_bo *bo = nv50_display_crtc_sema(chan->drm->dev, i); in nv84_fence_context_new()
169 nv84_fence_suspend(struct nouveau_drm *drm) in nv84_fence_suspend() argument
171 struct nv84_fence_priv *priv = drm->fence; in nv84_fence_suspend()
184 nv84_fence_resume(struct nouveau_drm *drm) in nv84_fence_resume() argument
186 struct nv84_fence_priv *priv = drm->fence; in nv84_fence_resume()
198 nv84_fence_destroy(struct nouveau_drm *drm) in nv84_fence_destroy() argument
200 struct nv84_fence_priv *priv = drm->fence; in nv84_fence_destroy()
209 drm->fence = NULL; in nv84_fence_destroy()
214 nv84_fence_create(struct nouveau_drm *drm) in nv84_fence_create() argument
216 struct nvkm_fifo *pfifo = nvxx_fifo(&drm->device); in nv84_fence_create()
221 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv84_fence_create()
236 domain = drm->device.info.ram_size != 0 ? TTM_PL_FLAG_VRAM : in nv84_fence_create()
242 ret = nouveau_bo_new(drm->dev, 16 * priv->base.contexts, 0, domain, 0, in nv84_fence_create()
256 ret = nouveau_bo_new(drm->dev, 16 * priv->base.contexts, 0, in nv84_fence_create()
271 nv84_fence_destroy(drm); in nv84_fence_create()