Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
iwch_mem.c File Reference
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <rdma/iw_cm.h>
#include <rdma/ib_verbs.h>
#include "cxio_hal.h"
#include "cxio_resource.h"
#include "iwch.h"
#include "iwch_provider.h"

Go to the source code of this file.

Functions

int iwch_register_mem (struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, int shift)
 
int iwch_reregister_mem (struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, int shift, int npages)
 
int iwch_alloc_pbl (struct iwch_mr *mhp, int npages)
 
void iwch_free_pbl (struct iwch_mr *mhp)
 
int iwch_write_pbl (struct iwch_mr *mhp, __be64 *pages, int npages, int offset)
 
int build_phys_page_list (struct ib_phys_buf *buffer_list, int num_phys_buf, u64 *iova_start, u64 *total_size, int *npages, int *shift, __be64 **page_list)
 

Function Documentation

int build_phys_page_list ( struct ib_phys_buf buffer_list,
int  num_phys_buf,
u64 iova_start,
u64 total_size,
int npages,
int shift,
__be64 **  page_list 
)

Definition at line 134 of file iwch_mem.c.

int iwch_alloc_pbl ( struct iwch_mr mhp,
int  npages 
)

Definition at line 109 of file iwch_mem.c.

void iwch_free_pbl ( struct iwch_mr mhp)

Definition at line 122 of file iwch_mem.c.

int iwch_register_mem ( struct iwch_dev rhp,
struct iwch_pd php,
struct iwch_mr mhp,
int  shift 
)

Definition at line 55 of file iwch_mem.c.

int iwch_reregister_mem ( struct iwch_dev rhp,
struct iwch_pd php,
struct iwch_mr mhp,
int  shift,
int  npages 
)

Definition at line 78 of file iwch_mem.c.

int iwch_write_pbl ( struct iwch_mr mhp,
__be64 pages,
int  npages,
int  offset 
)

Definition at line 128 of file iwch_mem.c.