Lines Matching refs:upl_size
1905 vm_size_t upl_size;
2000 upl_size = upl_needed_size;
2006 &upl_size,
2026 pages_in_pl = upl_size / PAGE_SIZE;
2043 i, pages_in_pl, upl_size, kret, 0);
2056 * Consider the possibility that upl_size wasn't satisfied.
2058 if (upl_size < upl_needed_size) {
2059 if (upl_size && upl_offset == 0)
2060 io_size = upl_size;
2065 (int)upl_offset, upl_size, (int)iov_base, io_size, 0);
2205 vm_size_t upl_size;
2243 upl_size = upl_needed_size;
2249 &upl_size, &upl[cur_upl], NULL, &pages_in_pl, &upl_flags, 0);
2261 * Consider the possibility that upl_size wasn't satisfied.
2263 if (upl_size < upl_needed_size) {
2419 vm_size_t upl_size;
2551 upl_size = 0;
2564 upl_size = (start_offset + total_size + (PAGE_SIZE - 1)) & ~PAGE_MASK;
2566 if (upl_size > max_io_size)
2567 upl_size = max_io_size;
2569 pages_in_upl = upl_size / PAGE_SIZE;
2570 io_size = upl_size - start_offset;
2575 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 41)) | DBG_FUNC_START, upl_size, io_size, total_size, 0, 0);
2585 upl_size,
2619 if (upl_size > PAGE_SIZE)
2620 ubc_upl_abort_range(upl, 0, upl_size, UPL_ABORT_FREE_ON_EMPTY);
2627 if ((start_offset == 0 || upl_size > PAGE_SIZE) && ((start_offset + io_size) & PAGE_MASK)) {
2633 upl_offset = upl_size - PAGE_SIZE;
2655 if (upl_size > PAGE_SIZE)
2656 ubc_upl_abort_range(upl, 0, upl_size, UPL_ABORT_FREE_ON_EMPTY);
2705 ubc_upl_abort_range(upl, 0, upl_size, UPL_ABORT_DUMP_PAGES | UPL_ABORT_FREE_ON_EMPTY);
2749 if ((upl_f_offset + io_size) >= newEOF && (u_int)io_size < upl_size) {
2756 cluster_zero(upl, io_size, upl_size - io_size, NULL);
2776 ubc_upl_commit_range(upl, 0, upl_size,
2783 cl.e_addr = (daddr64_t)((upl_f_offset + (off_t)upl_size) / PAGE_SIZE_64);
3129 u_int32_t upl_size;
3320 upl_size = (start_offset + io_size + (PAGE_SIZE - 1)) & ~PAGE_MASK;
3323 if (upl_size > max_io_size)
3324 upl_size = max_io_size;
3326 if (upl_size > max_io_size / 4)
3327 upl_size = max_io_size / 4;
3329 pages_in_upl = upl_size / PAGE_SIZE;
3332 (int)upl, (int)upl_f_offset, upl_size, start_offset, 0);
3336 upl_size,
3344 (int)upl, (int)upl_f_offset, upl_size, start_offset, 0);
3434 if ((last_ioread_offset - (uio->uio_offset + val_size)) <= upl_size) {
3522 ubc_upl_abort_range(upl, 0, upl_size, UPL_ABORT_FREE_ON_EMPTY);
3589 vm_size_t upl_size;
3795 upl_size = upl_needed_size;
3805 &upl_size, &upl, NULL, &pages_in_pl, &upl_flags);
3809 (int)upl_offset, upl_size, io_size, kret, 0);
3819 pages_in_pl = upl_size / PAGE_SIZE;
3833 (int)upl_offset, upl_size, io_size, kret, 0);
3838 * Consider the possibility that upl_size wasn't satisfied.
3840 if (upl_size < upl_needed_size) {
3841 if (upl_size && upl_offset == 0)
3842 io_size = upl_size;
3851 (int)upl_offset, upl_size, io_size, kret, 0);
3970 vm_size_t upl_size;
4021 upl_size = upl_needed_size;
4026 (int)upl_offset, (int)upl_size, (int)iov_base, io_size, 0);
4030 &upl_size, &upl[cur_upl], NULL, &pages_in_pl, &upl_flags, 0);
4033 (int)upl_offset, upl_size, io_size, kret, 0);
4044 if (upl_size < upl_needed_size) {
4046 * The upl_size wasn't satisfied.
4196 vm_size_t upl_size;
4217 upl_size = MAX_IO_REQUEST_SIZE;
4219 upl_size = (u_int32_t)iov_len;
4225 &upl_size, &upl, NULL, NULL, &upl_flags, 0)) != KERN_SUCCESS) {
4231 if (upl_size == 0)
4234 *io_length = upl_size;
4271 int upl_size;
4315 upl_size = (start_offset + io_size + (PAGE_SIZE - 1)) & ~PAGE_MASK;
4316 if ((uint32_t)upl_size > max_io_size)
4317 upl_size = max_io_size;
4324 ubc_range_op(vp, upl_f_offset, upl_f_offset + upl_size, UPL_ROP_PRESENT, &skip_range);
4335 if (skip_range == upl_size)
4344 upl_size -= skip_range;
4346 pages_in_upl = upl_size / PAGE_SIZE;
4349 (int)upl, (int)upl_f_offset, upl_size, start_offset, 0);
4353 upl_size,
4374 (int)upl, (int)upl_f_offset, upl_size, start_offset, 0);
4425 io_size = upl_size - start_offset;
4707 int upl_size;
4734 upl_size = pages_in_upl * PAGE_SIZE;
4737 if (upl_f_offset + upl_size >= EOF) {
4751 upl_size = (size + (PAGE_SIZE - 1)) & ~PAGE_MASK;
4752 pages_in_upl = upl_size / PAGE_SIZE;
4754 size = upl_size;
4756 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 41)) | DBG_FUNC_START, upl_size, size, 0, 0, 0);
4777 upl_size,