id
stringlengths
4
63
text
stringlengths
153
8.81M
drm_gpusvm_unmap_pages(9)
NAME drm_gpusvm_unmap_pages - Unmap GPU svm pages SYNOPSIS void drm_gpusvm_unmap_pages (struct drm_gpusvm *gpusvm , struct drm_gpusvm_pages *svm_pages , unsigned long npages , const struct drm_gpusvm_ctx *ctx ); ARGUMENTS gpusvm Pointer to the GPU SVM structure svm_pages Pointer to the GPU SVM pages st...
drm_gpuva_find(9)
NAME drm_gpuva_find - find a &drm_gpuva SYNOPSIS struct drm_gpuva * drm_gpuva_find (struct drm_gpuvm *gpuvm , u64 addr , u64 range ); ARGUMENTS gpuvm the drm_gpuvm to search in addr the drm_gpuvas address range the drm_gpuvas range RETURN the drm_gpuva at a given addr and with a gi...
drm_gpuva_find_first(9)
NAME drm_gpuva_find_first - find the first &drm_gpuva in the given range SYNOPSIS struct drm_gpuva * drm_gpuva_find_first (struct drm_gpuvm *gpuvm , u64 addr , u64 range ); ARGUMENTS gpuvm the drm_gpuvm to search in addr the drm_gpuvas address range the drm_gpuvas range RETURN the ...
drm_gpuva_find_next(9)
NAME drm_gpuva_find_next - find the &drm_gpuva after the given address SYNOPSIS struct drm_gpuva * drm_gpuva_find_next (struct drm_gpuvm *gpuvm , u64 end ); ARGUMENTS gpuvm the drm_gpuvm to search in end the given GPU VA's end address DESCRIPTION Find the adjacent drm_gpuva after the GPU VA wit...
drm_gpuva_find_prev(9)
NAME drm_gpuva_find_prev - find the &drm_gpuva before the given address SYNOPSIS struct drm_gpuva * drm_gpuva_find_prev (struct drm_gpuvm *gpuvm , u64 start ); ARGUMENTS gpuvm the drm_gpuvm to search in start the given GPU VA's start address DESCRIPTION Find the adjacent drm_gpuva before the GPU ...
drm_gpuva_first_op(9)
NAME drm_gpuva_first_op - returns the first &drm_gpuva_op from &drm_gpuva_ops SYNOPSIS drm_gpuva_first_op (ops ); ARGUMENTS ops the drm_gpuva_ops to get the fist drm_gpuva_op from SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_flags(9), struct drm_gpuva(9), drm_gpuva_invalidate(9), drm_gpuv...
drm_gpuva_for_each_op(9)
NAME drm_gpuva_for_each_op - iterator to walk over &drm_gpuva_ops SYNOPSIS drm_gpuva_for_each_op (op , ops ); ARGUMENTS op drm_gpuva_op to assign in each iteration step ops drm_gpuva_ops to walk DESCRIPTION This iterator walks over all ops within a given list of operations. SEE ALSO Kernel ...
drm_gpuva_for_each_op_from_reverse(9)
NAME drm_gpuva_for_each_op_from_reverse - iterate backwards from the given point SYNOPSIS drm_gpuva_for_each_op_from_reverse (op , ops ); ARGUMENTS op drm_gpuva_op to assign in each iteration step ops drm_gpuva_ops to walk DESCRIPTION This iterator walks over all ops within a given list of o...
drm_gpuva_for_each_op_reverse(9)
NAME drm_gpuva_for_each_op_reverse - iterator to walk over &drm_gpuva_ops in reverse SYNOPSIS drm_gpuva_for_each_op_reverse (op , ops ); ARGUMENTS op drm_gpuva_op to assign in each iteration step ops drm_gpuva_ops to walk DESCRIPTION This iterator walks over all ops within a given list of op...
drm_gpuva_for_each_op_safe(9)
NAME drm_gpuva_for_each_op_safe - iterator to safely walk over &drm_gpuva_ops SYNOPSIS drm_gpuva_for_each_op_safe (op , next , ops ); ARGUMENTS op drm_gpuva_op to assign in each iteration step next next drm_gpuva_op to store the next step ops drm_gpuva_ops to walk DESCRIPTION ...
drm_gpuva_insert(9)
NAME drm_gpuva_insert - insert a &drm_gpuva SYNOPSIS int drm_gpuva_insert (struct drm_gpuvm *gpuvm , struct drm_gpuva *va ); ARGUMENTS gpuvm the drm_gpuvm to insert the drm_gpuva in va the drm_gpuva to insert DESCRIPTION Insert a drm_gpuva with a given address and range into a drm_g...
drm_gpuva_invalidate(9)
NAME drm_gpuva_invalidate - sets whether the backing GEM of this &drm_gpuva is invalidated SYNOPSIS void drm_gpuva_invalidate (struct drm_gpuva *va , bool invalidate ); ARGUMENTS va the drm_gpuva to set the invalidate flag for invalidate indicates whether the drm_gpuva is invalidated SEE ALSO Kerne...
drm_gpuva_invalidated(9)
NAME drm_gpuva_invalidated - indicates whether the backing BO of this &drm_gpuva is invalidated SYNOPSIS bool drm_gpuva_invalidated (struct drm_gpuva *va ); ARGUMENTS va the drm_gpuva to check RETURN true if the GPU VA is invalidated, false otherwise SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum dr...
drm_gpuva_last_op(9)
NAME drm_gpuva_last_op - returns the last &drm_gpuva_op from &drm_gpuva_ops SYNOPSIS drm_gpuva_last_op (ops ); ARGUMENTS ops the drm_gpuva_ops to get the last drm_gpuva_op from SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_flags(9), struct drm_gpuva(9), drm_gpuva_invalidate(9), drm_gpuva_i...
drm_gpuva_link(9)
NAME drm_gpuva_link - link a &drm_gpuva SYNOPSIS void drm_gpuva_link (struct drm_gpuva *va , struct drm_gpuvm_bo *vm_bo ); ARGUMENTS va the drm_gpuva to link vm_bo the drm_gpuvm_bo to add the drm_gpuva to DESCRIPTION This adds the given va to the GPU VA list of the drm_gpuvm_bo and the drm_gpu...
drm_gpuva_map(9)
NAME drm_gpuva_map - helper to insert a &drm_gpuva according to a &drm_gpuva_op_map SYNOPSIS void drm_gpuva_map (struct drm_gpuvm *gpuvm , struct drm_gpuva *va , const struct drm_gpuva_op_map *op ); ARGUMENTS gpuvm the drm_gpuvm va the drm_gpuva to insert op the drm_gpuva_op_ma...
drm_gpuva_next_op(9)
NAME drm_gpuva_next_op - next &drm_gpuva_op in the list SYNOPSIS drm_gpuva_next_op (op ); ARGUMENTS op the current drm_gpuva_op SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_flags(9), struct drm_gpuva(9), drm_gpuva_invalidate(9), drm_gpuva_invalidated(9), enum drm_gpuvm_flags(9), struct d...
drm_gpuva_op_remap_to_unmap_range(9)
NAME drm_gpuva_op_remap_to_unmap_range - Helper to get the start and range of the unmap stage of a remap op. SYNOPSIS void drm_gpuva_op_remap_to_unmap_range (const struct drm_gpuva_op_remap *op , u64 *start_addr , u64 *range ); ARGUMENTS op Remap op. start_addr Output pointer for the start of the re...
drm_gpuva_ops_free(9)
NAME drm_gpuva_ops_free - free the given &drm_gpuva_ops SYNOPSIS void drm_gpuva_ops_free (struct drm_gpuvm *gpuvm , struct drm_gpuva_ops *ops ); ARGUMENTS gpuvm the drm_gpuvm the ops were created for ops the drm_gpuva_ops to free DESCRIPTION Frees the given drm_gpuva_ops structure including all...
drm_gpuva_prev_op(9)
NAME drm_gpuva_prev_op - previous &drm_gpuva_op in the list SYNOPSIS drm_gpuva_prev_op (op ); ARGUMENTS op the current drm_gpuva_op SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_flags(9), struct drm_gpuva(9), drm_gpuva_invalidate(9), drm_gpuva_invalidated(9), enum drm_gpuvm_flags(9), stru...
drm_gpuva_remap(9)
NAME drm_gpuva_remap - helper to remap a &drm_gpuva according to a &drm_gpuva_op_remap SYNOPSIS void drm_gpuva_remap (struct drm_gpuva *prev , struct drm_gpuva *next , const struct drm_gpuva_op_remap *op ); ARGUMENTS prev the drm_gpuva to remap when keeping the start of a mapping next the drm_gp...
drm_gpuva_remove(9)
NAME drm_gpuva_remove - remove a &drm_gpuva SYNOPSIS void drm_gpuva_remove (struct drm_gpuva *va ); ARGUMENTS va the drm_gpuva to remove DESCRIPTION This removes the given va from the underlying tree. It is safe to use this function using the safe versions of iterating the GPU VA space, such as drm_gpuvm_f...
drm_gpuva_unlink(9)
NAME drm_gpuva_unlink - unlink a &drm_gpuva SYNOPSIS void drm_gpuva_unlink (struct drm_gpuva *va ); ARGUMENTS va the drm_gpuva to unlink DESCRIPTION This removes the given va from the GPU VA list of the drm_gem_object it is associated with. This removes the given va from the GPU VA list of the drm_gpuvm_bo...
drm_gpuva_unlink_defer(9)
NAME drm_gpuva_unlink_defer - unlink a &drm_gpuva with deferred vm_bo cleanup SYNOPSIS void drm_gpuva_unlink_defer (struct drm_gpuva *va ); ARGUMENTS va the drm_gpuva to unlink DESCRIPTION Similar to drm_gpuva_unlink, but uses drm_gpuvm_bo_put_deferred and takes the lock for the caller. SEE ALSO Kernel fi...
drm_gpuva_unmap(9)
NAME drm_gpuva_unmap - helper to remove a &drm_gpuva according to a &drm_gpuva_op_unmap SYNOPSIS void drm_gpuva_unmap (const struct drm_gpuva_op_unmap *op ); ARGUMENTS op the drm_gpuva_op_unmap specifying the drm_gpuva to remove DESCRIPTION Removes the drm_gpuva associated with the drm_gpuva_op_unmap. SEE ...
drm_gpuvm_bo_create(9)
NAME drm_gpuvm_bo_create - create a new instance of struct drm_gpuvm_bo SYNOPSIS struct drm_gpuvm_bo * drm_gpuvm_bo_create (struct drm_gpuvm *gpuvm , struct drm_gem_object *obj ); ARGUMENTS gpuvm The drm_gpuvm the obj is mapped in. obj The drm_gem_object being mapped in the gpuvm. DESCRIPTION I...
drm_gpuvm_bo_deferred_cleanup(9)
NAME drm_gpuvm_bo_deferred_cleanup - clean up BOs in the deferred list deferred cleanup SYNOPSIS void drm_gpuvm_bo_deferred_cleanup (struct drm_gpuvm *gpuvm ); ARGUMENTS gpuvm the VM to clean up DESCRIPTION Cleans up drm_gpuvm_bo instances in the deferred cleanup list. SEE ALSO Kernel file ./drivers/gpu/drm...
drm_gpuvm_bo_evict(9)
NAME drm_gpuvm_bo_evict - add / remove a &drm_gpuvm_bo to / from the &drm_gpuvms evicted list SYNOPSIS void drm_gpuvm_bo_evict (struct drm_gpuvm_bo *vm_bo , bool evict ); ARGUMENTS vm_bo the drm_gpuvm_bo to add or remove evict indicates whether the object is evicted DESCRIPTION Adds a drm_gpuvm_b...
drm_gpuvm_bo_extobj_add(9)
NAME drm_gpuvm_bo_extobj_add - adds the &drm_gpuvm_bo to its &drm_gpuvm's extobj list SYNOPSIS void drm_gpuvm_bo_extobj_add (struct drm_gpuvm_bo *vm_bo ); ARGUMENTS vm_bo The drm_gpuvm_bo to add to its drm_gpuvm's the extobj list. DESCRIPTION Adds the given vm_bo to its drm_gpuvm's extobj list if not on the li...
drm_gpuvm_bo_find(9)
NAME drm_gpuvm_bo_find - find the &drm_gpuvm_bo for the given &drm_gpuvm and &drm_gem_object SYNOPSIS struct drm_gpuvm_bo * drm_gpuvm_bo_find (struct drm_gpuvm *gpuvm , struct drm_gem_object *obj ); ARGUMENTS gpuvm The drm_gpuvm the obj is mapped in. obj The drm_gem_object being mapped in the gp...
drm_gpuvm_bo_for_each_va(9)
NAME drm_gpuvm_bo_for_each_va - iterator to walk over a list of &drm_gpuva SYNOPSIS drm_gpuvm_bo_for_each_va (va__ , vm_bo__ ); ARGUMENTS va__ drm_gpuva structure to assign to in each iteration step vm_bo__ the drm_gpuvm_bo the drm_gpuva to walk are associated with DESCRIPTION This iterator walks ...
drm_gpuvm_bo_for_each_va_safe(9)
NAME drm_gpuvm_bo_for_each_va_safe - iterator to safely walk over a list of &drm_gpuva SYNOPSIS drm_gpuvm_bo_for_each_va_safe (va__ , next__ , vm_bo__ ); ARGUMENTS va__ drm_gpuva structure to assign to in each iteration step next__ next drm_gpuva to store the next step vm_bo__ the drm_...
drm_gpuvm_bo_gem_evict(9)
NAME drm_gpuvm_bo_gem_evict - add/remove all &drm_gpuvm_bo's in the list to/from the &drm_gpuvms evicted list SYNOPSIS void drm_gpuvm_bo_gem_evict (struct drm_gem_object *obj , bool evict ); ARGUMENTS obj the drm_gem_object evict indicates whether obj is evicted DESCRIPTION See drm_gpuvm_bo_evi...
drm_gpuvm_bo_get(9)
NAME drm_gpuvm_bo_get - acquire a struct drm_gpuvm_bo reference SYNOPSIS struct drm_gpuvm_bo * drm_gpuvm_bo_get (struct drm_gpuvm_bo *vm_bo ); ARGUMENTS vm_bo the drm_gpuvm_bo to acquire the reference of DESCRIPTION This function acquires an additional reference to vm_bo. It is illegal to call this without alr...
drm_gpuvm_bo_is_zombie(9)
NAME drm_gpuvm_bo_is_zombie - check whether this vm_bo is scheduled for cleanup SYNOPSIS bool drm_gpuvm_bo_is_zombie (struct drm_gpuvm_bo *vm_bo ); ARGUMENTS vm_bo the drm_gpuvm_bo DESCRIPTION When a vm_bo is scheduled for cleanup using the bo_defer list, it is not immediately removed from the evict and extobj...
drm_gpuvm_bo_list_add(9)
NAME drm_gpuvm_bo_list_add - insert a vm_bo into the given list SYNOPSIS drm_gpuvm_bo_list_add (__vm_bo , __list_name , __lock ); ARGUMENTS __vm_bo the drm_gpuvm_bo __list_name the name of the list to insert into __lock whether to lock with the internal spinlock DESCRIPTION Inserts the given...
drm_gpuvm_bo_list_del(9)
NAME drm_gpuvm_bo_list_del - remove a vm_bo from the given list SYNOPSIS drm_gpuvm_bo_list_del (__vm_bo , __list_name , __lock ); ARGUMENTS __vm_bo the drm_gpuvm_bo __list_name the name of the list to insert into __lock whether to lock with the internal spinlock DESCRIPTION Removes the given...
drm_gpuvm_bo_list_del_init(9)
NAME drm_gpuvm_bo_list_del_init - remove a vm_bo from the given list SYNOPSIS drm_gpuvm_bo_list_del_init (__vm_bo , __list_name , __lock ); ARGUMENTS __vm_bo the drm_gpuvm_bo __list_name the name of the list to insert into __lock whether to lock with the internal spinlock DESCRIPTION Removes...
drm_gpuvm_bo_obtain_locked(9)
NAME drm_gpuvm_bo_obtain_locked - obtains an instance of the &drm_gpuvm_bo for the given &drm_gpuvm and &drm_gem_object SYNOPSIS struct drm_gpuvm_bo * drm_gpuvm_bo_obtain_locked (struct drm_gpuvm *gpuvm , struct drm_gem_object *obj ); ARGUMENTS gpuvm The drm_gpuvm the obj is mapped in. obj The d...
drm_gpuvm_bo_obtain_prealloc(9)
NAME drm_gpuvm_bo_obtain_prealloc - obtains an instance of the &drm_gpuvm_bo for the given &drm_gpuvm and &drm_gem_object SYNOPSIS struct drm_gpuvm_bo * drm_gpuvm_bo_obtain_prealloc (struct drm_gpuvm_bo *__vm_bo ); ARGUMENTS __vm_bo A pre-allocated struct drm_gpuvm_bo. DESCRIPTION Find the drm_gpuvm_bo represen...
drm_gpuvm_bo_put(9)
NAME drm_gpuvm_bo_put - drop a struct drm_gpuvm_bo reference SYNOPSIS bool drm_gpuvm_bo_put (struct drm_gpuvm_bo *vm_bo ); ARGUMENTS vm_bo the drm_gpuvm_bo to release the reference of DESCRIPTION This releases a reference to vm_bo. If the reference count drops to zero, the gpuvm_bo is destroyed, which inclu...
drm_gpuvm_bo_put_deferred(9)
NAME drm_gpuvm_bo_put_deferred - drop a struct drm_gpuvm_bo reference with deferred cleanup SYNOPSIS bool drm_gpuvm_bo_put_deferred (struct drm_gpuvm_bo *vm_bo ); ARGUMENTS vm_bo the drm_gpuvm_bo to release the reference of DESCRIPTION This releases a reference to vm_bo. This might take and release the GEMs G...
drm_gpuvm_bo_unmap_ops_create(9)
NAME drm_gpuvm_bo_unmap_ops_create - creates the &drm_gpuva_ops to unmap a GEM SYNOPSIS struct drm_gpuva_ops * drm_gpuvm_bo_unmap_ops_create (struct drm_gpuvm_bo *vm_bo ); ARGUMENTS vm_bo the drm_gpuvm_bo abstraction DESCRIPTION This function creates a list of operations to perform unmapping for every GPUVA ...
drm_gpuvm_exec_lock(9)
NAME drm_gpuvm_exec_lock - lock all dma-resv of all associated BOs SYNOPSIS int drm_gpuvm_exec_lock (struct drm_gpuvm_exec *vm_exec ); ARGUMENTS vm_exec the drm_gpuvm_exec wrapper DESCRIPTION Acquires all dma-resv locks of all drm_gem_objects the given drm_gpuvm contains mappings of. Additionally, when calling...
drm_gpuvm_exec_lock_array(9)
NAME drm_gpuvm_exec_lock_array - lock all dma-resv of all associated BOs SYNOPSIS int drm_gpuvm_exec_lock_array (struct drm_gpuvm_exec *vm_exec , struct drm_gem_object **objs , unsigned int num_objs ); ARGUMENTS vm_exec the drm_gpuvm_exec wrapper objs additional drm_gem_objects to lock num_...
drm_gpuvm_exec_lock_range(9)
NAME drm_gpuvm_exec_lock_range - prepare all BOs mapped within a given range SYNOPSIS int drm_gpuvm_exec_lock_range (struct drm_gpuvm_exec *vm_exec , u64 addr , u64 range ); ARGUMENTS vm_exec the drm_gpuvm_exec wrapper addr the start address within the VA space range the range to iter...
drm_gpuvm_exec_resv_add_fence(9)
NAME drm_gpuvm_exec_resv_add_fence - add fence to private and all extobj SYNOPSIS void drm_gpuvm_exec_resv_add_fence (struct drm_gpuvm_exec *vm_exec , struct dma_fence *fence , enum dma_resv_usage private_usage , enum dma_resv_usage extobj_usage ); ARGUMENTS vm_exec the drm_gpuvm_exec wrapper fence ...
drm_gpuvm_exec_unlock(9)
NAME drm_gpuvm_exec_unlock - lock all dma-resv of all assoiciated BOs SYNOPSIS void drm_gpuvm_exec_unlock (struct drm_gpuvm_exec *vm_exec ); ARGUMENTS vm_exec the drm_gpuvm_exec wrapper DESCRIPTION Releases all dma-resv locks of all drm_gem_objects previously acquired through drm_gpuvm_exec_lock or its variants....
drm_gpuvm_exec_validate(9)
NAME drm_gpuvm_exec_validate - validate all BOs marked as evicted SYNOPSIS int drm_gpuvm_exec_validate (struct drm_gpuvm_exec *vm_exec ); ARGUMENTS vm_exec the drm_gpuvm_exec wrapper DESCRIPTION See drm_gpuvm_validate. RETURN 0 on success, negative error code on failure. SEE ALSO Kernel file ./include/drm/dr...
drm_gpuvm_for_each_va(9)
NAME drm_gpuvm_for_each_va - iterate over all &drm_gpuvas SYNOPSIS drm_gpuvm_for_each_va (va__ , gpuvm__ ); ARGUMENTS va__ drm_gpuva to assign to in each iteration step gpuvm__ drm_gpuvm to walk over DESCRIPTION This iterator walks over all drm_gpuva structures associated with the given drm_gpuvm....
drm_gpuvm_for_each_va_range(9)
NAME drm_gpuvm_for_each_va_range - iterate over a range of &drm_gpuvas SYNOPSIS drm_gpuvm_for_each_va_range (va__ , gpuvm__ , start__ , end__ ); ARGUMENTS va__ drm_gpuva structure to assign to in each iteration step gpuvm__ drm_gpuvm to walk over start__ starting offset, the first gpuva...
drm_gpuvm_for_each_va_range_safe(9)
NAME drm_gpuvm_for_each_va_range_safe - safely iterate over a range of &drm_gpuvas SYNOPSIS drm_gpuvm_for_each_va_range_safe (va__ , next__ , gpuvm__ , start__ , end__ ); ARGUMENTS va__ drm_gpuva to assign to in each iteration step next__ another drm_gpuva to use as temporary storage gpuvm...
drm_gpuvm_for_each_va_safe(9)
NAME drm_gpuvm_for_each_va_safe - safely iterate over all &drm_gpuvas SYNOPSIS drm_gpuvm_for_each_va_safe (va__ , next__ , gpuvm__ ); ARGUMENTS va__ drm_gpuva to assign to in each iteration step next__ another drm_gpuva to use as temporary storage gpuvm__ drm_gpuvm to walk over DESCRI...
drm_gpuvm_get(9)
NAME drm_gpuvm_get - acquire a struct drm_gpuvm reference SYNOPSIS struct drm_gpuvm * drm_gpuvm_get (struct drm_gpuvm *gpuvm ); ARGUMENTS gpuvm the drm_gpuvm to acquire the reference of DESCRIPTION This function acquires an additional reference to gpuvm. It is illegal to call this without already holding a ref...
drm_gpuvm_immediate_mode(9)
NAME drm_gpuvm_immediate_mode - indicates whether &DRM_GPUVM_IMMEDIATE_MODE is set SYNOPSIS bool drm_gpuvm_immediate_mode (struct drm_gpuvm *gpuvm ); ARGUMENTS gpuvm the drm_gpuvm RETURN true if DRM_GPUVM_IMMEDIATE_MODE is set, false otherwise. SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_...
drm_gpuvm_init(9)
NAME drm_gpuvm_init - initialize a &drm_gpuvm SYNOPSIS void drm_gpuvm_init (struct drm_gpuvm *gpuvm , const char *name , enum drm_gpuvm_flags flags , struct drm_device *drm , struct drm_gem_object *r_obj , u64 start_offset , u64 range , u64 reserve_offset , u64 reserve_range , const struct drm_gpuvm_ops *ops ); ARGU...
drm_gpuvm_interval_empty(9)
NAME drm_gpuvm_interval_empty - indicate whether a given interval of the VA space is empty SYNOPSIS bool drm_gpuvm_interval_empty (struct drm_gpuvm *gpuvm , u64 addr , u64 range ); ARGUMENTS gpuvm the drm_gpuvm to check the range for addr the start address of the range range the ran...
drm_gpuvm_is_extobj(9)
NAME drm_gpuvm_is_extobj - indicates whether the given &drm_gem_object is an external object SYNOPSIS bool drm_gpuvm_is_extobj (struct drm_gpuvm *gpuvm , struct drm_gem_object *obj ); ARGUMENTS gpuvm the drm_gpuvm to check obj the drm_gem_object to check RETURN true if the drm_gem_object dma_re...
drm_gpuvm_madvise_ops_create(9)
NAME drm_gpuvm_madvise_ops_create - creates the &drm_gpuva_ops to split SYNOPSIS struct drm_gpuva_ops * drm_gpuvm_madvise_ops_create (struct drm_gpuvm *gpuvm , const struct drm_gpuvm_map_req *req ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space req map request arguments DESCRIPTIO...
drm_gpuvm_prefetch_ops_create(9)
NAME drm_gpuvm_prefetch_ops_create - creates the &drm_gpuva_ops to prefetch SYNOPSIS struct drm_gpuva_ops * drm_gpuvm_prefetch_ops_create (struct drm_gpuvm *gpuvm , u64 addr , u64 range ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space addr the start address of the range to prefetch ...
drm_gpuvm_prepare_objects(9)
NAME drm_gpuvm_prepare_objects - prepare all associated BOs SYNOPSIS int drm_gpuvm_prepare_objects (struct drm_gpuvm *gpuvm , struct drm_exec *exec , unsigned int num_fences ); ARGUMENTS gpuvm the drm_gpuvm exec the drm_exec locking context num_fences the amount of dma_fences to reserve ...
drm_gpuvm_prepare_range(9)
NAME drm_gpuvm_prepare_range - prepare all BOs mapped within a given range SYNOPSIS int drm_gpuvm_prepare_range (struct drm_gpuvm *gpuvm , struct drm_exec *exec , u64 addr , u64 range , unsigned int num_fences ); ARGUMENTS gpuvm the drm_gpuvm exec the drm_exec locking context addr ...
drm_gpuvm_prepare_vm(9)
NAME drm_gpuvm_prepare_vm - prepare the GPUVMs common dma-resv SYNOPSIS int drm_gpuvm_prepare_vm (struct drm_gpuvm *gpuvm , struct drm_exec *exec , unsigned int num_fences ); ARGUMENTS gpuvm the drm_gpuvm exec the drm_exec context num_fences the amount of dma_fences to reserve DESCRIPTI...
drm_gpuvm_put(9)
NAME drm_gpuvm_put - drop a struct drm_gpuvm reference SYNOPSIS void drm_gpuvm_put (struct drm_gpuvm *gpuvm ); ARGUMENTS gpuvm the drm_gpuvm to release the reference of DESCRIPTION This releases a reference to gpuvm. This function may be called from atomic context. SEE ALSO Kernel file ./drivers/gpu/drm/dr...
drm_gpuvm_range_valid(9)
NAME drm_gpuvm_range_valid - checks whether the given range is valid for the given &drm_gpuvm SYNOPSIS bool drm_gpuvm_range_valid (struct drm_gpuvm *gpuvm , u64 addr , u64 range ); ARGUMENTS gpuvm the GPUVM to check the range for addr the base address range the range starting from t...
drm_gpuvm_resv(9)
NAME drm_gpuvm_resv - returns the &drm_gpuvm's &dma_resv SYNOPSIS drm_gpuvm_resv (gpuvm__ ); ARGUMENTS gpuvm__ the drm_gpuvm RETURN a pointer to the drm_gpuvm's shared dma_resv SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_flags(9), struct drm_gpuva(9), drm_gpuva_invalidate(9), drm_gpuva_inva...
drm_gpuvm_resv_add_fence(9)
NAME drm_gpuvm_resv_add_fence - add fence to private and all extobj dma-resv SYNOPSIS void drm_gpuvm_resv_add_fence (struct drm_gpuvm *gpuvm , struct drm_exec *exec , struct dma_fence *fence , enum dma_resv_usage private_usage , enum dma_resv_usage extobj_usage ); ARGUMENTS gpuvm the drm_gpuvm to add a fence to...
drm_gpuvm_resv_obj(9)
NAME drm_gpuvm_resv_obj - returns the &drm_gem_object holding the &drm_gpuvm's &dma_resv SYNOPSIS drm_gpuvm_resv_obj (gpuvm__ ); ARGUMENTS gpuvm__ the drm_gpuvm RETURN a pointer to the drm_gem_object holding the drm_gpuvm's shared dma_resv SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva_flags(9...
drm_gpuvm_resv_object_alloc(9)
NAME drm_gpuvm_resv_object_alloc - allocate a dummy &drm_gem_object SYNOPSIS struct drm_gem_object * drm_gpuvm_resv_object_alloc (struct drm_device *drm ); ARGUMENTS drm the drivers drm_device DESCRIPTION Allocates a dummy drm_gem_object which can be passed to drm_gpuvm_init in order to serve as root GEM obj...
drm_gpuvm_resv_protected(9)
NAME drm_gpuvm_resv_protected - indicates whether &DRM_GPUVM_RESV_PROTECTED is set SYNOPSIS bool drm_gpuvm_resv_protected (struct drm_gpuvm *gpuvm ); ARGUMENTS gpuvm the drm_gpuvm RETURN true if DRM_GPUVM_RESV_PROTECTED is set, false otherwise. SEE ALSO Kernel file ./include/drm/drm_gpuvm.h enum drm_gpuva...
drm_gpuvm_sm_map(9)
NAME drm_gpuvm_sm_map - calls the &drm_gpuva_op split/merge steps SYNOPSIS int drm_gpuvm_sm_map (struct drm_gpuvm *gpuvm , void *priv , const struct drm_gpuvm_map_req *req ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space priv pointer to a driver private data structure req ...
drm_gpuvm_sm_map_exec_lock(9)
NAME drm_gpuvm_sm_map_exec_lock - locks the objects touched by a drm_gpuvm_sm_map() SYNOPSIS int drm_gpuvm_sm_map_exec_lock (struct drm_gpuvm *gpuvm , struct drm_exec *exec , unsigned int num_fences , struct drm_gpuvm_map_req *req ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space exec ...
drm_gpuvm_sm_map_ops_create(9)
NAME drm_gpuvm_sm_map_ops_create - creates the &drm_gpuva_ops to split and merge SYNOPSIS struct drm_gpuva_ops * drm_gpuvm_sm_map_ops_create (struct drm_gpuvm *gpuvm , const struct drm_gpuvm_map_req *req ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space req map request arguments DE...
drm_gpuvm_sm_unmap(9)
NAME drm_gpuvm_sm_unmap - calls the &drm_gpuva_ops to split on unmap SYNOPSIS int drm_gpuvm_sm_unmap (struct drm_gpuvm *gpuvm , void *priv , u64 req_addr , u64 req_range ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space priv pointer to a driver private data structure req_addr...
drm_gpuvm_sm_unmap_exec_lock(9)
NAME drm_gpuvm_sm_unmap_exec_lock - locks the objects touched by drm_gpuvm_sm_unmap() SYNOPSIS int drm_gpuvm_sm_unmap_exec_lock (struct drm_gpuvm *gpuvm , struct drm_exec *exec , u64 req_addr , u64 req_range ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space exec the drm_exec locking ...
drm_gpuvm_sm_unmap_ops_create(9)
NAME drm_gpuvm_sm_unmap_ops_create - creates the &drm_gpuva_ops to split on unmap SYNOPSIS struct drm_gpuva_ops * drm_gpuvm_sm_unmap_ops_create (struct drm_gpuvm *gpuvm , u64 req_addr , u64 req_range ); ARGUMENTS gpuvm the drm_gpuvm representing the GPU VA space req_addr the start address of the rang...
drm_gpuvm_validate(9)
NAME drm_gpuvm_validate - validate all BOs marked as evicted SYNOPSIS int drm_gpuvm_validate (struct drm_gpuvm *gpuvm , struct drm_exec *exec ); ARGUMENTS gpuvm the drm_gpuvm to validate evicted BOs exec the drm_exec instance used for locking the GPUVM DESCRIPTION Calls the drm_gpuvm_ops::vm_bo_...
drm_gtf_mode(9)
NAME drm_gtf_mode - create the modeline based on the GTF algorithm SYNOPSIS struct drm_display_mode * drm_gtf_mode (struct drm_device *dev , int hdisplay , int vdisplay , int vrefresh , bool interlaced , int margins ); ARGUMENTS dev drm device hdisplay hdisplay size vdisplay vdisplay siz...
drm_gtf_mode_complex(9)
NAME drm_gtf_mode_complex - create the modeline based on the full GTF algorithm SYNOPSIS struct drm_display_mode * drm_gtf_mode_complex (struct drm_device *dev , int hdisplay , int vdisplay , int vrefresh , bool interlaced , int margins , int GTF_M , int GTF_2C , int GTF_K , int GTF_2J ); ARGUMENTS dev drm de...
drm_handle_vblank(9)
NAME drm_handle_vblank - handle a vblank event SYNOPSIS bool drm_handle_vblank (struct drm_device *dev , unsigned int pipe ); ARGUMENTS dev DRM device pipe index of CRTC where this event occurred DESCRIPTION Drivers should call this routine in their vblank interrupt handlers to update the vbla...
drm_hdcp_check_ksvs_revoked(9)
NAME drm_hdcp_check_ksvs_revoked - Check the revoked status of the IDs SYNOPSIS int drm_hdcp_check_ksvs_revoked (struct drm_device *drm_dev , u8 *ksvs , u32 ksv_count ); ARGUMENTS drm_dev drm_device for which HDCP revocation check is requested ksvs List of KSVs (HDCP receiver IDs) ksv_count...
drm_hdcp_update_content_protection(9)
NAME drm_hdcp_update_content_protection - Updates the content protection state of a connector SYNOPSIS void drm_hdcp_update_content_protection (struct drm_connector *connector , u64 val ); ARGUMENTS connector drm_connector on which content protection state needs an update val New state of the conten...
drm_hdmi_acr_get_n_cts(9)
NAME drm_hdmi_acr_get_n_cts - get N and CTS values for Audio Clock Regeneration SYNOPSIS void drm_hdmi_acr_get_n_cts (unsigned long long tmds_char_rate , unsigned int sample_rate , unsigned int *out_n , unsigned int *out_cts ); ARGUMENTS tmds_char_rate TMDS clock (char rate) as used by the HDMI connector samp...
drm_hdmi_avi_infoframe_bars(9)
NAME drm_hdmi_avi_infoframe_bars - fill the HDMI AVI infoframe bar information SYNOPSIS void drm_hdmi_avi_infoframe_bars (struct hdmi_avi_infoframe *frame , const struct drm_connector_state *conn_state ); ARGUMENTS frame HDMI AVI infoframe conn_state connector state SEE ALSO Kernel file ./driver...
drm_hdmi_avi_infoframe_colorimetry(9)
NAME drm_hdmi_avi_infoframe_colorimetry - fill the HDMI AVI infoframe colorimetry information SYNOPSIS void drm_hdmi_avi_infoframe_colorimetry (struct hdmi_avi_infoframe *frame , const struct drm_connector_state *conn_state ); ARGUMENTS frame HDMI AVI infoframe conn_state connector state SEE ALSO Kern...
drm_hdmi_avi_infoframe_content_type(9)
NAME drm_hdmi_avi_infoframe_content_type - fill the HDMI AVI infoframe content type information, based on correspondent DRM property. SYNOPSIS void drm_hdmi_avi_infoframe_content_type (struct hdmi_avi_infoframe *frame , const struct drm_connector_state *conn_state ); ARGUMENTS frame HDMI AVI infoframe c...
drm_hdmi_avi_infoframe_from_display_mode(9)
NAME drm_hdmi_avi_infoframe_from_display_mode - fill an HDMI AVI infoframe with data from a DRM display mode SYNOPSIS int drm_hdmi_avi_infoframe_from_display_mode (struct hdmi_avi_infoframe *frame , const struct drm_connector *connector , const struct drm_display_mode *mode ); ARGUMENTS frame HDMI AVI infoframe...
drm_hdmi_avi_infoframe_quant_range(9)
NAME drm_hdmi_avi_infoframe_quant_range - fill the HDMI AVI infoframe quantization range information SYNOPSIS void drm_hdmi_avi_infoframe_quant_range (struct hdmi_avi_infoframe *frame , const struct drm_connector *connector , const struct drm_display_mode *mode , enum hdmi_quantization_range rgb_quant_range ); ARGUME...
drm_hdmi_compute_mode_clock(9)
NAME drm_hdmi_compute_mode_clock - Computes the TMDS Character Rate SYNOPSIS unsigned long long drm_hdmi_compute_mode_clock (const struct drm_display_mode *mode , unsigned int bpc , enum hdmi_colorspace fmt ); ARGUMENTS mode Display mode to compute the clock for bpc Bits per character f...
drm_hdmi_connector_mode_valid(9)
NAME drm_hdmi_connector_mode_valid - Check if mode is valid for HDMI connector SYNOPSIS enum drm_mode_status drm_hdmi_connector_mode_valid (struct drm_connector *connector , const struct drm_display_mode *mode ); ARGUMENTS connector DRM connector to validate the mode mode Display mode to validate DE...
drm_hdmi_infoframe_set_hdr_metadata(9)
NAME drm_hdmi_infoframe_set_hdr_metadata - fill an HDMI DRM infoframe with HDR metadata from userspace SYNOPSIS int drm_hdmi_infoframe_set_hdr_metadata (struct hdmi_drm_infoframe *frame , const struct drm_connector_state *conn_state ); ARGUMENTS frame HDMI DRM infoframe conn_state Connector state conta...
drm_hdmi_vendor_infoframe_from_display_mode(9)
NAME drm_hdmi_vendor_infoframe_from_display_mode - fill an HDMI infoframe with data from a DRM display mode SYNOPSIS int drm_hdmi_vendor_infoframe_from_display_mode (struct hdmi_vendor_infoframe *frame , const struct drm_connector *connector , const struct drm_display_mode *mode ); ARGUMENTS frame HDMI vendor i...
drm_helper_connector_dpms(9)
NAME drm_helper_connector_dpms - connector dpms helper implementation SYNOPSIS int drm_helper_connector_dpms (struct drm_connector *connector , int mode ); ARGUMENTS connector affected connector mode DPMS mode DESCRIPTION The drm_helper_connector_dpms helper function implements the drm_connector_fu...
drm_helper_crtc_in_use(9)
NAME drm_helper_crtc_in_use - check if a given CRTC is in a mode_config SYNOPSIS bool drm_helper_crtc_in_use (struct drm_crtc *crtc ); ARGUMENTS crtc CRTC to check DESCRIPTION Checks whether crtc is with the current mode setting output configuration in use by any connector. This doesn't mean that it is actual...
drm_helper_disable_unused_functions(9)
NAME drm_helper_disable_unused_functions - disable unused objects SYNOPSIS void drm_helper_disable_unused_functions (struct drm_device *dev ); ARGUMENTS dev DRM device DESCRIPTION This function walks through the entire mode setting configuration of dev. It will remove any CRTC links of unused encoders and e...
drm_helper_encoder_in_use(9)
NAME drm_helper_encoder_in_use - check if a given encoder is in use SYNOPSIS bool drm_helper_encoder_in_use (struct drm_encoder *encoder ); ARGUMENTS encoder encoder to check DESCRIPTION Checks whether encoder is with the current mode setting output configuration in use by any connector. This doesn't mean that i...
drm_helper_force_disable_all(9)
NAME drm_helper_force_disable_all - Forcibly turn off all enabled CRTCs SYNOPSIS int drm_helper_force_disable_all (struct drm_device *dev ); ARGUMENTS dev DRM device whose CRTCs to turn off DESCRIPTION Drivers may want to call this on unload to ensure that all displays are unlit and the GPU is in a consisten...
drm_helper_hpd_irq_event(9)
NAME drm_helper_hpd_irq_event - hotplug processing SYNOPSIS bool drm_helper_hpd_irq_event (struct drm_device *dev ); ARGUMENTS dev drm_device DESCRIPTION Drivers can use this helper function to run a detect cycle on all connectors which have the DRM_CONNECTOR_POLL_HPD flag set in their polled member. Al...
drm_helper_mode_fill_fb_struct(9)
NAME drm_helper_mode_fill_fb_struct - fill out framebuffer metadata SYNOPSIS void drm_helper_mode_fill_fb_struct (struct drm_device *dev , struct drm_framebuffer *fb , const struct drm_format_info *info , const struct drm_mode_fb_cmd2 *mode_cmd ); ARGUMENTS dev DRM device fb drm_framebuffer o...
drm_helper_move_panel_connectors_to_head(9)
NAME drm_helper_move_panel_connectors_to_head - move panels to the front in the connector list SYNOPSIS void drm_helper_move_panel_connectors_to_head (struct drm_device *dev ); ARGUMENTS dev drm device to operate on DESCRIPTION Some userspace presumes that the first connected connector is the main display, w...