Home
last modified time | relevance | path

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

/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c461 mr->hwmr.dev = dev; in ocrdma_alloc_lkey()
462 mr->hwmr.fr_mr = 0; in ocrdma_alloc_lkey()
463 mr->hwmr.local_rd = 1; in ocrdma_alloc_lkey()
464 mr->hwmr.remote_rd = (acc & IB_ACCESS_REMOTE_READ) ? 1 : 0; in ocrdma_alloc_lkey()
465 mr->hwmr.remote_wr = (acc & IB_ACCESS_REMOTE_WRITE) ? 1 : 0; in ocrdma_alloc_lkey()
466 mr->hwmr.local_wr = (acc & IB_ACCESS_LOCAL_WRITE) ? 1 : 0; in ocrdma_alloc_lkey()
467 mr->hwmr.mw_bind = (acc & IB_ACCESS_MW_BIND) ? 1 : 0; in ocrdma_alloc_lkey()
468 mr->hwmr.remote_atomic = (acc & IB_ACCESS_REMOTE_ATOMIC) ? 1 : 0; in ocrdma_alloc_lkey()
469 mr->hwmr.num_pbls = num_pbls; in ocrdma_alloc_lkey()
471 status = ocrdma_mbx_alloc_lkey(dev, &mr->hwmr, pd->id, addr_check); in ocrdma_alloc_lkey()
[all …]
Docrdma_hw.c1476 int ocrdma_mbx_alloc_lkey(struct ocrdma_dev *dev, struct ocrdma_hw_mr *hwmr, in ocrdma_mbx_alloc_lkey() argument
1488 cmd->pbl_sz_flags |= (hwmr->fr_mr << OCRDMA_ALLOC_LKEY_FMR_SHIFT); in ocrdma_mbx_alloc_lkey()
1490 (hwmr->remote_wr << OCRDMA_ALLOC_LKEY_REMOTE_WR_SHIFT); in ocrdma_mbx_alloc_lkey()
1492 (hwmr->remote_rd << OCRDMA_ALLOC_LKEY_REMOTE_RD_SHIFT); in ocrdma_mbx_alloc_lkey()
1494 (hwmr->local_wr << OCRDMA_ALLOC_LKEY_LOCAL_WR_SHIFT); in ocrdma_mbx_alloc_lkey()
1496 (hwmr->remote_atomic << OCRDMA_ALLOC_LKEY_REMOTE_ATOMIC_SHIFT); in ocrdma_mbx_alloc_lkey()
1498 (hwmr->num_pbls << OCRDMA_ALLOC_LKEY_PBL_SIZE_SHIFT); in ocrdma_mbx_alloc_lkey()
1504 hwmr->lkey = rsp->lrkey; in ocrdma_mbx_alloc_lkey()
1528 static int ocrdma_mbx_reg_mr(struct ocrdma_dev *dev, struct ocrdma_hw_mr *hwmr, in ocrdma_mbx_reg_mr() argument
1540 pdid | (hwmr->num_pbls << OCRDMA_REG_NSMR_NUM_PBL_SHIFT); in ocrdma_mbx_reg_mr()
[all …]
Docrdma_hw.h96 int ocrdma_mbx_alloc_lkey(struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr,
100 int ocrdma_reg_mr(struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr,
Docrdma.h327 struct ocrdma_hw_mr hwmr; member