Lines Matching refs:pdsc_dev
39 struct device *pdsc_dev = &pci_physfn(pdev)->dev; in pds_vfio_print_guest_region_info() local
52 dma_map_single(pdsc_dev, region_info, len, DMA_FROM_DEVICE); in pds_vfio_print_guest_region_info()
53 if (dma_mapping_error(pdsc_dev, regions_dma)) in pds_vfio_print_guest_region_info()
58 dma_unmap_single(pdsc_dev, regions_dma, len, DMA_FROM_DEVICE); in pds_vfio_print_guest_region_info()
106 struct device *pdsc_dev = &pci_physfn(pdev)->dev; in __pds_vfio_dirty_free_sgl() local
108 dma_unmap_single(pdsc_dev, bmp_info->sgl_addr, in __pds_vfio_dirty_free_sgl()
131 struct device *pdsc_dev = &pci_physfn(pdev)->dev; in __pds_vfio_dirty_alloc_sgl() local
144 sgl_addr = dma_map_single(pdsc_dev, sgl, sgl_size, DMA_BIDIRECTIONAL); in __pds_vfio_dirty_alloc_sgl()
145 if (dma_mapping_error(pdsc_dev, sgl_addr)) { in __pds_vfio_dirty_alloc_sgl()
183 struct device *pdsc_dev = &pci_physfn(pdev)->dev; in pds_vfio_dirty_enable() local
254 regions_dma = dma_map_single(pdsc_dev, (void *)region_info, len, in pds_vfio_dirty_enable()
256 if (dma_mapping_error(pdsc_dev, regions_dma)) { in pds_vfio_dirty_enable()
262 dma_unmap_single(pdsc_dev, regions_dma, len, DMA_BIDIRECTIONAL); in pds_vfio_dirty_enable()
330 struct device *pdsc_dev = &pci_physfn(pdev)->dev; in pds_vfio_dirty_seq_ack() local
373 err = dma_map_sgtable(pdsc_dev, &sg_table, dma_dir, 0); in pds_vfio_dirty_seq_ack()
386 dma_sync_single_for_device(pdsc_dev, bmp_info->sgl_addr, size, dma_dir); in pds_vfio_dirty_seq_ack()
394 dma_sync_single_for_cpu(pdsc_dev, bmp_info->sgl_addr, size, dma_dir); in pds_vfio_dirty_seq_ack()
396 dma_unmap_sgtable(pdsc_dev, &sg_table, dma_dir, 0); in pds_vfio_dirty_seq_ack()