Lines Matching refs:rds_ibdev
35 static struct rds_ib_mr *rds_ib_alloc_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_alloc_frmr() argument
44 pool = rds_ibdev->mr_8k_pool; in rds_ib_alloc_frmr()
46 pool = rds_ibdev->mr_1m_pool; in rds_ib_alloc_frmr()
53 rdsibdev_to_node(rds_ibdev)); in rds_ib_alloc_frmr()
60 frmr->mr = ib_alloc_mr(rds_ibdev->pd, IB_MR_TYPE_MEM_REG, in rds_ib_alloc_frmr()
150 static int rds_ib_map_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_map_frmr() argument
155 struct ib_device *dev = rds_ibdev->dev; in rds_ib_map_frmr()
223 ib_dma_unmap_sg(rds_ibdev->dev, ibmr->sg, ibmr->sg_len, in rds_ib_map_frmr()
334 struct rds_ib_mr *rds_ib_reg_frmr(struct rds_ib_device *rds_ibdev, in rds_ib_reg_frmr() argument
351 ibmr = rds_ib_alloc_frmr(rds_ibdev, nents); in rds_ib_reg_frmr()
358 ibmr->device = rds_ibdev; in rds_ib_reg_frmr()
359 ret = rds_ib_map_frmr(rds_ibdev, ibmr->pool, ibmr, sg, nents); in rds_ib_reg_frmr()