Lines Matching refs:hw_mr
2981 rc = dev->ops->rdma_alloc_tid(dev->rdma_ctx, &mr->hw_mr.itid); in qedr_reg_user_mr()
2992 mr->hw_mr.tid_type = QED_RDMA_TID_REGISTERED_MR; in qedr_reg_user_mr()
2993 mr->hw_mr.key = 0; in qedr_reg_user_mr()
2994 mr->hw_mr.pd = pd->pd_id; in qedr_reg_user_mr()
2995 mr->hw_mr.local_read = 1; in qedr_reg_user_mr()
2996 mr->hw_mr.local_write = (acc & IB_ACCESS_LOCAL_WRITE) ? 1 : 0; in qedr_reg_user_mr()
2997 mr->hw_mr.remote_read = (acc & IB_ACCESS_REMOTE_READ) ? 1 : 0; in qedr_reg_user_mr()
2998 mr->hw_mr.remote_write = (acc & IB_ACCESS_REMOTE_WRITE) ? 1 : 0; in qedr_reg_user_mr()
2999 mr->hw_mr.remote_atomic = (acc & IB_ACCESS_REMOTE_ATOMIC) ? 1 : 0; in qedr_reg_user_mr()
3000 mr->hw_mr.mw_bind = false; in qedr_reg_user_mr()
3001 mr->hw_mr.pbl_ptr = mr->info.pbl_table[0].pa; in qedr_reg_user_mr()
3002 mr->hw_mr.pbl_two_level = mr->info.pbl_info.two_layered; in qedr_reg_user_mr()
3003 mr->hw_mr.pbl_page_size_log = ilog2(mr->info.pbl_info.pbl_size); in qedr_reg_user_mr()
3004 mr->hw_mr.page_size_log = PAGE_SHIFT; in qedr_reg_user_mr()
3005 mr->hw_mr.length = len; in qedr_reg_user_mr()
3006 mr->hw_mr.vaddr = usr_addr; in qedr_reg_user_mr()
3007 mr->hw_mr.phy_mr = false; in qedr_reg_user_mr()
3008 mr->hw_mr.dma_mr = false; in qedr_reg_user_mr()
3010 rc = dev->ops->rdma_register_tid(dev->rdma_ctx, &mr->hw_mr); in qedr_reg_user_mr()
3016 mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; in qedr_reg_user_mr()
3017 if (mr->hw_mr.remote_write || mr->hw_mr.remote_read || in qedr_reg_user_mr()
3018 mr->hw_mr.remote_atomic) in qedr_reg_user_mr()
3019 mr->ibmr.rkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; in qedr_reg_user_mr()
3026 dev->ops->rdma_free_tid(dev->rdma_ctx, mr->hw_mr.itid); in qedr_reg_user_mr()
3040 rc = dev->ops->rdma_deregister_tid(dev->rdma_ctx, mr->hw_mr.itid); in qedr_dereg_mr()
3044 dev->ops->rdma_free_tid(dev->rdma_ctx, mr->hw_mr.itid); in qedr_dereg_mr()
3080 rc = dev->ops->rdma_alloc_tid(dev->rdma_ctx, &mr->hw_mr.itid); in __qedr_alloc_mr()
3091 mr->hw_mr.tid_type = QED_RDMA_TID_FMR; in __qedr_alloc_mr()
3092 mr->hw_mr.key = 0; in __qedr_alloc_mr()
3093 mr->hw_mr.pd = pd->pd_id; in __qedr_alloc_mr()
3094 mr->hw_mr.local_read = 1; in __qedr_alloc_mr()
3095 mr->hw_mr.local_write = 0; in __qedr_alloc_mr()
3096 mr->hw_mr.remote_read = 0; in __qedr_alloc_mr()
3097 mr->hw_mr.remote_write = 0; in __qedr_alloc_mr()
3098 mr->hw_mr.remote_atomic = 0; in __qedr_alloc_mr()
3099 mr->hw_mr.mw_bind = false; in __qedr_alloc_mr()
3100 mr->hw_mr.pbl_ptr = 0; in __qedr_alloc_mr()
3101 mr->hw_mr.pbl_two_level = mr->info.pbl_info.two_layered; in __qedr_alloc_mr()
3102 mr->hw_mr.pbl_page_size_log = ilog2(mr->info.pbl_info.pbl_size); in __qedr_alloc_mr()
3103 mr->hw_mr.length = 0; in __qedr_alloc_mr()
3104 mr->hw_mr.vaddr = 0; in __qedr_alloc_mr()
3105 mr->hw_mr.phy_mr = true; in __qedr_alloc_mr()
3106 mr->hw_mr.dma_mr = false; in __qedr_alloc_mr()
3108 rc = dev->ops->rdma_register_tid(dev->rdma_ctx, &mr->hw_mr); in __qedr_alloc_mr()
3114 mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; in __qedr_alloc_mr()
3121 dev->ops->rdma_free_tid(dev->rdma_ctx, mr->hw_mr.itid); in __qedr_alloc_mr()
3216 rc = dev->ops->rdma_alloc_tid(dev->rdma_ctx, &mr->hw_mr.itid); in qedr_get_dma_mr()
3227 mr->hw_mr.tid_type = QED_RDMA_TID_REGISTERED_MR; in qedr_get_dma_mr()
3228 mr->hw_mr.pd = pd->pd_id; in qedr_get_dma_mr()
3229 mr->hw_mr.local_read = 1; in qedr_get_dma_mr()
3230 mr->hw_mr.local_write = (acc & IB_ACCESS_LOCAL_WRITE) ? 1 : 0; in qedr_get_dma_mr()
3231 mr->hw_mr.remote_read = (acc & IB_ACCESS_REMOTE_READ) ? 1 : 0; in qedr_get_dma_mr()
3232 mr->hw_mr.remote_write = (acc & IB_ACCESS_REMOTE_WRITE) ? 1 : 0; in qedr_get_dma_mr()
3233 mr->hw_mr.remote_atomic = (acc & IB_ACCESS_REMOTE_ATOMIC) ? 1 : 0; in qedr_get_dma_mr()
3234 mr->hw_mr.dma_mr = true; in qedr_get_dma_mr()
3236 rc = dev->ops->rdma_register_tid(dev->rdma_ctx, &mr->hw_mr); in qedr_get_dma_mr()
3242 mr->ibmr.lkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; in qedr_get_dma_mr()
3243 if (mr->hw_mr.remote_write || mr->hw_mr.remote_read || in qedr_get_dma_mr()
3244 mr->hw_mr.remote_atomic) in qedr_get_dma_mr()
3245 mr->ibmr.rkey = mr->hw_mr.itid << 8 | mr->hw_mr.key; in qedr_get_dma_mr()
3251 dev->ops->rdma_free_tid(dev->rdma_ctx, mr->hw_mr.itid); in qedr_get_dma_mr()