Home
last modified time | relevance | path

Searched refs:mkc (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_common.c39 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc) in mlx5e_mkey_set_relaxed_ordering() argument
45 MLX5_SET(mkc, mkc, relaxed_ordering_read, ro_pci_enable && ro_read); in mlx5e_mkey_set_relaxed_ordering()
46 MLX5_SET(mkc, mkc, relaxed_ordering_write, ro_pci_enable && ro_write); in mlx5e_mkey_set_relaxed_ordering()
52 void *mkc; in mlx5e_create_mkey() local
60 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5e_create_mkey()
61 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5e_create_mkey()
62 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_mkey()
63 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_mkey()
64 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_mkey()
65 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey()
[all …]
Den_main.c323 void *mkc; in mlx5e_create_umr_mkey() local
346 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5e_create_umr_mkey()
348 MLX5_SET(mkc, mkc, free, 1); in mlx5e_create_umr_mkey()
349 MLX5_SET(mkc, mkc, umr_en, 1); in mlx5e_create_umr_mkey()
350 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_umr_mkey()
351 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_umr_mkey()
352 MLX5_SET(mkc, mkc, access_mode_1_0, mlx5e_mpwrq_access_mode(umr_mode)); in mlx5e_create_umr_mkey()
353 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_umr_mkey()
354 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5e_create_umr_mkey()
355 MLX5_SET(mkc, mkc, pd, mdev->mlx5e_res.hw_objs.pdn); in mlx5e_create_umr_mkey()
[all …]
Den.h256 struct mlx5_mkey_seg mkc; member
1137 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc);
/linux-6.1.9/drivers/vdpa/mlx5/core/
Dmr.c29 static void mlx5_set_access_mode(void *mkc, int mode) in mlx5_set_access_mode() argument
31 MLX5_SET(mkc, mkc, access_mode_1_0, mode & 0x3); in mlx5_set_access_mode()
32 MLX5_SET(mkc, mkc, access_mode_4_2, mode >> 2); in mlx5_set_access_mode()
55 void *mkc; in create_direct_mr() local
65 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in create_direct_mr()
66 MLX5_SET(mkc, mkc, lw, !!(mr->perm & VHOST_MAP_WO)); in create_direct_mr()
67 MLX5_SET(mkc, mkc, lr, !!(mr->perm & VHOST_MAP_RO)); in create_direct_mr()
68 mlx5_set_access_mode(mkc, MLX5_MKC_ACCESS_MODE_MTT); in create_direct_mr()
69 MLX5_SET(mkc, mkc, qpn, 0xffffff); in create_direct_mr()
70 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in create_direct_mr()
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dmr.c59 static void set_mkc_access_pd_addr_fields(void *mkc, int acc, u64 start_addr, in set_mkc_access_pd_addr_fields() argument
64 MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); in set_mkc_access_pd_addr_fields()
65 MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); in set_mkc_access_pd_addr_fields()
66 MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); in set_mkc_access_pd_addr_fields()
67 MLX5_SET(mkc, mkc, lw, !!(acc & IB_ACCESS_LOCAL_WRITE)); in set_mkc_access_pd_addr_fields()
68 MLX5_SET(mkc, mkc, lr, 1); in set_mkc_access_pd_addr_fields()
73 MLX5_SET(mkc, mkc, relaxed_ordering_write, 1); in set_mkc_access_pd_addr_fields()
75 MLX5_SET(mkc, mkc, relaxed_ordering_read, 1); in set_mkc_access_pd_addr_fields()
78 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in set_mkc_access_pd_addr_fields()
79 MLX5_SET(mkc, mkc, qpn, 0xffffff); in set_mkc_access_pd_addr_fields()
[all …]
Dumr.c370 MLX5_SET(mkc, &wqe.mkey_seg, free, 1); in mlx5r_umr_revoke_mr()
371 MLX5_SET(mkc, &wqe.mkey_seg, pd, to_mpd(dev->umrc.pd)->pdn); in mlx5r_umr_revoke_mr()
372 MLX5_SET(mkc, &wqe.mkey_seg, qpn, 0xffffff); in mlx5r_umr_revoke_mr()
373 MLX5_SET(mkc, &wqe.mkey_seg, mkey_7_0, in mlx5r_umr_revoke_mr()
383 MLX5_SET(mkc, seg, a, !!(access_flags & IB_ACCESS_REMOTE_ATOMIC)); in mlx5r_umr_set_access_flags()
384 MLX5_SET(mkc, seg, rw, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); in mlx5r_umr_set_access_flags()
385 MLX5_SET(mkc, seg, rr, !!(access_flags & IB_ACCESS_REMOTE_READ)); in mlx5r_umr_set_access_flags()
386 MLX5_SET(mkc, seg, lw, !!(access_flags & IB_ACCESS_LOCAL_WRITE)); in mlx5r_umr_set_access_flags()
387 MLX5_SET(mkc, seg, lr, 1); in mlx5r_umr_set_access_flags()
388 MLX5_SET(mkc, seg, relaxed_ordering_write, in mlx5r_umr_set_access_flags()
[all …]
Ddevx.c1300 void *mkc; in devx_handle_mkey_indirect() local
1303 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in devx_handle_mkey_indirect()
1304 key = MLX5_GET(mkc, mkc, mkey_7_0); in devx_handle_mkey_indirect()
1308 mkey->ndescs = MLX5_GET(mkc, mkc, translations_octword_size); in devx_handle_mkey_indirect()
1321 void *mkc; in devx_handle_mkey_create() local
1327 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in devx_handle_mkey_create()
1329 access_mode = MLX5_GET(mkc, mkc, access_mode_1_0); in devx_handle_mkey_create()
1330 access_mode |= MLX5_GET(mkc, mkc, access_mode_4_2) << 2; in devx_handle_mkey_create()
Dodp.c709 page_size = mlx5_umem_find_best_pgsz(&umem_dmabuf->umem, mkc, in pagefault_dmabuf_mr()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c39 void *mkc; in dr_icm_create_dm_mkey() local
41 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in dr_icm_create_dm_mkey()
43 MLX5_SET(mkc, mkc, access_mode_1_0, mode); in dr_icm_create_dm_mkey()
44 MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); in dr_icm_create_dm_mkey()
45 MLX5_SET(mkc, mkc, lw, 1); in dr_icm_create_dm_mkey()
46 MLX5_SET(mkc, mkc, lr, 1); in dr_icm_create_dm_mkey()
48 MLX5_SET(mkc, mkc, rw, 1); in dr_icm_create_dm_mkey()
49 MLX5_SET(mkc, mkc, rr, 1); in dr_icm_create_dm_mkey()
52 MLX5_SET64(mkc, mkc, len, length); in dr_icm_create_dm_mkey()
53 MLX5_SET(mkc, mkc, pd, pd); in dr_icm_create_dm_mkey()
[all …]
Ddr_send.c856 void *mkc; in dr_create_mkey() local
858 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in dr_create_mkey()
859 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in dr_create_mkey()
860 MLX5_SET(mkc, mkc, a, 1); in dr_create_mkey()
861 MLX5_SET(mkc, mkc, rw, 1); in dr_create_mkey()
862 MLX5_SET(mkc, mkc, rr, 1); in dr_create_mkey()
863 MLX5_SET(mkc, mkc, lw, 1); in dr_create_mkey()
864 MLX5_SET(mkc, mkc, lr, 1); in dr_create_mkey()
866 MLX5_SET(mkc, mkc, pd, pdn); in dr_create_mkey()
867 MLX5_SET(mkc, mkc, length64, 1); in dr_create_mkey()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/diag/
Drsc_dump.c227 void *mkc; in mlx5_rsc_dump_create_mkey() local
235 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_rsc_dump_create_mkey()
236 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_rsc_dump_create_mkey()
237 MLX5_SET(mkc, mkc, lw, 1); in mlx5_rsc_dump_create_mkey()
238 MLX5_SET(mkc, mkc, lr, 1); in mlx5_rsc_dump_create_mkey()
240 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_rsc_dump_create_mkey()
241 MLX5_SET(mkc, mkc, length64, 1); in mlx5_rsc_dump_create_mkey()
242 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_rsc_dump_create_mkey()
Dfw_tracer.c181 void *mkc; in mlx5_fw_tracer_create_mkey() local
197 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_fw_tracer_create_mkey()
198 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in mlx5_fw_tracer_create_mkey()
199 MLX5_SET(mkc, mkc, lr, 1); in mlx5_fw_tracer_create_mkey()
200 MLX5_SET(mkc, mkc, lw, 1); in mlx5_fw_tracer_create_mkey()
201 MLX5_SET(mkc, mkc, pd, tracer->buff.pdn); in mlx5_fw_tracer_create_mkey()
202 MLX5_SET(mkc, mkc, bsf_octword_size, 0); in mlx5_fw_tracer_create_mkey()
203 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_fw_tracer_create_mkey()
204 MLX5_SET(mkc, mkc, log_page_size, PAGE_SHIFT); in mlx5_fw_tracer_create_mkey()
205 MLX5_SET(mkc, mkc, translations_octword_size, in mlx5_fw_tracer_create_mkey()
[all …]
/linux-6.1.9/drivers/vfio/pci/mlx5/
Dcmd.c221 void *mkc; in _create_mkey() local
247 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in _create_mkey()
248 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in _create_mkey()
249 MLX5_SET(mkc, mkc, lr, 1); in _create_mkey()
250 MLX5_SET(mkc, mkc, lw, 1); in _create_mkey()
251 MLX5_SET(mkc, mkc, rr, 1); in _create_mkey()
252 MLX5_SET(mkc, mkc, rw, 1); in _create_mkey()
253 MLX5_SET(mkc, mkc, pd, pdn); in _create_mkey()
254 MLX5_SET(mkc, mkc, bsf_octword_size, 0); in _create_mkey()
255 MLX5_SET(mkc, mkc, qpn, 0xffffff); in _create_mkey()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dconn.c227 void *mkc; in mlx5_fpga_conn_create_mkey() local
235 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_fpga_conn_create_mkey()
236 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_fpga_conn_create_mkey()
237 MLX5_SET(mkc, mkc, lw, 1); in mlx5_fpga_conn_create_mkey()
238 MLX5_SET(mkc, mkc, lr, 1); in mlx5_fpga_conn_create_mkey()
240 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_fpga_conn_create_mkey()
241 MLX5_SET(mkc, mkc, length64, 1); in mlx5_fpga_conn_create_mkey()
242 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_fpga_conn_create_mkey()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_utils.h39 struct mlx5_mkey_seg mkc; member