Lines Matching defs:pklm
99 static void populate_klm(struct mlx5_klm *pklm, size_t idx, size_t nentries,
102 struct mlx5_klm *end = pklm + nentries;
105 for (; pklm != end; pklm++, idx++) {
106 pklm->bcount = cpu_to_be32(MLX5_IMR_MTT_SIZE);
107 pklm->key = mr_to_mdev(imr)->mkeys.null_mkey;
108 pklm->va = 0;
132 for (; pklm != end; pklm++, idx++) {
135 pklm->bcount = cpu_to_be32(MLX5_IMR_MTT_SIZE);
137 pklm->key = cpu_to_be32(mtt->ibmr.lkey);
138 pklm->va = cpu_to_be64(idx * MLX5_IMR_MTT_SIZE);
140 pklm->key = mr_to_mdev(imr)->mkeys.null_mkey;
141 pklm->va = 0;
823 struct mlx5_klm *pklm;
881 sizeof(*pklm) * (mmkey->ndescs - 2);
893 pklm = (struct mlx5_klm *)MLX5_ADDR_OF(query_mkey_out, out,
903 for (i = 0; bcnt && i < mmkey->ndescs; i++, pklm++) {
904 if (offset >= be32_to_cpu(pklm->bcount)) {
905 offset -= be32_to_cpu(pklm->bcount);
915 frame->key = be32_to_cpu(pklm->key);
916 frame->io_virt = be64_to_cpu(pklm->va) + offset;
918 be32_to_cpu(pklm->bcount) - offset);