Home
last modified time | relevance | path

Searched refs:key_to_hw_index (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dmr.c271 static u32 key_to_hw_index(u32 key) in key_to_hw_index() function
297 int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1); in mlx4_mr_hw_get_mpt()
360 int key = key_to_hw_index(mmr->key) & (dev->caps.num_mpts - 1); in mlx4_mr_hw_write_mpt()
552 key_to_hw_index(mr->key) & in mlx4_mr_free_reserved()
575 mlx4_mpt_free_icm(dev, key_to_hw_index(mr->key)); in mlx4_mr_free()
576 mlx4_mpt_release(dev, key_to_hw_index(mr->key)); in mlx4_mr_free()
633 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mr->key)); in mlx4_mr_enable()
647 mpt_entry->key = cpu_to_be32(key_to_hw_index(mr->key)); in mlx4_mr_enable()
672 key_to_hw_index(mr->key) & (dev->caps.num_mpts - 1)); in mlx4_mr_enable()
687 mlx4_mpt_free_icm(dev, key_to_hw_index(mr->key)); in mlx4_mr_enable()
[all …]
/linux-6.1.9/drivers/infiniband/hw/hns/
Dhns_roce_mr.c45 unsigned long key_to_hw_index(u32 key) in key_to_hw_index() function
82 unsigned long obj = key_to_hw_index(mr->key); in free_mr_key()
129 key_to_hw_index(mr->key) & in hns_roce_mr_free()
143 unsigned long mtpt_idx = key_to_hw_index(mr->key); in hns_roce_mr_enable()
283 mtpt_idx = key_to_hw_index(mr->key) & (hr_dev->caps.num_mtpts - 1); in hns_roce_rereg_user_mr()
466 key_to_hw_index(mw->rkey) & in hns_roce_mw_free()
472 key_to_hw_index(mw->rkey)); in hns_roce_mw_free()
476 (int)key_to_hw_index(mw->rkey)); in hns_roce_mw_free()
485 unsigned long mtpt_idx = key_to_hw_index(mw->rkey); in hns_roce_mw_enable()
Dhns_roce_device.h1160 unsigned long key_to_hw_index(u32 key);
Dhns_roce_hw_v2.c5922 key_to_hw_index(key)); in hns_roce_v2_query_mpt()
/linux-6.1.9/drivers/infiniband/hw/mthca/
Dmthca_mr.c411 static inline u32 key_to_hw_index(struct mthca_dev *dev, u32 key) in key_to_hw_index() function
545 key_to_hw_index(dev, lkey)); in mthca_free_region()
547 mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey)); in mthca_free_region()
555 key_to_hw_index(dev, mr->ibmr.lkey) & in mthca_free_mr()