Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ipath_keys.c File Reference
#include <asm/io.h>
#include "ipath_verbs.h"
#include "ipath_kernel.h"

Go to the source code of this file.


int ipath_alloc_lkey (struct ipath_lkey_table *rkt, struct ipath_mregion *mr)
void ipath_free_lkey (struct ipath_lkey_table *rkt, u32 lkey)
int ipath_lkey_ok (struct ipath_qp *qp, struct ipath_sge *isge, struct ib_sge *sge, int acc)
int ipath_rkey_ok (struct ipath_qp *qp, struct ipath_sge_state *ss, u32 len, u64 vaddr, u32 rkey, int acc)

Function Documentation

int ipath_alloc_lkey ( struct ipath_lkey_table rkt,
struct ipath_mregion mr 

ipath_alloc_lkey - allocate an lkey : lkey table in which to allocate the lkey : memory region that this lkey protects

Returns 1 if successful, otherwise returns 0.

Definition at line 47 of file ipath_keys.c.

void ipath_free_lkey ( struct ipath_lkey_table rkt,
u32  lkey 

ipath_free_lkey - free an lkey : table from which to free the lkey : lkey id to free

Definition at line 96 of file ipath_keys.c.

int ipath_lkey_ok ( struct ipath_qp qp,
struct ipath_sge isge,
struct ib_sge sge,
int  acc 

ipath_lkey_ok - check IB SGE for validity and initialize : table containing lkey to check SGE against : outgoing internal SGE : SGE to check : access flags

Return 1 if valid and successful, otherwise returns 0.

Check the IB SGE for validity and initialize our internal version of it.

Definition at line 121 of file ipath_keys.c.

int ipath_rkey_ok ( struct ipath_qp qp,
struct ipath_sge_state ss,
u32  len,
u64  vaddr,
u32  rkey,
int  acc 

ipath_rkey_ok - check the IB virtual address, length, and RKEY : infiniband device : SGE state : length of data : virtual address to place data : rkey to check : access flags

Return 1 if successful, otherwise 0.

Definition at line 199 of file ipath_keys.c.