Lines Matching refs:mhp
789 const struct ib_reg_wr *wr, struct c4iw_mr *mhp, in build_tpte_memreg() argument
795 fr->stag = cpu_to_be32(mhp->ibmr.rkey); in build_tpte_memreg()
798 FW_RI_TPTE_STAGKEY_V((mhp->ibmr.rkey & FW_RI_TPTE_STAGKEY_M)) | in build_tpte_memreg()
801 FW_RI_TPTE_PDID_V(mhp->attr.pdid)); in build_tpte_memreg()
807 PBL_OFF(&mhp->rhp->rdev, mhp->attr.pbl_addr)>>3)); in build_tpte_memreg()
810 fr->tpte.len_lo = cpu_to_be32(mhp->ibmr.length); in build_tpte_memreg()
811 fr->tpte.va_hi = cpu_to_be32(mhp->ibmr.iova >> 32); in build_tpte_memreg()
812 fr->tpte.va_lo_fbo = cpu_to_be32(mhp->ibmr.iova & 0xffffffff); in build_tpte_memreg()
814 p[0] = cpu_to_be64((u64)mhp->mpl[0]); in build_tpte_memreg()
815 p[1] = cpu_to_be64((u64)mhp->mpl[1]); in build_tpte_memreg()
821 const struct ib_reg_wr *wr, struct c4iw_mr *mhp, in build_memreg() argument
827 int pbllen = roundup(mhp->mpl_len * sizeof(u64), 32); in build_memreg()
830 if (mhp->mpl_len > t4_max_fr_depth(dsgl_supported && use_dsgl)) in build_memreg()
838 wqe->fr.len_lo = cpu_to_be32(mhp->ibmr.length); in build_memreg()
840 wqe->fr.va_hi = cpu_to_be32(mhp->ibmr.iova >> 32); in build_memreg()
841 wqe->fr.va_lo_fbo = cpu_to_be32(mhp->ibmr.iova & in build_memreg()
847 for (i = 0; i < mhp->mpl_len; i++) in build_memreg()
848 mhp->mpl[i] = (__force u64)cpu_to_be64((u64)mhp->mpl[i]); in build_memreg()
854 sglp->addr0 = cpu_to_be64(mhp->mpl_addr); in build_memreg()
866 for (i = 0; i < mhp->mpl_len; i++) { in build_memreg()
867 *p = cpu_to_be64((u64)mhp->mpl[i]); in build_memreg()
1193 struct c4iw_mr *mhp = to_c4iw_mr(reg_wr(wr)->mr); in c4iw_post_send() local
1197 !mhp->attr.state && mhp->mpl_len <= 2) { in c4iw_post_send()
1200 mhp, &len16); in c4iw_post_send()
1204 mhp, &len16, in c4iw_post_send()
1209 mhp->attr.state = 1; in c4iw_post_send()