Lines Matching full:gem
77 nouveau_gem_object_del(struct drm_gem_object *gem) in nouveau_gem_object_del() argument
79 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_del()
90 if (gem->import_attach) in nouveau_gem_object_del()
91 drm_prime_gem_destroy(gem, nvbo->bo.sg); in nouveau_gem_object_del()
100 nouveau_gem_object_open(struct drm_gem_object *gem, struct drm_file *file_priv) in nouveau_gem_object_open() argument
103 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_open()
185 nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv) in nouveau_gem_object_close() argument
188 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_close()
262 /* Initialize the embedded gem-object. We return a single gem-reference in nouveau_gem_new()
296 nouveau_gem_info(struct drm_file *file_priv, struct drm_gem_object *gem, in nouveau_gem_info() argument
300 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_info()
369 nouveau_gem_set_domain(struct drm_gem_object *gem, uint32_t read_domains, in nouveau_gem_set_domain() argument
372 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_set_domain()
474 struct drm_gem_object *gem; in validate_init() local
477 gem = drm_gem_object_lookup(file_priv, b->handle); in validate_init()
478 if (!gem) { in validate_init()
483 nvbo = nouveau_gem_object(gem); in validate_init()
486 drm_gem_object_put(gem); in validate_init()
493 drm_gem_object_put(gem); in validate_init()
777 req->vram_available = drm->gem.vram_available; in nouveau_gem_ioctl_pushbuf()
778 req->gart_available = drm->gem.gart_available; in nouveau_gem_ioctl_pushbuf()
978 struct drm_gem_object *gem; in nouveau_gem_ioctl_cpu_prep() local
985 gem = drm_gem_object_lookup(file_priv, req->handle); in nouveau_gem_ioctl_cpu_prep()
986 if (!gem) in nouveau_gem_ioctl_cpu_prep()
988 nvbo = nouveau_gem_object(gem); in nouveau_gem_ioctl_cpu_prep()
1001 drm_gem_object_put(gem); in nouveau_gem_ioctl_cpu_prep()
1011 struct drm_gem_object *gem; in nouveau_gem_ioctl_cpu_fini() local
1014 gem = drm_gem_object_lookup(file_priv, req->handle); in nouveau_gem_ioctl_cpu_fini()
1015 if (!gem) in nouveau_gem_ioctl_cpu_fini()
1017 nvbo = nouveau_gem_object(gem); in nouveau_gem_ioctl_cpu_fini()
1020 drm_gem_object_put(gem); in nouveau_gem_ioctl_cpu_fini()
1029 struct drm_gem_object *gem; in nouveau_gem_ioctl_info() local
1032 gem = drm_gem_object_lookup(file_priv, req->handle); in nouveau_gem_ioctl_info()
1033 if (!gem) in nouveau_gem_ioctl_info()
1036 ret = nouveau_gem_info(file_priv, gem, req); in nouveau_gem_ioctl_info()
1037 drm_gem_object_put(gem); in nouveau_gem_ioctl_info()