Lines Matching defs:map

994 	unsigned char *map;
1014 map = si->swap_map + offset;
1016 map[i] = SWAP_HAS_CACHE;
1288 * true, the si->map, si->cluster_info, etc. must be valid in the
1397 unsigned char *map;
1409 map = si->swap_map + offset;
1411 val = map[i];
1569 unsigned char *map;
1592 map = kmap_atomic(page);
1593 tmp_count = map[offset];
1594 kunmap_atomic(map);
1608 unsigned char *map = si->swap_map;
1616 if (swap_count(map[roffset]))
1621 if (swap_count(map[offset + i])) {
1654 unsigned char *map = NULL;
1678 map = si->swap_map;
1682 if (map)
1687 if (map) {
1688 swapcount = swap_count(map[offset + i]);
2153 * if there are no inuse entries after prev till end of the map.
2274 * Lets check again to see if there are still swap entries in the map.
3259 /* OK, set up the swap map and apply the bad block list */
3327 /* frontswap enabled? set up bit-per-page map for frontswap */
3481 * Verify that a swap entry is valid and increment its swap map count.
3703 unsigned char *map;
3706 * If the previous map said no continuation, but we've found
3712 map = kmap_atomic(list_page) + offset;
3713 count = *map;
3714 kunmap_atomic(map);
3752 unsigned char *map;
3764 map = kmap_atomic(page) + offset;
3773 while (*map == (SWAP_CONT_MAX | COUNT_CONTINUED)) {
3774 kunmap_atomic(map);
3777 map = kmap_atomic(page) + offset;
3779 if (*map == SWAP_CONT_MAX) {
3780 kunmap_atomic(map);
3786 map = kmap_atomic(page) + offset;
3787 init_map: *map = 0; /* we didn't zero the page */
3789 *map += 1;
3790 kunmap_atomic(map);
3792 map = kmap_atomic(page) + offset;
3793 *map = COUNT_CONTINUED;
3794 kunmap_atomic(map);
3803 while (*map == COUNT_CONTINUED) {
3804 kunmap_atomic(map);
3807 map = kmap_atomic(page) + offset;
3809 BUG_ON(*map == 0);
3810 *map -= 1;
3811 if (*map == 0)
3813 kunmap_atomic(map);
3815 map = kmap_atomic(page) + offset;
3816 *map = SWAP_CONT_MAX | count;
3818 kunmap_atomic(map);