Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dodp.c432 mr->ibmr.lkey = mr->mmkey.key; in implicit_get_child_mr()
799 if (!mmkey) in mkey_is_eq()
804 return mmkey->key == key; in mkey_is_eq()
826 struct mlx5_ib_mkey *mmkey; in pagefault_single_data_segment() local
838 if (!mmkey) { in pagefault_single_data_segment()
863 switch (mmkey->type) { in pagefault_single_data_segment()
865 mr = container_of(mmkey, struct mlx5_ib_mr, mmkey); in pagefault_single_data_segment()
954 if (mmkey) in pagefault_single_data_segment()
1674 struct mlx5_ib_mkey *mmkey; in get_prefetchable_mr() local
1678 if (!mmkey || mmkey->key != lkey) { in get_prefetchable_mr()
[all …]
H A Dmr.c785 mr->mmkey.cache_ent = ent; in _mlx5_mr_cache_alloc()
1621 if (!mr->mmkey.cache_ent) in can_use_umr_rereg_pas()
1837 if (mr->mmkey.cache_ent) { in cache_ent_find_and_store()
1863 mr->mmkey.cache_ent = ent; in cache_ent_find_and_store()
1940 if (!mr->mmkey.cache_ent) in mlx5_ib_dereg_mr()
2346 mr->mmkey.ndescs = 1; in mlx5_ib_map_pa_mr_sg_pi()
2399 mr->mmkey.ndescs = i; in mlx5_ib_sg_to_klms()
2466 pi_mr->mmkey.ndescs = 0; in mlx5_ib_map_mtt_mr_sg_pi()
2531 pi_mr->mmkey.ndescs = 0; in mlx5_ib_map_klm_mr_sg_pi()
2566 mr->mmkey.ndescs = 0; in mlx5_ib_map_mr_sg_pi()
[all …]
H A Dmlx5_ib.h682 struct mlx5_ib_mkey mmkey; member
740 struct mlx5_ib_mkey mmkey; member
1591 struct mlx5_ib_mkey *mmkey) in mlx5r_store_odp_mkey() argument
1593 refcount_set(&mmkey->usecount, 1); in mlx5r_store_odp_mkey()
1595 return xa_err(xa_store(&dev->odp_mkeys, mlx5_base_mkey(mmkey->key), in mlx5r_store_odp_mkey()
1596 mmkey, GFP_KERNEL)); in mlx5r_store_odp_mkey()
1600 static inline void mlx5r_deref_odp_mkey(struct mlx5_ib_mkey *mmkey) in mlx5r_deref_odp_mkey() argument
1602 if (refcount_dec_and_test(&mmkey->usecount)) in mlx5r_deref_odp_mkey()
1603 wake_up(&mmkey->wait); in mlx5r_deref_odp_mkey()
1609 mlx5r_deref_odp_mkey(mmkey); in mlx5r_deref_wait_odp_mkey()
[all …]
H A 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()
H A Drestrack.c120 mlx5_mkey_to_idx(mr->mmkey.key)); in fill_res_mr_entry_raw()
H A 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()