Lines Matching refs:wsize
372 uint64_t woffset, wsize; in add_mmap() local
385 wsize = size + (offset - woffset); in add_mmap()
386 wsize = PAGE_ALIGN(wsize); in add_mmap()
388 if (wsize < WINDOW_SIZE) { in add_mmap()
391 delta = PAGE_ALIGN((WINDOW_SIZE - wsize) / 2); in add_mmap()
398 wsize = WINDOW_SIZE; in add_mmap()
409 if (woffset + wsize > (uint64_t) st->st_size) in add_mmap()
410 wsize = PAGE_ALIGN(st->st_size - woffset); in add_mmap()
413 r = mmap_try_harder(f, NULL, MAP_SHARED, woffset, wsize, &d); in add_mmap()
417 w = window_add(f->cache, f, keep_always, woffset, wsize, d); in add_mmap()
428 (void) munmap(d, wsize); in add_mmap()