Home
last modified time | relevance | path

Searched refs:hwmr (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c699 mr->hwmr.fr_mr = 0; in ocrdma_alloc_lkey()
700 mr->hwmr.local_rd = 1; in ocrdma_alloc_lkey()
701 mr->hwmr.remote_rd = (acc & IB_ACCESS_REMOTE_READ) ? 1 : 0; in ocrdma_alloc_lkey()
702 mr->hwmr.remote_wr = (acc & IB_ACCESS_REMOTE_WRITE) ? 1 : 0; in ocrdma_alloc_lkey()
703 mr->hwmr.local_wr = (acc & IB_ACCESS_LOCAL_WRITE) ? 1 : 0; in ocrdma_alloc_lkey()
704 mr->hwmr.mw_bind = (acc & IB_ACCESS_MW_BIND) ? 1 : 0; in ocrdma_alloc_lkey()
705 mr->hwmr.remote_atomic = (acc & IB_ACCESS_REMOTE_ATOMIC) ? 1 : 0; in ocrdma_alloc_lkey()
706 mr->hwmr.num_pbls = num_pbls; in ocrdma_alloc_lkey()
708 status = ocrdma_mbx_alloc_lkey(dev, &mr->hwmr, pdid, addr_check); in ocrdma_alloc_lkey()
712 mr->ibmr.lkey = mr->hwmr.lkey; in ocrdma_alloc_lkey()
[all …]
Docrdma_hw.c1904 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()
[all …]
Docrdma_hw.h117 int ocrdma_mbx_alloc_lkey(struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr,
121 int ocrdma_reg_mr(struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr,
Docrdma.h194 struct ocrdma_hw_mr hwmr; member