Lines Matching refs:region_info
40 struct pds_lm_dirty_region_info *region_info; in pds_vfio_print_guest_region_info() local
45 region_info = kcalloc(max_regions, in pds_vfio_print_guest_region_info()
48 if (!region_info) in pds_vfio_print_guest_region_info()
52 dma_map_single(pdsc_dev, region_info, len, DMA_FROM_DEVICE); in pds_vfio_print_guest_region_info()
65 i, le64_to_cpu(region_info[i].dma_base), in pds_vfio_print_guest_region_info()
66 le32_to_cpu(region_info[i].page_count), in pds_vfio_print_guest_region_info()
67 region_info[i].page_size_log2); in pds_vfio_print_guest_region_info()
70 kfree(region_info); in pds_vfio_print_guest_region_info()
186 struct pds_lm_dirty_region_info *region_info; in pds_vfio_dirty_enable() local
243 len = sizeof(*region_info); in pds_vfio_dirty_enable()
244 region_info = kzalloc(len, GFP_KERNEL); in pds_vfio_dirty_enable()
245 if (!region_info) in pds_vfio_dirty_enable()
250 region_info->dma_base = cpu_to_le64(region_start); in pds_vfio_dirty_enable()
251 region_info->page_count = cpu_to_le32(page_count); in pds_vfio_dirty_enable()
252 region_info->page_size_log2 = ilog2(region_page_size); in pds_vfio_dirty_enable()
254 regions_dma = dma_map_single(pdsc_dev, (void *)region_info, len, in pds_vfio_dirty_enable()
270 page_count = le32_to_cpu(region_info->page_count); in pds_vfio_dirty_enable()
298 kfree(region_info); in pds_vfio_dirty_enable()
305 kfree(region_info); in pds_vfio_dirty_enable()