Searched refs:devBlockSize (Results 1 - 7 of 7) sorted by relevance

/macosx-10.9.5/xnu-2422.115.4/bsd/i386/
H A Dparam.h137 #define btodb(bytes, devBlockSize) \
138 ((unsigned)(bytes) / devBlockSize)
139 #define dbtob(db, devBlockSize) \
140 ((unsigned)(db) * devBlockSize)
/macosx-10.9.5/hfs-226.1.1/fsck_hfs/dfalib/
H A DSDevice.c47 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.9.5/hfs-226.1.1/fsck_hfs/
H A Dfsck_hfs.c637 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 Dcache.h179 int CacheInit (Cache_t *cache, int fdRead, int fdWrite, uint32_t devBlockSize,
H A Dcache.c196 int CacheInit (Cache_t *cache, int fdRead, int fdWrite, uint32_t devBlockSize, argument
207 cache->DevBlockSize = devBlockSize;
/macosx-10.9.5/xnu-2422.115.4/bsd/miscfs/specfs/
H A Dspec_vnops.c446 int devBlockSize=0; local
481 devBlockSize = vp->v_specsize;
483 if (devBlockSize > PAGE_SIZE)
486 bscale = PAGE_SIZE / devBlockSize;
487 bsize = bscale * devBlockSize;
492 bn = (daddr64_t)((uio->uio_offset / devBlockSize) &~ (bscale - 1));
541 int devBlockSize=0; local
580 devBlockSize = vp->v_specsize;
581 if (devBlockSize > PAGE_SIZE)
584 bscale = PAGE_SIZE / devBlockSize;
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dkern_descrip.c1354 int devBlockSize; local
1387 devBlockSize = vfs_devblocksize(vnode_mount(vp));
1407 a_size = devBlockSize;
1431 l2p_struct.l2p_devoffset = bn * devBlockSize;

Completed in 274 milliseconds