Home
last modified time | relevance | path

Searched refs:iwmr (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/dev/irdma/
H A Dirdma_verbs.c1748 irdma_setup_pbles(struct irdma_pci_f *rf, struct irdma_mr *iwmr, in irdma_setup_pbles() argument
1751 struct irdma_pbl *iwpbl = &iwmr->iwpbl; in irdma_setup_pbles()
1759 status = irdma_get_pble(rf->pble_rsrc, palloc, iwmr->page_cnt, in irdma_setup_pbles()
1770 pbl = iwmr->pgaddrmem; in irdma_setup_pbles()
1773 irdma_copy_user_pgaddrs(iwmr, pbl, level); in irdma_setup_pbles()
1776 iwmr->pgaddrmem[0] = *pbl; in irdma_setup_pbles()
1794 struct irdma_mr *iwmr = iwpbl->iwmr; in irdma_handle_q_mem() local
1798 u64 *arr = iwmr->pgaddrmem; in irdma_handle_q_mem()
1803 pg_size = iwmr->page_size; in irdma_handle_q_mem()
1804 err = irdma_setup_pbles(iwdev->rf, iwmr, lvl); in irdma_handle_q_mem()
[all …]
H A Dirdma_kcompat.c113 struct irdma_mr *iwmr; in irdma_alloc_mr() local
118 iwmr = kzalloc(sizeof(*iwmr), GFP_KERNEL); in irdma_alloc_mr()
119 if (!iwmr) in irdma_alloc_mr()
128 iwmr->stag = stag; in irdma_alloc_mr()
129 iwmr->ibmr.rkey = stag; in irdma_alloc_mr()
130 iwmr->ibmr.lkey = stag; in irdma_alloc_mr()
131 iwmr->ibmr.pd = pd; in irdma_alloc_mr()
132 iwmr->ibmr.device = pd->device; in irdma_alloc_mr()
133 iwpbl = &iwmr->iwpbl; in irdma_alloc_mr()
134 iwpbl->iwmr = iwmr; in irdma_alloc_mr()
[all …]
H A Dfbsd_kcompat.h212 struct irdma_mr *iwmr);
215 struct irdma_mr *iwmr);
221 int irdma_hwreg_mr(struct irdma_device *iwdev, struct irdma_mr *iwmr,
223 struct ib_mr *irdma_rereg_mr_trans(struct irdma_mr *iwmr, u64 start, u64 len,
225 int irdma_hw_alloc_mw(struct irdma_device *iwdev, struct irdma_mr *iwmr);
228 int irdma_hw_alloc_stag(struct irdma_device *iwdev, struct irdma_mr *iwmr);
270 void irdma_del_memlist(struct irdma_mr *iwmr, struct irdma_ucontext *ucontext);
271 void irdma_copy_user_pgaddrs(struct irdma_mr *iwmr, u64 *pbl,
H A Dirdma_verbs.h133 struct irdma_mr *iwmr; member
388 void irdma_free_iwmr(struct irdma_mr *iwmr);
389 int irdma_reg_user_mr_type_mem(struct irdma_mr *iwmr, int access,
400 int irdma_hw_alloc_mw(struct irdma_device *iwdev, struct irdma_mr *iwmr);
H A Dirdma_utils.c2656 struct irdma_mr iwmr = {}; in cqp_poll_worker() local
2662 iwmr.stag = rf->chk_stag; in cqp_poll_worker()
2663 iwmr.ibmw.type = IB_MW_TYPE_1; in cqp_poll_worker()
2664 iwmr.ibmr.pd = &iwpd->ibpd; in cqp_poll_worker()
2665 if (irdma_hw_alloc_mw(rf->iwdev, &iwmr)) in cqp_poll_worker()