Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ehea_qmr.c File Reference
#include <linux/mm.h>
#include <linux/slab.h>
#include "ehea.h"
#include "ehea_phyp.h"
#include "ehea_qmr.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define EHEA_BUSMAP_ADD_SECT   1
 
#define EHEA_BUSMAP_REM_SECT   0
 

Functions

struct ehea_cqehea_create_cq (struct ehea_adapter *adapter, int nr_of_cqe, u64 eq_handle, u32 cq_token)
 
int ehea_destroy_cq (struct ehea_cq *cq)
 
struct ehea_eqehea_create_eq (struct ehea_adapter *adapter, const enum ehea_eq_type type, const u32 max_nr_of_eqes, const u8 eqe_gen)
 
struct ehea_eqeehea_poll_eq (struct ehea_eq *eq)
 
int ehea_destroy_eq (struct ehea_eq *eq)
 
struct ehea_qpehea_create_qp (struct ehea_adapter *adapter, u32 pd, struct ehea_qp_init_attr *init_attr)
 
int ehea_destroy_qp (struct ehea_qp *qp)
 
int ehea_add_sect_bmap (unsigned long pfn, unsigned long nr_pages)
 
int ehea_rem_sect_bmap (unsigned long pfn, unsigned long nr_pages)
 
int ehea_create_busmap (void)
 
void ehea_destroy_busmap (void)
 
u64 ehea_map_vaddr (void *caddr)
 
int ehea_reg_kernel_mr (struct ehea_adapter *adapter, struct ehea_mr *mr)
 
int ehea_rem_mr (struct ehea_mr *mr)
 
int ehea_gen_smr (struct ehea_adapter *adapter, struct ehea_mr *old_mr, struct ehea_mr *shared_mr)
 
u64 ehea_error_data (struct ehea_adapter *adapter, u64 res_handle, u64 *aer, u64 *aerr)
 

Macro Definition Documentation

#define EHEA_BUSMAP_ADD_SECT   1

Definition at line 591 of file ehea_qmr.c.

#define EHEA_BUSMAP_REM_SECT   0

Definition at line 592 of file ehea_qmr.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file ehea_qmr.c.

Function Documentation

int ehea_add_sect_bmap ( unsigned long  pfn,
unsigned long  nr_pages 
)

Definition at line 676 of file ehea_qmr.c.

int ehea_create_busmap ( void  )

Definition at line 746 of file ehea_qmr.c.

struct ehea_cq* ehea_create_cq ( struct ehea_adapter adapter,
int  nr_of_cqe,
u64  eq_handle,
u32  cq_token 
)
read

Definition at line 121 of file ehea_qmr.c.

struct ehea_eq* ehea_create_eq ( struct ehea_adapter adapter,
const enum ehea_eq_type  type,
const u32  max_nr_of_eqes,
const u8  eqe_gen 
)
read

Definition at line 250 of file ehea_qmr.c.

struct ehea_qp* ehea_create_qp ( struct ehea_adapter adapter,
u32  pd,
struct ehea_qp_init_attr init_attr 
)
read

Definition at line 420 of file ehea_qmr.c.

void ehea_destroy_busmap ( void  )

Definition at line 758 of file ehea_qmr.c.

int ehea_destroy_cq ( struct ehea_cq cq)

Definition at line 229 of file ehea_qmr.c.

int ehea_destroy_eq ( struct ehea_eq eq)

Definition at line 357 of file ehea_qmr.c.

int ehea_destroy_qp ( struct ehea_qp qp)

Definition at line 538 of file ehea_qmr.c.

u64 ehea_error_data ( struct ehea_adapter adapter,
u64  res_handle,
u64 aer,
u64 aerr 
)

Definition at line 999 of file ehea_qmr.c.

int ehea_gen_smr ( struct ehea_adapter adapter,
struct ehea_mr old_mr,
struct ehea_mr shared_mr 
)

Definition at line 959 of file ehea_qmr.c.

u64 ehea_map_vaddr ( void caddr)

Definition at line 785 of file ehea_qmr.c.

struct ehea_eqe* ehea_poll_eq ( struct ehea_eq eq)
read

Definition at line 326 of file ehea_qmr.c.

int ehea_reg_kernel_mr ( struct ehea_adapter adapter,
struct ehea_mr mr 
)

Definition at line 885 of file ehea_qmr.c.

int ehea_rem_mr ( struct ehea_mr mr)

Definition at line 942 of file ehea_qmr.c.

int ehea_rem_sect_bmap ( unsigned long  pfn,
unsigned long  nr_pages 
)

Definition at line 686 of file ehea_qmr.c.