Lines Matching refs:iova
45 * @len: number of pages that should be pinned from @iova
176 static bool page_array_iova_pinned(struct page_array *pa, u64 iova, u64 length)
178 u64 iova_pfn_start = iova >> PAGE_SHIFT;
179 u64 iova_pfn_end = (iova + length - 1) >> PAGE_SHIFT;
365 * @iova: guest physical address of the target ccw chain
376 static int ccwchain_calc_length(u64 iova, struct channel_program *cp)
392 if (!ccw_is_chain(ccw) && !is_tic_within_range(ccw, iova, cnt))
569 u64 iova;
580 ret = vfio_dma_rw(vdev, dma32_to_u32(ccw->cda), &iova, size, false);
589 iova = iova >> 32;
591 iova = dma32_to_u32(ccw->cda);
596 return idal_2k_nr_words((void *)iova, bytes);
600 return idal_2k_nr_words((void *)iova, bytes);
603 return idal_nr_words((void *)iova, bytes);
700 * the target channel program from @orb->cmd.iova to the new ccwchain(s).
939 * cp_iova_pinned() - check if an iova is pinned for a ccw chain.
941 * @iova: the iova to check
942 * @length: the length to check from @iova
944 * If the @iova is currently pinned for the ccw chain, return true;
947 bool cp_iova_pinned(struct channel_program *cp, u64 iova, u64 length)
957 if (page_array_iova_pinned(&chain->ch_pa[i], iova, length))