Lines Matching refs:pg
43 struct page *pg; in tile_dma_alloc_coherent() local
61 pg = homecache_alloc_pages_node(node, gfp, order, PAGE_HOME_DMA); in tile_dma_alloc_coherent()
62 if (pg == NULL) in tile_dma_alloc_coherent()
65 addr = page_to_phys(pg); in tile_dma_alloc_coherent()
67 __homecache_free_pages(pg, order); in tile_dma_alloc_coherent()
73 return page_address(pg); in tile_dma_alloc_coherent()
350 struct page *pg; in tile_pci_dma_alloc_coherent() local
355 pg = homecache_alloc_pages_node(node, gfp, order, PAGE_HOME_DMA); in tile_pci_dma_alloc_coherent()
356 if (pg == NULL) in tile_pci_dma_alloc_coherent()
359 addr = page_to_phys(pg); in tile_pci_dma_alloc_coherent()
363 return page_address(pg); in tile_pci_dma_alloc_coherent()