Lines Matching defs:lkey
40 * ipath_alloc_lkey - allocate an lkey
41 * @rkt: lkey table in which to allocate the lkey
42 * @mr: memory region that this lkey protects
71 * Make sure lkey is never zero which is reserved to indicate an
75 mr->lkey = (r << (32 - ib_ipath_lkey_table_size)) |
78 if (mr->lkey == 0) {
79 mr->lkey |= 1 << 8;
92 * ipath_free_lkey - free an lkey
93 * @rkt: table from which to free the lkey
94 * @lkey: lkey id to free
96 void ipath_free_lkey(struct ipath_lkey_table *rkt, u32 lkey)
101 if (lkey == 0)
103 r = lkey >> (32 - ib_ipath_lkey_table_size);
111 * @rkt: table containing lkey to check SGE against
135 if (sge->lkey == 0) {
149 mr = rkt->table[(sge->lkey >> (32 - ib_ipath_lkey_table_size))];
150 if (unlikely(mr == NULL || mr->lkey != sge->lkey ||
232 if (unlikely(mr == NULL || mr->lkey != rkey ||