Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
qib_user_sdma.c File Reference
#include <linux/mm.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/dmapool.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/highmem.h>
#include <linux/io.h>
#include <linux/uio.h>
#include <linux/rbtree.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include "qib.h"
#include "qib_user_sdma.h"

Go to the source code of this file.

Data Structures

struct  qib_user_sdma_pkt
 
struct  qib_user_sdma_queue
 

Macros

#define QIB_USER_SDMA_MIN_HEADER_LENGTH   64
 
#define QIB_USER_SDMA_EXP_HEADER_LENGTH   64
 
#define QIB_USER_SDMA_DRAIN_TIMEOUT   500
 

Functions

struct qib_user_sdma_queueqib_user_sdma_queue_create (struct device *dev, int unit, int ctxt, int sctxt)
 
void qib_user_sdma_queue_destroy (struct qib_user_sdma_queue *pq)
 
void qib_user_sdma_queue_drain (struct qib_pportdata *ppd, struct qib_user_sdma_queue *pq)
 
int qib_user_sdma_writev (struct qib_ctxtdata *rcd, struct qib_user_sdma_queue *pq, const struct iovec *iov, unsigned long dim)
 
int qib_user_sdma_make_progress (struct qib_pportdata *ppd, struct qib_user_sdma_queue *pq)
 
u32 qib_user_sdma_complete_counter (const struct qib_user_sdma_queue *pq)
 
u32 qib_user_sdma_inflight_counter (struct qib_user_sdma_queue *pq)
 

Macro Definition Documentation

#define QIB_USER_SDMA_DRAIN_TIMEOUT   500

Definition at line 53 of file qib_user_sdma.c.

#define QIB_USER_SDMA_EXP_HEADER_LENGTH   64

Definition at line 51 of file qib_user_sdma.c.

#define QIB_USER_SDMA_MIN_HEADER_LENGTH   64

Definition at line 49 of file qib_user_sdma.c.

Function Documentation

u32 qib_user_sdma_complete_counter ( const struct qib_user_sdma_queue pq)

Definition at line 890 of file qib_user_sdma.c.

u32 qib_user_sdma_inflight_counter ( struct qib_user_sdma_queue pq)

Definition at line 895 of file qib_user_sdma.c.

int qib_user_sdma_make_progress ( struct qib_pportdata ppd,
struct qib_user_sdma_queue pq 
)

Definition at line 877 of file qib_user_sdma.c.

struct qib_user_sdma_queue* qib_user_sdma_queue_create ( struct device dev,
int  unit,
int  ctxt,
int  sctxt 
)
read

Definition at line 100 of file qib_user_sdma.c.

void qib_user_sdma_queue_destroy ( struct qib_user_sdma_queue pq)

Definition at line 602 of file qib_user_sdma.c.

void qib_user_sdma_queue_drain ( struct qib_pportdata ppd,
struct qib_user_sdma_queue pq 
)

Definition at line 626 of file qib_user_sdma.c.

int qib_user_sdma_writev ( struct qib_ctxtdata rcd,
struct qib_user_sdma_queue pq,
const struct iovec iov,
unsigned long  dim 
)

Definition at line 806 of file qib_user_sdma.c.