Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
c2_vq.c File Reference
#include <linux/slab.h>
#include <linux/spinlock.h>
#include "c2_vq.h"
#include "c2_provider.h"

Go to the source code of this file.

Functions

int vq_init (struct c2_dev *c2dev)
 
void vq_term (struct c2_dev *c2dev)
 
struct c2_vq_reqvq_req_alloc (struct c2_dev *c2dev)
 
void vq_req_free (struct c2_dev *c2dev, struct c2_vq_req *r)
 
void vq_req_get (struct c2_dev *c2dev, struct c2_vq_req *r)
 
void vq_req_put (struct c2_dev *c2dev, struct c2_vq_req *r)
 
voidvq_repbuf_alloc (struct c2_dev *c2dev)
 
int vq_send_wr (struct c2_dev *c2dev, union c2wr *wr)
 
int vq_wait_for_reply (struct c2_dev *c2dev, struct c2_vq_req *req)
 
void vq_repbuf_free (struct c2_dev *c2dev, void *reply)
 

Function Documentation

int vq_init ( struct c2_dev c2dev)

Definition at line 82 of file c2_vq.c.

void* vq_repbuf_alloc ( struct c2_dev c2dev)

Definition at line 165 of file c2_vq.c.

void vq_repbuf_free ( struct c2_dev c2dev,
void reply 
)

Definition at line 257 of file c2_vq.c.

struct c2_vq_req* vq_req_alloc ( struct c2_dev c2dev)
read

Definition at line 103 of file c2_vq.c.

void vq_req_free ( struct c2_dev c2dev,
struct c2_vq_req r 
)

Definition at line 124 of file c2_vq.c.

void vq_req_get ( struct c2_dev c2dev,
struct c2_vq_req r 
)

Definition at line 135 of file c2_vq.c.

void vq_req_put ( struct c2_dev c2dev,
struct c2_vq_req r 
)

Definition at line 151 of file c2_vq.c.

int vq_send_wr ( struct c2_dev c2dev,
union c2wr wr 
)

Definition at line 178 of file c2_vq.c.

void vq_term ( struct c2_dev c2dev)

Definition at line 95 of file c2_vq.c.

int vq_wait_for_reply ( struct c2_dev c2dev,
struct c2_vq_req req 
)

Definition at line 244 of file c2_vq.c.