Lines Matching refs:mem_log
202 int i, j, n, mem_log, win_idx = 3, start_idx = 1, end_idx = 4; in setup_pci_atmu() local
351 mem_log = ilog2(sz); in setup_pci_atmu()
356 if ((1ull << mem_log) != mem) { in setup_pci_atmu()
357 mem_log++; in setup_pci_atmu()
358 if ((1ull << mem_log) > mem) in setup_pci_atmu()
363 piwar |= ((mem_log - 1) & PIWAR_SZ_MASK); in setup_pci_atmu()
382 mem_log = ilog2(mem); in setup_pci_atmu()
385 if ((1ull << mem_log) != mem) in setup_pci_atmu()
386 mem_log++; in setup_pci_atmu()
388 piwar = (piwar & ~PIWAR_SZ_MASK) | (mem_log - 1); in setup_pci_atmu()
389 pci64_dma_offset = 1ULL << mem_log; in setup_pci_atmu()
417 (piwar | (mem_log - 1))); in setup_pci_atmu()
421 paddr += 1ull << mem_log; in setup_pci_atmu()
422 sz -= 1ull << mem_log; in setup_pci_atmu()
425 mem_log = ilog2(sz); in setup_pci_atmu()
426 piwar |= (mem_log - 1); in setup_pci_atmu()
437 paddr += 1ull << mem_log; in setup_pci_atmu()