Lines Matching refs:num

77     unsigned int num;  in xenpaging_wait_for_event_or_timeout()  local
105 vec = xs_read_watch(paging->xs_handle, &num); in xenpaging_wait_for_event_or_timeout()
739 int i, num = 0; in resume_pages() local
741 for ( i = 0; i < paging->max_pages && num < num_pages; i++ ) in resume_pages()
745 paging->pagein_queue[num] = i; in resume_pages()
746 num++; in resume_pages()
747 if ( num == XENPAGING_PAGEIN_QUEUE_SIZE ) in resume_pages()
752 if ( num ) in resume_pages()
817 int rc, slot, num = 0; in evict_pages() local
820 while ( paging->stack_count > 0 && num < num_pages ) in evict_pages()
826 num = rc < 0 ? -1 : num; in evict_pages()
827 return num; in evict_pages()
829 num++; in evict_pages()
833 for ( slot = 0; slot < paging->max_pages && num < num_pages; slot++ ) in evict_pages()
842 num = rc < 0 ? -1 : num; in evict_pages()
846 num++; in evict_pages()
848 return num; in evict_pages()
857 int num, prev_num = 0; in main() local
1026 num = tot_pages - paging->target_tot_pages; in main()
1027 if ( num != prev_num ) in main()
1029 … DPRINTF("Need to evict %d pages to reach %d target_tot_pages\n", num, paging->target_tot_pages); in main()
1030 prev_num = num; in main()
1033 if ( num > 42 ) in main()
1036 num = 42; in main()
1038 if ( evict_pages(paging, num) < 0 ) in main()
1044 num = paging->target_tot_pages - tot_pages; in main()
1045 if ( num != prev_num ) in main()
1047 … DPRINTF("Need to resume %d pages to reach %d target_tot_pages\n", num, paging->target_tot_pages); in main()
1048 prev_num = num; in main()
1050 resume_pages(paging, num); in main()