ZPCI_IOMAP_SHIFT 18 arch/s390/include/asm/pci_io.h #define ZPCI_IOMAP_ADDR_OFF_MASK ((1UL << ZPCI_IOMAP_SHIFT) - 1) ZPCI_IOMAP_SHIFT 20 arch/s390/include/asm/pci_io.h ((ULONG_MAX - ZPCI_IOMAP_ADDR_BASE + 1) / (1UL << ZPCI_IOMAP_SHIFT)) ZPCI_IOMAP_SHIFT 32 arch/s390/include/asm/pci_io.h #define ZPCI_ADDR(idx) (ZPCI_IOMAP_ADDR_BASE | ((u64) idx << ZPCI_IOMAP_SHIFT)) ZPCI_IOMAP_SHIFT 34 arch/s390/include/asm/pci_io.h (((__force u64) addr & ZPCI_IOMAP_ADDR_IDX_MASK) >> ZPCI_IOMAP_SHIFT)