• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching refs:start_pg

145 static void cluster_read_upl_release(upl_t upl, int start_pg, int last_pg, int flags);
3109 cluster_read_upl_release(upl_t upl, int start_pg, int last_pg, int flags)
3114 if ((range = last_pg - start_pg)) {
3118 ubc_upl_abort_range(upl, start_pg * PAGE_SIZE, range * PAGE_SIZE, abort_flags);
3132 int start_pg;
3352 for (start_pg = 0; start_pg < pages_in_upl; start_pg++) {
3353 if (!upl_valid_page(pl, start_pg))
3363 for (last_pg = start_pg; last_pg < pages_in_upl; last_pg++) {
3372 if (start_pg < last_pg) {
3379 upl_offset = start_pg * PAGE_SIZE;
3380 io_size = (last_pg - start_pg) * PAGE_SIZE;
3495 if (start_pg < last_pg) {
3502 io_size = (last_pg - start_pg) * PAGE_SIZE;
3504 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 35)) | DBG_FUNC_START, (int)upl, start_pg * PAGE_SIZE, io_size, error, 0);
3507 ubc_upl_abort_range(upl, start_pg * PAGE_SIZE, io_size,
3510 ubc_upl_commit_range(upl, start_pg * PAGE_SIZE, io_size,
3513 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 35)) | DBG_FUNC_END, (int)upl, start_pg * PAGE_SIZE, io_size, error, 0);
3515 if ((last_pg - start_pg) < pages_in_upl) {
3526 (int)upl, -1, pages_in_upl - (last_pg - start_pg), 0, 0);
3532 cluster_read_upl_release(upl, 0, start_pg, flags);
4274 int start_pg;
4384 for (start_pg = last_pg; start_pg < pages_in_upl; start_pg++) {
4385 if (upl_page_present(pl, start_pg))
4395 for (last_pg = start_pg; last_pg < pages_in_upl; last_pg++) {
4400 if (last_pg > start_pg) {
4407 upl_offset = start_pg * PAGE_SIZE;
4408 io_size = (last_pg - start_pg) * PAGE_SIZE;
4710 int start_pg;
4813 for (start_pg = last_pg; start_pg < pages_in_upl; start_pg++) {
4814 if (upl_dirty_page(pl, start_pg))
4816 if (upl_page_present(pl, start_pg))
4822 ubc_upl_abort_range(upl, start_pg * PAGE_SIZE, PAGE_SIZE, UPL_ABORT_FREE_ON_EMPTY);
4824 if (start_pg >= pages_in_upl)
4829 if (start_pg > last_pg)
4833 size -= ((start_pg - last_pg) * PAGE_SIZE);
4838 for (last_pg = start_pg; last_pg < pages_in_upl; last_pg++) {
4842 upl_offset = start_pg * PAGE_SIZE;
4844 io_size = min(size, (last_pg - start_pg) * PAGE_SIZE);