• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/mlx4/mlx4_core/

Lines Matching defs:mpt_entry

300 		       struct mlx4_mpt_entry ***mpt_entry)
319 **mpt_entry = mlx4_table_find(
334 *mpt_entry = (struct mlx4_mpt_entry **)&mailbox->buf;
337 if (!(*mpt_entry) || !(**mpt_entry)) {
351 struct mlx4_mpt_entry **mpt_entry)
359 *(u8 *)(*mpt_entry) = MLX4_MPT_STATUS_HW;
369 container_of((void *)mpt_entry, struct mlx4_cmd_mailbox,
376 mmr->pd = be32_to_cpu((*mpt_entry)->pd_flags) & MLX4_MPT_PD_MASK;
384 struct mlx4_mpt_entry **mpt_entry)
388 container_of((void *)mpt_entry, struct mlx4_cmd_mailbox,
395 int mlx4_mr_hw_change_pd(struct mlx4_dev *dev, struct mlx4_mpt_entry *mpt_entry,
398 u32 pd_flags = be32_to_cpu(mpt_entry->pd_flags) & ~MLX4_MPT_PD_MASK;
403 mpt_entry->pd_flags = cpu_to_be32(pd_flags |
411 struct mlx4_mpt_entry *mpt_entry,
414 u32 flags = (be32_to_cpu(mpt_entry->flags) & ~MLX4_PERM_MASK) |
417 mpt_entry->flags = cpu_to_be32(flags);
596 int page_shift, struct mlx4_mpt_entry *mpt_entry)
604 mpt_entry->start = cpu_to_be64(iova);
605 mpt_entry->length = cpu_to_be64(size);
606 mpt_entry->entity_size = cpu_to_be32(page_shift);
607 mpt_entry->flags &= ~(cpu_to_be32(MLX4_MPT_FLAG_FREE |
610 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_PHYSICAL);
611 mpt_entry->mtt_addr = 0;
613 mpt_entry->mtt_addr = cpu_to_be64(mlx4_mtt_addr(dev,
616 mpt_entry->mtt_sz = cpu_to_be32(1 << mr->mtt.order);
620 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE);
621 mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_FAST_REG |
624 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_SW_OWNS);
635 struct mlx4_mpt_entry *mpt_entry;
647 mpt_entry = mailbox->buf;
648 mpt_entry->flags = cpu_to_be32(MLX4_MPT_FLAG_MIO |
652 mpt_entry->key = cpu_to_be32(key_to_hw_index(mr->key));
653 mpt_entry->pd_flags = cpu_to_be32(mr->pd | MLX4_MPT_PD_FLAG_EN_INV);
654 mpt_entry->start = cpu_to_be64(mr->iova);
655 mpt_entry->length = cpu_to_be64(mr->size);
656 mpt_entry->entity_size = cpu_to_be32(mr->mtt.page_shift);
659 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_PHYSICAL);
660 mpt_entry->mtt_addr = 0;
662 mpt_entry->mtt_addr = cpu_to_be64(mlx4_mtt_addr(dev,
668 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE);
669 mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_FAST_REG |
671 mpt_entry->mtt_sz = cpu_to_be32(1 << mr->mtt.order);
673 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_SW_OWNS);
847 struct mlx4_mpt_entry *mpt_entry;
859 mpt_entry = mailbox->buf;
861 /* Note that the MLX4_MPT_FLAG_REGION bit in mpt_entry->flags is turned
864 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key));
865 mpt_entry->pd_flags = cpu_to_be32(mw->pd);
867 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE);
868 mpt_entry->qpn = cpu_to_be32(MLX4_MPT_QP_FLAG_BOUND_QP);
869 mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_EN_INV);