Home
last modified time | relevance | path

Searched refs:mtt_buddy (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_mr.c237 return __mthca_alloc_mtt(dev, size, &dev->mr_table.mtt_buddy); in mthca_alloc_mtt()
301 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt_size()
364 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt()
847 err = mthca_buddy_init(&dev->mr_table.mtt_buddy, in mthca_init_mr_table()
900 err = mthca_buddy_init(&dev->mr_table.tavor_fmr.mtt_buddy, fls(mtts - 1)); in mthca_init_mr_table()
905 err = mthca_buddy_alloc(&dev->mr_table.mtt_buddy, fls(mtts - 1)); in mthca_init_mr_table()
910 &dev->mr_table.tavor_fmr.mtt_buddy; in mthca_init_mr_table()
912 dev->mr_table.fmr_mtt_buddy = &dev->mr_table.mtt_buddy; in mthca_init_mr_table()
932 mthca_buddy_cleanup(&dev->mr_table.tavor_fmr.mtt_buddy); in mthca_init_mr_table()
943 mthca_buddy_cleanup(&dev->mr_table.mtt_buddy); in mthca_init_mr_table()
[all …]
Dmthca_dev.h213 struct mthca_buddy mtt_buddy; member
222 struct mthca_buddy mtt_buddy; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dmr.c159 seg = mlx4_buddy_alloc(&mr_table->mtt_buddy, seg_order); in __mlx4_alloc_mtt_range()
167 mlx4_buddy_free(&mr_table->mtt_buddy, seg, seg_order); in __mlx4_alloc_mtt_range()
226 mlx4_buddy_free(&mr_table->mtt_buddy, first_seg, seg_order); in __mlx4_free_mtt_range()
925 err = mlx4_buddy_init(&mr_table->mtt_buddy, in mlx4_init_mr_table()
937 mr_table->mtt_buddy.max_order); in mlx4_init_mr_table()
946 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_init_mr_table()
964 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_cleanup_mr_table()
Dmlx4.h672 struct mlx4_buddy mtt_buddy; member
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_mr.c188 buddy = &mr_table->mtt_buddy; in hns_roce_alloc_mtt_range()
246 hns_roce_buddy_free(&mr_table->mtt_buddy, mtt->first_seg, in hns_roce_mtt_cleanup()
818 ret = hns_roce_buddy_init(&mr_table->mtt_buddy, in hns_roce_init_mr_table()
832 hns_roce_buddy_cleanup(&mr_table->mtt_buddy); in hns_roce_init_mr_table()
843 hns_roce_buddy_cleanup(&mr_table->mtt_buddy); in hns_roce_cleanup_mr_table()
Dhns_roce_device.h328 struct hns_roce_buddy mtt_buddy; member