XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
dma-fence-array.h File Reference
#include <linux/dma-fence.h>
#include <linux/irq_work.h>
Include dependency graph for dma-fence-array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dma_fence_array_cb
 
struct  dma_fence_array
 

Macros

#define dma_fence_array_for_each(fence, index, head)
 

Functions

struct dma_fence_array * dma_fence_array_alloc (int num_fences)
 
void dma_fence_array_init (struct dma_fence_array *array, int num_fences, struct dma_fence **fences, u64 context, unsigned seqno)
 
struct dma_fence_array * dma_fence_array_create (int num_fences, struct dma_fence **fences, u64 context, unsigned seqno)
 
bool dma_fence_match_context (struct dma_fence *fence, u64 context)
 
struct dma_fence * dma_fence_array_first (struct dma_fence *head)
 
struct dma_fence * dma_fence_array_next (struct dma_fence *head, unsigned int index)
 

Macro Definition Documentation

◆ dma_fence_array_for_each

#define dma_fence_array_for_each (   fence,
  index,
  head 
)
Value:
for (index = 0, fence = dma_fence_array_first(head); fence; \
#define index(str, chr)
Definition string.h:66
struct dma_fence * dma_fence_array_next(struct dma_fence *head, unsigned int index)
struct dma_fence * dma_fence_array_first(struct dma_fence *head)
int const struct list_head const struct list_head struct list_head * head
Definition list_sort.h:13

dma_fence_array_for_each - iterate over all fences in array @fence: current fence @index: index into the array @head: potential dma_fence_array object

Test if @array is a dma_fence_array object and if yes iterate over all fences in the array. If not just iterate over the fence in @array itself.

For a deep dive iterator see dma_fence_unwrap_for_each().

Function Documentation

◆ dma_fence_array_alloc()

struct dma_fence_array * dma_fence_array_alloc ( int  num_fences)

◆ dma_fence_array_create()

struct dma_fence_array * dma_fence_array_create ( int  num_fences,
struct dma_fence **  fences,
u64  context,
unsigned  seqno 
)

◆ dma_fence_array_first()

struct dma_fence * dma_fence_array_first ( struct dma_fence *  head)

◆ dma_fence_array_init()

void dma_fence_array_init ( struct dma_fence_array *  array,
int  num_fences,
struct dma_fence **  fences,
u64  context,
unsigned  seqno 
)

◆ dma_fence_array_next()

struct dma_fence * dma_fence_array_next ( struct dma_fence *  head,
unsigned int  index 
)

◆ dma_fence_match_context()

bool dma_fence_match_context ( struct dma_fence *  fence,
u64  context 
)