Searched refs:piolen (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_wc_x86_64.c56 u64 pioaddr, piolen; qib_enable_wc() local
81 piolen = pio4kbase - pio2kbase + qib_enable_wc()
85 piolen = pio2kbase - pio4kbase + qib_enable_wc()
90 piolen = dd->piobcnt2k * dd->palign + qib_enable_wc()
94 for (bits = 0; !(piolen & (1ULL << bits)); bits++) qib_enable_wc()
97 if (piolen != (1ULL << bits)) { qib_enable_wc()
98 piolen >>= bits; qib_enable_wc()
99 while (piolen >>= 1) qib_enable_wc()
101 piolen = 1ULL << (bits + 1); qib_enable_wc()
103 if (pioaddr & (piolen - 1)) { qib_enable_wc()
104 u64 atmp = pioaddr & ~(piolen - 1); qib_enable_wc()
106 if (atmp < addr || (atmp + piolen) > (addr + len)) { qib_enable_wc()
110 (unsigned long long) piolen << 1); qib_enable_wc()
114 piolen <<= 1; qib_enable_wc()
119 dd->wc_cookie = arch_phys_wc_add(pioaddr, piolen); qib_enable_wc()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_wc_x86_64.c55 u64 pioaddr, piolen; ipath_enable_wc() local
77 piolen = pio4kbase - pio2kbase + ipath_enable_wc()
81 piolen = pio2kbase - pio4kbase + ipath_enable_wc()
86 piolen = dd->ipath_piobcnt2k * dd->ipath_palign + ipath_enable_wc()
90 for (bits = 0; !(piolen & (1ULL << bits)); bits++) ipath_enable_wc()
93 if (piolen != (1ULL << bits)) { ipath_enable_wc()
94 piolen >>= bits; ipath_enable_wc()
95 while (piolen >>= 1) ipath_enable_wc()
97 piolen = 1ULL << (bits + 1); ipath_enable_wc()
99 if (pioaddr & (piolen - 1)) { ipath_enable_wc()
104 (unsigned long long) piolen); ipath_enable_wc()
105 atmp = pioaddr & ~(piolen - 1); ipath_enable_wc()
106 if (atmp < addr || (atmp + piolen) > (addr + len)) { ipath_enable_wc()
110 (unsigned long long) piolen << 1); ipath_enable_wc()
117 (unsigned long long) piolen, ipath_enable_wc()
118 (unsigned long long) piolen << 1); ipath_enable_wc()
120 piolen <<= 1; ipath_enable_wc()
129 (unsigned long long) piolen); ipath_enable_wc()
130 cookie = mtrr_add(pioaddr, piolen, MTRR_TYPE_WRCOMB, 0); ipath_enable_wc()
144 dd->ipath_wc_len = (unsigned long) piolen; ipath_enable_wc()

Completed in 83 milliseconds