Searched refs:first_page (Results 1 – 2 of 2) sorted by relevance
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | pci_iommu.c | 207 unsigned long flags, order, first_page, ctx; in pci_alloc_consistent() local 216 first_page = __get_free_pages(GFP_ATOMIC, order); in pci_alloc_consistent() 217 if (first_page == 0UL) in pci_alloc_consistent() 219 memset((char *)first_page, 0, PAGE_SIZE << order); in pci_alloc_consistent() 228 free_pages(first_page, order); in pci_alloc_consistent() 234 ret = (void *) first_page; in pci_alloc_consistent() 239 first_page = __pa(first_page); in pci_alloc_consistent() 243 (first_page & IOPTE_PAGE)); in pci_alloc_consistent() 245 first_page += IO_PAGE_SIZE; in pci_alloc_consistent()
|
D | sbus.c | 293 unsigned long order, first_page, flags; in sbus_alloc_consistent() local 306 first_page = __get_free_pages(GFP_KERNEL, order); in sbus_alloc_consistent() 307 if (first_page == 0UL) in sbus_alloc_consistent() 309 memset((char *)first_page, 0, PAGE_SIZE << order); in sbus_alloc_consistent() 317 free_pages(first_page, order); in sbus_alloc_consistent() 323 ret = (void *) first_page; in sbus_alloc_consistent() 327 (__pa(first_page) & IOPTE_PAGE)); in sbus_alloc_consistent() 328 first_page += IO_PAGE_SIZE; in sbus_alloc_consistent()
|