• Home
  • Raw
  • Download

Lines Matching refs:index

256 				 unsigned long index,  in do_u64_read()  argument
261 if (index > ULONG_MAX / 8) in do_u64_read()
262 fatal("index overflow: %lu\n", index); in do_u64_read()
264 bytes = pread(fd, buf, count * 8, (off_t)index * 8); in do_u64_read()
276 unsigned long index, in kpageflags_read() argument
279 return do_u64_read(kpageflags_fd, opt_kpageflags, buf, index, pages); in kpageflags_read()
283 unsigned long index, in kpagecgroup_read() argument
289 return do_u64_read(kpagecgroup_fd, opt_kpageflags, buf, index, pages); in kpagecgroup_read()
293 unsigned long index, in kpagecount_read() argument
298 buf, index, pages); in kpagecount_read()
302 unsigned long index, in pagemap_read() argument
305 return do_u64_read(pagemap_fd, "/proc/pid/pagemap", buf, index, pages); in pagemap_read()
380 static unsigned long index; in show_page_range() local
384 offset == index + count && size && voffset == voff + count) { in show_page_range()
399 index, count, page_flag_name(flags0)); in show_page_range()
405 index = offset; in show_page_range()
664 unsigned long index, in walk_pfn() argument
687 pages = kpageflags_read(buf, index, batch); in walk_pfn()
691 if (kpagecgroup_read(cgi, index, pages) != pages) in walk_pfn()
694 if (kpagecount_read(cnt, index, pages) != pages) in walk_pfn()
698 add_page(voffset + i, index + i, in walk_pfn()
701 index += pages; in walk_pfn()
727 static void walk_vma(unsigned long index, unsigned long count) in walk_vma() argument
737 pages = pagemap_read(buf, index, batch); in walk_vma()
744 walk_pfn(index + i, pfn, 1, buf[i]); in walk_vma()
746 walk_swap(index + i, buf[i]); in walk_vma()
749 index += pages; in walk_vma()
754 static void walk_task(unsigned long index, unsigned long count) in walk_task() argument
756 const unsigned long end = index + count; in walk_task()
760 while (index < end) { in walk_task()
762 while (pg_end[i] <= index) in walk_task()
768 start = max_t(unsigned long, pg_start[i], index); in walk_task()
769 index = min_t(unsigned long, pg_end[i], end); in walk_task()
771 assert(start < index); in walk_task()
772 walk_vma(start, index - start); in walk_task()