Lines Matching defs:mpt_entry
436 struct mthca_mpt_entry *mpt_entry;
461 mpt_entry = mailbox->buf;
463 mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS |
468 mpt_entry->flags |= cpu_to_be32(MTHCA_MPT_FLAG_PHYSICAL);
470 mpt_entry->page_size = cpu_to_be32(buffer_size_shift - 12);
471 mpt_entry->key = cpu_to_be32(key);
472 mpt_entry->pd = cpu_to_be32(pd);
473 mpt_entry->start = cpu_to_be64(iova);
474 mpt_entry->length = cpu_to_be64(total_size);
476 memset(&mpt_entry->lkey, 0,
477 sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, lkey));
480 mpt_entry->mtt_seg =
489 printk(" %08x", be32_to_cpu(((__be32 *) mpt_entry)[i]));
585 struct mthca_mpt_entry *mpt_entry;
645 mpt_entry = mailbox->buf;
647 mpt_entry->flags = cpu_to_be32(MTHCA_MPT_FLAG_SW_OWNS |
652 mpt_entry->page_size = cpu_to_be32(mr->attr.page_shift - 12);
653 mpt_entry->key = cpu_to_be32(key);
654 mpt_entry->pd = cpu_to_be32(pd);
655 memset(&mpt_entry->start, 0,
656 sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, start));
657 mpt_entry->mtt_seg = cpu_to_be64(dev->mr_table.mtt_base + mtt_seg);
664 printk(" %08x", be32_to_cpu(((__be32 *) mpt_entry)[i]));
745 struct mthca_mpt_entry mpt_entry;
767 mpt_entry.lkey = cpu_to_be32(key);
768 mpt_entry.length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift));
769 mpt_entry.start = cpu_to_be64(iova);
771 __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key);
772 memcpy_toio(&fmr->mem.tavor.mpt->start, &mpt_entry.start,