Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
60 mlx5_core_dbg(dev, "out 0x%x, mkey 0x%x\n", mkey_index, mkey->key); in mlx5_core_create_mkey()
66 struct mlx5_core_mkey *mkey) in mlx5_core_destroy_mkey() argument
71 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_core_destroy_mkey()
76 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mkey, in mlx5_core_query_mkey() argument
83 MLX5_SET(query_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_core_query_mkey()
Den_common.c74 struct mlx5_core_mkey *mkey) in mlx5e_create_mkey() argument
94 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey()
117 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources()
135 mlx5_core_destroy_mkey(mdev, &res->mkey); in mlx5e_create_mdev_resources()
148 mlx5_core_destroy_mkey(mdev, &res->mkey); in mlx5e_destroy_mdev_resources()
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
Dencrypted.c413 struct key *mkey = ERR_PTR(-EINVAL); in request_master_key() local
417 mkey = request_trusted_key(epayload->master_desc + in request_master_key()
422 mkey = request_user_key(epayload->master_desc + in request_master_key()
428 if (IS_ERR(mkey)) { in request_master_key()
429 int ret = PTR_ERR(mkey); in request_master_key()
442 return mkey; in request_master_key()
658 struct key *mkey; in encrypted_key_decrypt() local
688 mkey = request_master_key(epayload, &master_key, &master_keylen); in encrypted_key_decrypt()
689 if (IS_ERR(mkey)) in encrypted_key_decrypt()
690 return PTR_ERR(mkey); in encrypted_key_decrypt()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/
Drsc_dump.c33 struct mlx5_core_mkey mkey; member
92 MLX5_SET(resource_dump, cmd->cmd, mkey, rsc_dump->mkey.key); in mlx5_rsc_dump_trigger()
205 struct mlx5_core_mkey *mkey) in mlx5_rsc_dump_create_mkey() argument
225 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5_rsc_dump_create_mkey()
266 err = mlx5_rsc_dump_create_mkey(dev, rsc_dump->pdn, &rsc_dump->mkey); in mlx5_rsc_dump_init()
279 mlx5_core_destroy_mkey(dev, &rsc_dump->mkey); in mlx5_rsc_dump_init()
290 mlx5_core_destroy_mkey(dev, &dev->rsc_dump->mkey); in mlx5_rsc_dump_cleanup()
Dfw_tracer.h92 struct mlx5_core_mkey mkey; member
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/core/
Dmr.c111 static u64 indir_start_addr(struct mlx5_vdpa_mr *mkey) in indir_start_addr() argument
115 s = list_first_entry_or_null(&mkey->head, struct mlx5_vdpa_direct_mr, list); in indir_start_addr()
122 static u64 indir_len(struct mlx5_vdpa_mr *mkey) in indir_len() argument
127 s = list_first_entry_or_null(&mkey->head, struct mlx5_vdpa_direct_mr, list); in indir_len()
131 e = list_last_entry(&mkey->head, struct mlx5_vdpa_direct_mr, list); in indir_len()
144 static void fill_indir(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mkey, void *in) in fill_indir() argument
155 list_for_each_entry(dmr, &mkey->head, list) { in fill_indir()
212 err = mlx5_vdpa_create_mkey(mvdev, &mr->mkey, in, inlen); in create_indirect_key()
217 static void destroy_indirect_key(struct mlx5_vdpa_dev *mvdev, struct mlx5_vdpa_mr *mkey) in destroy_indirect_key() argument
219 mlx5_vdpa_destroy_mkey(mvdev, &mkey->mkey); in destroy_indirect_key()
Dresources.c184 int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in, in mlx5_vdpa_create_mkey() argument
201 mkey->iova = MLX5_GET64(mkc, mkc, start_addr); in mlx5_vdpa_create_mkey()
202 mkey->size = MLX5_GET64(mkc, mkc, len); in mlx5_vdpa_create_mkey()
203 mkey->key |= mlx5_idx_to_mkey(mkey_index); in mlx5_vdpa_create_mkey()
204 mkey->pd = MLX5_GET(mkc, mkc, pd); in mlx5_vdpa_create_mkey()
208 int mlx5_vdpa_destroy_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey) in mlx5_vdpa_destroy_mkey() argument
214 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
76 int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in,
78 int mlx5_vdpa_destroy_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey);
/kernel/linux/linux-5.10/include/trace/events/
Dib_mad.h304 __field(u64, mkey)
316 __entry->mkey = smp->mkey;
329 be64_to_cpu(__entry->mkey), be32_to_cpu(__entry->dr_slid),
349 __field(u64, mkey)
361 __entry->mkey = smp->mkey;
374 be64_to_cpu(__entry->mkey), be16_to_cpu(__entry->dr_slid),
/kernel/linux/linux-5.10/net/mac802154/
Dllsec.c64 struct mac802154_llsec_key *mkey; in mac802154_llsec_destroy() local
66 mkey = container_of(key->key, struct mac802154_llsec_key, key); in mac802154_llsec_destroy()
68 llsec_key_put(mkey); in mac802154_llsec_destroy()
216 struct mac802154_llsec_key *mkey = NULL; in mac802154_llsec_key_add() local
231 mkey = container_of(pos->key, struct mac802154_llsec_key, key); in mac802154_llsec_key_add()
248 if (!mkey) in mac802154_llsec_key_add()
249 mkey = llsec_key_alloc(key); in mac802154_llsec_key_add()
251 mkey = llsec_key_get(mkey); in mac802154_llsec_key_add()
253 if (!mkey) in mac802154_llsec_key_add()
257 new->key = &mkey->key; in mac802154_llsec_key_add()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c62 struct mlx5_core_mkey mkey; member
72 struct mlx5_core_mkey *mkey) in dr_icm_create_dm_mkey() argument
94 return mlx5_core_create_mkey(mdev, mkey, in, inlen); in dr_icm_create_dm_mkey()
139 &icm_mr->mkey); in dr_icm_pool_mr_create()
158 mlx5_core_destroy_mkey(mdev, &icm_mr->mkey); in dr_icm_pool_mr_create()
173 mlx5_core_destroy_mkey(mdev, &icm_mr->mkey); in dr_icm_pool_mr_destroy()
244 chunk->rkey = icm_mr->mkey.key; in dr_icm_chunks_create()
Ddr_send.c345 send_info->read.lkey = send_ring->mr->mkey.key; in dr_fill_data_segs()
375 send_info->write.lkey = send_ring->mr->mkey.key; in dr_postsend_icm_data()
802 dr_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, struct mlx5_core_mkey *mkey) in dr_create_mkey() argument
819 return mlx5_core_create_mkey(mdev, mkey, in, sizeof(in)); in dr_create_mkey()
843 err = dr_create_mkey(mdev, pdn, &mr->mkey); in dr_reg_mr()
861 mlx5_core_destroy_mkey(mdev, &mr->mkey); in dr_dereg_mr()
987 send_info.rkey = send_ring->sync_mr->mkey.key; in mlx5dr_send_ring_force_drain()
/kernel/linux/linux-5.10/include/rdma/
Dib_smi.h30 __be64 mkey; member
60 __be64 mkey; member
Dopa_smi.h34 __be64 mkey; member
/kernel/linux/linux-5.10/net/sched/
Dcls_flower.c113 struct fl_flow_key mkey; member
173 static void fl_set_masked_key(struct fl_flow_key *mkey, struct fl_flow_key *key, in fl_set_masked_key() argument
178 long *lmkey = fl_key_get_start(mkey, mask); in fl_set_masked_key()
210 struct fl_flow_key *mkey) in fl_range_port_dst_cmp() argument
225 mkey->tp_range.tp_min.dst = filter->mkey.tp_range.tp_min.dst; in fl_range_port_dst_cmp()
226 mkey->tp_range.tp_max.dst = filter->mkey.tp_range.tp_max.dst; in fl_range_port_dst_cmp()
233 struct fl_flow_key *mkey) in fl_range_port_src_cmp() argument
248 mkey->tp_range.tp_min.src = filter->mkey.tp_range.tp_min.src; in fl_range_port_src_cmp()
249 mkey->tp_range.tp_max.src = filter->mkey.tp_range.tp_max.src; in fl_range_port_src_cmp()
255 struct fl_flow_key *mkey) in __fl_lookup() argument
[all …]
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddriver.h622 struct mlx5_core_mkey mkey; member
962 struct mlx5_core_mkey *mkey,
965 struct mlx5_core_mkey *mkey);
966 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mkey *mkey,
1034 static inline u32 mlx5_mkey_to_idx(u32 mkey) in mlx5_mkey_to_idx() argument
1036 return mkey >> 8; in mlx5_mkey_to_idx()
1044 static inline u8 mlx5_mkey_variant(u32 mkey) in mlx5_mkey_variant() argument
1046 return mkey & 0xff; in mlx5_mkey_variant()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcore.h57 struct mlx5_core_mkey mkey; member
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()
975 &fdev->conn_res.mkey); in mlx5_fpga_conn_device_init()
980 mlx5_fpga_dbg(fdev, "Created mkey 0x%x\n", fdev->conn_res.mkey.key); in mlx5_fpga_conn_device_init()
996 mlx5_core_destroy_mkey(fdev->mdev, &fdev->conn_res.mkey); in mlx5_fpga_conn_device_cleanup()
/kernel/linux/linux-5.10/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.c77 assign_mkey_variant(struct mlx5_ib_dev *dev, struct mlx5_core_mkey *mkey, in assign_mkey_variant() argument
85 mkey->key = key; in assign_mkey_variant()
89 mlx5_ib_create_mkey(struct mlx5_ib_dev *dev, struct mlx5_core_mkey *mkey, in mlx5_ib_create_mkey() argument
92 assign_mkey_variant(dev, mkey, in); in mlx5_ib_create_mkey()
93 return mlx5_core_create_mkey(dev->mdev, mkey, in, inlen); in mlx5_ib_create_mkey()
98 struct mlx5_core_mkey *mkey, in mlx5_ib_create_mkey_cb() argument
104 assign_mkey_variant(dev, mkey, in); in mlx5_ib_create_mkey_cb()
1103 wr.mkey = mr->mmkey.key; in mlx5_ib_update_xlt()
1484 umrwr.mkey = mr->mmkey.key; in mlx5_mr_cache_invalidate()
1500 umrwr.mkey = mr->mmkey.key; in rereg_umr()
Ddevx.c1206 struct mlx5_core_mkey *mkey; in devx_handle_mkey_indirect() local
1210 mkey = &devx_mr->mmkey; in devx_handle_mkey_indirect()
1213 mkey->key = mlx5_idx_to_mkey( in devx_handle_mkey_indirect()
1215 mkey->type = MLX5_MKEY_INDIRECT_DEVX; in devx_handle_mkey_indirect()
1216 mkey->iova = MLX5_GET64(mkc, mkc, start_addr); in devx_handle_mkey_indirect()
1217 mkey->size = MLX5_GET64(mkc, mkc, len); in devx_handle_mkey_indirect()
1218 mkey->pd = MLX5_GET(mkc, mkc, pd); in devx_handle_mkey_indirect()
1221 return xa_err(xa_store(&dev->odp_mkeys, mlx5_base_mkey(mkey->key), mkey, in devx_handle_mkey_indirect()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_active.h155 struct lock_class_key *mkey,
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dmad.c481 __be64 mkey, __be32 dr_slid, u8 return_path[], u8 hop_cnt) in bad_mkey() argument
496 trap->data.ntc_256.mkey = mkey; in bad_mkey()
693 int mad_flags, __be64 mkey, __be32 dr_slid, in check_mkey() argument
707 if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || in check_mkey()
708 ibp->rvp.mkey == mkey) in check_mkey()
734 bad_mkey(ibp, mad, mkey, dr_slid, return_path, in check_mkey()
834 ibp->rvp.mkey != smp->mkey && in __subn_get_opa_portinfo()
836 pi->mkey = ibp->rvp.mkey; in __subn_get_opa_portinfo()
1407 ibp->rvp.mkey = pi->mkey; in __subn_set_opa_portinfo()
4534 ret = check_mkey(ibp, (struct ib_mad_hdr *)smp, mad_flags, smp->mkey, in process_subn_opa()
[all …]

12