Searched refs:filesize (Results 1 - 19 of 19) sorted by relevance

/xnu-2422.115.4/tools/tests/perf_index/
H A Dstress_file_read.c39 long long filesize; local
44 filesize = MIN(length, max_file_size/num_threads);
51 if(file_offset+readlen > filesize) {
/xnu-2422.115.4/bsd/kern/
H A Dmach_fat.c85 off_t filesize;
103 filesize = ubc_getsize(vp);
104 if (end_of_archs > (int)filesize) {
H A Dmach_loader.c252 scp->filesize = scp32->filesize;
954 if (scp->fileoff + scp->filesize < scp->fileoff ||
955 scp->fileoff + scp->filesize > (uint64_t)macho_size)
973 map_size = round_page_64(scp->filesize);
1047 delta_size = map_size - scp->filesize;
1056 if (copyout(tmp, map_addr + scp->filesize,
1085 if ( (scp->fileoff == 0) && (scp->filesize != 0) )
1090 scp->filesize,
1733 (seg64->fileoff+seg64->filesize >
[all...]
H A Dkern_core.c411 sc64->filesize = vmsize;
424 sc->filesize = CAST_DOWN_EXPLICIT(uint32_t,vmsize); /* will never truncate */
H A Dubc_subr.c106 static int ubc_info_init_internal(struct vnode *vp, int withfsize, off_t filesize);
752 * filesize The size of the file
759 ubc_info_init_withsize(struct vnode *vp, off_t filesize) argument
761 return(ubc_info_init_internal(vp, 1, filesize));
772 * from the vnode; otherwise, use filesize
773 * filesize The size of the file, if withfsize == 1
794 ubc_info_init_internal(vnode_t vp, int withfsize, off_t filesize) argument
872 uip->ui_size = filesize;
H A Ddecmpfs.c1670 uint64_t filesize = 0; local
1671 vnsize(vp, &filesize);
1672 DebugLog("new file size %lld\n", filesize);
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_cluster.c175 static int cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags,
177 static int cluster_read_direct(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length,
179 static int cluster_read_contig(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length,
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);
192 static void cluster_read_ahead(vnode_t vp, struct cl_extent *extent, off_t filesize, struct cl_readahead *ra, int (*callback)(buf_t, void *), void *callback_arg, int bflag);
1661 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) argument
1666 (int)f_offset, size, (int)filesize, 0, 0);
1668 if (f_offset >= filesize) {
1673 if ((off_t)size > (filesize - f_offset))
1674 size = filesize
1688 cluster_read_ahead(vnode_t vp, struct cl_extent *extent, off_t filesize, struct cl_readahead *rap, int (*callback)(buf_t, void *), void *callback_arg, int bflag) argument
1768 cluster_pageout(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset, int size, off_t filesize, int flags) argument
1777 cluster_pageout_ext(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset, int size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
1845 cluster_pagein(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset, int size, off_t filesize, int flags) argument
1853 cluster_pagein_ext(vnode_t vp, upl_t upl, upl_offset_t upl_offset, off_t f_offset, int size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
3355 cluster_read(vnode_t vp, struct uio *uio, off_t filesize, int xflags) argument
3362 cluster_read_ext(vnode_t vp, struct uio *uio, off_t filesize, int xflags, int (*callback)(buf_t, void *), void *callback_arg) argument
3463 cluster_read_copy(vnode_t vp, struct uio *uio, u_int32_t io_req_size, off_t filesize, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
3988 cluster_read_direct(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, int flags, int (*callback)(buf_t, void *), void *callback_arg) argument
4510 cluster_read_contig(vnode_t vp, struct uio *uio, off_t filesize, int *read_type, u_int32_t *read_length, int (*callback)(buf_t, void *), void *callback_arg, int flags) argument
4793 advisory_read(vnode_t vp, off_t filesize, off_t f_offset, int resid) argument
4799 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) argument
5812 is_file_clean(vnode_t vp, off_t filesize) argument
[all...]
H A Dvfs_xattr.c1418 size_t filesize; member in struct:attr_info
1421 size_t rawsize; /* minimum of filesize or ATTR_MAX_HDR_SIZE */
1557 entry_end > ainfop->filesize) {
1973 ainfo.filesize += growsize;
1974 error = vnode_setsize(xvp, ainfo.filesize, 0, context);
2176 if ((ainfo.rsrcfork->offset + ainfo.rsrcfork->length) == ainfo.filesize) {
2177 ainfo.filesize -= ainfo.rsrcfork->length;
2178 error = vnode_setsize(xvp, ainfo.filesize, 0, context);
2732 ainfop->filesize = va.va_data_size;
2738 iosize = MIN(ATTR_MAX_HDR_SIZE, ainfop->filesize);
[all...]
/xnu-2422.115.4/bsd/hfs/
H A Dhfs_readwrite.c122 off_t filesize; local
206 filesize = fp->ff_size;
208 if (offset > filesize) {
217 (int)uio_offset(uio), uio_resid(uio), (int)filesize, (int)filebytes, 0);
219 retval = cluster_read(vp, uio, filesize, ap->a_ioflag |io_throttle);
224 (int)uio_offset(uio), uio_resid(uio), (int)filesize, (int)filebytes, 0);
542 off_t filesize; local
551 filesize = writelimit;
553 filesize = fp->ff_size;
642 if (tail_off > filesize) tail_of
4481 off_t filesize; local
[all...]
H A Dhfs_vfsutils.c2765 u_int64_t filesize; local
2844 filesize = (fs_size / 1024) * 5;
2845 if (filesize > HOTBAND_MAXIMUM_SIZE)
2846 filesize = HOTBAND_MAXIMUM_SIZE;
2847 else if (filesize < HOTBAND_MINIMUM_SIZE)
2848 filesize = HOTBAND_MINIMUM_SIZE;
2866 filesize += (items + 1) * sizeof(struct dqblk);
2884 filesize += (items + 1) * sizeof(struct dqblk);
2886 zonesize += filesize;
2929 filesize
[all...]
H A Dhfs_hotfiles.c1871 int filesize; local
1891 filesize = nodecnt * nodesize;
1903 bthp->totalNodes = SWAP_BE32 (filesize / nodesize);
1905 bthp->clumpSize = SWAP_BE32 (filesize);
1934 error = hfs_truncate(vp, (off_t)filesize, IO_NDELAY, 0, 0, ctx);
H A Dhfs_xattr.c2395 off_t filesize; local
2408 filesize = VTOF(evp)->ff_size;
2420 result = cluster_write(evp, uio, filesize, filesize, filesize,
/xnu-2422.115.4/libkern/kxld/
H A Dkxld_seg.c567 /* Update the filesize */
570 hdr32->filesize = (uint32_t) (*data_offset - base_data_offset);
572 hdr64->filesize = (uint64_t) (*data_offset - base_data_offset);
651 seghdr->filesize = (uint32_t) seg->vmsize;
691 seghdr->filesize = (uint64_t) seg->vmsize;
H A Dkxld_util.c362 require_action(size >= seg_hdr->fileoff + seg_hdr->filesize, finish,
531 require_action(size >= seg_hdr->fileoff + seg_hdr->filesize, finish,
/xnu-2422.115.4/EXTERNAL_HEADERS/mach-o/
H A Dloader.h319 * filesize. The file is mapped starting at fileoff to the beginning of
334 uint32_t filesize; /* amount to map from the file */ member in struct:segment_command
354 uint64_t filesize; /* amount to map from the file */ member in struct:segment_command_64
/xnu-2422.115.4/SETUP/kextsymboltool/
H A Dkextsymboltool.c755 segcmd.filesize = segcmd.vmsize;
795 segcmd.filesize = segcmd.vmsize;
/xnu-2422.115.4/osfmk/kdp/ml/i386/
H A Dkdp_x86_common.c526 sc.filesize = size;
/xnu-2422.115.4/bsd/nfs/
H A Dnfs_bio.c438 off_t filesize, fileoffset; local
445 filesize = ubc_getsize(NFSTOV(bp->nb_np));
447 if (fileoffset < filesize)
457 if (fileoffset >= filesize)
471 if (fileoffset + bp->nb_validend > filesize)
472 bp->nb_validend = filesize - fileoffset;
/xnu-2422.115.4/libkern/c++/
H A DOSKext.cpp5121 linkeditSeg->filesize = linkeditSeg->vmsize;
8207 segp->filesize = 0;

Completed in 151 milliseconds