Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/infiniband/hw/mlx5/
Dodp.c198 mlx5r_deref_wait_odp_mkey(&mr->mmkey); in free_implicit_child_mr_work()
207 mlx5r_deref_odp_mkey(&imr->mmkey); in free_implicit_child_mr_work()
216 if (!refcount_inc_not_zero(&imr->mmkey.usecount)) in destroy_unused_implicit_child_mr()
432 mr->ibmr.lkey = mr->mmkey.key; in implicit_get_child_mr()
433 mr->ibmr.rkey = mr->mmkey.key; in implicit_get_child_mr()
442 refcount_set(&mr->mmkey.usecount, 2); in implicit_get_child_mr()
466 refcount_inc(&ret->mmkey.usecount); in implicit_get_child_mr()
471 mlx5_ib_dbg(mr_to_mdev(imr), "key %x mr %p\n", mr->mmkey.key, mr); in implicit_get_child_mr()
507 imr->ibmr.lkey = imr->mmkey.key; in mlx5_ib_alloc_implicit_mr()
508 imr->ibmr.rkey = imr->mmkey.key; in mlx5_ib_alloc_implicit_mr()
[all …]
Dmr.c128 WARN_ON(xa_load(&dev->odp_mkeys, mlx5_base_mkey(mr->mmkey.key))); in destroy_mkey()
130 return mlx5_core_destroy_mkey(dev->mdev, mr->mmkey.key); in destroy_mkey()
763 err = create_cache_mkey(ent, &mr->mmkey.key); in _mlx5_mr_cache_alloc()
772 mr->mmkey.key = pop_stored_mkey(ent); in _mlx5_mr_cache_alloc()
776 mr->mmkey.cache_ent = ent; in _mlx5_mr_cache_alloc()
777 mr->mmkey.type = MLX5_MKEY_MR; in _mlx5_mr_cache_alloc()
778 init_waitqueue_head(&mr->mmkey.wait); in _mlx5_mr_cache_alloc()
1088 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in mlx5_ib_get_dma_mr()
1093 mr->mmkey.type = MLX5_MKEY_MR; in mlx5_ib_get_dma_mr()
1094 mr->ibmr.lkey = mr->mmkey.key; in mlx5_ib_get_dma_mr()
[all …]
Dmlx5_ib.h669 struct mlx5_ib_mkey mmkey; member
727 struct mlx5_ib_mkey mmkey; member
1578 struct mlx5_ib_mkey *mmkey) in mlx5r_store_odp_mkey() argument
1580 refcount_set(&mmkey->usecount, 1); in mlx5r_store_odp_mkey()
1582 return xa_err(xa_store(&dev->odp_mkeys, mlx5_base_mkey(mmkey->key), in mlx5r_store_odp_mkey()
1583 mmkey, GFP_KERNEL)); in mlx5r_store_odp_mkey()
1587 static inline void mlx5r_deref_odp_mkey(struct mlx5_ib_mkey *mmkey) in mlx5r_deref_odp_mkey() argument
1589 if (refcount_dec_and_test(&mmkey->usecount)) in mlx5r_deref_odp_mkey()
1590 wake_up(&mmkey->wait); in mlx5r_deref_odp_mkey()
1594 static inline void mlx5r_deref_wait_odp_mkey(struct mlx5_ib_mkey *mmkey) in mlx5r_deref_wait_odp_mkey() argument
[all …]
Dumr.c374 mlx5_mkey_variant(mr->mmkey.key)); in mlx5r_umr_revoke_mr()
376 return mlx5r_umr_post_send_wait(dev, mr->mmkey.key, &wqe, false); in mlx5r_umr_revoke_mr()
413 mlx5_mkey_variant(mr->mmkey.key)); in mlx5r_umr_rereg_pd_access()
415 err = mlx5r_umr_post_send_wait(dev, mr->mmkey.key, &wqe, false); in mlx5r_umr_rereg_pd_access()
551 MLX5_SET(mkc, mkey_seg, mkey_7_0, mlx5_mkey_variant(mr->mmkey.key)); in mlx5r_umr_set_update_xlt_mkey_seg()
647 err = mlx5r_umr_post_send_wait(dev, mr->mmkey.key, &wqe, in mlx5r_umr_update_mr_pas()
675 err = mlx5r_umr_post_send_wait(dev, mr->mmkey.key, &wqe, true); in mlx5r_umr_update_mr_pas()
757 err = mlx5r_umr_post_send_wait(dev, mr->mmkey.key, &wqe, true); in mlx5r_umr_update_xlt()
Dwr.c164 int size = (mr->mmkey.ndescs + mr->meta_ndescs) * mr->desc_size; in set_reg_umr_seg()
193 int ndescs = ALIGN(mr->mmkey.ndescs + mr->meta_ndescs, 8) >> 1; in set_reg_mkey_seg()
221 int bcount = mr->desc_size * (mr->mmkey.ndescs + mr->meta_ndescs); in set_reg_data_seg()
643 int mr_list_size = (mr->mmkey.ndescs + mr->meta_ndescs) * mr->desc_size; in set_reg_wr()
890 pa_pi_mr.mmkey.ndescs = mr->mmkey.ndescs; in handle_reg_mr_integrity()
Drestrack.c120 mlx5_mkey_to_idx(mr->mmkey.key)); in fill_res_mr_entry_raw()