Home
last modified time | relevance | path

Searched refs:mkey (Results 1 – 25 of 31) sorted by relevance

12

/drivers/net/ethernet/mellanox/mlx5/core/
Dmr.c39 struct mlx5_core_mkey *mkey, in mlx5_core_create_mkey() argument
55 mkey->iova = MLX5_GET64(mkc, mkc, start_addr); in mlx5_core_create_mkey()
56 mkey->size = MLX5_GET64(mkc, mkc, len); in mlx5_core_create_mkey()
57 mkey->key = (u32)mlx5_mkey_variant(mkey->key) | mlx5_idx_to_mkey(mkey_index); in mlx5_core_create_mkey()
58 mkey->pd = MLX5_GET(mkc, mkc, pd); in mlx5_core_create_mkey()
59 init_waitqueue_head(&mkey->wait); in mlx5_core_create_mkey()
61 mlx5_core_dbg(dev, "out 0x%x, mkey 0x%x\n", mkey_index, mkey->key); in mlx5_core_create_mkey()
67 struct mlx5_core_mkey *mkey) in mlx5_core_destroy_mkey() argument
72 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_core_destroy_mkey()
77 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mkey, in mlx5_core_query_mkey() argument
[all …]
Den_common.c50 struct mlx5_core_mkey *mkey) in mlx5e_create_mkey() argument
70 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey()
93 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources()
111 mlx5_core_destroy_mkey(mdev, &res->mkey); in mlx5e_create_mdev_resources()
124 mlx5_core_destroy_mkey(mdev, &res->mkey); in mlx5e_destroy_mdev_resources()
/drivers/net/ethernet/mellanox/mlx5/core/diag/
Drsc_dump.c33 struct mlx5_core_mkey mkey; member
110 MLX5_SET(resource_dump, cmd->cmd, mkey, rsc_dump->mkey.key); in mlx5_rsc_dump_trigger()
224 struct mlx5_core_mkey *mkey) in mlx5_rsc_dump_create_mkey() argument
244 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5_rsc_dump_create_mkey()
285 err = mlx5_rsc_dump_create_mkey(dev, rsc_dump->pdn, &rsc_dump->mkey); in mlx5_rsc_dump_init()
298 mlx5_core_destroy_mkey(dev, &rsc_dump->mkey); in mlx5_rsc_dump_init()
309 mlx5_core_destroy_mkey(dev, &dev->rsc_dump->mkey); in mlx5_rsc_dump_cleanup()
Dfw_tracer.h92 struct mlx5_core_mkey mkey; member
Dfw_tracer.c210 err = mlx5_core_create_mkey(dev, &tracer->buff.mkey, in, inlen); in mlx5_fw_tracer_create_mkey()
753 MLX5_SET(mtrc_conf, in, trace_mkey, tracer->buff.mkey.key); in mlx5_fw_tracer_set_mtrc_conf()
1036 mlx5_core_destroy_mkey(dev, &tracer->buff.mkey); in mlx5_fw_tracer_init()
1059 mlx5_core_destroy_mkey(tracer->dev, &tracer->buff.mkey); in mlx5_fw_tracer_cleanup()
/drivers/vdpa/mlx5/core/
Dmr.c112 static u64 indir_start_addr(struct mlx5_vdpa_mr *mkey) in indir_start_addr() argument
116 s = list_first_entry_or_null(&mkey->head, struct mlx5_vdpa_direct_mr, list); in indir_start_addr()
123 static u64 indir_len(struct mlx5_vdpa_mr *mkey) in indir_len() argument
128 s = list_first_entry_or_null(&mkey->head, struct mlx5_vdpa_direct_mr, list); in indir_len()
132 e = list_last_entry(&mkey->head, struct mlx5_vdpa_direct_mr, list); in indir_len()
145 static void fill_indir(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mkey, void *in) in fill_indir() argument
156 list_for_each_entry(dmr, &mkey->head, list) { in fill_indir()
213 err = mlx5_vdpa_create_mkey(mvdev, &mr->mkey, in, inlen); in create_indirect_key()
218 static void destroy_indirect_key(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mkey) in destroy_indirect_key() argument
220 mlx5_vdpa_destroy_mkey(mvdev, &mkey->mkey); in destroy_indirect_key()
[all …]
Dresources.c201 int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in, in mlx5_vdpa_create_mkey() argument
218 mkey->iova = MLX5_GET64(mkc, mkc, start_addr); in mlx5_vdpa_create_mkey()
219 mkey->size = MLX5_GET64(mkc, mkc, len); in mlx5_vdpa_create_mkey()
220 mkey->key |= mlx5_idx_to_mkey(mkey_index); in mlx5_vdpa_create_mkey()
221 mkey->pd = MLX5_GET(mkc, mkc, pd); in mlx5_vdpa_create_mkey()
225 int mlx5_vdpa_destroy_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey) in mlx5_vdpa_destroy_mkey() argument
231 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_vdpa_destroy_mkey()
Dmlx5_vdpa.h28 struct mlx5_core_mkey mkey; member
102 int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in,
104 int mlx5_vdpa_destroy_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey);
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c26 struct mlx5_core_mkey mkey; member
35 struct mlx5_core_mkey *mkey) in dr_icm_create_dm_mkey() argument
57 return mlx5_core_create_mkey(mdev, mkey, in, inlen); in dr_icm_create_dm_mkey()
101 &icm_mr->mkey); in dr_icm_pool_mr_create()
118 mlx5_core_destroy_mkey(mdev, &icm_mr->mkey); in dr_icm_pool_mr_create()
132 mlx5_core_destroy_mkey(mdev, &icm_mr->mkey); in dr_icm_pool_mr_destroy()
301 chunk->rkey = buddy_mem_pool->icm_mr->mkey.key; in dr_icm_chunk_create()
Ddr_send.c353 send_info->read.lkey = send_ring->mr->mkey.key; in dr_fill_data_segs()
391 send_info->write.lkey = send_ring->mr->mkey.key; in dr_postsend_icm_data()
852 dr_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, struct mlx5_core_mkey *mkey) in dr_create_mkey() argument
869 return mlx5_core_create_mkey(mdev, mkey, in, sizeof(in)); in dr_create_mkey()
893 err = dr_create_mkey(mdev, pdn, &mr->mkey); in dr_reg_mr()
911 mlx5_core_destroy_mkey(mdev, &mr->mkey); in dr_dereg_mr()
1042 send_info.rkey = send_ring->sync_mr->mkey.key; in mlx5dr_send_ring_force_drain()
/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dconn.c118 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); in mlx5_fpga_conn_post_recv()
158 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); in mlx5_fpga_conn_post_send()
224 struct mlx5_core_mkey *mkey) in mlx5_fpga_conn_create_mkey() argument
244 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5_fpga_conn_create_mkey()
976 &fdev->conn_res.mkey); in mlx5_fpga_conn_device_init()
981 mlx5_fpga_dbg(fdev, "Created mkey 0x%x\n", fdev->conn_res.mkey.key); in mlx5_fpga_conn_device_init()
997 mlx5_core_destroy_mkey(fdev->mdev, &fdev->conn_res.mkey); in mlx5_fpga_conn_device_cleanup()
Dcore.h57 struct mlx5_core_mkey mkey; member
/drivers/infiniband/hw/mlx5/
Dcmd.h40 int mlx5_cmd_dump_fill_mkey(struct mlx5_core_dev *dev, u32 *mkey);
Dcmd.c8 int mlx5_cmd_dump_fill_mkey(struct mlx5_core_dev *dev, u32 *mkey) in mlx5_cmd_dump_fill_mkey() argument
18 *mkey = MLX5_GET(query_special_contexts_out, out, in mlx5_cmd_dump_fill_mkey()
Dmr.c92 assign_mkey_variant(struct mlx5_ib_dev *dev, struct mlx5_core_mkey *mkey, in assign_mkey_variant() argument
100 mkey->key = key; in assign_mkey_variant()
104 mlx5_ib_create_mkey(struct mlx5_ib_dev *dev, struct mlx5_core_mkey *mkey, in mlx5_ib_create_mkey() argument
107 assign_mkey_variant(dev, mkey, in); in mlx5_ib_create_mkey()
108 return mlx5_core_create_mkey(dev->mdev, mkey, in, inlen); in mlx5_ib_create_mkey()
113 struct mlx5_core_mkey *mkey, in mlx5_ib_create_mkey_cb() argument
119 assign_mkey_variant(dev, mkey, in); in mlx5_ib_create_mkey_cb()
1094 wr->mkey = mr->mmkey.key; in mlx5_ib_create_xlt_wr()
1673 umrwr.mkey = mr->mmkey.key; in revoke_mr()
1706 .mkey = mr->mmkey.key, in umr_rereg_pd_access()
Ddevx.c1310 struct mlx5_core_mkey *mkey; in devx_handle_mkey_indirect() local
1314 mkey = &devx_mr->mmkey; in devx_handle_mkey_indirect()
1317 mkey->key = mlx5_idx_to_mkey( in devx_handle_mkey_indirect()
1319 mkey->type = MLX5_MKEY_INDIRECT_DEVX; in devx_handle_mkey_indirect()
1320 mkey->iova = MLX5_GET64(mkc, mkc, start_addr); in devx_handle_mkey_indirect()
1321 mkey->size = MLX5_GET64(mkc, mkc, len); in devx_handle_mkey_indirect()
1322 mkey->pd = MLX5_GET(mkc, mkc, pd); in devx_handle_mkey_indirect()
1324 init_waitqueue_head(&mkey->wait); in devx_handle_mkey_indirect()
1326 return mlx5r_store_odp_mkey(dev, mkey); in devx_handle_mkey_indirect()
Dcq.c385 item->key = be32_to_cpu(cqe->mkey); in get_sig_err_item()
551 mlx5_base_mkey(be32_to_cpu(sig_err_cqe->mkey))); in mlx5_poll_one()
Dwr.c435 MLX5_SET(mkc, seg, mkey_7_0, mlx5_mkey_variant(umrwr->mkey)); in set_reg_mkey_segment()
1263 (*ctrl)->imm = cpu_to_be32(umr_wr(wr)->mkey); in handle_qpt_reg_umr()
/drivers/infiniband/hw/qib/
Dqib_mad.c183 data.details.ntc_256.mkey = smp->mkey; in qib_bad_mkey()
419 if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || in check_mkey()
420 ibp->rvp.mkey == smp->mkey) in check_mkey()
494 ibp->rvp.mkey != smp->mkey && in subn_get_portinfo()
496 pip->mkey = ibp->rvp.mkey; in subn_get_portinfo()
690 ibp->rvp.mkey = pip->mkey; in subn_set_portinfo()
/drivers/infiniband/hw/hfi1/
Dmad.c439 __be64 mkey, __be32 dr_slid, u8 return_path[], u8 hop_cnt) in bad_mkey() argument
454 trap->data.ntc_256.mkey = mkey; in bad_mkey()
651 int mad_flags, __be64 mkey, __be32 dr_slid, in check_mkey() argument
665 if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || in check_mkey()
666 ibp->rvp.mkey == mkey) in check_mkey()
692 bad_mkey(ibp, mad, mkey, dr_slid, return_path, in check_mkey()
792 ibp->rvp.mkey != smp->mkey && in __subn_get_opa_portinfo()
794 pi->mkey = ibp->rvp.mkey; in __subn_get_opa_portinfo()
1365 ibp->rvp.mkey = pi->mkey; in __subn_set_opa_portinfo()
4492 ret = check_mkey(ibp, (struct ib_mad_hdr *)smp, mad_flags, smp->mkey, in process_subn_opa()
[all …]
Dmad.h93 __be64 mkey; member
Dhfi.h1754 u16 mkey = pkey & PKEY_LOW_15_MASK; in ingress_pkey_matches_entry() local
1757 if (mkey == ment) { in ingress_pkey_matches_entry()
/drivers/gpu/drm/i915/
Di915_active.h156 struct lock_class_key *mkey,
Di915_active.c342 struct lock_class_key *mkey, in __i915_active_init() argument
357 __mutex_init(&ref->mutex, "i915_active", mkey); in __i915_active_init()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtrap.c140 t->mkey_be = cpu_to_be32(priv->mdev->mlx5e_res.hw_objs.mkey.key); in mlx5e_open_trap()

12