Lines Matching refs:rds_ibdev
53 static struct rds_ib_mr *rds_ib_alloc_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_alloc_frmr() argument
62 pool = rds_ibdev->mr_8k_pool; in rds_ib_alloc_frmr()
64 pool = rds_ibdev->mr_1m_pool; in rds_ib_alloc_frmr()
71 rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_frmr()
78 frmr->mr = ib_alloc_mr(rds_ibdev->pd, IB_MR_TYPE_MEM_REG, in rds_ib_alloc_frmr()
187 static int rds_ib_map_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_map_frmr() argument
192 struct ib_device *dev = rds_ibdev->dev; in rds_ib_map_frmr()
260 ib_dma_unmap_sg(rds_ibdev->dev, ibmr->sg, ibmr->sg_len, in rds_ib_map_frmr()
401 struct rds_ib_mr *rds_ib_reg_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_reg_frmr() argument
418 ibmr = rds_ib_alloc_frmr(rds_ibdev, nents); in rds_ib_reg_frmr()
425 ibmr->device = rds_ibdev; in rds_ib_reg_frmr()
426 ret = rds_ib_map_frmr(rds_ibdev, ibmr->pool, ibmr, sg, nents); in rds_ib_reg_frmr()