Lines Matching refs:nPages
996 unsigned order, nPages; in pci_alloc_consistent() local
1006 nPages = 1 << order; in pci_alloc_consistent()
1023 memset(ret, 0, nPages << PAGE_SHIFT); in pci_alloc_consistent()
1025 tce = get_tces( tbl, order, ret, nPages, PCI_DMA_BIDIRECTIONAL ); in pci_alloc_consistent()
1048 unsigned order, nPages; in pci_free_consistent() local
1055 nPages = 1 << order; in pci_free_consistent()
1067 tce_free(tbl, dma_handle, order, nPages); in pci_free_consistent()
1084 unsigned order, nPages; in pci_map_single() local
1092 nPages = PAGE_ALIGN( uaddr + size ) - ( uaddr & PAGE_MASK ); in pci_map_single()
1093 order = get_order( nPages & PAGE_MASK ); in pci_map_single()
1094 nPages >>= PAGE_SHIFT; in pci_map_single()
1107 dma_handle = get_tces( tbl, order, vaddr, nPages, direction ); in pci_map_single()
1119 unsigned order, nPages; in pci_unmap_single() local
1126 nPages = PAGE_ALIGN( dma_handle + size ) - ( dma_handle & PAGE_MASK ); in pci_unmap_single()
1127 order = get_order( nPages & PAGE_MASK ); in pci_unmap_single()
1128 nPages >>= PAGE_SHIFT; in pci_unmap_single()
1140 tce_free(tbl, dma_handle, order, nPages); in pci_unmap_single()