/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_common.c | 40 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc) in mlx5e_mkey_set_relaxed_ordering() argument 47 MLX5_SET(mkc, mkc, relaxed_ordering_read, ro_read); in mlx5e_mkey_set_relaxed_ordering() 48 MLX5_SET(mkc, mkc, relaxed_ordering_write, ro_write); in mlx5e_mkey_set_relaxed_ordering() 54 void *mkc; in mlx5e_create_mkey() local 62 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5e_create_mkey() 63 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5e_create_mkey() 64 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_mkey() 65 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_mkey() 66 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_mkey() 67 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey() [all …]
|
D | en_main.c | 434 void *mkc; in mlx5e_create_umr_mkey() local 457 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5e_create_umr_mkey() 459 MLX5_SET(mkc, mkc, free, 1); in mlx5e_create_umr_mkey() 460 MLX5_SET(mkc, mkc, umr_en, 1); in mlx5e_create_umr_mkey() 461 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_umr_mkey() 462 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_umr_mkey() 463 MLX5_SET(mkc, mkc, access_mode_1_0, mlx5e_mpwrq_access_mode(umr_mode)); in mlx5e_create_umr_mkey() 464 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_umr_mkey() 465 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5e_create_umr_mkey() 466 MLX5_SET(mkc, mkc, pd, mdev->mlx5e_res.hw_objs.pdn); in mlx5e_create_umr_mkey() [all …]
|
D | en.h | 237 struct mlx5_mkey_seg mkc; member 1140 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc);
|
/linux-6.12.1/drivers/infiniband/hw/mlx5/ |
D | mr.c | 63 static void set_mkc_access_pd_addr_fields(void *mkc, int acc, u64 start_addr, in set_mkc_access_pd_addr_fields() argument 68 MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); in set_mkc_access_pd_addr_fields() 69 MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); in set_mkc_access_pd_addr_fields() 70 MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); in set_mkc_access_pd_addr_fields() 71 MLX5_SET(mkc, mkc, lw, !!(acc & IB_ACCESS_LOCAL_WRITE)); in set_mkc_access_pd_addr_fields() 72 MLX5_SET(mkc, mkc, lr, 1); in set_mkc_access_pd_addr_fields() 76 MLX5_SET(mkc, mkc, relaxed_ordering_write, 1); in set_mkc_access_pd_addr_fields() 82 MLX5_SET(mkc, mkc, relaxed_ordering_read, 1); in set_mkc_access_pd_addr_fields() 85 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in set_mkc_access_pd_addr_fields() 86 MLX5_SET(mkc, mkc, qpn, 0xffffff); in set_mkc_access_pd_addr_fields() [all …]
|
D | umr.c | 402 MLX5_SET(mkc, &wqe.mkey_seg, free, 1); in mlx5r_umr_revoke_mr() 403 MLX5_SET(mkc, &wqe.mkey_seg, pd, to_mpd(dev->umrc.pd)->pdn); in mlx5r_umr_revoke_mr() 404 MLX5_SET(mkc, &wqe.mkey_seg, qpn, 0xffffff); in mlx5r_umr_revoke_mr() 405 MLX5_SET(mkc, &wqe.mkey_seg, mkey_7_0, in mlx5r_umr_revoke_mr() 419 MLX5_SET(mkc, seg, a, !!(access_flags & IB_ACCESS_REMOTE_ATOMIC)); in mlx5r_umr_set_access_flags() 420 MLX5_SET(mkc, seg, rw, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); in mlx5r_umr_set_access_flags() 421 MLX5_SET(mkc, seg, rr, !!(access_flags & IB_ACCESS_REMOTE_READ)); in mlx5r_umr_set_access_flags() 422 MLX5_SET(mkc, seg, lw, !!(access_flags & IB_ACCESS_LOCAL_WRITE)); in mlx5r_umr_set_access_flags() 423 MLX5_SET(mkc, seg, lr, 1); in mlx5r_umr_set_access_flags() 424 MLX5_SET(mkc, seg, relaxed_ordering_write, in mlx5r_umr_set_access_flags() [all …]
|
D | odp.c | 537 void *mkc; in alloc_implicit_mr_null_mkey() local 548 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in alloc_implicit_mr_null_mkey() 549 MLX5_SET(mkc, mkc, a, 1); in alloc_implicit_mr_null_mkey() 550 MLX5_SET(mkc, mkc, rw, 1); in alloc_implicit_mr_null_mkey() 551 MLX5_SET(mkc, mkc, rr, 1); in alloc_implicit_mr_null_mkey() 552 MLX5_SET(mkc, mkc, lw, 1); in alloc_implicit_mr_null_mkey() 553 MLX5_SET(mkc, mkc, lr, 1); in alloc_implicit_mr_null_mkey() 554 MLX5_SET(mkc, mkc, free, 0); in alloc_implicit_mr_null_mkey() 555 MLX5_SET(mkc, mkc, umr_en, 0); in alloc_implicit_mr_null_mkey() 556 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in alloc_implicit_mr_null_mkey() [all …]
|
D | devx.c | 1314 void *mkc; in devx_handle_mkey_indirect() local 1317 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in devx_handle_mkey_indirect() 1318 key = MLX5_GET(mkc, mkc, mkey_7_0); in devx_handle_mkey_indirect() 1322 mkey->ndescs = MLX5_GET(mkc, mkc, translations_octword_size); in devx_handle_mkey_indirect() 1335 void *mkc; in devx_handle_mkey_create() local 1341 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in devx_handle_mkey_create() 1343 access_mode = MLX5_GET(mkc, mkc, access_mode_1_0); in devx_handle_mkey_create() 1344 access_mode |= MLX5_GET(mkc, mkc, access_mode_4_2) << 2; in devx_handle_mkey_create()
|
D | main.c | 3061 void *mkc; in mlx5_ib_create_data_direct_resources() local 3078 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_ib_create_data_direct_resources() 3079 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_ib_create_data_direct_resources() 3080 MLX5_SET(mkc, mkc, lw, 1); in mlx5_ib_create_data_direct_resources() 3081 MLX5_SET(mkc, mkc, lr, 1); in mlx5_ib_create_data_direct_resources() 3082 MLX5_SET(mkc, mkc, rw, 1); in mlx5_ib_create_data_direct_resources() 3083 MLX5_SET(mkc, mkc, rr, 1); in mlx5_ib_create_data_direct_resources() 3084 MLX5_SET(mkc, mkc, a, 1); in mlx5_ib_create_data_direct_resources() 3085 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_ib_create_data_direct_resources() 3086 MLX5_SET(mkc, mkc, length64, 1); in mlx5_ib_create_data_direct_resources() [all …]
|
/linux-6.12.1/drivers/vdpa/mlx5/core/ |
D | mr.c | 29 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() 68 void *mkc; in fill_create_direct_mr() local 71 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in fill_create_direct_mr() 72 MLX5_SET(mkc, mkc, lw, !!(mr->perm & VHOST_MAP_WO)); in fill_create_direct_mr() 73 MLX5_SET(mkc, mkc, lr, !!(mr->perm & VHOST_MAP_RO)); in fill_create_direct_mr() 74 mlx5_set_access_mode(mkc, MLX5_MKC_ACCESS_MODE_MTT); in fill_create_direct_mr() 75 MLX5_SET(mkc, mkc, qpn, 0xffffff); in fill_create_direct_mr() 76 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in fill_create_direct_mr() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_icm_pool.c | 59 void *mkc; in dr_icm_create_dm_mkey() local 61 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in dr_icm_create_dm_mkey() 63 MLX5_SET(mkc, mkc, access_mode_1_0, mode); in dr_icm_create_dm_mkey() 64 MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); in dr_icm_create_dm_mkey() 65 MLX5_SET(mkc, mkc, lw, 1); in dr_icm_create_dm_mkey() 66 MLX5_SET(mkc, mkc, lr, 1); in dr_icm_create_dm_mkey() 68 MLX5_SET(mkc, mkc, rw, 1); in dr_icm_create_dm_mkey() 69 MLX5_SET(mkc, mkc, rr, 1); in dr_icm_create_dm_mkey() 72 MLX5_SET64(mkc, mkc, len, length); in dr_icm_create_dm_mkey() 73 MLX5_SET(mkc, mkc, pd, pd); in dr_icm_create_dm_mkey() [all …]
|
D | dr_send.c | 1158 void *mkc; in dr_create_mkey() local 1160 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in dr_create_mkey() 1161 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in dr_create_mkey() 1162 MLX5_SET(mkc, mkc, a, 1); in dr_create_mkey() 1163 MLX5_SET(mkc, mkc, rw, 1); in dr_create_mkey() 1164 MLX5_SET(mkc, mkc, rr, 1); in dr_create_mkey() 1165 MLX5_SET(mkc, mkc, lw, 1); in dr_create_mkey() 1166 MLX5_SET(mkc, mkc, lr, 1); in dr_create_mkey() 1168 MLX5_SET(mkc, mkc, pd, pdn); in dr_create_mkey() 1169 MLX5_SET(mkc, mkc, length64, 1); in dr_create_mkey() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | rsc_dump.c | 227 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()
|
D | fw_tracer.c | 182 void *mkc; in mlx5_fw_tracer_create_mkey() local 198 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_fw_tracer_create_mkey() 199 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in mlx5_fw_tracer_create_mkey() 200 MLX5_SET(mkc, mkc, lr, 1); in mlx5_fw_tracer_create_mkey() 201 MLX5_SET(mkc, mkc, lw, 1); in mlx5_fw_tracer_create_mkey() 202 MLX5_SET(mkc, mkc, pd, tracer->buff.pdn); in mlx5_fw_tracer_create_mkey() 203 MLX5_SET(mkc, mkc, bsf_octword_size, 0); in mlx5_fw_tracer_create_mkey() 204 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_fw_tracer_create_mkey() 205 MLX5_SET(mkc, mkc, log_page_size, PAGE_SHIFT); in mlx5_fw_tracer_create_mkey() 206 MLX5_SET(mkc, mkc, translations_octword_size, in mlx5_fw_tracer_create_mkey() [all …]
|
/linux-6.12.1/drivers/vfio/pci/mlx5/ |
D | cmd.c | 325 void *mkc; in _create_mkey() local 351 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in _create_mkey() 352 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in _create_mkey() 353 MLX5_SET(mkc, mkc, lr, 1); in _create_mkey() 354 MLX5_SET(mkc, mkc, lw, 1); in _create_mkey() 355 MLX5_SET(mkc, mkc, rr, 1); in _create_mkey() 356 MLX5_SET(mkc, mkc, rw, 1); in _create_mkey() 357 MLX5_SET(mkc, mkc, pd, pdn); in _create_mkey() 358 MLX5_SET(mkc, mkc, bsf_octword_size, 0); in _create_mkey() 359 MLX5_SET(mkc, mkc, qpn, 0xffffff); in _create_mkey() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 227 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.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls_utils.h | 39 struct mlx5_mkey_seg mkc; member
|