Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
mthca_srq.c File Reference
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <asm/io.h>
#include "mthca_dev.h"
#include "mthca_cmd.h"
#include "mthca_memfree.h"
#include "mthca_wqe.h"

Go to the source code of this file.

Data Structures

struct  mthca_tavor_srq_context
 
struct  mthca_arbel_srq_context
 

Enumerations

enum  { MTHCA_MAX_DIRECT_SRQ_SIZE = 4 * PAGE_SIZE }
 

Functions

int mthca_alloc_srq (struct mthca_dev *dev, struct mthca_pd *pd, struct ib_srq_attr *attr, struct mthca_srq *srq)
 
void mthca_free_srq (struct mthca_dev *dev, struct mthca_srq *srq)
 
int mthca_modify_srq (struct ib_srq *ibsrq, struct ib_srq_attr *attr, enum ib_srq_attr_mask attr_mask, struct ib_udata *udata)
 
int mthca_query_srq (struct ib_srq *ibsrq, struct ib_srq_attr *srq_attr)
 
void mthca_srq_event (struct mthca_dev *dev, u32 srqn, enum ib_event_type event_type)
 
void mthca_free_srq_wqe (struct mthca_srq *srq, u32 wqe_addr)
 
int mthca_tavor_post_srq_recv (struct ib_srq *ibsrq, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr)
 
int mthca_arbel_post_srq_recv (struct ib_srq *ibsrq, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr)
 
int mthca_max_srq_sge (struct mthca_dev *dev)
 
int mthca_init_srq_table (struct mthca_dev *dev)
 
void mthca_cleanup_srq_table (struct mthca_dev *dev)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
MTHCA_MAX_DIRECT_SRQ_SIZE 

Definition at line 44 of file mthca_srq.c.

Function Documentation

int mthca_alloc_srq ( struct mthca_dev dev,
struct mthca_pd pd,
struct ib_srq_attr attr,
struct mthca_srq srq 
)

Definition at line 199 of file mthca_srq.c.

int mthca_arbel_post_srq_recv ( struct ib_srq ibsrq,
struct ib_recv_wr wr,
struct ib_recv_wr **  bad_wr 
)

Definition at line 575 of file mthca_srq.c.

void mthca_cleanup_srq_table ( struct mthca_dev dev)

Definition at line 689 of file mthca_srq.c.

void mthca_free_srq ( struct mthca_dev dev,
struct mthca_srq srq 
)

Definition at line 330 of file mthca_srq.c.

void mthca_free_srq_wqe ( struct mthca_srq srq,
u32  wqe_addr 
)

Definition at line 457 of file mthca_srq.c.

int mthca_init_srq_table ( struct mthca_dev dev)

Definition at line 665 of file mthca_srq.c.

int mthca_max_srq_sge ( struct mthca_dev dev)

Definition at line 640 of file mthca_srq.c.

int mthca_modify_srq ( struct ib_srq ibsrq,
struct ib_srq_attr attr,
enum ib_srq_attr_mask  attr_mask,
struct ib_udata udata 
)

Definition at line 364 of file mthca_srq.c.

int mthca_query_srq ( struct ib_srq ibsrq,
struct ib_srq_attr srq_attr 
)

Definition at line 388 of file mthca_srq.c.

void mthca_srq_event ( struct mthca_dev dev,
u32  srqn,
enum ib_event_type  event_type 
)

Definition at line 422 of file mthca_srq.c.

int mthca_tavor_post_srq_recv ( struct ib_srq ibsrq,
struct ib_recv_wr wr,
struct ib_recv_wr **  bad_wr 
)

Definition at line 475 of file mthca_srq.c.