Lines Matching full:mr
10 struct ib_mr *mr; in ib_mr_pool_get() local
14 mr = list_first_entry_or_null(list, struct ib_mr, qp_entry); in ib_mr_pool_get()
15 if (mr) { in ib_mr_pool_get()
16 list_del(&mr->qp_entry); in ib_mr_pool_get()
21 return mr; in ib_mr_pool_get()
25 void ib_mr_pool_put(struct ib_qp *qp, struct list_head *list, struct ib_mr *mr) in ib_mr_pool_put() argument
30 list_add(&mr->qp_entry, list); in ib_mr_pool_put()
39 struct ib_mr *mr; in ib_mr_pool_init() local
45 mr = ib_alloc_mr_integrity(qp->pd, max_num_sg, in ib_mr_pool_init()
48 mr = ib_alloc_mr(qp->pd, type, max_num_sg); in ib_mr_pool_init()
49 if (IS_ERR(mr)) { in ib_mr_pool_init()
50 ret = PTR_ERR(mr); in ib_mr_pool_init()
55 list_add_tail(&mr->qp_entry, list); in ib_mr_pool_init()
68 struct ib_mr *mr; in ib_mr_pool_destroy() local
73 mr = list_first_entry(list, struct ib_mr, qp_entry); in ib_mr_pool_destroy()
74 list_del(&mr->qp_entry); in ib_mr_pool_destroy()
77 ib_dereg_mr(mr); in ib_mr_pool_destroy()