/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_common.c | 63 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc) in mlx5e_mkey_set_relaxed_ordering() argument 69 MLX5_SET(mkc, mkc, relaxed_ordering_read, ro_pci_enable && ro_read); in mlx5e_mkey_set_relaxed_ordering() 70 MLX5_SET(mkc, mkc, relaxed_ordering_write, ro_pci_enable && ro_write); in mlx5e_mkey_set_relaxed_ordering() 77 void *mkc; in mlx5e_create_mkey() local 85 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5e_create_mkey() 86 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5e_create_mkey() 87 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_mkey() 88 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_mkey() 89 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_mkey() 90 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey() [all …]
|
D | mr.c | 44 void *mkc; in mlx5_core_create_mkey() local 53 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_core_create_mkey() 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() 58 mkey->pd = MLX5_GET(mkc, mkc, pd); in mlx5_core_create_mkey()
|
D | en_main.c | 254 void *mkc; in mlx5e_create_umr_mkey() local 265 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5e_create_umr_mkey() 267 MLX5_SET(mkc, mkc, free, 1); in mlx5e_create_umr_mkey() 268 MLX5_SET(mkc, mkc, umr_en, 1); in mlx5e_create_umr_mkey() 269 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_umr_mkey() 270 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_umr_mkey() 271 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in mlx5e_create_umr_mkey() 272 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_umr_mkey() 273 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5e_create_umr_mkey() 274 MLX5_SET(mkc, mkc, pd, mdev->mlx5e_res.pdn); in mlx5e_create_umr_mkey() [all …]
|
D | en.h | 217 struct mlx5_mkey_seg mkc; member 993 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc);
|
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/core/ |
D | mr.c | 28 static void mlx5_set_access_mode(void *mkc, int mode) in mlx5_set_access_mode() argument 30 MLX5_SET(mkc, mkc, access_mode_1_0, mode & 0x3); in mlx5_set_access_mode() 31 MLX5_SET(mkc, mkc, access_mode_4_2, mode >> 2); in mlx5_set_access_mode() 54 void *mkc; in create_direct_mr() local 64 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in create_direct_mr() 65 MLX5_SET(mkc, mkc, lw, !!(mr->perm & VHOST_MAP_WO)); in create_direct_mr() 66 MLX5_SET(mkc, mkc, lr, !!(mr->perm & VHOST_MAP_RO)); in create_direct_mr() 67 mlx5_set_access_mode(mkc, MLX5_MKC_ACCESS_MODE_MTT); in create_direct_mr() 68 MLX5_SET(mkc, mkc, qpn, 0xffffff); in create_direct_mr() 69 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in create_direct_mr() [all …]
|
D | resources.c | 189 void *mkc; in mlx5_vdpa_create_mkey() local 199 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_vdpa_create_mkey() 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() 204 mkey->pd = MLX5_GET(mkc, mkc, pd); in mlx5_vdpa_create_mkey()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | mr.c | 53 static void set_mkc_access_pd_addr_fields(void *mkc, int acc, u64 start_addr, in set_mkc_access_pd_addr_fields() argument 58 MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); in set_mkc_access_pd_addr_fields() 59 MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); in set_mkc_access_pd_addr_fields() 60 MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); in set_mkc_access_pd_addr_fields() 61 MLX5_SET(mkc, mkc, lw, !!(acc & IB_ACCESS_LOCAL_WRITE)); in set_mkc_access_pd_addr_fields() 62 MLX5_SET(mkc, mkc, lr, 1); in set_mkc_access_pd_addr_fields() 65 MLX5_SET(mkc, mkc, relaxed_ordering_write, in set_mkc_access_pd_addr_fields() 68 MLX5_SET(mkc, mkc, relaxed_ordering_read, in set_mkc_access_pd_addr_fields() 71 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in set_mkc_access_pd_addr_fields() 72 MLX5_SET(mkc, mkc, qpn, 0xffffff); in set_mkc_access_pd_addr_fields() [all …]
|
D | wr.c | 409 MLX5_SET(mkc, seg, free, 1); in set_reg_mkey_segment() 411 MLX5_SET(mkc, seg, a, in set_reg_mkey_segment() 413 MLX5_SET(mkc, seg, rw, in set_reg_mkey_segment() 415 MLX5_SET(mkc, seg, rr, !!(umrwr->access_flags & IB_ACCESS_REMOTE_READ)); in set_reg_mkey_segment() 416 MLX5_SET(mkc, seg, lw, !!(umrwr->access_flags & IB_ACCESS_LOCAL_WRITE)); in set_reg_mkey_segment() 417 MLX5_SET(mkc, seg, lr, 1); in set_reg_mkey_segment() 419 MLX5_SET(mkc, seg, relaxed_ordering_write, in set_reg_mkey_segment() 422 MLX5_SET(mkc, seg, relaxed_ordering_read, in set_reg_mkey_segment() 426 MLX5_SET(mkc, seg, pd, to_mpd(umrwr->pd)->pdn); in set_reg_mkey_segment() 429 MLX5_SET(mkc, seg, length64, 1); in set_reg_mkey_segment() [all …]
|
D | devx.c | 1207 void *mkc; in devx_handle_mkey_indirect() local 1211 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in devx_handle_mkey_indirect() 1212 key = MLX5_GET(mkc, mkc, mkey_7_0); 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() 1219 devx_mr->ndescs = MLX5_GET(mkc, mkc, translations_octword_size); in devx_handle_mkey_indirect() 1232 void *mkc; in devx_handle_mkey_create() local 1238 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in devx_handle_mkey_create() 1240 access_mode = MLX5_GET(mkc, mkc, access_mode_1_0); in devx_handle_mkey_create() [all …]
|
D | mlx5_ib.h | 43 #define MLX5_MKEY_PAGE_SHIFT_MASK __mlx5_mask(mkc, log_page_size)
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | rsc_dump.c | 208 void *mkc; in mlx5_rsc_dump_create_mkey() local 216 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_rsc_dump_create_mkey() 217 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_rsc_dump_create_mkey() 218 MLX5_SET(mkc, mkc, lw, 1); in mlx5_rsc_dump_create_mkey() 219 MLX5_SET(mkc, mkc, lr, 1); in mlx5_rsc_dump_create_mkey() 221 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_rsc_dump_create_mkey() 222 MLX5_SET(mkc, mkc, length64, 1); in mlx5_rsc_dump_create_mkey() 223 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_rsc_dump_create_mkey()
|
D | fw_tracer.c | 181 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_icm_pool.c | 76 void *mkc; in dr_icm_create_dm_mkey() local 78 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in dr_icm_create_dm_mkey() 80 MLX5_SET(mkc, mkc, access_mode_1_0, mode); in dr_icm_create_dm_mkey() 81 MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); in dr_icm_create_dm_mkey() 82 MLX5_SET(mkc, mkc, lw, 1); in dr_icm_create_dm_mkey() 83 MLX5_SET(mkc, mkc, lr, 1); in dr_icm_create_dm_mkey() 85 MLX5_SET(mkc, mkc, rw, 1); in dr_icm_create_dm_mkey() 86 MLX5_SET(mkc, mkc, rr, 1); in dr_icm_create_dm_mkey() 89 MLX5_SET64(mkc, mkc, len, length); in dr_icm_create_dm_mkey() 90 MLX5_SET(mkc, mkc, pd, pd); in dr_icm_create_dm_mkey() [all …]
|
D | dr_send.c | 805 void *mkc; in dr_create_mkey() local 807 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in dr_create_mkey() 808 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in dr_create_mkey() 809 MLX5_SET(mkc, mkc, a, 1); in dr_create_mkey() 810 MLX5_SET(mkc, mkc, rw, 1); in dr_create_mkey() 811 MLX5_SET(mkc, mkc, rr, 1); in dr_create_mkey() 812 MLX5_SET(mkc, mkc, lw, 1); in dr_create_mkey() 813 MLX5_SET(mkc, mkc, lr, 1); in dr_create_mkey() 815 MLX5_SET(mkc, mkc, pd, pdn); in dr_create_mkey() 816 MLX5_SET(mkc, mkc, length64, 1); in dr_create_mkey() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ktls_utils.h | 34 struct mlx5_mkey_seg mkc; member
|