Lines Matching refs:mem_log
199 int i, j, n, mem_log, win_idx = 3, start_idx = 1, end_idx = 4; in setup_pci_atmu() local
348 mem_log = ilog2(sz); in setup_pci_atmu()
353 if ((1ull << mem_log) != mem) { in setup_pci_atmu()
354 mem_log++; in setup_pci_atmu()
355 if ((1ull << mem_log) > mem) in setup_pci_atmu()
360 piwar |= ((mem_log - 1) & PIWAR_SZ_MASK); in setup_pci_atmu()
379 mem_log = ilog2(mem); in setup_pci_atmu()
382 if ((1ull << mem_log) != mem) in setup_pci_atmu()
383 mem_log++; in setup_pci_atmu()
385 piwar = (piwar & ~PIWAR_SZ_MASK) | (mem_log - 1); in setup_pci_atmu()
386 pci64_dma_offset = 1ULL << mem_log; in setup_pci_atmu()
414 (piwar | (mem_log - 1))); in setup_pci_atmu()
418 paddr += 1ull << mem_log; in setup_pci_atmu()
419 sz -= 1ull << mem_log; in setup_pci_atmu()
422 mem_log = ilog2(sz); in setup_pci_atmu()
423 piwar |= (mem_log - 1); in setup_pci_atmu()
434 paddr += 1ull << mem_log; in setup_pci_atmu()