Searched refs:key_to_hw_index (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/net/mlx4/ |
D | mr.c | 247 static u32 key_to_hw_index(u32 key) in key_to_hw_index() function 299 key_to_hw_index(mr->key) & in mlx4_mr_free() 306 mlx4_bitmap_free(&priv->mr_table.mpt_bitmap, key_to_hw_index(mr->key)); in mlx4_mr_free() 317 err = mlx4_table_get(dev, &mr_table->dmpt_table, key_to_hw_index(mr->key)); in mlx4_mr_enable() 334 mpt_entry->key = cpu_to_be32(key_to_hw_index(mr->key)); in mlx4_mr_enable() 359 key_to_hw_index(mr->key) & (dev->caps.num_mpts - 1)); in mlx4_mr_enable() 375 mlx4_table_put(dev, &mr_table->dmpt_table, key_to_hw_index(mr->key)); in mlx4_mr_enable() 544 key = key_to_hw_index(fmr->mr.key); in mlx4_map_phys_fmr() 631 key_to_hw_index(fmr->mr.key), NULL); in mlx4_fmr_enable()
|
/linux-2.6.39/drivers/infiniband/hw/mthca/ |
D | mthca_mr.c | 420 static inline u32 key_to_hw_index(struct mthca_dev *dev, u32 key) in key_to_hw_index() function 562 key_to_hw_index(dev, lkey)); in mthca_free_region() 564 mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey)); in mthca_free_region() 573 key_to_hw_index(dev, mr->ibmr.lkey) & in mthca_free_mr()
|