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