id
stringlengths
4
63
text
stringlengths
153
8.81M
dma_buf_dynamic_attach(9)
NAME dma_buf_dynamic_attach - Add the device to dma_buf's attachments list SYNOPSIS struct dma_buf_attachment * dma_buf_dynamic_attach (struct dma_buf *dmabuf , struct device *dev , const struct dma_buf_attach_ops *importer_ops , void *importer_priv ); ARGUMENTS dmabuf [in] buffer to attach device to. ...
dma_buf_end_cpu_access(9)
NAME dma_buf_end_cpu_access - Must be called after accessing a dma_buf from the cpu in the kernel context. Calls end_cpu_access to allow exporter-specific actions. Coherency is only guaranteed in the specified range for the specified access direction. SYNOPSIS int dma_buf_end_cpu_access (struct dma_buf *dmabuf , en...
dma_buf_export(9)
NAME dma_buf_export - Creates a new dma_buf, and associates an anon file with this buffer, so it can be exported. Also connect the allocator specific data and ops to the buffer. Additionally, provide a name string for ex‐ porter; useful in debugging. SYNOPSIS struct dma_buf * dma_buf_export (const struct dma_buf_...
dma_buf_fd(9)
NAME dma_buf_fd - returns a file descriptor for the given struct dma_buf SYNOPSIS int dma_buf_fd (struct dma_buf *dmabuf , int flags ); ARGUMENTS dmabuf [in] pointer to dma_buf for which fd is required. flags [in] flags to give to fd DESCRIPTION On success, returns an associated 'fd'. Else, ...
dma_buf_free_sgt(9)
NAME dma_buf_free_sgt - unmaps the buffer SYNOPSIS void dma_buf_free_sgt (struct dma_buf_attachment *attach , struct sg_table *sgt , enum dma_data_direction dir ); ARGUMENTS attach [in] attachment to unmap buffer from sgt [in] scatterlist info of the buffer to unmap dir [in]...
dma_buf_get(9)
NAME dma_buf_get - returns the struct dma_buf related to an fd SYNOPSIS struct dma_buf * dma_buf_get (int fd ); ARGUMENTS fd [in] fd associated with the struct dma_buf to be returned DESCRIPTION On success, returns the struct dma_buf associated with an fd; uses file's refcounting done by fget to increase...
dma_buf_is_dynamic(9)
NAME dma_buf_is_dynamic - check if a DMA-buf uses dynamic mappings. SYNOPSIS bool dma_buf_is_dynamic (struct dma_buf *dmabuf ); ARGUMENTS dmabuf the DMA-buf to check DESCRIPTION Returns true if a DMA-buf exporter wants to be called with the dma_resv locked for the map/unmap callbacks, false if it doesn't wants ...
dma_buf_iter_begin(9)
NAME dma_buf_iter_begin - begin iteration through global list of all DMA buffers SYNOPSIS struct dma_buf * dma_buf_iter_begin (void ); ARGUMENTS void no arguments DESCRIPTION Returns the first buffer in the global list of DMA-bufs that's not in the process of being destroyed. Increments that buffer's refere...
dma_buf_iter_next(9)
NAME dma_buf_iter_next - continue iteration through global list of all DMA buffers SYNOPSIS struct dma_buf * dma_buf_iter_next (struct dma_buf *dmabuf ); ARGUMENTS dmabuf [in] pointer to dma_buf DESCRIPTION Decrements the reference count on the provided buffer. Returns the next buffer from the remainder of t...
dma_buf_map_attachment(9)
NAME dma_buf_map_attachment - Returns the scatterlist table of the attachment; mapped into _device_ address space. Is a wrapper for map_dma_buf() of the dma_buf_ops. SYNOPSIS struct sg_table * dma_buf_map_attachment (struct dma_buf_attachment *attach , enum dma_data_direction direction ); ARGUMENTS attach [in] ...
dma_buf_map_attachment_unlocked(9)
NAME dma_buf_map_attachment_unlocked - Returns the scatterlist table of the attachment; mapped into _device_ address space. Is a wrapper for map_dma_buf() of the dma_buf_ops. SYNOPSIS struct sg_table * dma_buf_map_attachment_unlocked (struct dma_buf_attachment *attach , enum dma_data_direction direction ); ARGUMENTS ...
dma_buf_mmap(9)
NAME dma_buf_mmap - Setup up a userspace mmap with the given vma SYNOPSIS int dma_buf_mmap (struct dma_buf *dmabuf , struct vm_area_struct *vma , unsigned long pgoff ); ARGUMENTS dmabuf [in] buffer that should back the vma vma [in] vma for the mmap pgoff [in] offset in page...
dma_buf_move_notify(9)
NAME dma_buf_move_notify - notify attachments that DMA-buf is moving SYNOPSIS void dma_buf_move_notify (struct dma_buf *dmabuf ); ARGUMENTS dmabuf [in] buffer which is moving DESCRIPTION Informs all attachments that they need to destroy and recreate all their mappings. SEE ALSO Kernel file ./drivers/dma-b...
dma_buf_phys_vec_to_sgt(9)
NAME dma_buf_phys_vec_to_sgt - Returns the scatterlist table of the attachment from arrays of physical vectors. This funciton is intended for MMIO memory only. SYNOPSIS struct sg_table * dma_buf_phys_vec_to_sgt (struct dma_buf_attachment *attach , struct p2pdma_provider *provider , struct phys_vec *phys_vec , size_t n...
dma_buf_pin(9)
NAME dma_buf_pin - Lock down the DMA-buf SYNOPSIS int dma_buf_pin (struct dma_buf_attachment *attach ); ARGUMENTS attach [in] attachment which should be pinned DESCRIPTION Only dynamic importers (who set up attach with dma_buf_dynamic_attach) may call this, and only for limited use cases like scanout and n...
dma_buf_put(9)
NAME dma_buf_put - decreases refcount of the buffer SYNOPSIS void dma_buf_put (struct dma_buf *dmabuf ); ARGUMENTS dmabuf [in] buffer to reduce refcount of DESCRIPTION Uses file's refcounting done implicitly by fput. If, as a result of this call, the refcount becomes 0, the 'release' file operation related...
dma_buf_set_name(9)
NAME dma_buf_set_name - Set a name to a specific dma_buf to track the usage. It could support changing the name of the dma-buf if the same piece of memory is used for multiple purpose between different devices. SYNOPSIS long dma_buf_set_name (struct dma_buf *dmabuf , const char __user *buf ); ARGUMENTS dmabuf [i...
dma_buf_unmap_attachment(9)
NAME dma_buf_unmap_attachment - unmaps and decreases usecount of the buffer;might deallocate the scatterlist associated. Is a wrapper for unmap_dma_buf() of dma_buf_ops. SYNOPSIS void dma_buf_unmap_attachment (struct dma_buf_attachment *attach , struct sg_table *sg_table , enum dma_data_direction direction ); ARGUMEN...
dma_buf_unmap_attachment_unlocked(9)
NAME dma_buf_unmap_attachment_unlocked - unmaps and decreases usecount of the buffer;might deallocate the scatterlist associated. Is a wrapper for unmap_dma_buf() of dma_buf_ops. SYNOPSIS void dma_buf_unmap_attachment_unlocked (struct dma_buf_attachment *attach , struct sg_table *sg_table , enum dma_data_direction dir...
dma_buf_unpin(9)
NAME dma_buf_unpin - Unpin a DMA-buf SYNOPSIS void dma_buf_unpin (struct dma_buf_attachment *attach ); ARGUMENTS attach [in] attachment which should be unpinned DESCRIPTION This unpins a buffer pinned by dma_buf_pin and allows the exporter to move any mapping of attach again and inform the importer through d...
dma_buf_vmap(9)
NAME dma_buf_vmap - Create virtual mapping for the buffer object into kernel address space. Same restrictions as for vmap and friends apply. SYNOPSIS int dma_buf_vmap (struct dma_buf *dmabuf , struct iosys_map *map ); ARGUMENTS dmabuf [in] buffer to vmap map [out] returns the vmap pointer D...
dma_buf_vmap_unlocked(9)
NAME dma_buf_vmap_unlocked - Create virtual mapping for the buffer object into kernel address space. Same restrictions as for vmap and friends apply. SYNOPSIS int dma_buf_vmap_unlocked (struct dma_buf *dmabuf , struct iosys_map *map ); ARGUMENTS dmabuf [in] buffer to vmap map [out] returns t...
dma_buf_vunmap(9)
NAME dma_buf_vunmap - Unmap a vmap obtained by dma_buf_vmap. SYNOPSIS void dma_buf_vunmap (struct dma_buf *dmabuf , struct iosys_map *map ); ARGUMENTS dmabuf [in] buffer to vunmap map [in] vmap pointer to vunmap SEE ALSO Kernel file ./drivers/dma-buf/dma-buf.c dma_buf_iter_begin(9), dm...
dma_buf_vunmap_unlocked(9)
NAME dma_buf_vunmap_unlocked - Unmap a vmap obtained by dma_buf_vmap. SYNOPSIS void dma_buf_vunmap_unlocked (struct dma_buf *dmabuf , struct iosys_map *map ); ARGUMENTS dmabuf [in] buffer to vunmap map [in] vmap pointer to vunmap SEE ALSO Kernel file ./drivers/dma-buf/dma-buf.c dma_buf_...
dma_can_mmap(9)
NAME dma_can_mmap - check if a given device supports dma_mmap_* SYNOPSIS bool dma_can_mmap (struct device *dev ); ARGUMENTS dev device to check DESCRIPTION Returns true if dev supports dma_mmap_coherent and dma_mmap_attrs to map DMA allocations to userspace. SEE ALSO Kernel file ./kernel/dma/mapping.c dmam_...
dma_chan_get(9)
NAME dma_chan_get - try to grab a DMA channel's parent driver module SYNOPSIS int dma_chan_get (struct dma_chan *chan ); ARGUMENTS chan channel to grab DESCRIPTION Must be called under dma_list_mutex. SEE ALSO Kernel file ./drivers/dma/dmaengine.c dev_to_dma_chan(9), struct dma_chan_tbl_ent(9), dma_cha...
dma_chan_is_local(9)
NAME dma_chan_is_local - checks if the channel is in the same NUMA-node as the CPU SYNOPSIS bool dma_chan_is_local (struct dma_chan *chan , int cpu ); ARGUMENTS chan DMA channel to test cpu CPU index which the channel should be close to DESCRIPTION Returns true if the channel is in the same NU...
dma_chan_put(9)
NAME dma_chan_put - drop a reference to a DMA channel's parent driver module SYNOPSIS void dma_chan_put (struct dma_chan *chan ); ARGUMENTS chan channel to release DESCRIPTION Must be called under dma_list_mutex. SEE ALSO Kernel file ./drivers/dma/dmaengine.c dev_to_dma_chan(9), struct dma_chan_tbl_ent(...
dma_channel_rebalance(9)
NAME dma_channel_rebalance - redistribute the available channels SYNOPSIS void dma_channel_rebalance (void ); ARGUMENTS void no arguments DESCRIPTION Optimize for CPU isolation (each CPU gets a dedicated channel for an operation type) in the SMP case, and operation isolation (avoid multi-tasking channels) in ...
dma_contiguous_reserve(9)
NAME dma_contiguous_reserve - reserve area(s) for contiguous memory handling SYNOPSIS void dma_contiguous_reserve (phys_addr_t limit ); ARGUMENTS limit End address of the reserved memory (optional, 0 for any). DESCRIPTION This function reserves memory from early allocator. It should be called by arch specific ...
dma_contiguous_reserve_area(9)
NAME dma_contiguous_reserve_area - reserve custom contiguous area SYNOPSIS int dma_contiguous_reserve_area (phys_addr_t size , phys_addr_t base , phys_addr_t limit , struct cma **res_cma , bool fixed ); ARGUMENTS size Size of the reserved area (in bytes), base Base address of the reserved area o...
dma_cookie_assign(9)
NAME dma_cookie_assign - assign a DMA engine cookie to the descriptor SYNOPSIS dma_cookie_t dma_cookie_assign (struct dma_async_tx_descriptor *tx ); ARGUMENTS tx descriptor needing cookie DESCRIPTION Assign a unique non-zero per-channel cookie to the descriptor. NOTE caller is expected to hold a lock to pr...
dma_cookie_complete(9)
NAME dma_cookie_complete - complete a descriptor SYNOPSIS void dma_cookie_complete (struct dma_async_tx_descriptor *tx ); ARGUMENTS tx descriptor to complete DESCRIPTION Mark this descriptor complete by updating the channels completed cookie marker. Zero the descriptors cookie to prevent accidental repeate...
dma_cookie_init(9)
NAME dma_cookie_init - initialize the cookies for a DMA channel SYNOPSIS void dma_cookie_init (struct dma_chan *chan ); ARGUMENTS chan dma channel to initialize SEE ALSO Kernel file ./drivers/dma/dmaengine.h dma_cookie_assign(9), dma_cookie_complete(9), dma_cookie_status(9), dmaengine_desc_get_callbac...
dma_cookie_status(9)
NAME dma_cookie_status - report cookie status SYNOPSIS enum dma_status dma_cookie_status (struct dma_chan *chan , dma_cookie_t cookie , struct dma_tx_state *state ); ARGUMENTS chan dma channel cookie cookie we are interested in state dma_tx_state structure to return last/used cookies...
dma_cookie_t(9)
Kernel API(9) API Manual Kernel API(9) NAME typedef dma_cookie_t - an opaque DMA cookie Description if dma_cookie_t is >0 it's a...
dma_direct_set_offset(9)
NAME dma_direct_set_offset - Assign scalar offset for a single DMA range. SYNOPSIS int dma_direct_set_offset (struct device *dev , phys_addr_t cpu_start , dma_addr_t dma_start , u64 size ); ARGUMENTS dev device pointer; needed to "own" the alloced memory. cpu_start beginning of memory region covered...
dma_fence_add_callback(9)
NAME dma_fence_add_callback - add a callback to be called when the fence is signaled SYNOPSIS int dma_fence_add_callback (struct dma_fence *fence , struct dma_fence_cb *cb , dma_fence_func_t func ); ARGUMENTS fence the fence to wait on cb the callback to register func the functio...
dma_fence_allocate_private_stub(9)
NAME dma_fence_allocate_private_stub - return a private, signaled fence SYNOPSIS struct dma_fence * dma_fence_allocate_private_stub (ktime_t timestamp ); ARGUMENTS timestamp timestamp when the fence was signaled DESCRIPTION Return a newly allocated and signaled stub fence. SEE ALSO Kernel file ./drivers/dma-buf/...
dma_fence_array_alloc(9)
NAME dma_fence_array_alloc - Allocate a custom fence array SYNOPSIS struct dma_fence_array * dma_fence_array_alloc (int num_fences ); ARGUMENTS num_fences [in] number of fences to add in the array DESCRIPTION Return dma fence array on success, NULL on failure SEE ALSO Kernel file ./drivers/dma-buf/dma-fence-arr...
dma_fence_array_create(9)
NAME dma_fence_array_create - Create a custom fence array SYNOPSIS struct dma_fence_array * dma_fence_array_create (int num_fences , struct dma_fence **fences , u64 context , unsigned seqno , bool signal_on_any ); ARGUMENTS num_fences [in] number of fences to add in the array fences [in] array con...
dma_fence_array_for_each(9)
NAME dma_fence_array_for_each - iterate over all fences in array SYNOPSIS dma_fence_array_for_each (fence , index , head ); ARGUMENTS fence current fence index index into the array head potential dma_fence_array object DESCRIPTION Test if array is a dma_fence_array object and if ye...
dma_fence_array_init(9)
NAME dma_fence_array_init - Init a custom fence array SYNOPSIS void dma_fence_array_init (struct dma_fence_array *array , int num_fences , struct dma_fence **fences , u64 context , unsigned seqno , bool signal_on_any ); ARGUMENTS array [in] dma fence array to arm num_fences [in] number of fences ...
dma_fence_begin_signalling(9)
NAME dma_fence_begin_signalling - begin a critical DMA fence signalling section SYNOPSIS bool dma_fence_begin_signalling (void ); ARGUMENTS void no arguments DESCRIPTION Drivers should use this to annotate the beginning of any code section required to eventually complete dma_fence by calling dma_fence_signal....
dma_fence_chain_alloc(9)
NAME dma_fence_chain_alloc - SYNOPSIS dma_fence_chain_alloc DESCRIPTION Returns a new struct dma_fence_chain object or NULL on failure. This specialized allocator has to be a macro for its allocations to be accounted separately (to have a separate alloc_tag). The typecast is intentional to enforce typesafety. SEE...
dma_fence_chain_contained(9)
NAME dma_fence_chain_contained - return the contained fence SYNOPSIS struct dma_fence * dma_fence_chain_contained (struct dma_fence *fence ); ARGUMENTS fence the fence to test DESCRIPTION If the fence is a dma_fence_chain the function returns the fence contained inside the chain object, otherwise it returns th...
dma_fence_chain_find_seqno(9)
NAME dma_fence_chain_find_seqno - find fence chain node by seqno SYNOPSIS int dma_fence_chain_find_seqno (struct dma_fence **pfence , uint64_t seqno ); ARGUMENTS pfence pointer to the chain node where to start seqno the sequence number to search for DESCRIPTION Advance the fence pointer to the c...
dma_fence_chain_for_each(9)
NAME dma_fence_chain_for_each - iterate over all fences in chain SYNOPSIS dma_fence_chain_for_each (iter , head ); ARGUMENTS iter current fence head starting point DESCRIPTION Iterate over all fences in the chain. We keep a reference to the current fence while inside the loop which must be drop...
dma_fence_chain_free(9)
NAME dma_fence_chain_free - SYNOPSIS void dma_fence_chain_free (struct dma_fence_chain *chain ); ARGUMENTS chain chain node to free DESCRIPTION Frees up an allocated but not used struct dma_fence_chain object. This doesn't need an RCU grace period since the fence was never initialized nor published. After dma_...
dma_fence_chain_get_prev(9)
NAME dma_fence_chain_get_prev - use RCU to get a reference to the previous fence SYNOPSIS struct dma_fence * dma_fence_chain_get_prev (struct dma_fence_chain *chain ); ARGUMENTS chain chain node to get the previous node from DESCRIPTION Use dma_fence_get_rcu_safe to get a reference to the previous fence of the...
dma_fence_chain_init(9)
NAME dma_fence_chain_init - initialize a fence chain SYNOPSIS void dma_fence_chain_init (struct dma_fence_chain *chain , struct dma_fence *prev , struct dma_fence *fence , uint64_t seqno ); ARGUMENTS chain the chain node to initialize prev the previous fence fence the current fence ...
dma_fence_chain_walk(9)
NAME dma_fence_chain_walk - chain walking function SYNOPSIS struct dma_fence * dma_fence_chain_walk (struct dma_fence *fence ); ARGUMENTS fence current chain node DESCRIPTION Walk the chain to the next node. Returns the next fence or NULL if we are at the end of the chain. Garbage collects chain nodes which ar...
dma_fence_check_and_signal(9)
NAME dma_fence_check_and_signal - signal the fence if it's not yet signaled SYNOPSIS bool dma_fence_check_and_signal (struct dma_fence *fence ); ARGUMENTS fence the fence to check and signal DESCRIPTION Checks whether a fence was signaled and signals it if it was not yet signaled. All this is done in a race-f...
dma_fence_check_and_signal_locked(9)
NAME dma_fence_check_and_signal_locked - signal the fence if it's not yet signaled SYNOPSIS bool dma_fence_check_and_signal_locked (struct dma_fence *fence ); ARGUMENTS fence the fence to check and signal DESCRIPTION Checks whether a fence was signaled and signals it if it was not yet signaled. Unlike dma_fen...
dma_fence_context_alloc(9)
NAME dma_fence_context_alloc - allocate an array of fence contexts SYNOPSIS u64 dma_fence_context_alloc (unsigned num ); ARGUMENTS num amount of contexts to allocate DESCRIPTION This function will return the first index of the number of fence contexts allocated. The fence context is used for setting dma_fen...
dma_fence_dedup_array(9)
NAME dma_fence_dedup_array - Sort and deduplicate an array of dma_fence pointers SYNOPSIS int dma_fence_dedup_array (struct dma_fence **fences , int num_fences ); ARGUMENTS fences Array of dma_fence pointers to be deduplicated num_fences Number of entries in the fences array DESCRIPTION Sorts the inpu...
dma_fence_default_wait(9)
NAME dma_fence_default_wait - default sleep until the fence gets signaled or until timeout elapses SYNOPSIS signed long dma_fence_default_wait (struct dma_fence *fence , bool intr , signed long timeout ); ARGUMENTS fence the fence to wait on intr if true, do an interruptible wait timeout ...
dma_fence_describe(9)
NAME dma_fence_describe - Dump fence description into seq_file SYNOPSIS void dma_fence_describe (struct dma_fence *fence , struct seq_file *seq ); ARGUMENTS fence the fence to describe seq the seq_file to put the textual description into DESCRIPTION Dump a textual description of the fence and i...
dma_fence_driver_name(9)
NAME dma_fence_driver_name - Access the driver name SYNOPSIS const char __rcu * dma_fence_driver_name (struct dma_fence *fence ); ARGUMENTS fence the fence to query DESCRIPTION Returns a driver name backing the dma-fence implementation. IMPORTANT CONSIDERATION: Dma-fence contract stipulates that access t...
dma_fence_enable_sw_signaling(9)
NAME dma_fence_enable_sw_signaling - enable signaling on fence SYNOPSIS void dma_fence_enable_sw_signaling (struct dma_fence *fence ); ARGUMENTS fence the fence to enable DESCRIPTION This will request for sw signaling to be enabled, to make the fence complete as soon as possible. This calls dma_fence_ops.enabl...
dma_fence_end_signalling(9)
NAME dma_fence_end_signalling - end a critical DMA fence signalling section SYNOPSIS void dma_fence_end_signalling (bool cookie ); ARGUMENTS cookie opaque cookie from dma_fence_begin_signalling DESCRIPTION Closes a critical section annotation opened by dma_fence_begin_signalling. SEE ALSO Kernel file ./drive...
dma_fence_free(9)
NAME dma_fence_free - default release function for &dma_fence. SYNOPSIS void dma_fence_free (struct dma_fence *fence ); ARGUMENTS fence fence to release DESCRIPTION This is the default implementation for dma_fence_ops.release. It calls kfree_rcu on fence. SEE ALSO Kernel file ./drivers/dma-buf/dma-fence.c...
dma_fence_get(9)
NAME dma_fence_get - increases refcount of the fence SYNOPSIS struct dma_fence * dma_fence_get (struct dma_fence *fence ); ARGUMENTS fence fence to increase refcount of DESCRIPTION Returns the same fence, with refcount increased by 1. SEE ALSO Kernel file ./include/linux/dma-fence.h struct dma_fence(9), ...
dma_fence_get_rcu(9)
NAME dma_fence_get_rcu - get a fence from a dma_resv_list with rcu read lock SYNOPSIS struct dma_fence * dma_fence_get_rcu (struct dma_fence *fence ); ARGUMENTS fence fence to increase refcount of DESCRIPTION Function returns NULL if no refcount could be obtained, or the fence. SEE ALSO Kernel file ./include...
dma_fence_get_rcu_safe(9)
NAME dma_fence_get_rcu_safe - acquire a reference to an RCU tracked fence SYNOPSIS struct dma_fence * dma_fence_get_rcu_safe (struct dma_fence __rcu **fencep ); ARGUMENTS fencep pointer to fence to increase refcount of DESCRIPTION Function returns NULL if no refcount could be obtained, or the fence. This f...
dma_fence_get_status(9)
NAME dma_fence_get_status - returns the status upon completion SYNOPSIS int dma_fence_get_status (struct dma_fence *fence ); ARGUMENTS fence the dma_fence to query DESCRIPTION This wraps dma_fence_get_status_locked to return the error status condition on a signaled fence. See dma_fence_get_status_locked for mo...
dma_fence_get_status_locked(9)
NAME dma_fence_get_status_locked - returns the status upon completion SYNOPSIS int dma_fence_get_status_locked (struct dma_fence *fence ); ARGUMENTS fence the dma_fence to query DESCRIPTION Drivers can supply an optional error status condition before they signal the fence (to indicate whether the fence was co...
dma_fence_get_stub(9)
NAME dma_fence_get_stub - return a signaled fence SYNOPSIS struct dma_fence * dma_fence_get_stub (void ); ARGUMENTS void no arguments DESCRIPTION Return a stub fence which is already signaled. The fence's timestamp corresponds to the initialisation time of the linux kernel. SEE ALSO Kernel file ./drivers/d...
dma_fence_init(9)
NAME dma_fence_init - Initialize a custom fence. SYNOPSIS void dma_fence_init (struct dma_fence *fence , const struct dma_fence_ops *ops , spinlock_t *lock , u64 context , u64 seqno ); ARGUMENTS fence the fence to initialize ops the dma_fence_ops for operations on this fence lock ...
dma_fence_init64(9)
NAME dma_fence_init64 - Initialize a custom fence with 64-bit seqno support. SYNOPSIS void dma_fence_init64 (struct dma_fence *fence , const struct dma_fence_ops *ops , spinlock_t *lock , u64 context , u64 seqno ); ARGUMENTS fence the fence to initialize ops the dma_fence_ops for operations on t...
dma_fence_is_array(9)
NAME dma_fence_is_array - check if a fence is from the array subclass SYNOPSIS bool dma_fence_is_array (struct dma_fence *fence ); ARGUMENTS fence the fence to test DESCRIPTION Return true if it is a dma_fence_array and false otherwise. SEE ALSO Kernel file ./include/linux/dma-fence.h struct dma_fence(9),...
dma_fence_is_chain(9)
NAME dma_fence_is_chain - check if a fence is from the chain subclass SYNOPSIS bool dma_fence_is_chain (struct dma_fence *fence ); ARGUMENTS fence the fence to test DESCRIPTION Return true if it is a dma_fence_chain and false otherwise. SEE ALSO Kernel file ./include/linux/dma-fence.h struct dma_fence(9),...
dma_fence_is_container(9)
NAME dma_fence_is_container - check if a fence is a container for other fences SYNOPSIS bool dma_fence_is_container (struct dma_fence *fence ); ARGUMENTS fence the fence to test DESCRIPTION Return true if this fence is a container for other fences, false otherwise. This is important since we can't build up la...
dma_fence_is_later(9)
NAME dma_fence_is_later - return if f1 is chronologically later than f2 SYNOPSIS bool dma_fence_is_later (struct dma_fence *f1 , struct dma_fence *f2 ); ARGUMENTS f1 the first fence from the same context f2 the second fence from the same context DESCRIPTION Returns true if f1 is chronologic...
dma_fence_is_later_or_same(9)
NAME dma_fence_is_later_or_same - return true if f1 is later or same as f2 SYNOPSIS bool dma_fence_is_later_or_same (struct dma_fence *f1 , struct dma_fence *f2 ); ARGUMENTS f1 the first fence from the same context f2 the second fence from the same context DESCRIPTION Returns true if f1 is ...
dma_fence_is_signaled(9)
NAME dma_fence_is_signaled - Return an indication if the fence is signaled yet. SYNOPSIS bool dma_fence_is_signaled (struct dma_fence *fence ); ARGUMENTS fence the fence to check DESCRIPTION Returns true if the fence was already signaled, false if not. Since this function doesn't enable signaling, it is not gu...
dma_fence_is_signaled_locked(9)
NAME dma_fence_is_signaled_locked - Return an indication if the fence is signaled yet. SYNOPSIS bool dma_fence_is_signaled_locked (struct dma_fence *fence ); ARGUMENTS fence the fence to check DESCRIPTION Returns true if the fence was already signaled, false if not. Since this function doesn't enable signaling...
dma_fence_later(9)
NAME dma_fence_later - return the chronologically later fence SYNOPSIS struct dma_fence * dma_fence_later (struct dma_fence *f1 , struct dma_fence *f2 ); ARGUMENTS f1 the first fence from the same context f2 the second fence from the same context DESCRIPTION Returns NULL if both fences are ...
dma_fence_match_context(9)
NAME dma_fence_match_context - Check if all fences are from the given context SYNOPSIS bool dma_fence_match_context (struct dma_fence *fence , u64 context ); ARGUMENTS fence [in] fence or fence array context [in] fence context to check all fences against DESCRIPTION Checks the provided fence ...
dma_fence_put(9)
NAME dma_fence_put - decreases refcount of the fence SYNOPSIS void dma_fence_put (struct dma_fence *fence ); ARGUMENTS fence fence to reduce refcount of SEE ALSO Kernel file ./include/linux/dma-fence.h struct dma_fence(9), struct dma_fence_cb(9), struct dma_fence_ops(9), dma_fence_get(9), dma_fence_g...
dma_fence_release(9)
NAME dma_fence_release - default release function for fences SYNOPSIS void dma_fence_release (struct kref *kref ); ARGUMENTS kref dma_fence.recfount DESCRIPTION This is the default release functions for dma_fence. Drivers shouldn't call this directly, but instead call dma_fence_put. SEE ALSO Kernel file ...
dma_fence_remove_callback(9)
NAME dma_fence_remove_callback - remove a callback from the signaling list SYNOPSIS bool dma_fence_remove_callback (struct dma_fence *fence , struct dma_fence_cb *cb ); ARGUMENTS fence the fence to wait on cb the callback to remove DESCRIPTION Remove a previously queued callback from the f...
dma_fence_set_deadline(9)
NAME dma_fence_set_deadline - set desired fence-wait deadline hint SYNOPSIS void dma_fence_set_deadline (struct dma_fence *fence , ktime_t deadline ); ARGUMENTS fence the fence that is to be waited on deadline the time by which the waiter hopes for the fence to be signaled DESCRIPTION Give the fenc...
dma_fence_set_error(9)
NAME dma_fence_set_error - flag an error condition on the fence SYNOPSIS void dma_fence_set_error (struct dma_fence *fence , int error ); ARGUMENTS fence the dma_fence error the error to store DESCRIPTION Drivers can supply an optional error status condition before they signal the fence, to i...
dma_fence_signal(9)
NAME dma_fence_signal - signal completion of a fence SYNOPSIS void dma_fence_signal (struct dma_fence *fence ); ARGUMENTS fence the fence to signal DESCRIPTION Signal completion for software callbacks on a fence, this will unblock dma_fence_wait calls and run all the callbacks added with dma_fence_add_callback...
dma_fence_signal_locked(9)
NAME dma_fence_signal_locked - signal completion of a fence SYNOPSIS void dma_fence_signal_locked (struct dma_fence *fence ); ARGUMENTS fence the fence to signal DESCRIPTION Signal completion for software callbacks on a fence, this will unblock dma_fence_wait calls and run all the callbacks added with dma_fenc...
dma_fence_signal_timestamp(9)
NAME dma_fence_signal_timestamp - signal completion of a fence SYNOPSIS void dma_fence_signal_timestamp (struct dma_fence *fence , ktime_t timestamp ); ARGUMENTS fence the fence to signal timestamp fence signal timestamp in kernel's CLOCK_MONOTONIC time domain DESCRIPTION Signal completion for softwa...
dma_fence_signal_timestamp_locked(9)
NAME dma_fence_signal_timestamp_locked - signal completion of a fence SYNOPSIS void dma_fence_signal_timestamp_locked (struct dma_fence *fence , ktime_t timestamp ); ARGUMENTS fence the fence to signal timestamp fence signal timestamp in kernel's CLOCK_MONOTONIC time domain DESCRIPTION Signal complet...
dma_fence_timeline_name(9)
NAME dma_fence_timeline_name - Access the timeline name SYNOPSIS const char __rcu * dma_fence_timeline_name (struct dma_fence *fence ); ARGUMENTS fence the fence to query DESCRIPTION Returns a timeline name provided by the dma-fence implementation. IMPORTANT CONSIDERATION: Dma-fence contract stipulates tha...
dma_fence_timestamp(9)
NAME dma_fence_timestamp - helper to get the completion timestamp of a fence SYNOPSIS ktime_t dma_fence_timestamp (struct dma_fence *fence ); ARGUMENTS fence fence to get the timestamp from. DESCRIPTION After a fence is signaled the timestamp is updated with the signaling time, but setting the timestamp can ra...
dma_fence_unwrap_first(9)
NAME dma_fence_unwrap_first - return the first fence from fence containers SYNOPSIS struct dma_fence * dma_fence_unwrap_first (struct dma_fence *head , struct dma_fence_unwrap *cursor ); ARGUMENTS head the entrypoint into the containers cursor current position inside the containers DESCRIPTION Un...
dma_fence_unwrap_for_each(9)
NAME dma_fence_unwrap_for_each - iterate over all fences in containers SYNOPSIS dma_fence_unwrap_for_each (fence , cursor , head ); ARGUMENTS fence current fence cursor current position inside the containers head starting point for the iterator DESCRIPTION Unwrap dma_fence_chain and...
dma_fence_unwrap_merge(9)
NAME dma_fence_unwrap_merge - unwrap and merge fences SYNOPSIS dma_fence_unwrap_merge (... ); ARGUMENTS ... variable arguments DESCRIPTION All fences given as parameters are unwrapped and merged back together as flat dma_fence_array. Useful if multiple containers need to be merged together. Implemented...
dma_fence_unwrap_next(9)
NAME dma_fence_unwrap_next - return the next fence from a fence containers SYNOPSIS struct dma_fence * dma_fence_unwrap_next (struct dma_fence_unwrap *cursor ); ARGUMENTS cursor current position inside the containers DESCRIPTION Continue unwrapping the dma_fence_chain/dma_fence_array containers and return the n...
dma_fence_wait(9)
NAME dma_fence_wait - sleep until the fence gets signaled SYNOPSIS signed long dma_fence_wait (struct dma_fence *fence , bool intr ); ARGUMENTS fence the fence to wait on intr if true, do an interruptible wait DESCRIPTION This function will return -ERESTARTSYS if interrupted by a signal, or 0...
dma_fence_wait_any_timeout(9)
NAME dma_fence_wait_any_timeout - sleep until any fence gets signaled or until timeout elapses SYNOPSIS signed long dma_fence_wait_any_timeout (struct dma_fence **fences , uint32_t count , bool intr , signed long timeout , uint32_t *idx ); ARGUMENTS fences array of fences to wait on count number of...
dma_fence_wait_timeout(9)
NAME dma_fence_wait_timeout - sleep until the fence gets signaled or until timeout elapses SYNOPSIS signed long dma_fence_wait_timeout (struct dma_fence *fence , bool intr , signed long timeout ); ARGUMENTS fence the fence to wait on intr if true, do an interruptible wait timeout time...
dma_fence_work_commit_imm(9)
NAME dma_fence_work_commit_imm - Commit the fence, and if possible execute locally. SYNOPSIS void dma_fence_work_commit_imm (struct dma_fence_work *f ); ARGUMENTS f the fenced worker DESCRIPTION Instead of always scheduling a worker to execute the callback (see dma_fence_work_commit), we try to execut...
dma_filter_fn(9)
NAME dma_filter_fn - callback filter for dma_request_channel SYNOPSIS bool dma_filter_fn (struct dma_chan *chan , void *filter_param ); ARGUMENTS chan channel to be reviewed filter_param opaque parameter passed through dma_request_channel DESCRIPTION When this optional parameter is ...
dma_find_channel(9)
NAME dma_find_channel - find a channel to carry out the operation SYNOPSIS struct dma_chan * dma_find_channel (enum dma_transaction_type tx_type ); ARGUMENTS tx_type transaction type SEE ALSO Kernel file ./drivers/dma/dmaengine.c dev_to_dma_chan(9), struct dma_chan_tbl_ent(9), dma_chan_is_local(9), min_chan(9...