Lines Matching refs:pgmap

37 	struct dev_pagemap pgmap;  member
42 static struct pci_p2pdma_pagemap *to_p2p_pgmap(struct dev_pagemap *pgmap) in to_p2p_pgmap() argument
44 return container_of(pgmap, struct pci_p2pdma_pagemap, pgmap); in to_p2p_pgmap()
175 struct dev_pagemap *pgmap; in pci_p2pdma_add_resource() local
202 pgmap = &p2p_pgmap->pgmap; in pci_p2pdma_add_resource()
203 pgmap->range.start = pci_resource_start(pdev, bar) + offset; in pci_p2pdma_add_resource()
204 pgmap->range.end = pgmap->range.start + size - 1; in pci_p2pdma_add_resource()
205 pgmap->nr_range = 1; in pci_p2pdma_add_resource()
206 pgmap->type = MEMORY_DEVICE_PCI_P2PDMA; in pci_p2pdma_add_resource()
212 addr = devm_memremap_pages(&pdev->dev, pgmap); in pci_p2pdma_add_resource()
221 range_len(&pgmap->range), dev_to_node(&pdev->dev), in pci_p2pdma_add_resource()
222 pgmap->ref); in pci_p2pdma_add_resource()
227 pgmap->range.start, pgmap->range.end); in pci_p2pdma_add_resource()
232 devm_memunmap_pages(&pdev->dev, pgmap); in pci_p2pdma_add_resource()
234 devm_kfree(&pdev->dev, pgmap); in pci_p2pdma_add_resource()
844 static enum pci_p2pdma_map_type pci_p2pdma_map_type(struct dev_pagemap *pgmap, in pci_p2pdma_map_type() argument
848 struct pci_dev *provider = to_p2p_pgmap(pgmap)->provider; in pci_p2pdma_map_type()
901 to_p2p_pgmap(sg_page(sg)->pgmap); in pci_p2pdma_map_sg_attrs()
903 switch (pci_p2pdma_map_type(sg_page(sg)->pgmap, dev)) { in pci_p2pdma_map_sg_attrs()
929 map_type = pci_p2pdma_map_type(sg_page(sg)->pgmap, dev); in pci_p2pdma_unmap_sg_attrs()