Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
c2_cq.c File Reference
#include <linux/gfp.h>
#include "c2.h"
#include "c2_vq.h"
#include "c2_status.h"

Go to the source code of this file.

Macros

#define C2_CQ_MSG_SIZE   ((sizeof(struct c2wr_ce) + 32-1) & ~(32-1))
 

Functions

void c2_cq_event (struct c2_dev *c2dev, u32 mq_index)
 
void c2_cq_clean (struct c2_dev *c2dev, struct c2_qp *qp, u32 mq_index)
 
int c2_poll_cq (struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
 
int c2_arm_cq (struct ib_cq *ibcq, enum ib_cq_notify_flags notify_flags)
 
int c2_init_cq (struct c2_dev *c2dev, int entries, struct c2_ucontext *ctx, struct c2_cq *cq)
 
void c2_free_cq (struct c2_dev *c2dev, struct c2_cq *cq)
 

Macro Definition Documentation

#define C2_CQ_MSG_SIZE   ((sizeof(struct c2wr_ce) + 32-1) & ~(32-1))

Definition at line 44 of file c2_cq.c.

Function Documentation

int c2_arm_cq ( struct ib_cq ibcq,
enum ib_cq_notify_flags  notify_flags 
)

Definition at line 222 of file c2_cq.c.

void c2_cq_clean ( struct c2_dev c2dev,
struct c2_qp qp,
u32  mq_index 
)

Definition at line 82 of file c2_cq.c.

void c2_cq_event ( struct c2_dev c2dev,
u32  mq_index 
)

Definition at line 68 of file c2_cq.c.

void c2_free_cq ( struct c2_dev c2dev,
struct c2_cq cq 
)

Definition at line 386 of file c2_cq.c.

int c2_init_cq ( struct c2_dev c2dev,
int  entries,
struct c2_ucontext ctx,
struct c2_cq cq 
)

Definition at line 286 of file c2_cq.c.

int c2_poll_cq ( struct ib_cq ibcq,
int  num_entries,
struct ib_wc entry 
)

Definition at line 201 of file c2_cq.c.