• Home
  • Raw
  • Download

Lines Matching refs:mr_table

161 	struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table;  in __mlx4_alloc_mtt_range()  local
168 seg = mlx4_buddy_alloc(&mr_table->mtt_buddy, seg_order); in __mlx4_alloc_mtt_range()
174 if (mlx4_table_get_range(dev, &mr_table->mtt_table, offset, in __mlx4_alloc_mtt_range()
176 mlx4_buddy_free(&mr_table->mtt_buddy, seg, seg_order); in __mlx4_alloc_mtt_range()
230 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_free_mtt_range() local
235 mlx4_buddy_free(&mr_table->mtt_buddy, first_seg, seg_order); in __mlx4_free_mtt_range()
236 mlx4_table_put_range(dev, &mr_table->mtt_table, offset, in __mlx4_free_mtt_range()
323 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_mr_hw_get_mpt()
451 return mlx4_bitmap_alloc(&priv->mr_table.mpt_bitmap); in __mlx4_mpt_reserve()
472 mlx4_bitmap_free(&priv->mr_table.mpt_bitmap, index, MLX4_NO_RR); in __mlx4_mpt_release()
493 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_mpt_alloc_icm() local
495 return mlx4_table_get(dev, &mr_table->dmpt_table, index, gfp); in __mlx4_mpt_alloc_icm()
514 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_mpt_free_icm() local
516 mlx4_table_put(dev, &mr_table->dmpt_table, index); in __mlx4_mpt_free_icm()
711 mtts = mlx4_table_find(&priv->mr_table.mtt_table, mtt->offset + in mlx4_write_mtt_chunk()
922 struct mlx4_mr_table *mr_table = &priv->mr_table; in mlx4_init_mr_table() local
933 err = mlx4_bitmap_init(&mr_table->mpt_bitmap, dev->caps.num_mpts, in mlx4_init_mr_table()
938 err = mlx4_buddy_init(&mr_table->mtt_buddy, in mlx4_init_mr_table()
950 mr_table->mtt_buddy.max_order); in mlx4_init_mr_table()
959 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_init_mr_table()
962 mlx4_bitmap_cleanup(&mr_table->mpt_bitmap); in mlx4_init_mr_table()
970 struct mlx4_mr_table *mr_table = &priv->mr_table; in mlx4_cleanup_mr_table() local
977 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_cleanup_mr_table()
978 mlx4_bitmap_cleanup(&mr_table->mpt_bitmap); in mlx4_cleanup_mr_table()
1081 fmr->mtts = mlx4_table_find(&priv->mr_table.mtt_table, in mlx4_fmr_alloc()
1107 fmr->mpt = mlx4_table_find(&priv->mr_table.dmpt_table, in mlx4_fmr_enable()