Home
last modified time | relevance | path

Searched refs:pa_nr (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/s390/cio/
Dvfio_ccw_cp.c27 int pa_nr; member
62 if (pa->pa_nr || pa->pa_iova_pfn) in pfn_array_alloc()
67 pa->pa_nr = ((iova & ~PAGE_MASK) + len + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in pfn_array_alloc()
68 if (!pa->pa_nr) in pfn_array_alloc()
71 pa->pa_iova_pfn = kcalloc(pa->pa_nr, in pfn_array_alloc()
76 pa->pa_nr = 0; in pfn_array_alloc()
79 pa->pa_pfn = pa->pa_iova_pfn + pa->pa_nr; in pfn_array_alloc()
83 for (i = 1; i < pa->pa_nr; i++) { in pfn_array_alloc()
104 ret = vfio_pin_pages(mdev, pa->pa_iova_pfn, pa->pa_nr, in pfn_array_pin()
109 } else if (ret > 0 && ret != pa->pa_nr) { in pfn_array_pin()
[all …]