Lines Matching refs:pa_nr
33 int pa_nr; member
79 if (pa->pa_nr || pa->pa_iova_pfn) in pfn_array_alloc_pin()
84 pa->pa_nr = ((iova & ~PAGE_MASK) + len + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in pfn_array_alloc_pin()
85 if (!pa->pa_nr) in pfn_array_alloc_pin()
88 pa->pa_iova_pfn = kcalloc(pa->pa_nr, in pfn_array_alloc_pin()
93 pa->pa_nr = 0; in pfn_array_alloc_pin()
96 pa->pa_pfn = pa->pa_iova_pfn + pa->pa_nr; in pfn_array_alloc_pin()
99 for (i = 1; i < pa->pa_nr; i++) in pfn_array_alloc_pin()
102 ret = vfio_pin_pages(mdev, pa->pa_iova_pfn, pa->pa_nr, in pfn_array_alloc_pin()
107 } else if (ret > 0 && ret != pa->pa_nr) { in pfn_array_alloc_pin()
116 pa->pa_nr = 0; in pfn_array_alloc_pin()
126 vfio_unpin_pages(mdev, pa->pa_iova_pfn, pa->pa_nr); in pfn_array_unpin_free()
127 pa->pa_nr = 0; in pfn_array_unpin_free()
167 for (j = 0; j < pa->pa_nr; j++) in pfn_array_table_iova_pinned()
191 for (j = 0; j < pa->pa_nr; j++) { in pfn_array_table_idal_create_words()
219 for (i = 0; i < pa.pa_nr; i++) { in copy_from_iova()