Searched refs:key_to_hw_index (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 271 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 …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 46 unsigned long key_to_hw_index(u32 key) in key_to_hw_index() function 106 unsigned long obj = key_to_hw_index(mr->key); in free_mr_key() 156 key_to_hw_index(mr->key) & in hns_roce_mr_free() 170 unsigned long mtpt_idx = key_to_hw_index(mr->key); in hns_roce_mr_enable() 349 mtpt_idx = key_to_hw_index(mr->key) & (hr_dev->caps.num_mtpts - 1); in hns_roce_rereg_user_mr() 530 key_to_hw_index(mw->rkey) & in hns_roce_mw_free() 536 key_to_hw_index(mw->rkey)); in hns_roce_mw_free() 540 key_to_hw_index(mw->rkey), BITMAP_NO_RR); in hns_roce_mw_free() 549 unsigned long mtpt_idx = key_to_hw_index(mw->rkey); in hns_roce_mw_enable()
|
D | hns_roce_device.h | 1218 unsigned long key_to_hw_index(u32 key);
|
D | hns_roce_hw_v1.c | 1151 key_to_hw_index(mr->key) & in hns_roce_v1_dereg_mr() 1191 key_to_hw_index(mr->key), 0); in hns_roce_v1_dereg_mr()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
D | mthca_mr.c | 413 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()
|