Lines Matching refs:lkey
57 __be32 lkey; member
444 mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); in mthca_mr_alloc()
472 memset(&mpt_entry->lkey, 0, in mthca_mr_alloc()
473 sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, lkey)); in mthca_mr_alloc()
481 mthca_dbg(dev, "Dumping MPT entry %08x:\n", mr->ibmr.lkey); in mthca_mr_alloc()
545 static void mthca_free_region(struct mthca_dev *dev, u32 lkey) in mthca_free_region() argument
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()
563 mthca_free_region(dev, mr->ibmr.lkey); in mthca_free_mr()
594 mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); in mthca_fmr_alloc()
644 mthca_dbg(dev, "Dumping MPT entry %08x:\n", mr->ibmr.lkey); in mthca_fmr_alloc()
683 mthca_free_region(dev, fmr->ibmr.lkey); in mthca_free_fmr()
731 key = tavor_key_to_hw_index(fmr->ibmr.lkey); in mthca_tavor_map_phys_fmr()
733 fmr->ibmr.lkey = fmr->ibmr.rkey = tavor_hw_index_to_key(key); in mthca_tavor_map_phys_fmr()
743 mpt_entry.lkey = cpu_to_be32(key); in mthca_tavor_map_phys_fmr()
747 __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key); in mthca_tavor_map_phys_fmr()
771 key = arbel_key_to_hw_index(fmr->ibmr.lkey); in mthca_arbel_map_phys_fmr()
776 fmr->ibmr.lkey = fmr->ibmr.rkey = arbel_hw_index_to_key(key); in mthca_arbel_map_phys_fmr()
793 fmr->mem.arbel.mpt->lkey = cpu_to_be32(key); in mthca_arbel_map_phys_fmr()