id
stringlengths
4
63
text
stringlengths
153
8.81M
drm_gem_create_mmap_offset(9)
NAME drm_gem_create_mmap_offset - create a fake mmap offset for an object SYNOPSIS int drm_gem_create_mmap_offset (struct drm_gem_object *obj ); ARGUMENTS obj obj in question DESCRIPTION GEM memory mapping works by handing back to userspace a fake mmap offset it can use in a subsequent mmap(2) call. Th...
drm_gem_create_mmap_offset_size(9)
NAME drm_gem_create_mmap_offset_size - create a fake mmap offset for an object SYNOPSIS int drm_gem_create_mmap_offset_size (struct drm_gem_object *obj , size_t size ); ARGUMENTS obj obj in question size the virtual size DESCRIPTION GEM memory mapping works by handing back to userspace a ...
drm_gem_destroy_shadow_plane_state(9)
NAME drm_gem_destroy_shadow_plane_state - deletes shadow-buffered plane state SYNOPSIS void drm_gem_destroy_shadow_plane_state (struct drm_plane *plane , struct drm_plane_state *plane_state ); ARGUMENTS plane the plane plane_state the plane state of type struct drm_shadow_plane_state DESCRIPTION This f...
drm_gem_dma_create(9)
NAME drm_gem_dma_create - allocate an object with the given size SYNOPSIS struct drm_gem_dma_object * drm_gem_dma_create (struct drm_device *drm , size_t size ); ARGUMENTS drm DRM device size size of the object to allocate DESCRIPTION This function creates a DMA GEM object and allocates memor...
drm_gem_dma_create_with_handle(9)
NAME drm_gem_dma_create_with_handle - allocate an object with the given size and return a GEM handle to it SYNOPSIS struct drm_gem_dma_object * drm_gem_dma_create_with_handle (struct drm_file *file_priv , struct drm_device *drm , size_t size , uint32_t *handle ); ARGUMENTS file_priv DRM file-private structure to re...
drm_gem_dma_dumb_create(9)
NAME drm_gem_dma_dumb_create - create a dumb buffer object SYNOPSIS int drm_gem_dma_dumb_create (struct drm_file *file_priv , struct drm_device *drm , struct drm_mode_create_dumb *args ); ARGUMENTS file_priv DRM file-private structure to create the dumb buffer for drm DRM device args ...
drm_gem_dma_dumb_create_internal(9)
NAME drm_gem_dma_dumb_create_internal - create a dumb buffer object SYNOPSIS int drm_gem_dma_dumb_create_internal (struct drm_file *file_priv , struct drm_device *drm , struct drm_mode_create_dumb *args ); ARGUMENTS file_priv DRM file-private structure to create the dumb buffer for drm DRM device ...
drm_gem_dma_free(9)
NAME drm_gem_dma_free - free resources associated with a DMA GEM object SYNOPSIS void drm_gem_dma_free (struct drm_gem_dma_object *dma_obj ); ARGUMENTS dma_obj DMA GEM object to free DESCRIPTION This function frees the backing memory of the DMA GEM object, cleans up the GEM object state and frees the memory used...
drm_gem_dma_get_sg_table(9)
NAME drm_gem_dma_get_sg_table - provide a scatter/gather table of pinned pages for a DMA GEM object SYNOPSIS struct sg_table * drm_gem_dma_get_sg_table (struct drm_gem_dma_object *dma_obj ); ARGUMENTS dma_obj DMA GEM object DESCRIPTION This function exports a scatter/gather table by calling the standard DMA mapp...
drm_gem_dma_get_unmapped_area(9)
NAME drm_gem_dma_get_unmapped_area - propose address for mapping in noMMU cases SYNOPSIS unsigned long drm_gem_dma_get_unmapped_area (struct file *filp , unsigned long addr , unsigned long len , unsigned long pgoff , unsigned long flags ); ARGUMENTS filp file object addr memory address l...
drm_gem_dma_mmap(9)
NAME drm_gem_dma_mmap - memory-map an exported DMA GEM object SYNOPSIS int drm_gem_dma_mmap (struct drm_gem_dma_object *dma_obj , struct vm_area_struct *vma ); ARGUMENTS dma_obj DMA GEM object vma VMA for the area to be mapped DESCRIPTION This function maps a buffer into a userspace process's add...
drm_gem_dma_object_free(9)
NAME drm_gem_dma_object_free - GEM object function for drm_gem_dma_free() SYNOPSIS void drm_gem_dma_object_free (struct drm_gem_object *obj ); ARGUMENTS obj GEM object to free DESCRIPTION This function wraps drm_gem_dma_free_object. Drivers that employ the DMA helpers should use it as their drm_gem_object_fu...
drm_gem_dma_object_get_sg_table(9)
NAME drm_gem_dma_object_get_sg_table - GEM object function for drm_gem_dma_get_sg_table() SYNOPSIS struct sg_table * drm_gem_dma_object_get_sg_table (struct drm_gem_object *obj ); ARGUMENTS obj GEM object DESCRIPTION This function wraps drm_gem_dma_get_sg_table. Drivers that employ the DMA helpers should use...
drm_gem_dma_object_mmap(9)
NAME drm_gem_dma_object_mmap - GEM object function for drm_gem_dma_mmap() SYNOPSIS int drm_gem_dma_object_mmap (struct drm_gem_object *obj , struct vm_area_struct *vma ); ARGUMENTS obj GEM object vma VMA for the area to be mapped DESCRIPTION This function wraps drm_gem_dma_mmap. Drivers that ...
drm_gem_dma_object_print_info(9)
NAME drm_gem_dma_object_print_info - Print &drm_gem_dma_object info for debugfs SYNOPSIS void drm_gem_dma_object_print_info (struct drm_printer *p , unsigned int indent , const struct drm_gem_object *obj ); ARGUMENTS p DRM printer indent Tab indentation level obj GEM object DES...
drm_gem_dma_prime_import_sg_table(9)
NAME drm_gem_dma_prime_import_sg_table - produce a DMA GEM object from another driver's scatter/gather table of pinned pages SYNOPSIS struct drm_gem_object * drm_gem_dma_prime_import_sg_table (struct drm_device *dev , struct dma_buf_attachment *attach , struct sg_table *sgt ); ARGUMENTS dev device to import i...
drm_gem_dma_prime_import_sg_table_vmap(9)
NAME drm_gem_dma_prime_import_sg_table_vmap - PRIME import another driver's scatter/gather table and get the virtual address of the buffer SYNOPSIS struct drm_gem_object * drm_gem_dma_prime_import_sg_table_vmap (struct drm_device *dev , struct dma_buf_attachment *attach , struct sg_table *sgt ); ARGUMENTS dev ...
drm_gem_dma_print_info(9)
NAME drm_gem_dma_print_info - Print &drm_gem_dma_object info for debugfs SYNOPSIS void drm_gem_dma_print_info (const struct drm_gem_dma_object *dma_obj , struct drm_printer *p , unsigned int indent ); ARGUMENTS dma_obj DMA GEM object p DRM printer indent Tab indentation level DESCR...
drm_gem_dma_resv_wait(9)
NAME drm_gem_dma_resv_wait - Wait on GEM object's reservation's objects shared and/or exclusive fences. SYNOPSIS long drm_gem_dma_resv_wait (struct drm_file *filep , u32 handle , bool wait_all , unsigned long timeout ); ARGUMENTS filep DRM file private date handle userspace handle wait_all ...
drm_gem_dma_vmap(9)
NAME drm_gem_dma_vmap - map a DMA GEM object into the kernel's virtual address space SYNOPSIS int drm_gem_dma_vmap (struct drm_gem_dma_object *dma_obj , struct iosys_map *map ); ARGUMENTS dma_obj DMA GEM object map Returns the kernel virtual address of the DMA GEM object's backing store. DESCRIPT...
drm_gem_dmabuf_export(9)
NAME drm_gem_dmabuf_export - &dma_buf export implementation for GEM SYNOPSIS struct dma_buf * drm_gem_dmabuf_export (struct drm_device *dev , struct dma_buf_export_info *exp_info ); ARGUMENTS dev parent device for the exported dmabuf exp_info the export information used by dma_buf_export DESCRIPTI...
drm_gem_dmabuf_mmap(9)
NAME drm_gem_dmabuf_mmap - dma_buf mmap implementation for GEM SYNOPSIS int drm_gem_dmabuf_mmap (struct dma_buf *dma_buf , struct vm_area_struct *vma ); ARGUMENTS dma_buf buffer to be mapped vma virtual address range DESCRIPTION Provides memory mapping for the buffer. This can be used as the dma_...
drm_gem_dmabuf_release(9)
NAME drm_gem_dmabuf_release - &dma_buf release implementation for GEM SYNOPSIS void drm_gem_dmabuf_release (struct dma_buf *dma_buf ); ARGUMENTS dma_buf buffer to be released DESCRIPTION Generic release function for dma_bufs exported as PRIME buffers. GEM drivers must use this in their dma_buf_op...
drm_gem_dmabuf_vmap(9)
NAME drm_gem_dmabuf_vmap - dma_buf vmap implementation for GEM SYNOPSIS int drm_gem_dmabuf_vmap (struct dma_buf *dma_buf , struct iosys_map *map ); ARGUMENTS dma_buf buffer to be mapped map the virtual address of the buffer DESCRIPTION Sets up a kernel virtual mapping. This can be used as the dma...
drm_gem_dmabuf_vunmap(9)
NAME drm_gem_dmabuf_vunmap - dma_buf vunmap implementation for GEM SYNOPSIS void drm_gem_dmabuf_vunmap (struct dma_buf *dma_buf , struct iosys_map *map ); ARGUMENTS dma_buf buffer to be unmapped map the virtual address of the buffer DESCRIPTION Releases a kernel virtual mapping. This can be used ...
drm_gem_dumb_map_offset(9)
NAME drm_gem_dumb_map_offset - return the fake mmap offset for a gem object SYNOPSIS int drm_gem_dumb_map_offset (struct drm_file *file , struct drm_device *dev , u32 handle , u64 *offset ); ARGUMENTS file drm file-private structure containing the gem object dev corresponding drm_device ...
drm_gem_duplicate_shadow_plane_state(9)
NAME drm_gem_duplicate_shadow_plane_state - duplicates shadow-buffered plane state SYNOPSIS struct drm_plane_state * drm_gem_duplicate_shadow_plane_state (struct drm_plane *plane ); ARGUMENTS plane the plane DESCRIPTION This function implements struct drm_plane_funcs.atomic_duplicate_state for shadow-buffe...
drm_gem_end_shadow_fb_access(9)
NAME drm_gem_end_shadow_fb_access - releases shadow framebuffers from CPU access SYNOPSIS void drm_gem_end_shadow_fb_access (struct drm_plane *plane , struct drm_plane_state *plane_state ); ARGUMENTS plane the plane plane_state the plane state of type struct drm_shadow_plane_state DESCRIPTION This func...
drm_gem_evict_locked(9)
NAME drm_gem_evict_locked - helper to evict backing pages for a GEM object SYNOPSIS int drm_gem_evict_locked (struct drm_gem_object *obj ); ARGUMENTS obj obj in question SEE ALSO Kernel file ./drivers/gpu/drm/drm_gem.c drm_gem_huge_mnt_create(9), drm_gem_init(9), drm_gem_object_init(9), drm_gem_private_objec...
drm_gem_fb_afbc_init(9)
NAME drm_gem_fb_afbc_init - Helper function for drivers using afbc to fill and validate all the afbc-specific struct drm_afbc_framebuffer members SYNOPSIS int drm_gem_fb_afbc_init (struct drm_device *dev , const struct drm_format_info *info , const struct drm_mode_fb_cmd2 *mode_cmd , struct drm_afbc_framebuffer *afbc_...
drm_gem_fb_begin_cpu_access(9)
NAME drm_gem_fb_begin_cpu_access - prepares GEM buffer objects for CPU access SYNOPSIS int drm_gem_fb_begin_cpu_access (struct drm_framebuffer *fb , enum dma_data_direction dir ); ARGUMENTS fb the framebuffer dir access mode DESCRIPTION Prepares a framebuffer's GEM buffer objects for ...
drm_gem_fb_create(9)
NAME drm_gem_fb_create - Helper function for the &drm_mode_config_funcs.fb_create callback SYNOPSIS struct drm_framebuffer * drm_gem_fb_create (struct drm_device *dev , struct drm_file *file , const struct drm_format_info *info , const struct drm_mode_fb_cmd2 *mode_cmd ); ARGUMENTS dev DRM device file...
drm_gem_fb_create_handle(9)
NAME drm_gem_fb_create_handle - Create handle for GEM backed framebuffer SYNOPSIS int drm_gem_fb_create_handle (struct drm_framebuffer *fb , struct drm_file *file , unsigned int *handle ); ARGUMENTS fb Framebuffer file DRM file to register the handle for handle Pointer to return t...
drm_gem_fb_create_with_dirty(9)
NAME drm_gem_fb_create_with_dirty - Helper function for the &drm_mode_config_funcs.fb_create callback SYNOPSIS struct drm_framebuffer * drm_gem_fb_create_with_dirty (struct drm_device *dev , struct drm_file *file , const struct drm_format_info *info , const struct drm_mode_fb_cmd2 *mode_cmd ); ARGUMENTS dev D...
drm_gem_fb_create_with_funcs(9)
NAME drm_gem_fb_create_with_funcs - Helper function for the &drm_mode_config_funcs.fb_create callback SYNOPSIS struct drm_framebuffer * drm_gem_fb_create_with_funcs (struct drm_device *dev , struct drm_file *file , const struct drm_format_info *info , const struct drm_mode_fb_cmd2 *mode_cmd , const struct drm_fram...
drm_gem_fb_destroy(9)
NAME drm_gem_fb_destroy - Free GEM backed framebuffer SYNOPSIS void drm_gem_fb_destroy (struct drm_framebuffer *fb ); ARGUMENTS fb Framebuffer DESCRIPTION Frees a GEM backed framebuffer with its backing buffer(s) and the structure itself. Drivers can use this as their drm_framebuffer_funcs->destroy callback...
drm_gem_fb_end_cpu_access(9)
NAME drm_gem_fb_end_cpu_access - signals end of CPU access to GEM buffer objects SYNOPSIS void drm_gem_fb_end_cpu_access (struct drm_framebuffer *fb , enum dma_data_direction dir ); ARGUMENTS fb the framebuffer dir access mode DESCRIPTION Signals the end of CPU access to the given framebuffe...
drm_gem_fb_get_obj(9)
NAME drm_gem_fb_get_obj - Get GEM object backing the framebuffer SYNOPSIS struct drm_gem_object * drm_gem_fb_get_obj (struct drm_framebuffer *fb , unsigned int plane ); ARGUMENTS fb Framebuffer plane Plane index DESCRIPTION No additional reference is taken beyond the one that the drm_frambuffe...
drm_gem_fb_init_with_funcs(9)
NAME drm_gem_fb_init_with_funcs - Helper function for implementing &drm_mode_config_funcs.fb_create callback in cases when the driver allocates a subclass of struct drm_framebuffer SYNOPSIS int drm_gem_fb_init_with_funcs (struct drm_device *dev , struct drm_framebuffer *fb , struct drm_file *file , const stru...
drm_gem_fb_vmap(9)
NAME drm_gem_fb_vmap - maps all framebuffer BOs into kernel address space SYNOPSIS int drm_gem_fb_vmap (struct drm_framebuffer *fb , struct iosys_map *map , struct iosys_map *data ); ARGUMENTS fb the framebuffer map returns the mapping's address for each BO data returns the dat...
drm_gem_fb_vunmap(9)
NAME drm_gem_fb_vunmap - unmaps framebuffer BOs from kernel address space SYNOPSIS void drm_gem_fb_vunmap (struct drm_framebuffer *fb , struct iosys_map *map ); ARGUMENTS fb the framebuffer map mapping addresses as returned by drm_gem_fb_vmap DESCRIPTION This function unmaps all buffer objec...
drm_gem_for_each_gpuvm_bo(9)
NAME drm_gem_for_each_gpuvm_bo - iterator to walk over a list of &drm_gpuvm_bo SYNOPSIS drm_gem_for_each_gpuvm_bo (entry__ , obj__ ); ARGUMENTS entry__ drm_gpuvm_bo structure to assign to in each iteration step obj__ the drm_gem_object the drm_gpuvm_bo to walk are associated with DESCRIPTION This i...
drm_gem_for_each_gpuvm_bo_safe(9)
NAME drm_gem_for_each_gpuvm_bo_safe - iterator to safely walk over a list of &drm_gpuvm_bo SYNOPSIS drm_gem_for_each_gpuvm_bo_safe (entry__ , next__ , obj__ ); ARGUMENTS entry__ drm_gpuvm_bostructure to assign to in each iteration step next__ next drm_gpuvm_bo to store the next step obj__ ...
drm_gem_free_mmap_offset(9)
NAME drm_gem_free_mmap_offset - release a fake mmap offset for an object SYNOPSIS void drm_gem_free_mmap_offset (struct drm_gem_object *obj ); ARGUMENTS obj obj in question DESCRIPTION This routine frees fake offsets allocated by drm_gem_create_mmap_offset. Note that drm_gem_object_release already calls thi...
drm_gem_get_huge_mnt(9)
NAME drm_gem_get_huge_mnt - Get the huge tmpfs mountpoint used by a DRM device SYNOPSIS struct vfsmount * drm_gem_get_huge_mnt (struct drm_device *dev ); ARGUMENTS dev DRM device DESCRIPTION This function gets the huge tmpfs mountpoint used by DRM device dev. A huge tmpfs mountpoint is used instead of `shm_m...
drm_gem_get_pages(9)
NAME drm_gem_get_pages - helper to allocate backing pages for a GEM object from shmem SYNOPSIS struct page ** drm_gem_get_pages (struct drm_gem_object *obj ); ARGUMENTS obj obj in question DESCRIPTION This reads the page-array of the shmem-backing storage of the given gem object. An array of pages is return...
drm_gem_get_unmapped_area(9)
NAME drm_gem_get_unmapped_area - get memory mapping region routine for GEM objects SYNOPSIS unsigned long drm_gem_get_unmapped_area (struct file *filp , unsigned long uaddr , unsigned long len , unsigned long pgoff , unsigned long flags ); ARGUMENTS filp DRM file pointer uaddr User address hint ...
drm_gem_gpuva_init(9)
NAME drm_gem_gpuva_init - initialize the gpuva list of a GEM object SYNOPSIS void drm_gem_gpuva_init (struct drm_gem_object *obj ); ARGUMENTS obj the drm_gem_object DESCRIPTION This initializes the drm_gem_object's drm_gpuvm_bo list. Calling this function is only necessary for drivers intending to support t...
drm_gem_handle_create(9)
NAME drm_gem_handle_create - create a gem handle for an object SYNOPSIS int drm_gem_handle_create (struct drm_file *file_priv , struct drm_gem_object *obj , u32 *handlep ); ARGUMENTS file_priv drm file-private structure to register the handle for obj object to register handlep pointer to...
drm_gem_handle_create_tail(9)
NAME drm_gem_handle_create_tail - internal functions to create a handle SYNOPSIS int drm_gem_handle_create_tail (struct drm_file *file_priv , struct drm_gem_object *obj , u32 *handlep ); ARGUMENTS file_priv drm file-private structure to register the handle for obj object to register handlep ...
drm_gem_handle_delete(9)
NAME drm_gem_handle_delete - deletes the given file-private handle SYNOPSIS int drm_gem_handle_delete (struct drm_file *filp , u32 handle ); ARGUMENTS filp drm file-private structure to use for the handle look up handle userspace handle to delete DESCRIPTION Removes the GEM handle from the filp l...
drm_gem_huge_mnt_create(9)
NAME drm_gem_huge_mnt_create - Create, mount and use a huge tmpfs mountpoint SYNOPSIS int drm_gem_huge_mnt_create (struct drm_device *dev , const char *value ); ARGUMENTS dev DRM device that will use the huge tmpfs mountpoint value huge tmpfs mount option value DESCRIPTION This function creat...
drm_gem_init(9)
NAME drm_gem_init - Initialize the GEM device fields SYNOPSIS int drm_gem_init (struct drm_device *dev ); ARGUMENTS dev drm_devic structure to initialize SEE ALSO Kernel file ./drivers/gpu/drm/drm_gem.c drm_gem_huge_mnt_create(9), drm_gem_object_init(9), drm_gem_private_object_init(9), drm_gem_private_o...
drm_gem_is_imported(9)
NAME drm_gem_is_imported - Tests if GEM object's buffer has been imported SYNOPSIS bool drm_gem_is_imported (const struct drm_gem_object *obj ); ARGUMENTS obj the GEM object RETURN True if the GEM object's buffer has been imported, false otherwise SEE ALSO Kernel file ./include/drm/drm_gem.h enum drm_ge...
drm_gem_is_prime_exported_dma_buf(9)
NAME drm_gem_is_prime_exported_dma_buf - checks if the DMA-BUF was exported from a GEM object belonging to @dev. SYNOPSIS bool drm_gem_is_prime_exported_dma_buf (struct drm_device *dev , struct dma_buf *dma_buf ); ARGUMENTS dev drm_device to check against dma_buf dma-buf object to import RETURN t...
drm_gem_lock_reservations(9)
NAME drm_gem_lock_reservations - Sets up the ww context and acquires the lock on an array of GEM objects. SYNOPSIS int drm_gem_lock_reservations (struct drm_gem_object **objs , int count , struct ww_acquire_ctx *acquire_ctx ); ARGUMENTS objs drm_gem_objects to lock count Number of objects in objs...
drm_gem_lru_init(9)
NAME drm_gem_lru_init - initialize a LRU SYNOPSIS void drm_gem_lru_init (struct drm_gem_lru *lru , struct mutex *lock ); ARGUMENTS lru The LRU to initialize lock The lock protecting the LRU SEE ALSO Kernel file ./drivers/gpu/drm/drm_gem.c drm_gem_huge_mnt_create(9), drm_gem_init(9), drm_gem_ob...
drm_gem_lru_move_tail(9)
NAME drm_gem_lru_move_tail - move the object to the tail of the LRU SYNOPSIS void drm_gem_lru_move_tail (struct drm_gem_lru *lru , struct drm_gem_object *obj ); ARGUMENTS lru The LRU to move the object into. obj The GEM object to move into this LRU DESCRIPTION If the object is already in this...
drm_gem_lru_move_tail_locked(9)
NAME drm_gem_lru_move_tail_locked - move the object to the tail of the LRU SYNOPSIS void drm_gem_lru_move_tail_locked (struct drm_gem_lru *lru , struct drm_gem_object *obj ); ARGUMENTS lru The LRU to move the object into. obj The GEM object to move into this LRU DESCRIPTION Like drm_gem_lru_m...
drm_gem_lru_remove(9)
NAME drm_gem_lru_remove - remove object from whatever LRU it is in SYNOPSIS void drm_gem_lru_remove (struct drm_gem_object *obj ); ARGUMENTS obj The GEM object to remove from current LRU DESCRIPTION If the object is currently in any LRU, remove it. SEE ALSO Kernel file ./drivers/gpu/drm/drm_gem.c drm_gem_hu...
drm_gem_lru_scan(9)
NAME drm_gem_lru_scan - helper to implement shrinker.scan_objects SYNOPSIS unsigned long drm_gem_lru_scan (struct drm_gem_lru *lru , unsigned int nr_to_scan , unsigned long *remaining , bool (*shrink)(struct drm_gem_object *obj, struct ww_acquire_ctx *ticket) , struct ww_acquire_ctx *ticket ); ARGUMENTS lru T...
drm_gem_map_attach(9)
NAME drm_gem_map_attach - dma_buf attach implementation for GEM SYNOPSIS int drm_gem_map_attach (struct dma_buf *dma_buf , struct dma_buf_attachment *attach ); ARGUMENTS dma_buf buffer to attach device to attach buffer attachment data DESCRIPTION Calls drm_gem_object_funcs.pin for device specific ha...
drm_gem_map_detach(9)
NAME drm_gem_map_detach - dma_buf detach implementation for GEM SYNOPSIS void drm_gem_map_detach (struct dma_buf *dma_buf , struct dma_buf_attachment *attach ); ARGUMENTS dma_buf buffer to detach from attach attachment to be detached DESCRIPTION Calls drm_gem_object_funcs.pin for device specific han...
drm_gem_map_dma_buf(9)
NAME drm_gem_map_dma_buf - map_dma_buf implementation for GEM SYNOPSIS struct sg_table * drm_gem_map_dma_buf (struct dma_buf_attachment *attach , enum dma_data_direction dir ); ARGUMENTS attach attachment whose scatterlist is to be returned dir direction of DMA transfer DESCRIPTION Calls drm_gem...
drm_gem_mmap(9)
NAME drm_gem_mmap - memory map routine for GEM objects SYNOPSIS int drm_gem_mmap (struct file *filp , struct vm_area_struct *vma ); ARGUMENTS filp DRM file pointer vma VMA for the area to be mapped DESCRIPTION If a driver supports GEM object mapping, mmap calls on the DRM file descriptor w...
drm_gem_mmap_obj(9)
NAME drm_gem_mmap_obj - memory map a GEM object SYNOPSIS int drm_gem_mmap_obj (struct drm_gem_object *obj , unsigned long obj_size , struct vm_area_struct *vma ); ARGUMENTS obj the GEM object to map obj_size the object size to be mapped, in bytes vma VMA for the area to be mapped D...
drm_gem_object_free(9)
NAME drm_gem_object_free - free a GEM object SYNOPSIS void drm_gem_object_free (struct kref *kref ); ARGUMENTS kref kref of the object to free DESCRIPTION Called after the last reference to the object has been lost. Frees the object SEE ALSO Kernel file ./drivers/gpu/drm/drm_gem.c drm_gem_huge_mnt_create(9)...
drm_gem_object_get(9)
NAME drm_gem_object_get - acquire a GEM buffer object reference SYNOPSIS void drm_gem_object_get (struct drm_gem_object *obj ); ARGUMENTS obj GEM buffer object DESCRIPTION This function acquires an additional reference to obj. It is illegal to call this without already holding a reference. No locks required....
drm_gem_object_handle_free(9)
NAME drm_gem_object_handle_free - release resources bound to userspace handles SYNOPSIS void drm_gem_object_handle_free (struct drm_gem_object *obj ); ARGUMENTS obj GEM object to clean up. DESCRIPTION Called after the last handle to the object has been closed Removes any name for the object. Note that this m...
drm_gem_object_handle_get_if_exists_unlocked(9)
NAME drm_gem_object_handle_get_if_exists_unlocked - acquire reference on user-space handle, if any SYNOPSIS bool drm_gem_object_handle_get_if_exists_unlocked (struct drm_gem_object *obj ); ARGUMENTS obj GEM object DESCRIPTION Acquires a reference on the GEM buffer object's handle. Required to keep the GEM ob...
drm_gem_object_handle_put_unlocked(9)
NAME drm_gem_object_handle_put_unlocked - releases reference on user-space handle SYNOPSIS void drm_gem_object_handle_put_unlocked (struct drm_gem_object *obj ); ARGUMENTS obj GEM object DESCRIPTION Releases a reference on the GEM buffer object's handle. Possibly releases the GEM buffer object and associated...
drm_gem_object_init(9)
NAME drm_gem_object_init - initialize an allocated shmem-backed GEM object SYNOPSIS int drm_gem_object_init (struct drm_device *dev , struct drm_gem_object *obj , size_t size ); ARGUMENTS dev drm_device the object should be initialized for obj drm_gem_object to initialize size o...
drm_gem_object_is_shared_for_memory_stats(9)
NAME drm_gem_object_is_shared_for_memory_stats - helper for shared memory stats SYNOPSIS bool drm_gem_object_is_shared_for_memory_stats (struct drm_gem_object *obj ); ARGUMENTS obj obj in question DESCRIPTION This helper should only be used for fdinfo shared memory stats to determine if a GEM object is share...
drm_gem_object_lookup(9)
NAME drm_gem_object_lookup - look up a GEM object from its handle SYNOPSIS struct drm_gem_object * drm_gem_object_lookup (struct drm_file *filp , u32 handle ); ARGUMENTS filp DRM file private date handle userspace handle DESCRIPTION If looking up an array of handles, use drm_gem_objects_lookup. ...
drm_gem_object_put(9)
NAME drm_gem_object_put - drop a GEM buffer object reference SYNOPSIS void drm_gem_object_put (struct drm_gem_object *obj ); ARGUMENTS obj GEM buffer object DESCRIPTION This releases a reference to obj. SEE ALSO Kernel file ./include/drm/drm_gem.h enum drm_gem_object_status(9), struct drm_gem_object_f...
drm_gem_object_release(9)
NAME drm_gem_object_release - release GEM buffer object resources SYNOPSIS void drm_gem_object_release (struct drm_gem_object *obj ); ARGUMENTS obj GEM buffer object DESCRIPTION This releases any structures and resources used by obj and is the inverse of drm_gem_object_init. SEE ALSO Kernel file ./drivers/g...
drm_gem_objects_lookup(9)
NAME drm_gem_objects_lookup - look up GEM objects from an array of handles SYNOPSIS int drm_gem_objects_lookup (struct drm_file *filp , void __user *bo_handles , int count , struct drm_gem_object ***objs_out ); ARGUMENTS filp DRM file private date bo_handles user pointer to array of userspace handle ...
drm_gem_open(9)
NAME drm_gem_open - initializes GEM file-private structures at devnode open time SYNOPSIS void drm_gem_open (struct drm_device *dev , struct drm_file *file_private ); ARGUMENTS dev drm_device which is being opened by userspace file_private drm file-private structure to set up DESCR...
drm_gem_plane_helper_prepare_fb(9)
NAME drm_gem_plane_helper_prepare_fb - Prepare a GEM backed framebuffer SYNOPSIS int drm_gem_plane_helper_prepare_fb (struct drm_plane *plane , struct drm_plane_state *state ); ARGUMENTS plane Plane state Plane state the fence will be attached to DESCRIPTION This function extracts the exclusive f...
drm_gem_prime_export(9)
NAME drm_gem_prime_export - helper library implementation of the export callback SYNOPSIS struct dma_buf * drm_gem_prime_export (struct drm_gem_object *obj , int flags ); ARGUMENTS obj GEM object to export flags flags like DRM_CLOEXEC and DRM_RDWR DESCRIPTION This is the implementation of the d...
drm_gem_prime_fd_to_handle(9)
NAME drm_gem_prime_fd_to_handle - PRIME import function for GEM drivers SYNOPSIS int drm_gem_prime_fd_to_handle (struct drm_device *dev , struct drm_file *file_priv , int prime_fd , uint32_t *handle ); ARGUMENTS dev drm_device to import into file_priv drm file-private structure prime_fd f...
drm_gem_prime_handle_to_dmabuf(9)
NAME drm_gem_prime_handle_to_dmabuf - PRIME export function for GEM drivers SYNOPSIS struct dma_buf * drm_gem_prime_handle_to_dmabuf (struct drm_device *dev , struct drm_file *file_priv , uint32_t handle , uint32_t flags ); ARGUMENTS dev dev to export the buffer from file_priv drm file-private struc...
drm_gem_prime_handle_to_fd(9)
NAME drm_gem_prime_handle_to_fd - PRIME export function for GEM drivers SYNOPSIS int drm_gem_prime_handle_to_fd (struct drm_device *dev , struct drm_file *file_priv , uint32_t handle , uint32_t flags , int *prime_fd ); ARGUMENTS dev dev to export the buffer from file_priv drm file-private structure ...
drm_gem_prime_import(9)
NAME drm_gem_prime_import - helper library implementation of the import callback SYNOPSIS struct drm_gem_object * drm_gem_prime_import (struct drm_device *dev , struct dma_buf *dma_buf ); ARGUMENTS dev drm_device to import into dma_buf dma-buf object to import DESCRIPTION This is the implementa...
drm_gem_prime_import_dev(9)
NAME drm_gem_prime_import_dev - core implementation of the import callback SYNOPSIS struct drm_gem_object * drm_gem_prime_import_dev (struct drm_device *dev , struct dma_buf *dma_buf , struct device *attach_dev ); ARGUMENTS dev drm_device to import into dma_buf dma-buf object to import att...
drm_gem_prime_mmap(9)
NAME drm_gem_prime_mmap - PRIME mmap function for GEM drivers SYNOPSIS int drm_gem_prime_mmap (struct drm_gem_object *obj , struct vm_area_struct *vma ); ARGUMENTS obj GEM object vma Virtual address range DESCRIPTION This function sets up a userspace mapping for PRIME exported buffe...
drm_gem_private_object_fini(9)
NAME drm_gem_private_object_fini - Finalize a failed drm_gem_object SYNOPSIS void drm_gem_private_object_fini (struct drm_gem_object *obj ); ARGUMENTS obj drm_gem_object DESCRIPTION Uninitialize an already allocated GEM object when it initialized failed SEE ALSO Kernel file ./drivers/gpu/drm/drm_gem.c dr...
drm_gem_private_object_init(9)
NAME drm_gem_private_object_init - initialize an allocated private GEM object SYNOPSIS void drm_gem_private_object_init (struct drm_device *dev , struct drm_gem_object *obj , size_t size ); ARGUMENTS dev drm_device the object should be initialized for obj drm_gem_object to initialize s...
drm_gem_put_pages(9)
NAME drm_gem_put_pages - helper to free backing pages for a GEM object SYNOPSIS void drm_gem_put_pages (struct drm_gem_object *obj , struct page **pages , bool dirty , bool accessed ); ARGUMENTS obj obj in question pages pages to free dirty if true, pages will be marked as dirty ...
drm_gem_release(9)
NAME drm_gem_release - release file-private GEM resources SYNOPSIS void drm_gem_release (struct drm_device *dev , struct drm_file *file_private ); ARGUMENTS dev drm_device which is being closed by userspace file_private drm file-private structure to clean up DESCRIPTION Called at c...
drm_gem_reset_shadow_plane(9)
NAME drm_gem_reset_shadow_plane - resets a shadow-buffered plane SYNOPSIS void drm_gem_reset_shadow_plane (struct drm_plane *plane ); ARGUMENTS plane the plane DESCRIPTION This function implements struct drm_plane_funcs.reset_plane for shadow-buffered planes. It assumes the current plane state to be of type st...
drm_gem_shmem_create(9)
NAME drm_gem_shmem_create - Allocate an object with the given size SYNOPSIS struct drm_gem_shmem_object * drm_gem_shmem_create (struct drm_device *dev , size_t size ); ARGUMENTS dev DRM device size Size of the object to allocate DESCRIPTION This function creates a shmem GEM object. RETURN A s...
drm_gem_shmem_dumb_create(9)
NAME drm_gem_shmem_dumb_create - Create a dumb shmem buffer object SYNOPSIS int drm_gem_shmem_dumb_create (struct drm_file *file , struct drm_device *dev , struct drm_mode_create_dumb *args ); ARGUMENTS file DRM file structure to create the dumb buffer for dev DRM device args IOC...
drm_gem_shmem_free(9)
NAME drm_gem_shmem_free - Free resources associated with a shmem GEM object SYNOPSIS void drm_gem_shmem_free (struct drm_gem_shmem_object *shmem ); ARGUMENTS shmem shmem GEM object to free DESCRIPTION This function cleans up the GEM object state and frees the memory used to store the object itself. SEE ALSO K...
drm_gem_shmem_get_pages_sgt(9)
NAME drm_gem_shmem_get_pages_sgt - Pin pages, dma map them, and return a scatter/gather table for a shmem GEM object. SYNOPSIS struct sg_table * drm_gem_shmem_get_pages_sgt (struct drm_gem_shmem_object *shmem ); ARGUMENTS shmem shmem GEM object DESCRIPTION This function returns a scatter/gather table suita...
drm_gem_shmem_get_sg_table(9)
NAME drm_gem_shmem_get_sg_table - Provide a scatter/gather table of pinned pages for a shmem GEM object SYNOPSIS struct sg_table * drm_gem_shmem_get_sg_table (struct drm_gem_shmem_object *shmem ); ARGUMENTS shmem shmem GEM object DESCRIPTION This function exports a scatter/gather table suitable for PRIME usage...
drm_gem_shmem_init(9)
NAME drm_gem_shmem_init - Initialize an allocated object. SYNOPSIS int drm_gem_shmem_init (struct drm_device *dev , struct drm_gem_shmem_object *shmem , size_t size ); ARGUMENTS dev DRM device shmem shmem GEM object to initialize size Buffer size in bytes DESCRIPTION This functio...
drm_gem_shmem_mmap(9)
NAME drm_gem_shmem_mmap - Memory-map a shmem GEM object SYNOPSIS int drm_gem_shmem_mmap (struct drm_gem_shmem_object *shmem , struct vm_area_struct *vma ); ARGUMENTS shmem shmem GEM object vma VMA for the area to be mapped DESCRIPTION This function implements an augmented version of the GEM DRM...
drm_gem_shmem_object_free(9)
NAME drm_gem_shmem_object_free - GEM object function for drm_gem_shmem_free() SYNOPSIS void drm_gem_shmem_object_free (struct drm_gem_object *obj ); ARGUMENTS obj GEM object to free DESCRIPTION This function wraps drm_gem_shmem_free. Drivers that employ the shmem helpers should use it as their drm_gem_object...
drm_gem_shmem_object_get_sg_table(9)
NAME drm_gem_shmem_object_get_sg_table - GEM object function for drm_gem_shmem_get_sg_table() SYNOPSIS struct sg_table * drm_gem_shmem_object_get_sg_table (struct drm_gem_object *obj ); ARGUMENTS obj GEM object DESCRIPTION This function wraps drm_gem_shmem_get_sg_table. Drivers that employ the shmem helpers ...