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()
186 nouveau_gem_object_close(struct drm_gem_object *gem, struct drm_file *file_priv) in nouveau_gem_object_close() argument
189 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_object_close()
263 /* Initialize the embedded gem-object. We return a single gem-reference in nouveau_gem_new()
302 nouveau_gem_info(struct drm_file *file_priv, struct drm_gem_object *gem, in nouveau_gem_info() argument
306 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_info()
375 nouveau_gem_set_domain(struct drm_gem_object *gem, uint32_t read_domains, in nouveau_gem_set_domain() argument
378 struct nouveau_bo *nvbo = nouveau_gem_object(gem); in nouveau_gem_set_domain()
480 struct drm_gem_object *gem; in validate_init() local
483 gem = drm_gem_object_lookup(file_priv, b->handle); in validate_init()
484 if (!gem) { in validate_init()
489 nvbo = nouveau_gem_object(gem); in validate_init()
492 drm_gem_object_put(gem); in validate_init()
499 drm_gem_object_put(gem); in validate_init()
784 req->vram_available = drm->gem.vram_available; in nouveau_gem_ioctl_pushbuf()
785 req->gart_available = drm->gem.gart_available; in nouveau_gem_ioctl_pushbuf()
985 struct drm_gem_object *gem; in nouveau_gem_ioctl_cpu_prep() local
992 gem = drm_gem_object_lookup(file_priv, req->handle); in nouveau_gem_ioctl_cpu_prep()
993 if (!gem) in nouveau_gem_ioctl_cpu_prep()
995 nvbo = nouveau_gem_object(gem); in nouveau_gem_ioctl_cpu_prep()
1008 drm_gem_object_put(gem); in nouveau_gem_ioctl_cpu_prep()
1018 struct drm_gem_object *gem; in nouveau_gem_ioctl_cpu_fini() local
1021 gem = drm_gem_object_lookup(file_priv, req->handle); in nouveau_gem_ioctl_cpu_fini()
1022 if (!gem) in nouveau_gem_ioctl_cpu_fini()
1024 nvbo = nouveau_gem_object(gem); in nouveau_gem_ioctl_cpu_fini()
1027 drm_gem_object_put(gem); in nouveau_gem_ioctl_cpu_fini()
1036 struct drm_gem_object *gem; in nouveau_gem_ioctl_info() local
1039 gem = drm_gem_object_lookup(file_priv, req->handle); in nouveau_gem_ioctl_info()
1040 if (!gem) in nouveau_gem_ioctl_info()
1043 ret = nouveau_gem_info(file_priv, gem, req); in nouveau_gem_ioctl_info()
1044 drm_gem_object_put(gem); in nouveau_gem_ioctl_info()