Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | qib_fmr |
Functions | |
struct ib_mr * | qib_get_dma_mr (struct ib_pd *pd, int acc) |
struct ib_mr * | qib_reg_phys_mr (struct ib_pd *pd, struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, u64 *iova_start) |
struct ib_mr * | qib_reg_user_mr (struct ib_pd *pd, u64 start, u64 length, u64 virt_addr, int mr_access_flags, struct ib_udata *udata) |
int | qib_dereg_mr (struct ib_mr *ibmr) |
struct ib_mr * | qib_alloc_fast_reg_mr (struct ib_pd *pd, int max_page_list_len) |
struct ib_fast_reg_page_list * | qib_alloc_fast_reg_page_list (struct ib_device *ibdev, int page_list_len) |
void | qib_free_fast_reg_page_list (struct ib_fast_reg_page_list *pl) |
struct ib_fmr * | qib_alloc_fmr (struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr) |
int | qib_map_phys_fmr (struct ib_fmr *ibfmr, u64 *page_list, int list_len, u64 iova) |
int | qib_unmap_fmr (struct list_head *fmr_list) |
int | qib_dealloc_fmr (struct ib_fmr *ibfmr) |
void | mr_rcu_callback (struct rcu_head *list) |
Variables | |
struct qib_fmr | __attribute__ |
|
read |
qib_dereg_mr - unregister and free a memory region : the memory region to free
Returns 0 on success.
Note that this is called to free MRs created by qib_get_dma_mr() or qib_reg_user_mr().
void qib_free_fast_reg_page_list | ( | struct ib_fast_reg_page_list * | pl | ) |
qib_get_dma_mr - get a DMA memory region : protection domain for this memory region : access flags
Returns the memory region on success, otherwise returns an errno. Note that all DMA addresses should be created via the struct ib_dma_mapping_ops functions (see qib_dma.c).
qib_map_phys_fmr - set up a fast memory region : the fast memory region to set up : the list of pages to associate with the fast memory region : the number of pages to associate with the fast memory region : the virtual address of the start of the fast memory region
This may be called from interrupt context.
|
read |
qib_reg_phys_mr - register a physical memory region : protection domain for this memory region : pointer to the list of physical buffers to register : the number of physical buffers to register : the starting address passed over IB which maps to this MR
Returns the memory region on success, otherwise returns an errno.
|
read |