Linux Kernel
3.7.1
|
#include "qib.h"
Go to the source code of this file.
Functions | |
int | qib_alloc_lkey (struct qib_mregion *mr, int dma_region) |
void | qib_free_lkey (struct qib_mregion *mr) |
int | qib_lkey_ok (struct qib_lkey_table *rkt, struct qib_pd *pd, struct qib_sge *isge, struct ib_sge *sge, int acc) |
int | qib_rkey_ok (struct qib_qp *qp, struct qib_sge *sge, u32 len, u64 vaddr, u32 rkey, int acc) |
int | qib_fast_reg_mr (struct qib_qp *qp, struct ib_send_wr *wr) |
int qib_alloc_lkey | ( | struct qib_mregion * | mr, |
int | dma_region | ||
) |
qib_alloc_lkey - allocate an lkey : memory region that this lkey protects : 0->normal key, 1->restricted DMA key
Returns 0 if successful, otherwise returns -errno.
Increments mr reference count as required.
Sets the lkey field mr for non-dma regions.
Definition at line 49 of file qib_keys.c.
int qib_fast_reg_mr | ( | struct qib_qp * | qp, |
struct ib_send_wr * | wr | ||
) |
Definition at line 337 of file qib_keys.c.
void qib_free_lkey | ( | struct qib_mregion * | mr | ) |
qib_free_lkey - free an lkey : mr to free from tables
Definition at line 113 of file qib_keys.c.
int qib_lkey_ok | ( | struct qib_lkey_table * | rkt, |
struct qib_pd * | pd, | ||
struct qib_sge * | isge, | ||
struct ib_sge * | sge, | ||
int | acc | ||
) |
qib_lkey_ok - check IB SGE for validity and initialize : table containing lkey to check SGE against : protection domain : outgoing internal SGE : SGE to check : access flags
Return 1 if valid and successful, otherwise returns 0.
increments the reference count upon success
Check the IB SGE for validity and initialize our internal version of it.
Definition at line 151 of file qib_keys.c.
qib_rkey_ok - check the IB virtual address, length, and RKEY : qp for validation : SGE state : length of data : virtual address to place data : rkey to check : access flags
Return 1 if successful, otherwise 0.
increments the reference count upon success
Definition at line 248 of file qib_keys.c.