Searched refs:pg_offset (Results 1 – 3 of 3) sorted by relevance
44 pg_offset = offset & PAGE_MASK;45 - map_size = pg_offset + size;46 + map_size = (pg_offset + size + PAGE_MASK) & ~PAGE_MASK;53 pg_offset = offset & PAGE_MASK;54 - map_size = pg_offset + size;55 + map_size = (pg_offset + size + PAGE_MASK) & ~PAGE_MASK;
231 int i, in, pg_offset = 0; in squashfs_read_data() local243 if (pg_offset == PAGE_CACHE_SIZE) { in squashfs_read_data()245 pg_offset = 0; in squashfs_read_data()248 pg_offset); in squashfs_read_data()249 memcpy(buffer[page] + pg_offset, in squashfs_read_data()252 pg_offset += avail; in squashfs_read_data()
641 unsigned pg_offset; in domapread() local669 pg_offset = offset & page_mask; in domapread()670 map_size = pg_offset + size; in domapread()673 (off_t) (offset - pg_offset))) == MAP_FAILED) { in domapread()684 memcpy(temp_buf, p + pg_offset, size); in domapread()778 unsigned pg_offset; in domapwrite() local828 pg_offset = offset & page_mask; in domapwrite()829 map_size = pg_offset + size; in domapwrite()833 fd, (off_t) (offset - pg_offset))) == MAP_FAILED) { in domapwrite()844 memcpy(p + pg_offset, good_buf + offset, size); in domapwrite()