Home
last modified time | relevance | path

Searched refs:f_offset (Results 1 – 10 of 10) sorted by relevance

/xnu-12377.1.9/bsd/vm/
H A Dvnode_pager.c304 vm_object_offset_t f_offset, in vnode_pageout() argument
367 if ((error_ret = VNOP_PAGEOUT(vp, upl, upl_offset, (off_t)f_offset, in vnode_pageout()
390 size, (int)f_offset); in vnode_pageout()
392 if ((error_ret = VNOP_PAGEOUT(vp, NULL, upl_offset, (off_t)f_offset, in vnode_pageout()
407 …if (ubc_create_upl_kernel(vp, f_offset, size, &upl, &pl, request_flags, VM_KERN_MEMORY_FILE) != KE… in vnode_pageout()
461 error = nfs_buf_page_inval(vp, (off_t)f_offset); in vnode_pageout()
463 blkno = ubc_offtoblk(vp, (off_t)f_offset); in vnode_pageout()
477 f_offset += PAGE_SIZE; in vnode_pageout()
495 f_offset += PAGE_SIZE; in vnode_pageout()
515 error = nfs_buf_page_inval(vp, (off_t)f_offset); in vnode_pageout()
[all …]
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_cluster.c188 static int cluster_io(vnode_t vp, upl_t upl, vm_offset_t upl_offset, off_t f_offset, int non_rounde…
200 …tic int cluster_handle_split_pagein(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset,
225 static int cluster_read_prefetch(vnode_t vp, off_t f_offset, u_int size, off_t filesize, int (…
601 cluster_io_present_in_BC(vnode_t vp, off_t f_offset) in cluster_io_present_in_BC() argument
608 …if (VNOP_BLOCKMAP(vp, f_offset, PAGE_SIZE, &blkno, &io_size, NULL, VNODE_READ | VNODE_BLOCKMAP_NO_… in cluster_io_present_in_BC()
652 upl_offset_t upl_offset, upl_size_t size, off_t f_offset) in cluster_handle_associated_upl() argument
678 if ((upl_offset & PAGE_MASK) == (f_offset & PAGE_MASK)) { in cluster_handle_associated_upl()
739 assoc_upl_offset = (upl_offset_t)trunc_page_64(f_offset - assoc_upl_start_f_offset); in cluster_handle_associated_upl()
740 assoc_upl_end = round_page_64(f_offset + size) - assoc_upl_start_f_offset; in cluster_handle_associated_upl()
746 …assertf((upl_offset >= PAGE_SIZE) || ((assoc_upl_start_f_offset == trunc_page_64(f_offset)) && (as… in cluster_handle_associated_upl()
[all …]
H A Dvfs_bio.c1479 buf_strategy_fragmented(vnode_t devvp, buf_t bp, off_t f_offset, size_t contig_bytes) in buf_strategy_fragmented() argument
1556 f_offset += io_contig_bytes; in buf_strategy_fragmented()
1562 …if ((error = VNOP_BLOCKMAP(vp, f_offset, io_resid, &io_blkno, &io_contig_bytes, NULL, bmap_flags, … in buf_strategy_fragmented()
1629 off_t f_offset; in buf_strategy() local
1633 f_offset = bp->b_lblkno * bp->b_lblksize; in buf_strategy()
1634 } else if ((error = VNOP_BLKTOOFF(vp, bp->b_lblkno, &f_offset))) { in buf_strategy()
1642 …if ((error = VNOP_BLOCKMAP(vp, f_offset, bp->b_bcount, &bp->b_blkno, &contig_bytes, NULL, bmap_fla… in buf_strategy()
1660 return buf_strategy_fragmented(devvp, bp, f_offset, contig_bytes); in buf_strategy()
1689 off_t f_offset; in buf_strategy() local
1692 f_offset = bp->b_lblkno * CLUSTER_IO_BLOCK_SIZE; in buf_strategy()
[all …]
H A Dkpi_vfs.c5844 VNOP_PAGEIN(struct vnode *vp, upl_t pl, upl_offset_t pl_offset, off_t f_offset, size_t size, int fl… in VNOP_PAGEIN() argument
5853 a.a_f_offset = f_offset; in VNOP_PAGEIN()
5883 VNOP_PAGEOUT(struct vnode *vp, upl_t pl, upl_offset_t pl_offset, off_t f_offset, size_t size, int f… in VNOP_PAGEOUT() argument
5892 a.a_f_offset = f_offset; in VNOP_PAGEOUT()
/xnu-12377.1.9/osfmk/vm/
H A Dvm_compressor_backing_store.c126 static void vm_swap_free_now(struct swapfile *swf, uint64_t f_offset);
133 static void vm_swapout_finish(c_segment_t c_seg, uint64_t f_offset, uint32_t size, kern_return_t kr…
207 vm_swapfile_for_handle(uint64_t f_offset) in vm_swapfile_for_handle() argument
213 file_offset = (f_offset & SWAP_SLOT_MASK); in vm_swapfile_for_handle()
214 swapfile_index = (f_offset >> SWAP_DEVICE_SHIFT); in vm_swapfile_for_handle()
1423 vm_swapout_finish(c_segment_t c_seg, uint64_t f_offset, uint32_t size, kern_return_t kr) in vm_swapout_finish() argument
1454 c_seg->c_store.c_swap_handle = f_offset; in vm_swapout_finish()
1671 vm_swap_get(c_segment_t c_seg, uint64_t f_offset, uint64_t size) in vm_swap_get() argument
1681 swf = vm_swapfile_for_handle(f_offset); in vm_swap_get()
1695 file_offset = (f_offset & SWAP_SLOT_MASK); in vm_swap_get()
[all …]
H A Dvm_compressor.c4581 uint64_t f_offset; in c_seg_swapin() local
4590 f_offset = c_seg->c_store.c_swap_handle; in c_seg_swapin()
4612 if (vm_swap_get(c_seg, f_offset, io_size) != KERN_SUCCESS) { in c_seg_swapin()
/xnu-12377.1.9/bsd/kern/
H A Dkern_symfile.c229 off_t f_offset; in kern_open_file_for_direct_io() local
457 f_offset = 0; in kern_open_file_for_direct_io()
458 for (; f_offset < ref->filelength; f_offset += filechunk) { in kern_open_file_for_direct_io()
463 error = VNOP_BLOCKMAP(ref->vp, f_offset, filechunk, &blkno, in kern_open_file_for_direct_io()
473 fileblk = f_offset; in kern_open_file_for_direct_io()
474 filechunk = f_offset ? 0 : (unsigned long)ref->filelength; in kern_open_file_for_direct_io()
H A Ddecmpfs.c1288 off_t f_offset = ap->a_f_offset;
1336 if (f_offset < 0 || f_offset >= cachedSize ||
1337 (f_offset & PAGE_MASK_64) || (size & PAGE_MASK) || (pl_offset & PAGE_MASK)) {
1349 err = VNOP_VERIFY(vp, f_offset, NULL, 0, &verify_block_size, NULL,
1401 uplPos = f_offset;
1402 off_t max_size = cachedSize - f_offset;
H A Dubc_subr.c2376 off_t f_offset, in ubc_page_op() argument
2389 (memory_object_offset_t)f_offset, in ubc_page_op()
2518 off_t f_offset, in ubc_create_upl_external() argument
2524 return ubc_create_upl_kernel(vp, f_offset, bufsize, uplp, plp, uplflags, vm_tag_bt()); in ubc_create_upl_external()
2530 off_t f_offset, in ubc_create_upl_kernel() argument
2600 kr = memory_object_upl_request(control, f_offset, bufsize, uplp, NULL, NULL, uplflags, tag); in ubc_create_upl_kernel()
H A Dkern_descrip.c148 #define f_offset fp_glob->fg_offset macro
3036 offset = fp->f_offset; in sys_fcntl_nocancel()
3187 offset = fp->f_offset; in sys_fcntl_nocancel()
3744 file_offset = fp->f_offset; in sys_fcntl_nocancel()