Lines Matching refs:pg_count
763 u_int pg_count;
1086 * pg_count is the number of full and partial pages that 'io_size' encompasses
1094 pg_count = 1;
1096 pg_count = (io_size + pg_offset + (PAGE_SIZE - 1)) / PAGE_SIZE;
1126 pg_count = 0;
1155 pg_count = (bytes_to_zero - pg_resid + (PAGE_SIZE - 1)) / PAGE_SIZE;
1157 pg_count = (bytes_to_zero - pg_resid) / PAGE_SIZE;
1171 pg_count = (pg_offset + bytes_to_zero + (PAGE_SIZE - 1)) / PAGE_SIZE;
1173 pg_count = (pg_offset + bytes_to_zero) / PAGE_SIZE;
1177 if ( (flags & CL_COMMIT) && pg_count) {
1178 ubc_upl_commit_range(upl, commit_offset, pg_count * PAGE_SIZE,
1213 if (pg_count > max_vectors) {
1214 if (((pg_count - max_vectors) * PAGE_SIZE) > io_size) {
1216 pg_count = 1;
1218 io_size -= (pg_count - max_vectors) * PAGE_SIZE;
1219 pg_count = max_vectors;
1248 pg_count--;
1273 for (i = 0; i < pg_count; i++) {