Lines Matching refs:mr_table
184 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in mlx4_alloc_mtt_range() local
187 seg = mlx4_buddy_alloc(&mr_table->mtt_buddy, order); in mlx4_alloc_mtt_range()
191 if (mlx4_table_get_range(dev, &mr_table->mtt_table, seg, in mlx4_alloc_mtt_range()
193 mlx4_buddy_free(&mr_table->mtt_buddy, seg, order); in mlx4_alloc_mtt_range()
225 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in mlx4_mtt_cleanup() local
230 mlx4_buddy_free(&mr_table->mtt_buddy, mtt->first_seg, mtt->order); in mlx4_mtt_cleanup()
231 mlx4_table_put_range(dev, &mr_table->mtt_table, mtt->first_seg, in mlx4_mtt_cleanup()
273 index = mlx4_bitmap_alloc(&priv->mr_table.mpt_bitmap); in mlx4_mr_alloc()
286 mlx4_bitmap_free(&priv->mr_table.mpt_bitmap, index); in mlx4_mr_alloc()
306 mlx4_bitmap_free(&priv->mr_table.mpt_bitmap, key_to_hw_index(mr->key)); in mlx4_mr_free()
312 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in mlx4_mr_enable() local
317 err = mlx4_table_get(dev, &mr_table->dmpt_table, key_to_hw_index(mr->key)); in mlx4_mr_enable()
375 mlx4_table_put(dev, &mr_table->dmpt_table, key_to_hw_index(mr->key)); in mlx4_mr_enable()
397 mtts = mlx4_table_find(&priv->mr_table.mtt_table, mtt->first_seg + in mlx4_write_mtt_chunk()
464 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in mlx4_init_mr_table() local
467 err = mlx4_bitmap_init(&mr_table->mpt_bitmap, dev->caps.num_mpts, in mlx4_init_mr_table()
472 err = mlx4_buddy_init(&mr_table->mtt_buddy, in mlx4_init_mr_table()
480 mr_table->mtt_buddy.max_order); in mlx4_init_mr_table()
489 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_init_mr_table()
492 mlx4_bitmap_cleanup(&mr_table->mpt_bitmap); in mlx4_init_mr_table()
499 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in mlx4_cleanup_mr_table() local
501 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_cleanup_mr_table()
502 mlx4_bitmap_cleanup(&mr_table->mpt_bitmap); in mlx4_cleanup_mr_table()
605 fmr->mtts = mlx4_table_find(&priv->mr_table.mtt_table, in mlx4_fmr_alloc()
630 fmr->mpt = mlx4_table_find(&priv->mr_table.dmpt_table, in mlx4_fmr_enable()