Lines Matching refs:hwmr
1904 int ocrdma_mbx_alloc_lkey(struct ocrdma_dev *dev, struct ocrdma_hw_mr *hwmr, in ocrdma_mbx_alloc_lkey() argument
1916 cmd->pbl_sz_flags |= (hwmr->fr_mr << OCRDMA_ALLOC_LKEY_FMR_SHIFT); in ocrdma_mbx_alloc_lkey()
1918 (hwmr->remote_wr << OCRDMA_ALLOC_LKEY_REMOTE_WR_SHIFT); in ocrdma_mbx_alloc_lkey()
1920 (hwmr->remote_rd << OCRDMA_ALLOC_LKEY_REMOTE_RD_SHIFT); in ocrdma_mbx_alloc_lkey()
1922 (hwmr->local_wr << OCRDMA_ALLOC_LKEY_LOCAL_WR_SHIFT); in ocrdma_mbx_alloc_lkey()
1924 (hwmr->remote_atomic << OCRDMA_ALLOC_LKEY_REMOTE_ATOMIC_SHIFT); in ocrdma_mbx_alloc_lkey()
1926 (hwmr->num_pbls << OCRDMA_ALLOC_LKEY_PBL_SIZE_SHIFT); in ocrdma_mbx_alloc_lkey()
1932 hwmr->lkey = rsp->lrkey; in ocrdma_mbx_alloc_lkey()
1954 static int ocrdma_mbx_reg_mr(struct ocrdma_dev *dev, struct ocrdma_hw_mr *hwmr, in ocrdma_mbx_reg_mr() argument
1961 u64 fbo = hwmr->va & (hwmr->pbe_size - 1); in ocrdma_mbx_reg_mr()
1967 pdid | (hwmr->num_pbls << OCRDMA_REG_NSMR_NUM_PBL_SHIFT); in ocrdma_mbx_reg_mr()
1968 cmd->fr_mr = hwmr->fr_mr; in ocrdma_mbx_reg_mr()
1970 cmd->flags_hpage_pbe_sz |= (hwmr->remote_wr << in ocrdma_mbx_reg_mr()
1972 cmd->flags_hpage_pbe_sz |= (hwmr->remote_rd << in ocrdma_mbx_reg_mr()
1974 cmd->flags_hpage_pbe_sz |= (hwmr->local_wr << in ocrdma_mbx_reg_mr()
1976 cmd->flags_hpage_pbe_sz |= (hwmr->remote_atomic << in ocrdma_mbx_reg_mr()
1978 cmd->flags_hpage_pbe_sz |= (hwmr->mw_bind << in ocrdma_mbx_reg_mr()
1982 cmd->flags_hpage_pbe_sz |= (hwmr->pbe_size / OCRDMA_MIN_HPAGE_SIZE); in ocrdma_mbx_reg_mr()
1983 cmd->flags_hpage_pbe_sz |= (hwmr->pbl_size / OCRDMA_MIN_HPAGE_SIZE) << in ocrdma_mbx_reg_mr()
1985 cmd->totlen_low = hwmr->len; in ocrdma_mbx_reg_mr()
1986 cmd->totlen_high = upper_32_bits(hwmr->len); in ocrdma_mbx_reg_mr()
1989 cmd->va_loaddr = (u32) hwmr->va; in ocrdma_mbx_reg_mr()
1990 cmd->va_hiaddr = (u32) upper_32_bits(hwmr->va); in ocrdma_mbx_reg_mr()
1993 cmd->pbl[i].lo = (u32) (hwmr->pbl_table[i].pa & 0xffffffff); in ocrdma_mbx_reg_mr()
1994 cmd->pbl[i].hi = upper_32_bits(hwmr->pbl_table[i].pa); in ocrdma_mbx_reg_mr()
2000 hwmr->lkey = rsp->lrkey; in ocrdma_mbx_reg_mr()
2007 struct ocrdma_hw_mr *hwmr, u32 pbl_cnt, in ocrdma_mbx_reg_mr_cont() argument
2017 cmd->lrkey = hwmr->lkey; in ocrdma_mbx_reg_mr_cont()
2024 (u32) (hwmr->pbl_table[i + pbl_offset].pa & 0xffffffff); in ocrdma_mbx_reg_mr_cont()
2026 upper_32_bits(hwmr->pbl_table[i + pbl_offset].pa); in ocrdma_mbx_reg_mr_cont()
2035 struct ocrdma_hw_mr *hwmr, u32 pdid, int acc) in ocrdma_reg_mr() argument
2040 u32 pending_pbl_cnt = hwmr->num_pbls; in ocrdma_reg_mr()
2047 status = ocrdma_mbx_reg_mr(dev, hwmr, pdid, in ocrdma_reg_mr()
2048 cur_pbl_cnt, hwmr->pbe_size, last); in ocrdma_reg_mr()
2067 status = ocrdma_mbx_reg_mr_cont(dev, hwmr, cur_pbl_cnt, in ocrdma_reg_mr()