Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
mthca_av.c File Reference
#include <linux/string.h>
#include <linux/slab.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_cache.h>
#include "mthca_dev.h"

Go to the source code of this file.

Data Structures

struct  mthca_av
 

Enumerations

enum  { MTHCA_RATE_TAVOR_FULL = 0, MTHCA_RATE_TAVOR_1X = 1, MTHCA_RATE_TAVOR_4X = 2, MTHCA_RATE_TAVOR_1X_DDR = 3 }
 
enum  { MTHCA_RATE_MEMFREE_FULL = 0, MTHCA_RATE_MEMFREE_QUARTER = 1, MTHCA_RATE_MEMFREE_EIGHTH = 2, MTHCA_RATE_MEMFREE_HALF = 3 }
 

Functions

enum ib_rate mthca_rate_to_ib (struct mthca_dev *dev, u8 mthca_rate, u8 port)
 
u8 mthca_get_rate (struct mthca_dev *dev, int static_rate, u8 port)
 
int mthca_create_ah (struct mthca_dev *dev, struct mthca_pd *pd, struct ib_ah_attr *ah_attr, struct mthca_ah *ah)
 
int mthca_destroy_ah (struct mthca_dev *dev, struct mthca_ah *ah)
 
int mthca_ah_grh_present (struct mthca_ah *ah)
 
int mthca_read_ah (struct mthca_dev *dev, struct mthca_ah *ah, struct ib_ud_header *header)
 
int mthca_ah_query (struct ib_ah *ibah, struct ib_ah_attr *attr)
 
int mthca_init_av_table (struct mthca_dev *dev)
 
void mthca_cleanup_av_table (struct mthca_dev *dev)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
MTHCA_RATE_TAVOR_FULL 
MTHCA_RATE_TAVOR_1X 
MTHCA_RATE_TAVOR_4X 
MTHCA_RATE_TAVOR_1X_DDR 

Definition at line 42 of file mthca_av.c.

anonymous enum
Enumerator:
MTHCA_RATE_MEMFREE_FULL 
MTHCA_RATE_MEMFREE_QUARTER 
MTHCA_RATE_MEMFREE_EIGHTH 
MTHCA_RATE_MEMFREE_HALF 

Definition at line 49 of file mthca_av.c.

Function Documentation

int mthca_ah_grh_present ( struct mthca_ah ah)

Definition at line 261 of file mthca_av.c.

int mthca_ah_query ( struct ib_ah ibah,
struct ib_ah_attr attr 
)

Definition at line 292 of file mthca_av.c.

void mthca_cleanup_av_table ( struct mthca_dev dev)

Definition at line 365 of file mthca_av.c.

int mthca_create_ah ( struct mthca_dev dev,
struct mthca_pd pd,
struct ib_ah_attr ah_attr,
struct mthca_ah ah 
)

Definition at line 153 of file mthca_av.c.

int mthca_destroy_ah ( struct mthca_dev dev,
struct mthca_ah ah 
)

Definition at line 240 of file mthca_av.c.

u8 mthca_get_rate ( struct mthca_dev dev,
int  static_rate,
u8  port 
)

Definition at line 134 of file mthca_av.c.

int mthca_init_av_table ( struct mthca_dev dev)

Definition at line 324 of file mthca_av.c.

enum ib_rate mthca_rate_to_ib ( struct mthca_dev dev,
u8  mthca_rate,
u8  port 
)

Definition at line 94 of file mthca_av.c.

int mthca_read_ah ( struct mthca_dev dev,
struct mthca_ah ah,
struct ib_ud_header header 
)

Definition at line 266 of file mthca_av.c.