Lines Matching full:gem

12  * This library provides helper functions for gem objects backed by
20 * @gem: GEM object
26 const struct drm_gem_object *gem) in drm_gem_ttm_print_info() argument
42 const struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_print_info()
56 * @gem: GEM object.
59 * Maps a GEM object with ttm_bo_vmap(). This function can be used as
65 int drm_gem_ttm_vmap(struct drm_gem_object *gem, in drm_gem_ttm_vmap() argument
68 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vmap()
76 * @gem: GEM object.
79 * Unmaps a GEM object with ttm_bo_vunmap(). This function can be used as
82 void drm_gem_ttm_vunmap(struct drm_gem_object *gem, in drm_gem_ttm_vunmap() argument
85 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_vunmap()
93 * @gem: GEM object.
99 int drm_gem_ttm_mmap(struct drm_gem_object *gem, in drm_gem_ttm_mmap() argument
102 struct ttm_buffer_object *bo = drm_gem_ttm_of_gem(gem); in drm_gem_ttm_mmap()
110 * ttm has its own object refcounting, so drop gem reference in drm_gem_ttm_mmap()
113 drm_gem_object_put(gem); in drm_gem_ttm_mmap()
123 * @handle: GEM handle
127 * TTM-based GEM drivers. TTM allocates the offset internally and
138 struct drm_gem_object *gem; in drm_gem_ttm_dumb_map_offset() local
140 gem = drm_gem_object_lookup(file, handle); in drm_gem_ttm_dumb_map_offset()
141 if (!gem) in drm_gem_ttm_dumb_map_offset()
144 *offset = drm_vma_node_offset_addr(&gem->vma_node); in drm_gem_ttm_dumb_map_offset()
146 drm_gem_object_put(gem); in drm_gem_ttm_dumb_map_offset()
152 MODULE_DESCRIPTION("DRM gem ttm helpers");