Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dma_queue.c File Reference
#include <linux/io.h>
#include <linux/atomic.h>
#include <linux/module.h>
#include <gxio/dma_queue.h>

Go to the source code of this file.

Data Structures

union  __gxio_ring_t
 

Macros

#define wait_for_value(val)   __asm__ __volatile__("move %0, %0" :: "r"(val))
 
#define DMA_QUEUE_INDEX_MASK   ((1 << 16) - 1)
 

Functions

void __gxio_dma_queue_init (__gxio_dma_queue_t *dma_queue, void *post_region_addr, unsigned int num_entries)
 
 EXPORT_SYMBOL_GPL (__gxio_dma_queue_init)
 
void __gxio_dma_queue_update_credits (__gxio_dma_queue_t *dma_queue)
 
 EXPORT_SYMBOL_GPL (__gxio_dma_queue_update_credits)
 
int64_t __gxio_dma_queue_wait_for_credits (__gxio_dma_queue_t *dma_queue, int64_t modifier)
 
 EXPORT_SYMBOL_GPL (__gxio_dma_queue_wait_for_credits)
 
int64_t __gxio_dma_queue_reserve_aux (__gxio_dma_queue_t *dma_queue, unsigned int num, int wait)
 
 EXPORT_SYMBOL_GPL (__gxio_dma_queue_reserve_aux)
 
int __gxio_dma_queue_is_complete (__gxio_dma_queue_t *dma_queue, int64_t completion_slot, int update)
 
 EXPORT_SYMBOL_GPL (__gxio_dma_queue_is_complete)
 

Macro Definition Documentation

#define DMA_QUEUE_INDEX_MASK   ((1 << 16) - 1)

Definition at line 25 of file dma_queue.c.

#define wait_for_value (   val)    __asm__ __volatile__("move %0, %0" :: "r"(val))

Definition at line 21 of file dma_queue.c.

Function Documentation

void __gxio_dma_queue_init ( __gxio_dma_queue_t dma_queue,
void post_region_addr,
unsigned int  num_entries 
)

Definition at line 50 of file dma_queue.c.

int __gxio_dma_queue_is_complete ( __gxio_dma_queue_t dma_queue,
int64_t  completion_slot,
int  update 
)

Definition at line 162 of file dma_queue.c.

int64_t __gxio_dma_queue_reserve_aux ( __gxio_dma_queue_t dma_queue,
unsigned int  num,
int  wait 
)

Definition at line 154 of file dma_queue.c.

void __gxio_dma_queue_update_credits ( __gxio_dma_queue_t dma_queue)

Definition at line 68 of file dma_queue.c.

int64_t __gxio_dma_queue_wait_for_credits ( __gxio_dma_queue_t dma_queue,
int64_t  modifier 
)

Definition at line 127 of file dma_queue.c.

EXPORT_SYMBOL_GPL ( __gxio_dma_queue_init  )
EXPORT_SYMBOL_GPL ( __gxio_dma_queue_update_credits  )
EXPORT_SYMBOL_GPL ( __gxio_dma_queue_wait_for_credits  )
EXPORT_SYMBOL_GPL ( __gxio_dma_queue_reserve_aux  )
EXPORT_SYMBOL_GPL ( __gxio_dma_queue_is_complete  )