Home
last modified time | relevance | path

Searched refs:mmkey (Results 1 – 4 of 4) sorted by relevance

/drivers/infiniband/hw/mlx5/
Dmr.c57 int err = mlx5_core_destroy_mkey(dev->mdev, &mr->mmkey); in destroy_mkey()
134 mr->mmkey.type = MLX5_MKEY_MR; in reg_mr_callback()
138 mr->mmkey.key = mlx5_idx_to_mkey(MLX5_GET(create_mkey_out, mr->out, mkey_index)) | key; in reg_mr_callback()
149 err = radix_tree_insert(&table->tree, mlx5_base_mkey(mr->mmkey.key), in reg_mr_callback()
150 &mr->mmkey); in reg_mr_callback()
201 err = mlx5_core_create_mkey_cb(dev->mdev, &mr->mmkey, in add_keys()
794 err = mlx5_core_create_mkey(mdev, &mr->mmkey, in, inlen); in mlx5_ib_get_dma_mr()
799 mr->mmkey.type = MLX5_MKEY_MR; in mlx5_ib_get_dma_mr()
800 mr->ibmr.lkey = mr->mmkey.key; in mlx5_ib_get_dma_mr()
801 mr->ibmr.rkey = mr->mmkey.key; in mlx5_ib_get_dma_mr()
[all …]
Dodp.c325 mr->mmkey.iova = 0; in implicit_mr_alloc()
348 mr->ibmr.lkey = mr->mmkey.key; in implicit_mr_alloc()
349 mr->ibmr.rkey = mr->mmkey.key; in implicit_mr_alloc()
354 mr->mmkey.key, dev->mdev, mr); in implicit_mr_alloc()
403 mtt->mmkey.iova = addr; in implicit_mr_get_data()
523 start_idx = (io_virt - (mr->mmkey.iova & page_mask)) >> page_shift; in pagefault_mr()
636 struct mlx5_core_mkey *mmkey; in pagefault_single_data_segment() local
649 mmkey = __mlx5_mr_lookup(dev->mdev, mlx5_base_mkey(key)); in pagefault_single_data_segment()
650 if (!mmkey || mmkey->key != key) { in pagefault_single_data_segment()
656 switch (mmkey->type) { in pagefault_single_data_segment()
[all …]
Dmlx5_ib.h511 struct mlx5_core_mkey mmkey; member
532 struct mlx5_core_mkey mmkey; member
770 static inline struct mlx5_ib_mr *to_mibmr(struct mlx5_core_mkey *mmkey) in to_mibmr() argument
772 return container_of(mmkey, struct mlx5_ib_mr, mmkey); in to_mibmr()
Dcq.c527 struct mlx5_core_mkey *mmkey; in mlx5_poll_one() local
627 mmkey = __mlx5_mr_lookup(dev->mdev, in mlx5_poll_one()
629 mr = to_mibmr(mmkey); in mlx5_poll_one()