/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | bootsect.c | 76 if (le16_to_cpu(b->bpb.bytes_per_sector) < 256 || in ntfs_boot_sector_is_ntfs() 77 le16_to_cpu(b->bpb.bytes_per_sector) > 4096) { in ntfs_boot_sector_is_ntfs() 79 le16_to_cpu(b->bpb.bytes_per_sector)); in ntfs_boot_sector_is_ntfs() 107 i = (u32)le16_to_cpu(b->bpb.bytes_per_sector) * sectors_per_cluster; in ntfs_boot_sector_is_ntfs() 202 vol->sector_size = le16_to_cpu(bs->bpb.bytes_per_sector); in ntfs_boot_sector_parse()
|
/haiku/src/tools/fs_shell/ |
H A D | unistd.cpp | 155 geometry->bytes_per_sector in fssh_ioctl() 156 = systemGeometry.bytes_per_sector; in fssh_ioctl() 206 geometry->bytes_per_sector = blockSize; in fssh_ioctl() 250 geometry->bytes_per_sector = disklabel.d_secsize; in fssh_ioctl() 301 &geometry->bytes_per_sector) != 0) { in fssh_ioctl()
|
/haiku/src/add-ons/kernel/file_systems/shared/ |
H A D | DeviceOpener.cpp | 130 * geometry.sectors_per_track * geometry.bytes_per_sector; in GetSize() 133 *_blockSize = geometry.bytes_per_sector; in GetSize()
|
/haiku/src/tests/add-ons/kernel/partitioning_systems/ |
H A D | PartitioningSystemsTest.cpp | 69 device->geometry.bytes_per_sector = blockSize; in create_disk_device() 82 * device->geometry.bytes_per_sector; in create_disk_device() 83 partition->block_size = device->geometry.bytes_per_sector; in create_disk_device() 103 printf(" bytes per sector %lu\n", data->geometry.bytes_per_sector); in print_disk_device() 109 * data->geometry.bytes_per_sector); in print_disk_device()
|
/haiku/src/system/boot/platform/atari_m68k/ |
H A D | devices.cpp | 51 uint16 bytes_per_sector; member 230 parameters->bytes_per_sector = 512; in get_drive_parameters() 732 fParameters.bytes_per_sector)); in FloppyDrive() 746 fParameters.bytes_per_sector)); in FloppyDrive() 749 fBlockSize = fParameters.bytes_per_sector; in FloppyDrive() 903 fParameters.bytes_per_sector)); in BIOSDrive() 917 fParameters.bytes_per_sector)); in BIOSDrive() 920 fBlockSize = fParameters.bytes_per_sector; in BIOSDrive() 1045 fParameters.bytes_per_sector)); in XHDIDrive() 1059 fParameters.bytes_per_sector)); in XHDIDrive() [all …]
|
/haiku/src/add-ons/kernel/drivers/disk/mmc/ |
H A D | mmc_disk.h | 44 return (off_t)geometry.bytes_per_sector * geometry.sectors_per_track in DeviceSize()
|
H A D | mmc_disk.cpp | 169 geometry->bytes_per_sector = 1 << csd.read_bl_len(); in mmc_block_get_geometry() 368 if (handle->info->geometry.bytes_per_sector == 0) { in mmc_block_open()
|
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | mkdos.cpp | 143 biosGeometry.bytes_per_sector); in _dosfs_initialize() 153 deviceGeometry.bytes_per_sector); in _dosfs_initialize() 179 if ((hasBiosGeometry && biosGeometry.bytes_per_sector != 512) in _dosfs_initialize() 180 || (hasDeviceGeometry && deviceGeometry.bytes_per_sector != 512)) { in _dosfs_initialize() 202 size = uint64(deviceGeometry.bytes_per_sector) in _dosfs_initialize() 206 size = uint64(biosGeometry.bytes_per_sector) in _dosfs_initialize()
|
/haiku/src/tests/kits/storage/virtualdrive/ |
H A D | mkvirtualdrive.cpp | 125 info.geometry.bytes_per_sector = blockSize; in install_file() 198 off_t size = (off_t)info.geometry.bytes_per_sector in info_for_device()
|
H A D | virtualdrive.cpp | 206 size = (off_t)info.geometry.bytes_per_sector in init_device_info() 229 info.geometry.bytes_per_sector = blockSize; in init_device_info() 237 size = (off_t)info.geometry.bytes_per_sector in init_device_info() 643 dg->bytes_per_sector = 512; in virtualdrive_control()
|
/haiku/src/add-ons/kernel/partitioning_systems/atari/ |
H A D | atari.h | 80 uint16 bytes_per_sector; /* LE */ member
|
/haiku/src/system/kernel/disk_device_manager/ |
H A D | KDiskDevice.cpp | 393 fPartitionData.block_size = fDeviceData.geometry.bytes_per_sector; in _InitPartitionData() 411 fDeviceData.geometry.bytes_per_sector = 0; in _ResetGeometry()
|
H A D | KFileDiskDevice.cpp | 168 geometry->bytes_per_sector = blockSize; in GetGeometry()
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | devices.cpp | 66 uint16 bytes_per_sector; member 263 parameters->bytes_per_sector = 512; in get_drive_parameters() 589 fParameters.bytes_per_sector)); in BIOSDrive() 603 fParameters.bytes_per_sector)); in BIOSDrive() 606 fBlockSize = fParameters.bytes_per_sector; in BIOSDrive()
|
/haiku/src/bin/ |
H A D | driveinfo.c | 62 printf("bytes_per_sector:\t%" B_PRIu32 "\n", geom.bytes_per_sector); in dump_geom()
|
/haiku/headers/os/drivers/ |
H A D | Drivers.h | 125 uint32 bytes_per_sector; /* sector size in bytes */ member
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_drivers.h | 146 uint32_t bytes_per_sector; /* sector size in bytes */ member
|
/haiku/src/add-ons/kernel/drivers/disk/norflash/ |
H A D | norflash.cpp | 121 deviceGeometry->bytes_per_sector = info->blocksize; in nor_ioctl()
|
/haiku/src/system/kernel/device_manager/ |
H A D | FileDevice.cpp | 328 geometry.bytes_per_sector = kBlockSize; in Control()
|
H A D | devfs.cpp | 1470 if (geometry.bytes_per_sector == 0) in devfs_ioctl() 1471 geometry.bytes_per_sector = 512; in devfs_ioctl() 1474 partition->info.size / geometry.bytes_per_sector, in devfs_ioctl() 1475 geometry.bytes_per_sector); in devfs_ioctl() 1850 * geometry.sectors_per_track * geometry.bytes_per_sector; in devfs_read_stat() 2248 geometry->bytes_per_sector = blockSize; in devfs_compute_geometry_size()
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/remote_disk/ |
H A D | remote_disk.cpp | 95 geometry->bytes_per_sector = REMOTE_DISK_BLOCK_SIZE; in GetGeometry()
|
/haiku/src/tests/system/kernel/file_corruption/fs/ |
H A D | Volume.cpp | 105 size = (off_t)geometry.bytes_per_sector * geometry.sectors_per_track in Init()
|
/haiku/src/tests/system/kernel/file_corruption/driver/ |
H A D | checksum_device.cpp | 355 fFileSize = (off_t)geometry.bytes_per_sector in Init() 1107 geometry.bytes_per_sector = B_PAGE_SIZE; in checksum_raw_device_control()
|
/haiku/src/apps/diskprobe/ |
H A D | DataEditor.cpp | 512 * geometry.sectors_per_track * geometry.bytes_per_sector; in SetTo() 516 fBlockSize = geometry.bytes_per_sector; in SetTo()
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/virtio_block/ |
H A D | virtio_block.cpp | 154 ", %d, %d, %d, %d\n", geometry->bytes_per_sector, geometry->sectors_per_track, in get_geometry()
|