Home
last modified time | relevance | path

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

/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 …]
/drivers/infiniband/hw/hns/
Dhns_roce_mr.c47 unsigned long key_to_hw_index(u32 key) in key_to_hw_index() function
102 unsigned long obj = key_to_hw_index(mr->key); in free_mr_key()
150 key_to_hw_index(mr->key) & in hns_roce_mr_free()
164 unsigned long mtpt_idx = key_to_hw_index(mr->key); in hns_roce_mr_enable()
307 mtpt_idx = key_to_hw_index(mr->key) & (hr_dev->caps.num_mtpts - 1); in hns_roce_rereg_user_mr()
490 key_to_hw_index(mw->rkey) & in hns_roce_mw_free()
496 key_to_hw_index(mw->rkey)); in hns_roce_mw_free()
500 (int)key_to_hw_index(mw->rkey)); in hns_roce_mw_free()
509 unsigned long mtpt_idx = key_to_hw_index(mw->rkey); in hns_roce_mw_enable()
Dhns_roce_device.h1197 unsigned long key_to_hw_index(u32 key);
Dhns_roce_hw_v1.c1162 key_to_hw_index(mr->key) & in hns_roce_v1_dereg_mr()
1201 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)key_to_hw_index(mr->key)); in hns_roce_v1_dereg_mr()
/drivers/infiniband/hw/mthca/
Dmthca_mr.c413 static inline u32 key_to_hw_index(struct mthca_dev *dev, u32 key) in key_to_hw_index() function
548 key_to_hw_index(dev, lkey)); in mthca_free_region()
550 mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey)); in mthca_free_region()
558 key_to_hw_index(dev, mr->ibmr.lkey) & in mthca_free_mr()