Searched refs:devBlockSize (Results 1 - 7 of 7) sorted by relevance
/macosx-10.10.1/xnu-2782.1.97/bsd/i386/ |
H A D | param.h | 137 #define btodb(bytes, devBlockSize) \ 138 ((unsigned)(bytes) / devBlockSize) 139 #define dbtob(db, devBlockSize) \ 140 ((unsigned)(db) * devBlockSize)
|
/macosx-10.10.1/hfs-285/fsck_hfs/dfalib/ |
H A D | SDevice.c | 47 int devBlockSize = 0; local 54 if (ioctl(driveRefNum, DKIOCGETBLOCKSIZE, &devBlockSize) < 0) { 59 if (devBlockSize != 512) { 60 *numBlocks = (devBlockCount * (UInt64)devBlockSize) / 512; 64 *blockSize = devBlockSize;
|
/macosx-10.10.1/hfs-285/fsck_hfs/ |
H A D | fsck_hfs.c | 637 int devBlockSize; local 703 if (ioctl(fsreadfd, DKIOCGETBLOCKSIZE, &devBlockSize) < 0) { 754 if (CacheInit (&fscache, fsreadfd, fswritefd, devBlockSize, 897 uint32_t devBlockSize = 512; local 921 if (ioctl(fd, DKIOCGETBLOCKSIZE, &devBlockSize) == -1) { 922 devBlockSize = 512; 928 diskSize = devBlockTotal * devBlockSize; 930 while (buffer == NULL && bufSize >= devBlockSize) { 958 /* Try reading devBlockSize blocks */ 960 for (total = 0; total < bufSize; total += devBlockSize) { [all...] |
H A D | cache.h | 179 int CacheInit (Cache_t *cache, int fdRead, int fdWrite, uint32_t devBlockSize,
|
H A D | cache.c | 196 int CacheInit (Cache_t *cache, int fdRead, int fdWrite, uint32_t devBlockSize, argument 207 cache->DevBlockSize = devBlockSize;
|
/macosx-10.10.1/xnu-2782.1.97/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 448 int devBlockSize=0; local 482 devBlockSize = vp->v_specsize; 484 if (devBlockSize > PAGE_SIZE) 487 bscale = PAGE_SIZE / devBlockSize; 488 bsize = bscale * devBlockSize; 493 bn = (daddr64_t)((uio->uio_offset / devBlockSize) &~ (bscale - 1)); 542 int devBlockSize=0; local 581 devBlockSize = vp->v_specsize; 582 if (devBlockSize > PAGE_SIZE) 585 bscale = PAGE_SIZE / devBlockSize; [all...] |
/macosx-10.10.1/xnu-2782.1.97/bsd/kern/ |
H A D | kern_descrip.c | 1358 int devBlockSize; local 1391 devBlockSize = vfs_devblocksize(vnode_mount(vp)); 1411 a_size = devBlockSize; 1435 l2p_struct.l2p_devoffset = bn * devBlockSize;
|
Completed in 115 milliseconds