mkc 1254 drivers/infiniband/hw/mlx5/devx.c void *mkc; mkc 1258 drivers/infiniband/hw/mlx5/devx.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1259 drivers/infiniband/hw/mlx5/devx.c key = MLX5_GET(mkc, mkc, mkey_7_0); mkc 1263 drivers/infiniband/hw/mlx5/devx.c mkey->iova = MLX5_GET64(mkc, mkc, start_addr); mkc 1264 drivers/infiniband/hw/mlx5/devx.c mkey->size = MLX5_GET64(mkc, mkc, len); mkc 1265 drivers/infiniband/hw/mlx5/devx.c mkey->pd = MLX5_GET(mkc, mkc, pd); mkc 1266 drivers/infiniband/hw/mlx5/devx.c devx_mr->ndescs = MLX5_GET(mkc, mkc, translations_octword_size); mkc 1279 drivers/infiniband/hw/mlx5/devx.c void *mkc; mkc 1285 drivers/infiniband/hw/mlx5/devx.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1287 drivers/infiniband/hw/mlx5/devx.c access_mode = MLX5_GET(mkc, mkc, access_mode_1_0); mkc 1288 drivers/infiniband/hw/mlx5/devx.c access_mode |= MLX5_GET(mkc, mkc, access_mode_4_2) << 2; mkc 72 drivers/infiniband/hw/mlx5/mlx5_ib.h #define MLX5_MKEY_PAGE_SHIFT_MASK __mlx5_mask(mkc, log_page_size) mkc 142 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 151 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 167 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, free, 1); mkc 168 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, umr_en, 1); mkc 169 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, ent->access_mode & 0x3); mkc 170 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_4_2, mkc 173 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 174 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, translations_octword_size, ent->xlt); mkc 175 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, log_page_size, ent->page); mkc 688 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 702 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 704 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); mkc 705 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); mkc 706 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); mkc 707 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); mkc 708 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lw, !!(acc & IB_ACCESS_LOCAL_WRITE)); mkc 709 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lr, 1); mkc 711 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, length64, 1); mkc 712 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); mkc 713 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 714 drivers/infiniband/hw/mlx5/mr.c MLX5_SET64(mkc, mkc, start_addr, 0); mkc 1059 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 1089 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1090 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, free, !populate); mkc 1091 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); mkc 1092 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, a, !!(access_flags & IB_ACCESS_REMOTE_ATOMIC)); mkc 1093 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, rw, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); mkc 1094 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, rr, !!(access_flags & IB_ACCESS_REMOTE_READ)); mkc 1095 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lw, !!(access_flags & IB_ACCESS_LOCAL_WRITE)); mkc 1096 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lr, 1); mkc 1097 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, umr_en, 1); mkc 1099 drivers/infiniband/hw/mlx5/mr.c MLX5_SET64(mkc, mkc, start_addr, virt_addr); mkc 1100 drivers/infiniband/hw/mlx5/mr.c MLX5_SET64(mkc, mkc, len, length); mkc 1101 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); mkc 1102 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, bsf_octword_size, 0); mkc 1103 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, translations_octword_size, mkc 1105 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, log_page_size, page_shift); mkc 1106 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 1154 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 1168 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1170 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, mode & 0x3); mkc 1171 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); mkc 1172 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); mkc 1173 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); mkc 1174 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); mkc 1175 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lw, !!(acc & IB_ACCESS_LOCAL_WRITE)); mkc 1176 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lr, 1); mkc 1178 drivers/infiniband/hw/mlx5/mr.c MLX5_SET64(mkc, mkc, len, length); mkc 1179 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); mkc 1180 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 1181 drivers/infiniband/hw/mlx5/mr.c MLX5_SET64(mkc, mkc, start_addr, start_addr); mkc 1645 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 1647 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1649 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, free, 1); mkc 1650 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 1651 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); mkc 1652 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, translations_octword_size, ndescs); mkc 1653 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, access_mode & 0x3); mkc 1654 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_4_2, (access_mode >> 2) & 0x7); mkc 1655 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, umr_en, 1); mkc 1656 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, log_page_size, page_shift); mkc 1756 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 1791 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1792 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, bsf_en, 1); mkc 1793 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, bsf_octword_size, MLX5_MKEY_BSF_OCTO_SIZE); mkc 1895 drivers/infiniband/hw/mlx5/mr.c void *mkc; mkc 1925 drivers/infiniband/hw/mlx5/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 1927 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, free, 1); mkc 1928 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, translations_octword_size, ndescs); mkc 1929 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); mkc 1930 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, umr_en, 1); mkc 1931 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, lr, 1); mkc 1932 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_KLMS); mkc 1933 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, en_rinval, !!((type == IB_MW_TYPE_2))); mkc 1934 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 179 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c void *mkc; mkc 195 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 196 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); mkc 197 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, lr, 1); mkc 198 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, lw, 1); mkc 199 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, pd, tracer->buff.pdn); mkc 200 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, bsf_octword_size, 0); mkc 201 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 202 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, log_page_size, PAGE_SHIFT); mkc 203 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET(mkc, mkc, translations_octword_size, mkc 205 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET64(mkc, mkc, start_addr, tracer->buff.dma); mkc 206 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c MLX5_SET64(mkc, mkc, len, tracer->buff.size); mkc 217 drivers/net/ethernet/mellanox/mlx5/core/en.h struct mlx5_mkey_seg mkc; mkc 68 drivers/net/ethernet/mellanox/mlx5/core/en_common.c void *mkc; mkc 76 drivers/net/ethernet/mellanox/mlx5/core/en_common.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 77 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); mkc 78 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, lw, 1); mkc 79 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, lr, 1); mkc 81 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, pd, pdn); mkc 82 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, length64, 1); mkc 83 drivers/net/ethernet/mellanox/mlx5/core/en_common.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 272 drivers/net/ethernet/mellanox/mlx5/core/en_main.c void *mkc; mkc 280 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 282 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, free, 1); mkc 283 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, umr_en, 1); mkc 284 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, lw, 1); mkc 285 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, lr, 1); mkc 286 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); mkc 288 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 289 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, pd, mdev->mlx5e_res.pdn); mkc 290 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET64(mkc, mkc, len, npages << page_shift); mkc 291 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, translations_octword_size, mkc 293 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(mkc, mkc, log_page_size, page_shift); mkc 227 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c void *mkc; mkc 235 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 236 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); mkc 237 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, lw, 1); mkc 238 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, lr, 1); mkc 240 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, pd, pdn); mkc 241 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, length64, 1); mkc 242 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 59 drivers/net/ethernet/mellanox/mlx5/core/mr.c void *mkc; mkc 66 drivers/net/ethernet/mellanox/mlx5/core/mr.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 69 drivers/net/ethernet/mellanox/mlx5/core/mr.c MLX5_SET(mkc, mkc, mkey_7_0, key); mkc 80 drivers/net/ethernet/mellanox/mlx5/core/mr.c mkey->iova = MLX5_GET64(mkc, mkc, start_addr); mkc 81 drivers/net/ethernet/mellanox/mlx5/core/mr.c mkey->size = MLX5_GET64(mkc, mkc, len); mkc 83 drivers/net/ethernet/mellanox/mlx5/core/mr.c mkey->pd = MLX5_GET(mkc, mkc, pd); mkc 76 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c void *mkc; mkc 78 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 80 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, access_mode_1_0, mode); mkc 81 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); mkc 82 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, lw, 1); mkc 83 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, lr, 1); mkc 85 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, rw, 1); mkc 86 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, rr, 1); mkc 89 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET64(mkc, mkc, len, length); mkc 90 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, pd, pd); mkc 91 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, qpn, 0xffffff); mkc 92 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET64(mkc, mkc, start_addr, start_addr); mkc 801 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c void *mkc; mkc 803 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); mkc 804 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); mkc 805 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, a, 1); mkc 806 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, rw, 1); mkc 807 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, rr, 1); mkc 808 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, lw, 1); mkc 809 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, lr, 1); mkc 811 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, pd, pdn); mkc 812 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, length64, 1); mkc 813 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(mkc, mkc, qpn, 0xffffff);