Lines Matching defs:f_offset

162 static int cluster_io(vnode_t vp, upl_t upl, vm_offset_t upl_offset, off_t f_offset, int non_rounded_size,
191 static int cluster_read_prefetch(vnode_t vp, off_t f_offset, u_int size, off_t filesize, int (*callback)(buf_t, void *), void *callback_arg, int bflag);
481 cluster_io_present_in_BC(vnode_t vp, off_t f_offset)
488 if (VNOP_BLOCKMAP(vp, f_offset, PAGE_SIZE, &blkno, &io_size, NULL, VNODE_READ, NULL))
911 cluster_io(vnode_t vp, upl_t upl, vm_offset_t upl_offset, off_t f_offset, int non_rounded_size,
979 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 22)) | DBG_FUNC_START, (int)f_offset, size, upl_offset, flags, 0);
1094 if ((error = VNOP_BLOCKMAP(vp, f_offset, io_size, &blkno, &io_size_tmp, NULL, bmap_flags, NULL)))
1106 (int)f_offset, (int)(blkno>>32), (int)blkno, io_size, 0);
1228 if (vnode_pageout(vp, upl, trunc_page(upl_offset), trunc_page_64(f_offset), PAGE_SIZE, pageout_flags, NULL) != PAGER_SUCCESS) {
1231 e_offset = round_page_64(f_offset + 1);
1232 io_size = e_offset - f_offset;
1234 f_offset += io_size;
1265 lblkno = (daddr64_t)(f_offset / PAGE_SIZE_64);
1365 f_offset += io_size;
1510 f_offset += io_size;
1664 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 22)) | DBG_FUNC_END, (int)f_offset, size, upl_offset, retval, 0);
1689 cluster_read_prefetch(vnode_t vp, off_t f_offset, u_int size, off_t filesize, int (*callback)(buf_t, void *), void *callback_arg, int bflag)
1694 (int)f_offset, size, (int)filesize, 0, 0);
1696 if (f_offset >= filesize) {
1698 (int)f_offset, 0, 0, 0, 0);
1701 if ((off_t)size > (filesize - f_offset))
1702 size = filesize - f_offset;
1705 advisory_read_ext(vp, filesize, f_offset, size, callback, callback_arg, bflag);
1708 (int)f_offset + size, pages_in_prefetch, 0, 1, 0);
1720 off_t f_offset;
1761 f_offset = (off_t)(r_addr * PAGE_SIZE_64);
1765 ubc_range_op(vp, f_offset, f_offset + PAGE_SIZE_64, UPL_ROP_PRESENT, &size_of_prefetch);
1772 if (f_offset < filesize) {
1785 size_of_prefetch = cluster_read_prefetch(vp, f_offset, rap->cl_ralen * PAGE_SIZE, filesize, callback, callback_arg, bflag);
1796 cluster_pageout(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset,
1799 return cluster_pageout_ext(vp, upl, upl_offset, f_offset, size, filesize, flags, NULL, NULL);
1805 cluster_pageout_ext(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset,
1826 (int)f_offset, size, (int)filesize, local_flags, 0);
1847 if (f_offset < 0 || f_offset >= filesize ||
1848 (f_offset & PAGE_MASK_64) || (size & PAGE_MASK)) {
1853 max_size = filesize - f_offset;
1867 return (cluster_io(vp, upl, upl_offset, f_offset, io_size,
1873 cluster_pagein(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset,
1876 return cluster_pagein_ext(vp, upl, upl_offset, f_offset, size, filesize, flags, NULL, NULL);
1881 cluster_pagein_ext(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset,
1904 (int)f_offset, size, (int)filesize, local_flags, 0);
1912 if (f_offset < 0 || f_offset >= filesize ||
1913 (f_offset & PAGE_MASK_64) || (size & PAGE_MASK) || (upl_offset & PAGE_MASK)) {
1918 max_size = filesize - f_offset;
1931 retval = cluster_io(vp, upl, upl_offset, f_offset, io_size,
1948 off_t f_offset;
1961 f_offset = ubc_blktooff(bp->b_vp, bp->b_lblkno);
1963 return (cluster_io(bp->b_vp, bp->b_upl, 0, f_offset, bp->b_bcount, flags, bp, (struct clios *)NULL, callback, callback_arg));
4815 advisory_read(vnode_t vp, off_t filesize, off_t f_offset, int resid)
4817 return advisory_read_ext(vp, filesize, f_offset, resid, NULL, NULL, CL_PASSIVE);
4821 advisory_read_ext(vnode_t vp, off_t filesize, off_t f_offset, int resid, int (*callback)(buf_t, void *), void *callback_arg, int bflag)
4860 (int)f_offset, resid, (int)filesize, 0, 0);
4862 while (resid && f_offset < filesize && retval == 0) {
4871 start_offset = (int)(f_offset & PAGE_MASK_64);
4872 upl_f_offset = f_offset - (off_t)start_offset;
4873 max_size = filesize - f_offset;
4897 f_offset += io_size;
4994 f_offset += io_size;
4999 (int)f_offset, resid, retval, 0, 0);
5841 off_t f_offset;
5845 for (f_offset = 0; f_offset < filesize; f_offset += PAGE_SIZE_64) {
5846 if (ubc_page_op(vp, f_offset, 0, NULL, &flags) == KERN_SUCCESS) {