• Home
  • Raw
  • Download

Lines Matching refs:mkc

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()
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()
71 MLX5_SET64(mkc, mkc, start_addr, mr->offset); in create_direct_mr()
72 MLX5_SET64(mkc, mkc, len, mr->end - mr->start); in create_direct_mr()
73 MLX5_SET(mkc, mkc, log_page_size, mr->log_size); in create_direct_mr()
74 MLX5_SET(mkc, mkc, translations_octword_size, in create_direct_mr()
185 void *mkc; in create_indirect_key() local
202 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in create_indirect_key()
203 MLX5_SET(mkc, mkc, lw, 1); in create_indirect_key()
204 MLX5_SET(mkc, mkc, lr, 1); in create_indirect_key()
205 mlx5_set_access_mode(mkc, MLX5_MKC_ACCESS_MODE_KLMS); in create_indirect_key()
206 MLX5_SET(mkc, mkc, qpn, 0xffffff); in create_indirect_key()
207 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in create_indirect_key()
208 MLX5_SET64(mkc, mkc, start_addr, start); in create_indirect_key()
209 MLX5_SET64(mkc, mkc, len, len); in create_indirect_key()
210 MLX5_SET(mkc, mkc, translations_octword_size, klm_byte_size(mr->num_klms) / 16); in create_indirect_key()
425 void *mkc; in create_dma_mr() local
433 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in create_dma_mr()
435 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in create_dma_mr()
436 MLX5_SET(mkc, mkc, length64, 1); in create_dma_mr()
437 MLX5_SET(mkc, mkc, lw, 1); in create_dma_mr()
438 MLX5_SET(mkc, mkc, lr, 1); in create_dma_mr()
439 MLX5_SET(mkc, mkc, pd, mvdev->res.pdn); in create_dma_mr()
440 MLX5_SET(mkc, mkc, qpn, 0xffffff); in create_dma_mr()