Lines Matching refs:mentry
2101 struct mlx5_user_mmap_entry *mentry = to_mmmap(entry); in mlx5_ib_mmap_free() local
2106 switch (mentry->mmap_flag) { in mlx5_ib_mmap_free()
2109 mlx5_ib_dm_mmap_free(dev, mentry); in mlx5_ib_mmap_free()
2113 clear_bit(mentry->page_idx, var_table->bitmap); in mlx5_ib_mmap_free()
2115 kfree(mentry); in mlx5_ib_mmap_free()
2119 mlx5_cmd_uar_dealloc(dev->mdev, mentry->page_idx, in mlx5_ib_mmap_free()
2121 kfree(mentry); in mlx5_ib_mmap_free()
2251 struct mlx5_user_mmap_entry *mentry; in mlx5_ib_mmap_offset() local
2263 mentry = to_mmmap(entry); in mlx5_ib_mmap_offset()
2264 pfn = (mentry->address >> PAGE_SHIFT); in mlx5_ib_mmap_offset()
2265 if (mentry->mmap_flag == MLX5_IB_MMAP_TYPE_VAR || in mlx5_ib_mmap_offset()
2266 mentry->mmap_flag == MLX5_IB_MMAP_TYPE_UAR_NC) in mlx5_ib_mmap_offset()
2274 rdma_user_mmap_entry_put(&mentry->rdma_entry); in mlx5_ib_mmap_offset()