Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions | Variables
ehca_mrmw.h File Reference

Go to the source code of this file.

Enumerations

enum  ehca_reg_type { EHCA_REG_MR, EHCA_REG_BUSMAP_MR }
 

Functions

int ehca_reg_mr (struct ehca_shca *shca, struct ehca_mr *e_mr, u64 *iova_start, u64 size, int acl, struct ehca_pd *e_pd, struct ehca_mr_pginfo *pginfo, u32 *lkey, u32 *rkey, enum ehca_reg_type reg_type)
 
int ehca_reg_mr_rpages (struct ehca_shca *shca, struct ehca_mr *e_mr, struct ehca_mr_pginfo *pginfo)
 
int ehca_rereg_mr (struct ehca_shca *shca, struct ehca_mr *e_mr, u64 *iova_start, u64 size, int mr_access_flags, struct ehca_pd *e_pd, struct ehca_mr_pginfo *pginfo, u32 *lkey, u32 *rkey)
 
int ehca_unmap_one_fmr (struct ehca_shca *shca, struct ehca_mr *e_fmr)
 
int ehca_reg_smr (struct ehca_shca *shca, struct ehca_mr *e_origmr, struct ehca_mr *e_newmr, u64 *iova_start, int acl, struct ehca_pd *e_pd, u32 *lkey, u32 *rkey)
 
int ehca_reg_internal_maxmr (struct ehca_shca *shca, struct ehca_pd *e_pd, struct ehca_mr **maxmr)
 
int ehca_reg_maxmr (struct ehca_shca *shca, struct ehca_mr *e_newmr, u64 *iova_start, int acl, struct ehca_pd *e_pd, u32 *lkey, u32 *rkey)
 
int ehca_dereg_internal_maxmr (struct ehca_shca *shca)
 
int ehca_mr_chk_buf_and_calc_size (struct ib_phys_buf *phys_buf_array, int num_phys_buf, u64 *iova_start, u64 *size)
 
int ehca_fmr_check_page_list (struct ehca_mr *e_fmr, u64 *page_list, int list_len)
 
int ehca_set_pagebuf (struct ehca_mr_pginfo *pginfo, u32 number, u64 *kpage)
 
int ehca_mr_is_maxmr (u64 size, u64 *iova_start)
 
void ehca_mrmw_map_acl (int ib_acl, u32 *hipz_acl)
 
void ehca_mrmw_set_pgsize_hipz_acl (u32 pgsize, u32 *hipz_acl)
 
void ehca_mrmw_reverse_map_acl (const u32 *hipz_acl, int *ib_acl)
 
void ehca_mr_deletenew (struct ehca_mr *mr)
 
int ehca_create_busmap (void)
 
void ehca_destroy_busmap (void)
 

Variables

struct ib_dma_mapping_ops ehca_dma_mapping_ops
 

Enumeration Type Documentation

Enumerator:
EHCA_REG_MR 
EHCA_REG_BUSMAP_MR 

Definition at line 45 of file ehca_mrmw.h.

Function Documentation

int ehca_create_busmap ( void  )

Definition at line 2452 of file ehca_mrmw.c.

int ehca_dereg_internal_maxmr ( struct ehca_shca shca)

Definition at line 1729 of file ehca_mrmw.c.

void ehca_destroy_busmap ( void  )

Definition at line 2346 of file ehca_mrmw.c.

int ehca_fmr_check_page_list ( struct ehca_mr e_fmr,
u64 page_list,
int  list_len 
)

Definition at line 1821 of file ehca_mrmw.c.

int ehca_mr_chk_buf_and_calc_size ( struct ib_phys_buf phys_buf_array,
int  num_phys_buf,
u64 iova_start,
u64 size 
)

Definition at line 1769 of file ehca_mrmw.c.

void ehca_mr_deletenew ( struct ehca_mr mr)

Definition at line 2271 of file ehca_mrmw.c.

int ehca_mr_is_maxmr ( u64  size,
u64 iova_start 
)

Definition at line 2202 of file ehca_mrmw.c.

void ehca_mrmw_map_acl ( int  ib_acl,
u32 hipz_acl 
)

Definition at line 2217 of file ehca_mrmw.c.

void ehca_mrmw_reverse_map_acl ( const u32 hipz_acl,
int ib_acl 
)

Definition at line 2247 of file ehca_mrmw.c.

void ehca_mrmw_set_pgsize_hipz_acl ( u32  pgsize,
u32 hipz_acl 
)

Definition at line 2236 of file ehca_mrmw.c.

int ehca_reg_internal_maxmr ( struct ehca_shca shca,
struct ehca_pd e_pd,
struct ehca_mr **  maxmr 
)

Definition at line 1609 of file ehca_mrmw.c.

int ehca_reg_maxmr ( struct ehca_shca shca,
struct ehca_mr e_newmr,
u64 iova_start,
int  acl,
struct ehca_pd e_pd,
u32 lkey,
u32 rkey 
)

Definition at line 1687 of file ehca_mrmw.c.

int ehca_reg_mr ( struct ehca_shca shca,
struct ehca_mr e_mr,
u64 iova_start,
u64  size,
int  acl,
struct ehca_pd e_pd,
struct ehca_mr_pginfo pginfo,
u32 lkey,
u32 rkey,
enum ehca_reg_type  reg_type 
)

Definition at line 1021 of file ehca_mrmw.c.

int ehca_reg_mr_rpages ( struct ehca_shca shca,
struct ehca_mr e_mr,
struct ehca_mr_pginfo pginfo 
)

Definition at line 1099 of file ehca_mrmw.c.

int ehca_reg_smr ( struct ehca_shca shca,
struct ehca_mr e_origmr,
struct ehca_mr e_newmr,
u64 iova_start,
int  acl,
struct ehca_pd e_pd,
u32 lkey,
u32 rkey 
)

Definition at line 1471 of file ehca_mrmw.c.

int ehca_rereg_mr ( struct ehca_shca shca,
struct ehca_mr e_mr,
u64 iova_start,
u64  size,
int  mr_access_flags,
struct ehca_pd e_pd,
struct ehca_mr_pginfo pginfo,
u32 lkey,
u32 rkey 
)

Definition at line 1288 of file ehca_mrmw.c.

int ehca_set_pagebuf ( struct ehca_mr_pginfo pginfo,
u32  number,
u64 kpage 
)

Definition at line 2170 of file ehca_mrmw.c.

int ehca_unmap_one_fmr ( struct ehca_shca shca,
struct ehca_mr e_fmr 
)

Definition at line 1383 of file ehca_mrmw.c.

Variable Documentation

struct ib_dma_mapping_ops ehca_dma_mapping_ops

Definition at line 2645 of file ehca_mrmw.c.