Lines Matching refs:key_to_hw_index
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()
844 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_enable()
858 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable()
867 key_to_hw_index(mw->key) & in mlx4_mw_enable()
883 mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_enable()
894 key_to_hw_index(mw->key) & in mlx4_mw_free()
902 mlx4_mpt_free_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_free()
903 mlx4_mpt_release(dev, key_to_hw_index(mw->key)); in mlx4_mw_free()