Searched refs:mr_table (Results 1 – 12 of 12) sorted by relevance
/drivers/infiniband/hw/mthca/ |
D | mthca_mr.c | 199 if (mthca_table_get_range(dev, dev->mr_table.mtt_table, seg, in mthca_alloc_mtt_range() 237 return __mthca_alloc_mtt(dev, size, &dev->mr_table.mtt_buddy); in mthca_alloc_mtt() 247 mthca_table_put_range(dev, dev->mr_table.mtt_table, in mthca_free_mtt() 268 mtt_entry[0] = cpu_to_be64(dev->mr_table.mtt_base + in __mthca_write_mtt() 301 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt_size() 322 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg() 343 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + in mthca_arbel_write_mtt_seg() 364 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt() 440 key = mthca_alloc(&dev->mr_table.mpt_alloc); in mthca_mr_alloc() 447 err = mthca_table_get(dev, dev->mr_table.mpt_table, key); in mthca_mr_alloc() [all …]
|
D | mthca_main.c | 422 mdev->mr_table.mtt_table = mthca_alloc_icm_table(mdev, init_hca->mtt_base, in mthca_init_icm() 427 if (!mdev->mr_table.mtt_table) { in mthca_init_icm() 433 mdev->mr_table.mpt_table = mthca_alloc_icm_table(mdev, init_hca->mpt_base, in mthca_init_icm() 438 if (!mdev->mr_table.mpt_table) { in mthca_init_icm() 540 mthca_free_icm_table(mdev, mdev->mr_table.mpt_table); in mthca_init_icm() 543 mthca_free_icm_table(mdev, mdev->mr_table.mtt_table); in mthca_init_icm() 567 mthca_free_icm_table(mdev, mdev->mr_table.mpt_table); in mthca_free_icms() 568 mthca_free_icm_table(mdev, mdev->mr_table.mtt_table); in mthca_free_icms()
|
D | mthca_profile.c | 227 dev->mr_table.mpt_base = profile[i].start; in mthca_make_profile() 233 dev->mr_table.mtt_base = profile[i].start; in mthca_make_profile()
|
D | mthca_dev.h | 341 struct mthca_mr_table mr_table; member
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 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() [all …]
|
D | profile.c | 226 priv->mr_table.mpt_base = profile[i].start; in mlx4_make_profile() 235 priv->mr_table.mtt_base = profile[i].start; in mlx4_make_profile()
|
D | main.c | 1208 err = mlx4_init_icm_table(dev, &priv->mr_table.mtt_table, in mlx4_init_icm() 1218 err = mlx4_init_icm_table(dev, &priv->mr_table.dmpt_table, in mlx4_init_icm() 1331 mlx4_cleanup_icm_table(dev, &priv->mr_table.dmpt_table); in mlx4_init_icm() 1334 mlx4_cleanup_icm_table(dev, &priv->mr_table.mtt_table); in mlx4_init_icm() 1365 mlx4_cleanup_icm_table(dev, &priv->mr_table.dmpt_table); in mlx4_free_icms() 1366 mlx4_cleanup_icm_table(dev, &priv->mr_table.mtt_table); in mlx4_free_icms()
|
D | mlx4.h | 832 struct mlx4_mr_table mr_table; member
|
D | resource_tracker.c | 2640 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_QUERY_MPT_wrapper()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | mr.c | 41 struct mlx5_mr_table *table = &dev->priv.mr_table; in mlx5_init_mr_table() 56 struct mlx5_mr_table *table = &dev->priv.mr_table; in mlx5_core_create_mkey() 109 struct mlx5_mr_table *table = &dev->priv.mr_table; in mlx5_core_destroy_mkey()
|
/drivers/infiniband/hw/mlx5/ |
D | cq.c | 517 read_lock(&dev->mdev->priv.mr_table.lock); in mlx5_poll_one() 521 read_unlock(&dev->mdev->priv.mr_table.lock); in mlx5_poll_one() 539 read_unlock(&dev->mdev->priv.mr_table.lock); in mlx5_poll_one()
|
D | mr.c | 76 struct mlx5_mr_table *table = &dev->mdev->priv.mr_table; in reg_mr_callback()
|