• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/msdosfs-209.1.1/userfs_plugin/

Lines Matching defs:bytesPerSector

36     uint32_t bytesPerSector;
631 errno_t error = cache_get_buffer(volume->device, volume->fsInfoSector*volume->bytesPerSector, volume->bytesPerSector, &fsInfoBuffer);
648 return (((uint64_t)cluster - CLUST_FIRST) * volume->bytesPerCluster) + ((uint64_t)(volume->clusterOffset) * volume->bytesPerSector);
1513 assert((offset % volume->bytesPerSector) == 0);
1514 assert((length % volume->bytesPerSector) == 0);
1515 assert(offset < ((uint64_t)volume->rootSize * volume->bytesPerSector));
1516 assert(offset + length <= ((uint64_t)volume->rootSize * volume->bytesPerSector));
1517 physical_offset = (off_t)volume->rootSector * volume->bytesPerSector + offset;
1564 uint32_t bytesPerSector;
1576 if (ioctl(device_fd(device), DKIOCGETBLOCKSIZE, &bytesPerSector) < 0)
1582 if (bytesPerSector > MAX_BLOCK_SIZE)
1585 asl_log(NULL, NULL, ASL_LEVEL_ERR, "%s: block size is too big (%lu)\n", device_name(device), (unsigned long) bytesPerSector);
1593 err = cache_get_buffer(device, 0, bytesPerSector, &bootSector);
1624 v->bytesPerSector = getuint16(b50->bpbBytesPerSec);
1626 v->bytesPerCluster = v->bytesPerSector * sectorsPerCluster;
1643 if (v->bytesPerSector != bytesPerSector)
1646 asl_log(NULL, NULL, ASL_LEVEL_ERR, "%s: logical sector size (%u) != physical sector size (%u)\n", device_name(device), v->bytesPerSector, bytesPerSector);
1674 v->rootSize = (rootEntryCount * sizeof(struct dosdirentry) + bytesPerSector - 1) / bytesPerSector;
1726 v->fatOffset = reservedSectors * bytesPerSector;
1727 v->fatSize = fatSectors * bytesPerSector;
1864 uint32_t clusters = fatSectors * v->bytesPerSector; /* Size of FAT in bytes */
1919 v->rootLength = v->rootSize * v->bytesPerSector;
1937 err = cache_get_buffer(device, v->fsInfoSector*v->bytesPerSector, v->bytesPerSector, &fsInfoBuffer);