Lines Matching refs:mpt_entry
433 struct mthca_mpt_entry *mpt_entry; in mthca_mr_alloc() local
457 mpt_entry = mailbox->buf; in mthca_mr_alloc()
459 mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS | in mthca_mr_alloc()
464 mpt_entry->flags |= cpu_to_be32(MTHCA_MPT_FLAG_PHYSICAL); in mthca_mr_alloc()
466 mpt_entry->page_size = cpu_to_be32(buffer_size_shift - 12); in mthca_mr_alloc()
467 mpt_entry->key = cpu_to_be32(key); in mthca_mr_alloc()
468 mpt_entry->pd = cpu_to_be32(pd); in mthca_mr_alloc()
469 mpt_entry->start = cpu_to_be64(iova); in mthca_mr_alloc()
470 mpt_entry->length = cpu_to_be64(total_size); 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()
476 mpt_entry->mtt_seg = in mthca_mr_alloc()
485 printk(" %08x", be32_to_cpu(((__be32 *) mpt_entry)[i])); in mthca_mr_alloc()
570 struct mthca_mpt_entry *mpt_entry; in mthca_fmr_alloc() local
629 mpt_entry = mailbox->buf; in mthca_fmr_alloc()
631 mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS | in mthca_fmr_alloc()
636 mpt_entry->page_size = cpu_to_be32(mr->attr.page_shift - 12); in mthca_fmr_alloc()
637 mpt_entry->key = cpu_to_be32(key); in mthca_fmr_alloc()
638 mpt_entry->pd = cpu_to_be32(pd); in mthca_fmr_alloc()
639 memset(&mpt_entry->start, 0, in mthca_fmr_alloc()
640 sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, start)); in mthca_fmr_alloc()
641 mpt_entry->mtt_seg = cpu_to_be64(dev->mr_table.mtt_base + mtt_seg); in mthca_fmr_alloc()
648 printk(" %08x", be32_to_cpu(((__be32 *) mpt_entry)[i])); in mthca_fmr_alloc()
721 struct mthca_mpt_entry mpt_entry; in mthca_tavor_map_phys_fmr() local
743 mpt_entry.lkey = cpu_to_be32(key); in mthca_tavor_map_phys_fmr()
744 mpt_entry.length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); in mthca_tavor_map_phys_fmr()
745 mpt_entry.start = cpu_to_be64(iova); 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()
748 memcpy_toio(&fmr->mem.tavor.mpt->start, &mpt_entry.start, in mthca_tavor_map_phys_fmr()