id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
dma_free_contiguous(9) | NAME dma_free_contiguous - release allocated pages
SYNOPSIS void dma_free_contiguous (struct device *dev , struct page *page , size_t size );
ARGUMENTS dev Pointer to device for which the pages were allocated.
page Pointer to the allocated pages.
size Size of allocated pages.
DE... |
dma_free_rx_skbufs(9) | NAME dma_free_rx_skbufs - free RX dma buffers
SYNOPSIS void dma_free_rx_skbufs (struct stmmac_priv *priv , struct stmmac_dma_conf *dma_conf , u32 queue );
ARGUMENTS priv private structure
dma_conf structure to take the dma data
queue RX queue index
SEE ALSO Kernel file ./drivers/net/... |
dma_free_rx_xskbufs(9) | NAME dma_free_rx_xskbufs - free RX dma buffers from XSK pool
SYNOPSIS void dma_free_rx_xskbufs (struct stmmac_priv *priv , struct stmmac_dma_conf *dma_conf , u32 queue );
ARGUMENTS priv private structure
dma_conf structure to take the dma data
queue RX queue index
SEE ALSO Kernel fil... |
dma_free_tx_skbufs(9) | NAME dma_free_tx_skbufs - free TX dma buffers
SYNOPSIS void dma_free_tx_skbufs (struct stmmac_priv *priv , struct stmmac_dma_conf *dma_conf , u32 queue );
ARGUMENTS priv private structure
dma_conf structure to take the dma data
queue TX queue index
SEE ALSO Kernel file ./drivers/net/... |
dma_get_seg_boundary_nr_pages(9) | NAME dma_get_seg_boundary_nr_pages - return the segment boundary in "page" units
SYNOPSIS unsigned long dma_get_seg_boundary_nr_pages (struct device *dev , unsigned int page_shift );
ARGUMENTS dev device to guery the boundary for
page_shift ilog of the IOMMU page size
DESCRIPTION Return the segment ... |
dma_get_slave_channel(9) | NAME dma_get_slave_channel - try to get specific channel exclusively
SYNOPSIS struct dma_chan * dma_get_slave_channel (struct dma_chan *chan );
ARGUMENTS chan target channel
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), dm... |
dma_heap_add(9) | NAME dma_heap_add - adds a heap to dmabuf heaps
SYNOPSIS struct dma_heap * dma_heap_add (const struct dma_heap_export_info *exp_info );
ARGUMENTS exp_info information needed to register this heap
SEE ALSO Kernel file ./drivers/dma-buf/dma-heap.c struct dma_heap(9), dma_heap_get_drvdata(9), dma_heap_get_name(9)
A... |
dma_heap_get_drvdata(9) | NAME dma_heap_get_drvdata - get per-heap driver data
SYNOPSIS void * dma_heap_get_drvdata (struct dma_heap *heap );
ARGUMENTS heap DMA-Heap to retrieve private data for
RETURN The per-heap data for the heap.
SEE ALSO Kernel file ./drivers/dma-buf/dma-heap.c struct dma_heap(9), dma_heap_get_name(9), dma_heap_... |
dma_heap_get_name(9) | NAME dma_heap_get_name - get heap name
SYNOPSIS const char * dma_heap_get_name (struct dma_heap *heap );
ARGUMENTS heap DMA-Heap to retrieve the name of
RETURN The char* for the heap name.
SEE ALSO Kernel file ./drivers/dma-buf/dma-heap.c struct dma_heap(9), dma_heap_get_drvdata(9), dma_heap_add(9)
April 20... |
dma_info_to_prot(9) | NAME dma_info_to_prot - Translate DMA API directions and attributes to IOMMU API page flags.
SYNOPSIS int dma_info_to_prot (enum dma_data_direction dir , bool coherent , unsigned long attrs );
ARGUMENTS dir Direction of DMA transfer
coherent Is the DMA master cache-coherent?
attrs DMA... |
dma_iova_destroy(9) | NAME dma_iova_destroy - Finish a DMA mapping transaction
SYNOPSIS void dma_iova_destroy (struct device *dev , struct dma_iova_state *state , size_t mapped_len , enum dma_data_direction dir , unsigned long attrs );
ARGUMENTS dev DMA device
state IOVA state
mapped_len number of bytes to u... |
dma_iova_free(9) | NAME dma_iova_free - Free an IOVA space
SYNOPSIS void dma_iova_free (struct device *dev , struct dma_iova_state *state );
ARGUMENTS dev Device to free the IOVA space for
state IOVA state
DESCRIPTION Undoes a successful dma_try_iova_alloc. Note that all dma_iova_link calls need to be undone fir... |
dma_iova_link(9) | NAME dma_iova_link - Link a range of IOVA space
SYNOPSIS int dma_iova_link (struct device *dev , struct dma_iova_state *state , phys_addr_t phys , size_t offset , size_t size , enum dma_data_direction dir , unsigned long attrs );
ARGUMENTS dev DMA device
state IOVA state
phys phys... |
dma_iova_sync(9) | NAME dma_iova_sync - Sync IOTLB
SYNOPSIS int dma_iova_sync (struct device *dev , struct dma_iova_state *state , size_t offset , size_t size );
ARGUMENTS dev DMA device
state IOVA state
offset offset into the IOVA state to sync
size size of the buffer
DESCRIPTION Sync... |
dma_iova_try_alloc(9) | NAME dma_iova_try_alloc - Try to allocate an IOVA space
SYNOPSIS bool dma_iova_try_alloc (struct device *dev , struct dma_iova_state *state , phys_addr_t phys , size_t size );
ARGUMENTS dev Device to allocate the IOVA space for
state IOVA state
phys physical address
size ... |
dma_iova_unlink(9) | NAME dma_iova_unlink - Unlink a range of IOVA space
SYNOPSIS void dma_iova_unlink (struct device *dev , struct dma_iova_state *state , size_t offset , size_t size , enum dma_data_direction dir , unsigned long attrs );
ARGUMENTS dev DMA device
state IOVA state
offset offset into the ... |
dma_issue_pending_all(9) | NAME dma_issue_pending_all - flush all pending operations across all channels
SYNOPSIS void dma_issue_pending_all (void );
ARGUMENTS void no arguments
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), dma_channel_rebalanc... |
dma_map_host_va(9) | NAME dma_map_host_va - DMA mapping of the given host virtual address.
SYNOPSIS int dma_map_host_va (struct hl_device *hdev , u64 addr , u64 size , struct hl_userptr **p_userptr );
ARGUMENTS hdev habanalabs device structure.
addr the host virtual address of the memory area.
size th... |
dma_map_inbufs(9) | NAME dma_map_inbufs - DMA map input sglist and creates sglist component for N5 device.
SYNOPSIS int dma_map_inbufs (struct nitrox_softreq *sr , struct se_crypto_request *req );
ARGUMENTS sr Request structure
req Crypto request structre
DESCRIPTION Returns 0 if successful or a negative errno ... |
dma_map_sg_attrs(9) | NAME dma_map_sg_attrs - Map the given buffer for DMA
SYNOPSIS unsigned int dma_map_sg_attrs (struct device *dev , struct scatterlist *sg , int nents , enum dma_data_direction dir , unsigned long attrs );
ARGUMENTS dev The device for which to perform the DMA operation
sg The sg_table object de... |
dma_map_sgtable(9) | NAME dma_map_sgtable - Map the given buffer for DMA
SYNOPSIS int dma_map_sgtable (struct device *dev , struct sg_table *sgt , enum dma_data_direction dir , unsigned long attrs );
ARGUMENTS dev The device for which to perform the DMA operation
sgt The sg_table object describing the buffer
... |
dma_mmap_attrs(9) | NAME dma_mmap_attrs - map a coherent DMA allocation into user space
SYNOPSIS int dma_mmap_attrs (struct device *dev , struct vm_area_struct *vma , void *cpu_addr , dma_addr_t dma_addr , size_t size , unsigned long attrs );
ARGUMENTS dev valid struct device pointer, or NULL for ISA and EISA-like devices
... |
dma_mmap_from_dev_coherent(9) | NAME dma_mmap_from_dev_coherent - mmap memory from the device coherent pool
SYNOPSIS int dma_mmap_from_dev_coherent (struct device *dev , struct vm_area_struct *vma , void *vaddr , size_t size , int *ret );
ARGUMENTS dev device from which the memory was allocated
vma vm_area for the userspace ... |
dma_need_unmap(9) | NAME dma_need_unmap - does this device need dma_unmap_* operations
SYNOPSIS bool dma_need_unmap (struct device *dev );
ARGUMENTS dev device to check
DESCRIPTION If this function returns false, drivers can skip calling dma_unmap_* after finishing an I/O. This function must be called after all mappings that m... |
dma_pool_alloc(9) | NAME dma_pool_alloc - get a block of coherent memory
SYNOPSIS void * dma_pool_alloc (struct dma_pool *pool , gfp_t mem_flags , dma_addr_t *handle );
ARGUMENTS pool dma pool that will produce the block
mem_flags GFP_* bitmask
handle pointer to dma address of block
RETURN the kernel virtu... |
dma_pool_create_node(9) | NAME dma_pool_create_node - Creates a pool of coherent DMA memory blocks.
SYNOPSIS struct dma_pool * dma_pool_create_node (const char *name , struct device *dev , size_t size , size_t align , size_t boundary , int node );
ARGUMENTS name name of pool, for diagnostics
dev device that will be doin... |
dma_pool_destroy(9) | NAME dma_pool_destroy - destroys a pool of dma memory blocks.
SYNOPSIS void dma_pool_destroy (struct dma_pool *pool );
ARGUMENTS pool dma pool that will be destroyed
CONTEXT !in_interrupt
DESCRIPTION Caller guarantees that no more memory from the pool is in use, and that nothing will try to use the pool afte... |
dma_pool_free(9) | NAME dma_pool_free - put block back into dma pool
SYNOPSIS void dma_pool_free (struct dma_pool *pool , void *vaddr , dma_addr_t dma );
ARGUMENTS pool the dma pool holding the block
vaddr virtual address of block
dma dma address of block
DESCRIPTION Caller promises neither device ... |
dma_pool_zalloc(9) | NAME dma_pool_zalloc - Get a zero-initialized block of DMA coherent memory.
SYNOPSIS void * dma_pool_zalloc (struct dma_pool *pool , gfp_t mem_flags , dma_addr_t *handle );
ARGUMENTS pool dma pool that will produce the block
mem_flags GFP_* bitmask
handle pointer to dma address of block
... |
dma_port_alloc(9) | NAME dma_port_alloc - Finds DMA control port from a switch pointed by route
SYNOPSIS struct tb_dma_port * dma_port_alloc (struct tb_switch *sw );
ARGUMENTS sw Switch from where find the DMA port
DESCRIPTION Function checks if the switch NHI port supports DMA configuration based mailbox capability and if... |
dma_port_flash_read(9) | NAME dma_port_flash_read - Read from active flash region
SYNOPSIS int dma_port_flash_read (struct tb_dma_port *dma , unsigned int address , void *buf , size_t size );
ARGUMENTS dma DMA control port
address Address relative to the start of active region
buf Buffer where the data is ... |
dma_port_flash_update_auth(9) | NAME dma_port_flash_update_auth - Starts flash authenticate cycle
SYNOPSIS int dma_port_flash_update_auth (struct tb_dma_port *dma );
ARGUMENTS dma DMA control port
DESCRIPTION Starts the flash update authentication cycle. If the image in the non-active area was valid, the switch starts upgrade process where... |
dma_port_flash_update_auth_status(9) | NAME dma_port_flash_update_auth_status - Reads status of update auth command
SYNOPSIS int dma_port_flash_update_auth_status (struct tb_dma_port *dma , u32 *status );
ARGUMENTS dma DMA control port
status Status code of the operation
DESCRIPTION The function checks if there is status available fr... |
dma_port_flash_write(9) | NAME dma_port_flash_write - Write to non-active flash region
SYNOPSIS int dma_port_flash_write (struct tb_dma_port *dma , unsigned int address , const void *buf , size_t size );
ARGUMENTS dma DMA control port
address Address relative to the start of non-active region
buf Data to wr... |
dma_port_free(9) | NAME dma_port_free - Release DMA control port structure
SYNOPSIS void dma_port_free (struct tb_dma_port *dma );
ARGUMENTS dma DMA control port
SEE ALSO Kernel file ./drivers/thunderbolt/dma_port.c struct tb_dma_port(9), dma_port_alloc(9), dma_port_flash_read(9), dma_port_flash_write(9), dma_p... |
dma_port_power_cycle(9) | NAME dma_port_power_cycle - Power cycles the switch
SYNOPSIS int dma_port_power_cycle (struct tb_dma_port *dma );
ARGUMENTS dma DMA control port
DESCRIPTION Triggers power cycle to the switch.
RETURN 0 on success, negative errno otherwise.
SEE ALSO Kernel file ./drivers/thunderbolt/dma_port.c struct tb_dma... |
dma_region_check_iova(9) | NAME dma_region_check_iova - check if memory area is fully contained in the region
SYNOPSIS bool dma_region_check_iova (struct dfl_afu_dma_region *region , u64 iova , u64 size );
ARGUMENTS region dma memory region
iova address of the dma memory area
size size of the dma memory area
... |
dma_release_from_contiguous(9) | NAME dma_release_from_contiguous - release allocated pages
SYNOPSIS bool dma_release_from_contiguous (struct device *dev , struct page *pages , int count );
ARGUMENTS dev Pointer to device for which the pages were allocated.
pages Allocated pages.
count Number of allocated pages.
... |
dma_release_from_dev_coherent(9) | NAME dma_release_from_dev_coherent - free memory to device coherent memory pool
SYNOPSIS int dma_release_from_dev_coherent (struct device *dev , int order , void *vaddr );
ARGUMENTS dev device from which the memory was allocated
order the order of pages allocated
vaddr virtual addr... |
dma_request_chan(9) | NAME dma_request_chan - try to allocate an exclusive slave channel
SYNOPSIS struct dma_chan * dma_request_chan (struct device *dev , const char *name );
ARGUMENTS dev pointer to client device structure
name slave channel name
DESCRIPTION Returns pointer to appropriate DMA channel on success or... |
dma_request_chan_by_mask(9) | NAME dma_request_chan_by_mask - allocate a channel satisfying certain capabilities
SYNOPSIS struct dma_chan * dma_request_chan_by_mask (const dma_cap_mask_t *mask );
ARGUMENTS mask capabilities that the channel must satisfy
DESCRIPTION Returns pointer to appropriate DMA channel on success or an error pointer.... |
dma_resv_add_fence(9) | NAME dma_resv_add_fence - Add a fence to the dma_resv obj
SYNOPSIS void dma_resv_add_fence (struct dma_resv *obj , struct dma_fence *fence , enum dma_resv_usage usage );
ARGUMENTS obj the reservation object
fence the fence to add
usage how the fence is used, see enum dma_resv_usage... |
dma_resv_copy_fences(9) | NAME dma_resv_copy_fences - Copy all fences from src to dst.
SYNOPSIS int dma_resv_copy_fences (struct dma_resv *dst , struct dma_resv *src );
ARGUMENTS dst the destination reservation object
src the source reservation object
DESCRIPTION Copy all fences from src to dst. dst-lock must be held.... |
dma_resv_describe(9) | NAME dma_resv_describe - Dump description of the resv object into seq_file
SYNOPSIS void dma_resv_describe (struct dma_resv *obj , struct seq_file *seq );
ARGUMENTS obj the reservation object
seq the seq_file to dump the description into
DESCRIPTION Dump a textual description of the fences in... |
dma_resv_fini(9) | NAME dma_resv_fini - destroys a reservation object
SYNOPSIS void dma_resv_fini (struct dma_resv *obj );
ARGUMENTS obj the reservation object
SEE ALSO Kernel file ./drivers/dma-buf/dma-resv.c Kernel API(9), dma_resv_init(9), dma_resv_reserve_fences(9), dma_resv_reset_max_fences(9), dma_resv_add_fence(9)... |
dma_resv_for_each_fence(9) | NAME dma_resv_for_each_fence - fence iterator
SYNOPSIS dma_resv_for_each_fence (cursor , obj , usage , fence );
ARGUMENTS cursor a struct dma_resv_iter pointer
obj a dma_resv object pointer
usage controls which fences to return
fence the current fence
DESCRIPTION Iter... |
dma_resv_for_each_fence_unlocked(9) | NAME dma_resv_for_each_fence_unlocked - unlocked fence iterator
SYNOPSIS dma_resv_for_each_fence_unlocked (cursor , fence );
ARGUMENTS cursor a struct dma_resv_iter pointer
fence the current fence
DESCRIPTION Iterate over the fences in a struct dma_resv object without holding the dma_resv.lock ... |
dma_resv_get_fences(9) | NAME dma_resv_get_fences - Get an object's fences fences without update side lock held
SYNOPSIS int dma_resv_get_fences (struct dma_resv *obj , enum dma_resv_usage usage , unsigned int *num_fences , struct dma_fence ***fences );
ARGUMENTS obj the reservation object
usage controls which fences to... |
dma_resv_get_singleton(9) | NAME dma_resv_get_singleton - Get a single fence for all the fences
SYNOPSIS int dma_resv_get_singleton (struct dma_resv *obj , enum dma_resv_usage usage , struct dma_fence **fence );
ARGUMENTS obj the reservation object
usage controls which fences to include, see enum dma_resv_usage.
fe... |
dma_resv_init(9) | NAME dma_resv_init - initialize a reservation object
SYNOPSIS void dma_resv_init (struct dma_resv *obj );
ARGUMENTS obj the reservation object
SEE ALSO Kernel file ./drivers/dma-buf/dma-resv.c Kernel API(9), dma_resv_fini(9), dma_resv_reserve_fences(9), dma_resv_reset_max_fences(9), dma_resv_add_fence(... |
dma_resv_is_locked(9) | NAME dma_resv_is_locked - is the reservation object locked
SYNOPSIS bool dma_resv_is_locked (struct dma_resv *obj );
ARGUMENTS obj the reservation object
DESCRIPTION Returns true if the mutex is locked, false if unlocked.
SEE ALSO Kernel file ./include/linux/dma-resv.h enum dma_resv_usage(9), dma_... |
dma_resv_iter_begin(9) | NAME dma_resv_iter_begin - initialize a dma_resv_iter object
SYNOPSIS void dma_resv_iter_begin (struct dma_resv_iter *cursor , struct dma_resv *obj , enum dma_resv_usage usage );
ARGUMENTS cursor The dma_resv_iter object to initialize
obj The dma_resv object which we want to iterate over
... |
dma_resv_iter_end(9) | NAME dma_resv_iter_end - cleanup a dma_resv_iter object
SYNOPSIS void dma_resv_iter_end (struct dma_resv_iter *cursor );
ARGUMENTS cursor the dma_resv_iter object which should be cleaned up
DESCRIPTION Make sure that the reference to the fence in the cursor is properly dropped.
SEE ALSO Kernel file ./includ... |
dma_resv_iter_first(9) | NAME dma_resv_iter_first - first fence from a locked dma_resv object
SYNOPSIS struct dma_fence * dma_resv_iter_first (struct dma_resv_iter *cursor );
ARGUMENTS cursor cursor to record the current position
DESCRIPTION Subsequent fences are iterated with dma_resv_iter_next_unlocked. Return the first fence in the... |
dma_resv_iter_first_unlocked(9) | NAME dma_resv_iter_first_unlocked - first fence in an unlocked dma_resv obj.
SYNOPSIS struct dma_fence * dma_resv_iter_first_unlocked (struct dma_resv_iter *cursor );
ARGUMENTS cursor the cursor with the current position
DESCRIPTION Subsequent fences are iterated with dma_resv_iter_next_unlocked. Beware that ... |
dma_resv_iter_is_restarted(9) | NAME dma_resv_iter_is_restarted - test if this is the first fence after a restart
SYNOPSIS bool dma_resv_iter_is_restarted (struct dma_resv_iter *cursor );
ARGUMENTS cursor the cursor with the current position
DESCRIPTION Return true if this is the first fence in an iteration after a restart.
SEE ALSO Kernel ... |
dma_resv_iter_next(9) | NAME dma_resv_iter_next - next fence from a locked dma_resv object
SYNOPSIS struct dma_fence * dma_resv_iter_next (struct dma_resv_iter *cursor );
ARGUMENTS cursor cursor to record the current position
DESCRIPTION Return the next fences from the dma_resv object while holding the dma_resv.lock.
SEE ALSO Kernel ... |
dma_resv_iter_next_unlocked(9) | NAME dma_resv_iter_next_unlocked - next fence in an unlocked dma_resv obj.
SYNOPSIS struct dma_fence * dma_resv_iter_next_unlocked (struct dma_resv_iter *cursor );
ARGUMENTS cursor the cursor with the current position
DESCRIPTION Beware that the iterator can be restarted. Code which accumulates statistics ... |
dma_resv_iter_usage(9) | NAME dma_resv_iter_usage - Return the usage of the current fence
SYNOPSIS enum dma_resv_usage dma_resv_iter_usage (struct dma_resv_iter *cursor );
ARGUMENTS cursor the cursor of the current position
DESCRIPTION Returns the usage of the currently processed fence.
SEE ALSO Kernel file ./include/linux/dma-res... |
dma_resv_lock(9) | NAME dma_resv_lock - lock the reservation object
SYNOPSIS int dma_resv_lock (struct dma_resv *obj , struct ww_acquire_ctx *ctx );
ARGUMENTS obj the reservation object
ctx the locking context
DESCRIPTION Locks the reservation object for exclusive access and modification. Note, that the lock ... |
dma_resv_lock_interruptible(9) | NAME dma_resv_lock_interruptible - lock the reservation object
SYNOPSIS int dma_resv_lock_interruptible (struct dma_resv *obj , struct ww_acquire_ctx *ctx );
ARGUMENTS obj the reservation object
ctx the locking context
DESCRIPTION Locks the reservation object interruptible for exclusive a... |
dma_resv_lock_slow(9) | NAME dma_resv_lock_slow - slowpath lock the reservation object
SYNOPSIS void dma_resv_lock_slow (struct dma_resv *obj , struct ww_acquire_ctx *ctx );
ARGUMENTS obj the reservation object
ctx the locking context
DESCRIPTION Acquires the reservation object after a die case. This function will s... |
dma_resv_lock_slow_interruptible(9) | NAME dma_resv_lock_slow_interruptible - slowpath lock the reservation object, interruptible
SYNOPSIS int dma_resv_lock_slow_interruptible (struct dma_resv *obj , struct ww_acquire_ctx *ctx );
ARGUMENTS obj the reservation object
ctx the locking context
DESCRIPTION Acquires the reservation obj... |
dma_resv_locking_ctx(9) | NAME dma_resv_locking_ctx - returns the context used to lock the object
SYNOPSIS struct ww_acquire_ctx * dma_resv_locking_ctx (struct dma_resv *obj );
ARGUMENTS obj the reservation object
DESCRIPTION Returns the context used to lock a reservation object or NULL if no context was used or the object is not... |
dma_resv_replace_fences(9) | NAME dma_resv_replace_fences - replace fences in the dma_resv obj
SYNOPSIS void dma_resv_replace_fences (struct dma_resv *obj , uint64_t context , struct dma_fence *replacement , enum dma_resv_usage usage );
ARGUMENTS obj the reservation object
context the context of the fences to replace
... |
dma_resv_reserve_fences(9) | NAME dma_resv_reserve_fences - Reserve space to add fences to a dma_resv object.
SYNOPSIS int dma_resv_reserve_fences (struct dma_resv *obj , unsigned int num_fences );
ARGUMENTS obj reservation object
num_fences number of fences we want to add
DESCRIPTION Should be called before dma_resv_add_fence.... |
dma_resv_reset_max_fences(9) | NAME dma_resv_reset_max_fences - reset fences for debugging
SYNOPSIS void dma_resv_reset_max_fences (struct dma_resv *obj );
ARGUMENTS obj the dma_resv object to reset
DESCRIPTION Reset the number of pre-reserved fence slots to test that drivers do correct slot allocation using dma_resv_reserve_fences. See a... |
dma_resv_set_deadline(9) | NAME dma_resv_set_deadline - Set a deadline on reservation's objects fences
SYNOPSIS void dma_resv_set_deadline (struct dma_resv *obj , enum dma_resv_usage usage , ktime_t deadline );
ARGUMENTS obj the reservation object
usage controls which fences to include, see enum dma_resv_usage.
de... |
dma_resv_test_signaled(9) | NAME dma_resv_test_signaled - Test if a reservation object's fences have been signaled.
SYNOPSIS bool dma_resv_test_signaled (struct dma_resv *obj , enum dma_resv_usage usage );
ARGUMENTS obj the reservation object
usage controls which fences to include, see enum dma_resv_usage.
DESCRIPTION Cal... |
dma_resv_trylock(9) | NAME dma_resv_trylock - trylock the reservation object
SYNOPSIS bool dma_resv_trylock (struct dma_resv *obj );
ARGUMENTS obj the reservation object
DESCRIPTION Tries to lock the reservation object for exclusive access and modification. Note, that the lock is only against other writers, readers will run con... |
dma_resv_unlock(9) | NAME dma_resv_unlock - unlock the reservation object
SYNOPSIS void dma_resv_unlock (struct dma_resv *obj );
ARGUMENTS obj the reservation object
DESCRIPTION Unlocks the reservation object following exclusive access.
SEE ALSO Kernel file ./include/linux/dma-resv.h enum dma_resv_usage(9), dma_resv_u... |
dma_resv_usage_rw(9) | NAME dma_resv_usage_rw - helper for implicit sync
SYNOPSIS enum dma_resv_usage dma_resv_usage_rw (bool write );
ARGUMENTS write true if we create a new implicit sync write
DESCRIPTION This returns the implicit synchronization usage for write or read accesses, see enum dma_resv_usage and dma_buf.resv.
SEE ALSO... |
dma_resv_wait_timeout(9) | NAME dma_resv_wait_timeout - Wait on reservation's objects fences
SYNOPSIS long dma_resv_wait_timeout (struct dma_resv *obj , enum dma_resv_usage usage , bool intr , unsigned long timeout );
ARGUMENTS obj the reservation object
usage controls which fences to include, see enum dma_resv_usage.
... |
dma_run_dependencies(9) | NAME dma_run_dependencies - process dependent operations on the target channel
SYNOPSIS void dma_run_dependencies (struct dma_async_tx_descriptor *tx );
ARGUMENTS tx transaction with dependencies
DESCRIPTION Helper routine for DMA drivers to process (start) dependent operations on their target channel.
SEE... |
dma_sb_lpar_to_bus(9) | NAME dma_sb_lpar_to_bus - Translate an lpar address to ioc mapped bus address.
SYNOPSIS unsigned long dma_sb_lpar_to_bus (struct ps3_dma_region *r , unsigned long lpar_addr );
ARGUMENTS r pointer to dma region structure
lpar_addr HV lpar address
SEE ALSO Kernel file ./arch/powerpc/platforms/p... |
dma_sb_map_area(9) | NAME dma_sb_map_area - Map an area of memory into a device dma region.
SYNOPSIS int dma_sb_map_area (struct ps3_dma_region *r , unsigned long virt_addr , unsigned long len , dma_addr_t *bus_addr , u64 iopte_flag );
ARGUMENTS r Pointer to a struct ps3_dma_region.
virt_addr Starting virtual address ... |
dma_sb_map_area_linear(9) | NAME dma_sb_map_area_linear - Map an area of memory into a device dma region.
SYNOPSIS int dma_sb_map_area_linear (struct ps3_dma_region *r , unsigned long virt_addr , unsigned long len , dma_addr_t *bus_addr , u64 iopte_flag );
ARGUMENTS r Pointer to a struct ps3_dma_region.
virt_addr Starting vi... |
dma_sb_map_pages(9) | NAME dma_sb_map_pages - Maps dma pages into the io controller bus address space.
SYNOPSIS int dma_sb_map_pages (struct ps3_dma_region *r , unsigned long phys_addr , unsigned long len , struct dma_chunk **c_out , u64 iopte_flag );
ARGUMENTS r Pointer to a struct ps3_dma_region.
phys_addr Starting p... |
dma_sb_region_create(9) | NAME dma_sb_region_create - Create a device dma region.
SYNOPSIS int dma_sb_region_create (struct ps3_dma_region *r );
ARGUMENTS r Pointer to a struct ps3_dma_region.
DESCRIPTION This is the lowest level dma region create routine, and is the one that will make the HV call to create the region.
SEE ALSO Ke... |
dma_sb_region_create_linear(9) | NAME dma_sb_region_create_linear - Setup a linear dma mapping for a device.
SYNOPSIS int dma_sb_region_create_linear (struct ps3_dma_region *r );
ARGUMENTS r Pointer to a struct ps3_dma_region.
DESCRIPTION This routine creates an HV dma region for the device and maps all available ram into the io controlle... |
dma_sb_region_free_linear(9) | NAME dma_sb_region_free_linear - Free a linear dma mapping for a device.
SYNOPSIS int dma_sb_region_free_linear (struct ps3_dma_region *r );
ARGUMENTS r Pointer to a struct ps3_dma_region.
DESCRIPTION This routine will unmap all mapped areas and free the HV dma region.
SEE ALSO Kernel file ./arch/powe... |
dma_sb_unmap_area(9) | NAME dma_sb_unmap_area - Unmap an area of memory from a device dma region.
SYNOPSIS int dma_sb_unmap_area (struct ps3_dma_region *r , dma_addr_t bus_addr , unsigned long len );
ARGUMENTS r Pointer to a struct ps3_dma_region.
bus_addr The starting ioc bus address of the area to unmap.
len ... |
dma_sync_sgtable_for_cpu(9) | NAME dma_sync_sgtable_for_cpu - Synchronize the given buffer for CPU access
SYNOPSIS void dma_sync_sgtable_for_cpu (struct device *dev , struct sg_table *sgt , enum dma_data_direction dir );
ARGUMENTS dev The device for which to perform the DMA operation
sgt The sg_table object describing the ... |
dma_sync_sgtable_for_device(9) | NAME dma_sync_sgtable_for_device - Synchronize the given buffer for DMA
SYNOPSIS void dma_sync_sgtable_for_device (struct device *dev , struct sg_table *sgt , enum dma_data_direction dir );
ARGUMENTS dev The device for which to perform the DMA operation
sgt The sg_table object describing the b... |
dma_tasklet(9) | NAME dma_tasklet - DMA IRQ tasklet
SYNOPSIS void dma_tasklet (struct tasklet_struct *t );
ARGUMENTS t tasklet argument (bam controller structure)
DESCRIPTION Sets up next DMA operation and then processes all completed transactions
SEE ALSO Kernel file ./drivers/dma/qcom/bam_dma.c bam_addr(9), bam_rese... |
dma_unmap_host_va(9) | NAME dma_unmap_host_va - DMA unmapping of the given host virtual address.
SYNOPSIS void dma_unmap_host_va (struct hl_device *hdev , struct hl_userptr *userptr );
ARGUMENTS hdev habanalabs device structure.
userptr userptr to free.
DESCRIPTION This function does the following: - Unpins the physical... |
dma_unmap_sgtable(9) | NAME dma_unmap_sgtable - Unmap the given buffer for DMA
SYNOPSIS void dma_unmap_sgtable (struct device *dev , struct sg_table *sgt , enum dma_data_direction dir , unsigned long attrs );
ARGUMENTS dev The device for which to perform the DMA operation
sgt The sg_table object describing the buffe... |
dma_use_iova(9) | NAME dma_use_iova - check if the IOVA API is used for this state
SYNOPSIS bool dma_use_iova (struct dma_iova_state *state );
ARGUMENTS state IOVA state
DESCRIPTION Return true if the DMA transfers uses the dma_iova_*() calls or false if they can't be used.
SEE ALSO Kernel file ./include/linux/dma-mapping.h dm... |
dma_wait_for_async_tx(9) | NAME dma_wait_for_async_tx - spin wait for a transaction to complete
SYNOPSIS enum dma_status dma_wait_for_async_tx (struct dma_async_tx_descriptor *tx );
ARGUMENTS tx in-flight transaction to wait on
SEE ALSO Kernel file ./drivers/dma/dmaengine.c dev_to_dma_chan(9), struct dma_chan_tbl_ent(9), dma_chan... |
dmaengine_desc_callback_invoke(9) | NAME dmaengine_desc_callback_invoke - call the callback function in cb struct
SYNOPSIS void dmaengine_desc_callback_invoke (struct dmaengine_desc_callback *cb , const struct dmaengine_result *result );
ARGUMENTS cb temp struct that is holding the callback info
result transaction result
DESCRIPT... |
dmaengine_desc_callback_valid(9) | NAME dmaengine_desc_callback_valid - verify the callback is valid in cb
SYNOPSIS bool dmaengine_desc_callback_valid (struct dmaengine_desc_callback *cb );
ARGUMENTS cb callback info struct
DESCRIPTION Return a bool that verifies whether callback in cb is valid or not. No locking is required.
SEE ALSO Kern... |
dmaengine_desc_get_callback(9) | NAME dmaengine_desc_get_callback - get the passed in callback function
SYNOPSIS void dmaengine_desc_get_callback (struct dma_async_tx_descriptor *tx , struct dmaengine_desc_callback *cb );
ARGUMENTS tx tx descriptor
cb temp struct to hold the callback info
DESCRIPTION Fill the passed in cb ... |
dmaengine_desc_get_callback_invoke(9) | NAME dmaengine_desc_get_callback_invoke - get the callback in tx descriptor and then immediately call the callback.
SYNOPSIS void dmaengine_desc_get_callback_invoke (struct dma_async_tx_descriptor *tx , const struct dmaengine_result *result );
ARGUMENTS tx dma async tx descriptor
result transact... |
dmaengine_get(9) | NAME dmaengine_get - register interest in dma_channels
SYNOPSIS void dmaengine_get (void );
ARGUMENTS void no arguments
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), dma_channel_rebalance(9), balance_ref_count(9), dma_chan... |
dmaengine_prep_dma_memset(9) | NAME dmaengine_prep_dma_memset - Prepare a DMA memset descriptor.
SYNOPSIS struct dma_async_tx_descriptor * dmaengine_prep_dma_memset (struct dma_chan *chan , dma_addr_t dest , int value , size_t len , unsigned long flags );
ARGUMENTS chan The channel to be used for this descriptor
dest Address ... |
dmaengine_prep_peripheral_dma_vec(9) | NAME dmaengine_prep_peripheral_dma_vec - Prepare a DMA scatter-gather descriptor
SYNOPSIS struct dma_async_tx_descriptor * dmaengine_prep_peripheral_dma_vec (struct dma_chan *chan , const struct dma_vec *vecs , size_t nents , enum dma_transfer_direction dir , unsigned long flags );
ARGUMENTS chan The channel t... |
dmaengine_put(9) | NAME dmaengine_put - let DMA drivers be removed when ref_count == 0
SYNOPSIS void dmaengine_put (void );
ARGUMENTS void no arguments
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), dma_channel_rebalance(9), balance_ref_count... |
dmaengine_synchronize(9) | NAME dmaengine_synchronize - Synchronize DMA channel termination
SYNOPSIS void dmaengine_synchronize (struct dma_chan *chan );
ARGUMENTS chan The channel to synchronize
DESCRIPTION Synchronizes to the DMA channel termination to the current context. When this function returns it is guaranteed that all transf... |
dmaengine_terminate_all(9) | NAME dmaengine_terminate_all - Terminate all active DMA transfers
SYNOPSIS int dmaengine_terminate_all (struct dma_chan *chan );
ARGUMENTS chan The channel for which to terminate the transfers
DESCRIPTION This function is DEPRECATED use either dmaengine_terminate_sync or dmaengine_terminate_async instead.
SE... |
dmaengine_terminate_async(9) | NAME dmaengine_terminate_async - Terminate all active DMA transfers
SYNOPSIS int dmaengine_terminate_async (struct dma_chan *chan );
ARGUMENTS chan The channel for which to terminate the transfers
DESCRIPTION Calling this function will terminate all active and pending descriptors that have previously bee... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.