Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cq.c File Reference
#include <linux/init.h>
#include <linux/hardirq.h>
#include <linux/export.h>
#include <linux/mlx4/cmd.h>
#include <linux/mlx4/cq.h>
#include "mlx4.h"
#include "icm.h"

Go to the source code of this file.

Macros

#define MLX4_CQ_STATUS_OK   ( 0 << 28)
 
#define MLX4_CQ_STATUS_OVERFLOW   ( 9 << 28)
 
#define MLX4_CQ_STATUS_WRITE_FAIL   (10 << 28)
 
#define MLX4_CQ_FLAG_CC   ( 1 << 18)
 
#define MLX4_CQ_FLAG_OI   ( 1 << 17)
 
#define MLX4_CQ_STATE_ARMED   ( 9 << 8)
 
#define MLX4_CQ_STATE_ARMED_SOL   ( 6 << 8)
 
#define MLX4_EQ_STATE_FIRED   (10 << 8)
 

Functions

void mlx4_cq_completion (struct mlx4_dev *dev, u32 cqn)
 
void mlx4_cq_event (struct mlx4_dev *dev, u32 cqn, int event_type)
 
int mlx4_cq_modify (struct mlx4_dev *dev, struct mlx4_cq *cq, u16 count, u16 period)
 
 EXPORT_SYMBOL_GPL (mlx4_cq_modify)
 
int mlx4_cq_resize (struct mlx4_dev *dev, struct mlx4_cq *cq, int entries, struct mlx4_mtt *mtt)
 
 EXPORT_SYMBOL_GPL (mlx4_cq_resize)
 
int __mlx4_cq_alloc_icm (struct mlx4_dev *dev, int *cqn)
 
void __mlx4_cq_free_icm (struct mlx4_dev *dev, int cqn)
 
int mlx4_cq_alloc (struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, struct mlx4_uar *uar, u64 db_rec, struct mlx4_cq *cq, unsigned vector, int collapsed)
 
 EXPORT_SYMBOL_GPL (mlx4_cq_alloc)
 
void mlx4_cq_free (struct mlx4_dev *dev, struct mlx4_cq *cq)
 
 EXPORT_SYMBOL_GPL (mlx4_cq_free)
 
int mlx4_init_cq_table (struct mlx4_dev *dev)
 
void mlx4_cleanup_cq_table (struct mlx4_dev *dev)
 

Macro Definition Documentation

#define MLX4_CQ_FLAG_CC   ( 1 << 18)

Definition at line 50 of file cq.c.

#define MLX4_CQ_FLAG_OI   ( 1 << 17)

Definition at line 51 of file cq.c.

#define MLX4_CQ_STATE_ARMED   ( 9 << 8)

Definition at line 52 of file cq.c.

#define MLX4_CQ_STATE_ARMED_SOL   ( 6 << 8)

Definition at line 53 of file cq.c.

#define MLX4_CQ_STATUS_OK   ( 0 << 28)

Definition at line 47 of file cq.c.

#define MLX4_CQ_STATUS_OVERFLOW   ( 9 << 28)

Definition at line 48 of file cq.c.

#define MLX4_CQ_STATUS_WRITE_FAIL   (10 << 28)

Definition at line 49 of file cq.c.

#define MLX4_EQ_STATE_FIRED   (10 << 8)

Definition at line 54 of file cq.c.

Function Documentation

int __mlx4_cq_alloc_icm ( struct mlx4_dev dev,
int cqn 
)

Definition at line 171 of file cq.c.

void __mlx4_cq_free_icm ( struct mlx4_dev dev,
int  cqn 
)

Definition at line 217 of file cq.c.

EXPORT_SYMBOL_GPL ( mlx4_cq_modify  )
EXPORT_SYMBOL_GPL ( mlx4_cq_resize  )
EXPORT_SYMBOL_GPL ( mlx4_cq_alloc  )
EXPORT_SYMBOL_GPL ( mlx4_cq_free  )
void mlx4_cleanup_cq_table ( struct mlx4_dev dev)

Definition at line 355 of file cq.c.

int mlx4_cq_alloc ( struct mlx4_dev dev,
int  nent,
struct mlx4_mtt mtt,
struct mlx4_uar uar,
u64  db_rec,
struct mlx4_cq cq,
unsigned  vector,
int  collapsed 
)

Definition at line 243 of file cq.c.

void mlx4_cq_completion ( struct mlx4_dev dev,
u32  cqn 
)

Definition at line 56 of file cq.c.

void mlx4_cq_event ( struct mlx4_dev dev,
u32  cqn,
int  event_type 
)

Definition at line 72 of file cq.c.

void mlx4_cq_free ( struct mlx4_dev dev,
struct mlx4_cq cq 
)

Definition at line 313 of file cq.c.

int mlx4_cq_modify ( struct mlx4_dev dev,
struct mlx4_cq cq,
u16  count,
u16  period 
)

Definition at line 119 of file cq.c.

int mlx4_cq_resize ( struct mlx4_dev dev,
struct mlx4_cq cq,
int  entries,
struct mlx4_mtt mtt 
)

Definition at line 143 of file cq.c.

int mlx4_init_cq_table ( struct mlx4_dev dev)

Definition at line 337 of file cq.c.