16 #define PAGE_CACHE_BITS (PAGE_CACHE_SIZE * 8)
54 mask = (1U << 31) >>
i;
55 for (; i < 32; mask >>= 1, i++) {
69 for (i = 0; i < 32; mask >>= 1, i++) {
86 curr = pptr =
kmap(page);
97 start = offset + (curr - pptr) * 32 + i;
103 len =
min(size - start, len);
109 if (!--len || n & mask)
144 for (i = 0; i < len; i++) {
154 *max = offset + (curr - pptr) * 32 + i - start;
184 page = read_mapping_page(mapping, pnr,
NULL);
194 mask = 0xffffffff
U <<
j;
196 mask |= 0xffffffff
U >> (i +
count);
216 page = read_mapping_page(mapping, ++pnr,
NULL);
224 mask = 0xffffffff
U >>
count;