Home
last modified time | relevance | path

Searched refs:pg_offset (Results 1 – 3 of 3) sorted by relevance

/external/autotest/client/tests/fsx/
D0001-Minor-fixes-to-PAGE_SIZE-handling.patch44 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;
/external/squashfs-tools/kernel/fs/squashfs/
Dblock.c231 int i, in, pg_offset = 0; in squashfs_read_data() local
243 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()
/external/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c641 unsigned pg_offset; in domapread() local
669 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() local
828 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()