Home
last modified time | relevance | path

Searched refs:bytes_per_sector (Results 1 – 25 of 40) sorted by relevance

12

/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dbootsect.c76 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 Dunistd.cpp155 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 DDeviceOpener.cpp130 * 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 DPartitioningSystemsTest.cpp69 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 Ddevices.cpp51 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 Dmmc_disk.h44 return (off_t)geometry.bytes_per_sector * geometry.sectors_per_track in DeviceSize()
H A Dmmc_disk.cpp169 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 Dmkdos.cpp143 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 Dmkvirtualdrive.cpp125 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 Dvirtualdrive.cpp206 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 Datari.h80 uint16 bytes_per_sector; /* LE */ member
/haiku/src/system/kernel/disk_device_manager/
H A DKDiskDevice.cpp393 fPartitionData.block_size = fDeviceData.geometry.bytes_per_sector; in _InitPartitionData()
411 fDeviceData.geometry.bytes_per_sector = 0; in _ResetGeometry()
H A DKFileDiskDevice.cpp168 geometry->bytes_per_sector = blockSize; in GetGeometry()
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp66 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 Ddriveinfo.c62 printf("bytes_per_sector:\t%" B_PRIu32 "\n", geom.bytes_per_sector); in dump_geom()
/haiku/headers/os/drivers/
H A DDrivers.h125 uint32 bytes_per_sector; /* sector size in bytes */ member
/haiku/headers/private/fs_shell/
H A Dfssh_drivers.h146 uint32_t bytes_per_sector; /* sector size in bytes */ member
/haiku/src/add-ons/kernel/drivers/disk/norflash/
H A Dnorflash.cpp121 deviceGeometry->bytes_per_sector = info->blocksize; in nor_ioctl()
/haiku/src/system/kernel/device_manager/
H A DFileDevice.cpp328 geometry.bytes_per_sector = kBlockSize; in Control()
H A Ddevfs.cpp1470 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 Dremote_disk.cpp95 geometry->bytes_per_sector = REMOTE_DISK_BLOCK_SIZE; in GetGeometry()
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DVolume.cpp105 size = (off_t)geometry.bytes_per_sector * geometry.sectors_per_track in Init()
/haiku/src/tests/system/kernel/file_corruption/driver/
H A Dchecksum_device.cpp355 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 DDataEditor.cpp512 * 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 Dvirtio_block.cpp154 ", %d, %d, %d, %d\n", geometry->bytes_per_sector, geometry->sectors_per_track, in get_geometry()

12