Lines Matching defs:pg_index
3695 int pg_index;
3791 for (pg_index = ((isize) / PAGE_SIZE); pg_index > 0;) {
3792 if (upl_page_present(pl, --pg_index))
3794 if (pg_index == 0) {
3807 * pg_index is the pg# of the UPL we're operating on
3810 isize = ((pg_index + 1) * PAGE_SIZE);
3811 pg_index = 0;
3819 if ( !upl_page_present(pl, pg_index)) {
3828 pg_index++;
3840 if ( !upl_page_present(pl, pg_index + num_of_pages))
3969 pg_index += num_of_pages;
4097 int pg_index;
4109 for (pg_index = ((isize) / PAGE_SIZE); pg_index > 0;) {
4110 if (upl_page_present(pl, --pg_index))
4112 if (pg_index == 0) {
4122 * pg_index is the pg# of the UPL we're operating on.
4125 isize = ((pg_index + 1) * PAGE_SIZE);
4128 pg_index = 0;
4134 if ( !upl_page_present(pl, pg_index)) {
4143 pg_index++;
4147 if ( !upl_dirty_page(pl, pg_index)) {
4148 panic ("hfs_vnop_pageout: unforeseen clean page @ index %d for UPL %p\n", pg_index, upl);
4159 if ( !upl_dirty_page(pl, pg_index + num_of_pages))
4210 pg_index += num_of_pages;