Lines Matching refs:iwpbl

326 	struct i40iw_pbl *iwpbl;  in i40iw_get_pbl()  local
328 list_for_each_entry(iwpbl, pbl_list, list) { in i40iw_get_pbl()
329 if (iwpbl->user_base == va) { in i40iw_get_pbl()
330 iwpbl->on_list = false; in i40iw_get_pbl()
331 list_del(&iwpbl->list); in i40iw_get_pbl()
332 return iwpbl; in i40iw_get_pbl()
346 struct i40iw_pbl *iwpbl = &iwqp->iwpbl; in i40iw_free_qp_resources() local
354 if (iwpbl->pbl_allocated) in i40iw_free_qp_resources()
355 i40iw_free_pble(iwdev->pble_rsrc, &iwpbl->pble_alloc); in i40iw_free_qp_resources()
422 struct i40iw_pbl *iwpbl = &iwqp->iwpbl; in i40iw_setup_virt_qp() local
423 struct i40iw_qp_mr *qpmr = &iwpbl->qp_mr; in i40iw_setup_virt_qp()
427 if (iwpbl->pbl_allocated) { in i40iw_setup_virt_qp()
621 struct i40iw_pbl *iwpbl; in i40iw_create_qp() local
625 iwpbl = i40iw_get_pbl( in i40iw_create_qp()
631 if (!iwpbl) { in i40iw_create_qp()
636 memcpy(&iwqp->iwpbl, iwpbl, sizeof(iwqp->iwpbl)); in i40iw_create_qp()
1071 struct i40iw_pbl *iwpbl; in i40iw_create_cq() local
1124 iwpbl = i40iw_get_pbl((unsigned long)req.user_cq_buffer, in i40iw_create_cq()
1127 if (!iwpbl) { in i40iw_create_cq()
1132 iwcq->iwpbl = iwpbl; in i40iw_create_cq()
1134 cqmr = &iwpbl->cq_mr; in i40iw_create_cq()
1136 if (iwpbl->pbl_allocated) { in i40iw_create_cq()
1301 struct i40iw_pbl *iwpbl = &iwmr->iwpbl; in i40iw_copy_user_pgaddrs() local
1302 struct i40iw_pble_alloc *palloc = &iwpbl->pble_alloc; in i40iw_copy_user_pgaddrs()
1310 iwpbl->qp_mr.sq_page = sg_page(region->sg_head.sgl); in i40iw_copy_user_pgaddrs()
1380 struct i40iw_pbl *iwpbl = &iwmr->iwpbl; in i40iw_setup_pbles() local
1381 struct i40iw_pble_alloc *palloc = &iwpbl->pble_alloc; in i40iw_setup_pbles()
1394 iwpbl->pbl_allocated = true; in i40iw_setup_pbles()
1419 struct i40iw_pbl *iwpbl, in i40iw_handle_q_mem() argument
1422 struct i40iw_pble_alloc *palloc = &iwpbl->pble_alloc; in i40iw_handle_q_mem()
1423 struct i40iw_mr *iwmr = iwpbl->iwmr; in i40iw_handle_q_mem()
1424 struct i40iw_qp_mr *qpmr = &iwpbl->qp_mr; in i40iw_handle_q_mem()
1425 struct i40iw_cq_mr *cqmr = &iwpbl->cq_mr; in i40iw_handle_q_mem()
1442 iwpbl->pbl_allocated = false; in i40iw_handle_q_mem()
1483 iwpbl->pbl_allocated = false; in i40iw_handle_q_mem()
1540 struct i40iw_pbl *iwpbl; in i40iw_alloc_mr() local
1561 iwpbl = &iwmr->iwpbl; in i40iw_alloc_mr()
1562 iwpbl->iwmr = iwmr; in i40iw_alloc_mr()
1564 palloc = &iwpbl->pble_alloc; in i40iw_alloc_mr()
1577 iwpbl->pbl_allocated = true; in i40iw_alloc_mr()
1597 struct i40iw_pbl *iwpbl = &iwmr->iwpbl; in i40iw_set_page() local
1598 struct i40iw_pble_alloc *palloc = &iwpbl->pble_alloc; in i40iw_set_page()
1660 struct i40iw_pbl *iwpbl = &iwmr->iwpbl; in i40iw_hwreg_mr() local
1663 struct i40iw_pble_alloc *palloc = &iwpbl->pble_alloc; in i40iw_hwreg_mr()
1676 stag_info->va = (void *)(unsigned long)iwpbl->user_base; in i40iw_hwreg_mr()
1685 if (iwpbl->pbl_allocated) { in i40iw_hwreg_mr()
1731 struct i40iw_pbl *iwpbl; in i40iw_reg_user_mr() local
1765 iwpbl = &iwmr->iwpbl; in i40iw_reg_user_mr()
1766 iwpbl->iwmr = iwmr; in i40iw_reg_user_mr()
1777 iwpbl->user_base = virt; in i40iw_reg_user_mr()
1778 palloc = &iwpbl->pble_alloc; in i40iw_reg_user_mr()
1786 err = i40iw_handle_q_mem(iwdev, &req, iwpbl, use_pbles); in i40iw_reg_user_mr()
1790 list_add_tail(&iwpbl->list, &ucontext->qp_reg_mem_list); in i40iw_reg_user_mr()
1791 iwpbl->on_list = true; in i40iw_reg_user_mr()
1796 err = i40iw_handle_q_mem(iwdev, &req, iwpbl, use_pbles); in i40iw_reg_user_mr()
1801 list_add_tail(&iwpbl->list, &ucontext->cq_reg_mem_list); in i40iw_reg_user_mr()
1802 iwpbl->on_list = true; in i40iw_reg_user_mr()
1817 iwpbl->pbl_allocated = false; in i40iw_reg_user_mr()
1849 if (palloc->level != I40IW_LEVEL_0 && iwpbl->pbl_allocated) in i40iw_reg_user_mr()
1872 struct i40iw_pbl *iwpbl; in i40iw_reg_phys_mr() local
1884 iwpbl = &iwmr->iwpbl; in i40iw_reg_phys_mr()
1885 iwpbl->iwmr = iwmr; in i40iw_reg_phys_mr()
1887 iwpbl->user_base = *iova_start; in i40iw_reg_phys_mr()
1934 struct i40iw_pbl *iwpbl = &iwmr->iwpbl; in i40iw_del_memlist() local
1940 if (iwpbl->on_list) { in i40iw_del_memlist()
1941 iwpbl->on_list = false; in i40iw_del_memlist()
1942 list_del(&iwpbl->list); in i40iw_del_memlist()
1948 if (iwpbl->on_list) { in i40iw_del_memlist()
1949 iwpbl->on_list = false; in i40iw_del_memlist()
1950 list_del(&iwpbl->list); in i40iw_del_memlist()
1971 struct i40iw_pbl *iwpbl = &iwmr->iwpbl; in i40iw_dereg_mr() local
1972 struct i40iw_pble_alloc *palloc = &iwpbl->pble_alloc; in i40iw_dereg_mr()
1990 if (iwpbl->pbl_allocated && iwmr->type != IW_MEMREG_TYPE_QP) in i40iw_dereg_mr()
2008 if (iwpbl->pbl_allocated) in i40iw_dereg_mr()
2020 if (iwpbl->pbl_allocated) in i40iw_dereg_mr()
2214 struct i40iw_pble_alloc *palloc = &iwmr->iwpbl.pble_alloc; in i40iw_post_send()