Lines Matching refs:ibmr
400 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; in finish_mem_reg()
401 mhp->ibmr.length = mhp->attr.len; in finish_mem_reg()
402 mhp->ibmr.page_size = 1U << (mhp->attr.page_size + 12); in finish_mem_reg()
494 return &mhp->ibmr; in c4iw_get_dma_mr()
598 return &mhp->ibmr; in c4iw_reg_user_mr()
737 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; in c4iw_alloc_mr()
744 return &(mhp->ibmr); in c4iw_alloc_mr()
762 static int c4iw_set_page(struct ib_mr *ibmr, u64 addr) in c4iw_set_page() argument
764 struct c4iw_mr *mhp = to_c4iw_mr(ibmr); in c4iw_set_page()
774 int c4iw_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, in c4iw_map_mr_sg() argument
777 struct c4iw_mr *mhp = to_c4iw_mr(ibmr); in c4iw_map_mr_sg()
781 return ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, c4iw_set_page); in c4iw_map_mr_sg()