/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs.h | 563 #define HFS_PRI_SECTOR(blksize) (1024 / (blksize)) 564 #define HFS_PRI_OFFSET(blksize) ((blksize) > 1024 ? 1024 : 0) 566 #define HFS_ALT_SECTOR(blksize, blkcnt) (((blkcnt) - 1) - (512 / (blksize))) 567 #define HFS_ALT_OFFSET(blksize) ((blksize) > 1024 ? (blksize) - 1024 : 0)
|
H A D | hfs_btreeio.c | 53 static int ClearBTNodes(struct vnode *vp, long blksize, off_t offset, off_t amount); 552 ClearBTNodes(struct vnode *vp, long blksize, off_t offset, off_t amount) argument 559 blk = offset / blksize; 560 blkcnt = amount / blksize; 563 bp = buf_getblk(vp, blk, blksize, 0, 0, BLK_META); 573 bzero((char *)buf_dataptr(bp), blksize);
|
H A D | hfs_readwrite.c | 2849 int blksize; local 2853 blksize = VTOVCB(vp)->blockSize; 2855 filebytes = (off_t)fileblocks * (off_t)blksize; 2895 retval = hfs_chkdq(cp, (int64_t)(roundup(length - filebytes, blksize)), 2943 filebytes = (off_t)fp->ff_blocks * (off_t)blksize; 3047 finalblks = (length + blksize - 1) / blksize; 3068 off_t savedbytes = ((off_t)fp->ff_blocks * (off_t)blksize); 3101 filebytes = (off_t)fp->ff_blocks * (off_t)blksize; 3240 int blksize local 3351 int blksize, error = 0; local 4381 u_int32_t blksize; local 4644 hfs_clonelink(struct vnode *vp, int blksize, kauth_cred_t cred, __unused struct proc *p) argument 4677 hfs_clonefile(struct vnode *vp, int blkstart, int blkcnt, int blksize) argument 4775 hfs_clonesysfile(struct vnode *vp, int blkstart, int blkcnt, int blksize, kauth_cred_t cred, struct proc *p) argument [all...] |
H A D | hfs_vfsutils.c | 1985 size_t blksize; member in struct:jopen_cb_info 2028 error = journal_is_clean(ji->jvp, 0, ji->jsize, (void *)1, ji->blksize); 2065 size_t blksize, 2074 ji.blksize = blksize; 2116 uint32_t blksize = hfsmp->hfs_logical_block_size; local 2135 sectors_per_fsblock = SWAP_BE32(vhp->blockSize) / blksize; 2139 (daddr64_t)((embeddedOffset/blksize) + 2225 blksize, 2248 blksize, 2060 open_journal_dev(const char *vol_device, int need_clean, char *uuid_str, char *machine_serial_num, off_t jsize, size_t blksize, int *need_init) argument [all...] |
H A D | hfs_catalog.c | 1556 long blksize; local 1562 blksize = HFSTOVCB(hfsmp)->blockSize; 1597 file->rsrcPhysicalSize = forkp->cf_blocks * blksize; 1608 file->dataPhysicalSize = forkp->cf_blocks * blksize; 1767 howmany(forkp->cf_bytesread, blksize); 1777 howmany(forkp->cf_bytesread, blksize); 2338 int blksize; local 2347 blksize = hfsmp->blockSize; 2348 blkcount = howmany(kHFSAliasSize, blksize); 2363 blkno = ((u_int64_t)rsrcforkp->extents[0].startBlock * (u_int64_t)blksize) / sectorsiz 2559 int blksize = HFSTOVCB(hfsmp)->blockSize; local [all...] |
H A D | hfs_xattr.c | 2284 int blksize; local 2292 blksize = (int)hfsmp->blockSize; 2299 iosize = (int)extents[i].blockCount * blksize; 2303 uio_setoffset(uio, (u_int64_t)extents[i].startBlock * (u_int64_t)blksize); 2334 int blksize; local 2342 blksize = (int) hfsmp->blockSize; 2349 iosize = (int)extents[i].blockCount * blksize; 2353 uio_setoffset(uio, (u_int64_t)extents[i].startBlock * (u_int64_t)blksize);
|
H A D | hfs_vnops.c | 3353 int blksize = hfsmp->blockSize; local 3432 savedbytes = ((off_t)cp->c_datafork->ff_blocks * (off_t)blksize); 3444 savedbytes = ((off_t)cp->c_rsrcfork->ff_blocks * (off_t)blksize); 3450 savedbytes = ((off_t)temp_rsrc_fork->ff_blocks * (off_t)blksize);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_symfile.c | 80 uint32_t blksize; member in struct:kern_direct_file_io_ref_t 138 fileblk = blkno * ref->blksize; 205 uint32_t blksize; local 293 error = do_ioctl(p1, p2, DKIOCGETBLOCKSIZE, (caddr_t) &ref->blksize); 302 ref->filelength = fileblk * ref->blksize; 330 fileblk = blkno * ref->blksize; 376 error = do_ioctl(p1, p2, DKIOCGETBLOCKSIZE, (caddr_t) &blksize); 385 count *= blksize; 392 count *= blksize;
|
H A D | uipc_usrreq.c | 604 blksize_t blksize; local 609 blksize = so->so_snd.sb_hiwat; 612 blksize += so2->so_rcv.sb_cc; 621 sb64->st_blksize = blksize; 628 sb->st_blksize = blksize;
|
/darwin-on-arm/xnu/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 356 u_int32_t blksize; local 361 if (!VNOP_IOCTL(vp, DKIOCGETBLOCKSIZE, (caddr_t)&blksize, 0, ap->a_context)) { 371 if (VNOP_IOCTL(vp, DKIOCSETBLOCKSIZE, (caddr_t)&blksize, FWRITE, ap->a_context))
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_attrlist.c | 1827 uint32_t blksize = vp->v_mount->mnt_vfsstat.f_bsize; local 1828 if (blksize == 0) { 1829 blksize = 512; 1831 ralloc = roundup(rsize, blksize);
|
H A D | vfs_subr.c | 2955 u_int32_t blksize; local 2990 (caddr_t)&blksize, 0, ctx))) 2993 mp->mnt_devblocksize = blksize; 3061 temp = readblockcnt * blksize; 3072 temp = writeblockcnt * blksize;
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_serv.c | 4447 off_t blksize; local 4455 blksize = 512; 4477 blksize = vnode_mount(vp)->mnt_vfsstat.f_bsize; 4499 nfsm_chain_add_64(error, &nmrep, va.f_blocks * blksize); 4500 nfsm_chain_add_64(error, &nmrep, va.f_bfree * blksize); 4501 nfsm_chain_add_64(error, &nmrep, va.f_bavail * blksize); 4508 nfsm_chain_add_32(error, &nmrep, blksize);
|