Lines Matching defs:upl

62 #include <mach/upl.h>
259 upl_t upl,
289 if (upl && !(flags & UPL_NOCOMMIT))
290 ubc_upl_abort_range(upl, upl_offset, size, UPL_ABORT_FREE_ON_EMPTY);
303 if ( (error_ret = VNOP_PAGEOUT(vp, upl, upl_offset, (off_t)f_offset,
313 if (upl == NULL) {
343 if (ubc_create_upl(vp, f_offset, size, &upl, &pl, request_flags) != KERN_SUCCESS) {
350 pl = ubc_upl_pageinfo(upl);
354 * for msyncs... the upl may not contain any
379 ubc_upl_abort_range(upl, offset, PAGE_SIZE, UPL_ABORT_FREE_ON_EMPTY);
385 ubc_upl_commit_range(upl, offset, PAGE_SIZE, UPL_COMMIT_FREE_ON_EMPTY);
393 * UPL so that we aren't looking at a upl that
405 * our hold on the upl and leave
408 ubc_upl_abort_range(upl, upl_offset, isize, UPL_ABORT_FREE_ON_EMPTY);
458 ubc_upl_abort_range(upl, offset, PAGE_SIZE, UPL_ABORT_FREE_ON_EMPTY);
464 ubc_upl_commit_range(upl, offset, PAGE_SIZE, UPL_COMMIT_FREE_ON_EMPTY);
488 if ( (error = VNOP_PAGEOUT(vp, upl, offset, (off_t)f_offset,
514 upl_t upl,
542 if (upl && must_commit)
543 ubc_upl_abort_range(upl, upl_offset, size, UPL_ABORT_FREE_ON_EMPTY | UPL_ABORT_ERROR);
547 if (upl == (upl_t)NULL) {
575 ubc_create_upl(vp, f_offset, size, &upl, &pl, UPL_UBC_PAGEIN | UPL_RET_ONLY_ABSENT);
577 if (upl == (upl_t)NULL) {
582 ubc_upl_range_needed(upl, upl_offset / PAGE_SIZE, 1);
588 * if we get here, we've created the upl and
594 pl = ubc_upl_pageinfo(upl);
603 * upl
613 ubc_upl_abort_range(upl, upl_offset, size, UPL_ABORT_FREE_ON_EMPTY);
651 ubc_upl_abort_range(upl, start_pg * PAGE_SIZE, xsize, UPL_ABORT_FREE_ON_EMPTY);
672 * or non-present page before the end of the upl is reached, if we
685 if ( (error = VNOP_PAGEIN(vp, upl, (upl_offset_t) xoff,
700 ubc_upl_abort_range(upl, (upl_offset_t) xoff, xsize, UPL_ABORT_FREE_ON_EMPTY | UPL_ABORT_RESTART);
704 ubc_upl_abort_range(upl, (upl_offset_t) xoff, xsize, UPL_ABORT_FREE_ON_EMPTY | UPL_ABORT_ERROR);
740 upl_get_internal_page_list(upl_t upl)
742 return(UPL_GET_INTERNAL_PAGE_LIST(upl));