Searched refs:bytes_per_sector (Results 1 - 25 of 50) sorted by relevance

12

/haiku/src/add-ons/kernel/file_systems/fat/
H A Diter.c119 csi_to_block(csi), 1, csi->vol->bytes_per_sector);
156 ASSERT(len >= csi->vol->bytes_per_sector);
167 if (len < (sectors + 1) * csi->vol->bytes_per_sector)
176 memcpy(buf, blockData, csi->vol->bytes_per_sector);
177 buf += csi->vol->bytes_per_sector;
183 return sectors * csi->vol->bytes_per_sector;
197 ASSERT(len >= csi->vol->bytes_per_sector);
209 if (len < (sectors + 1) * csi->vol->bytes_per_sector)
219 memcpy(blockData, buf, csi->vol->bytes_per_sector);
220 buf += csi->vol->bytes_per_sector;
[all...]
H A Ddosfs.c66 ", reserved sectors = %" B_PRIu32 "\n", vol->bytes_per_sector,
218 vol->bytes_per_sector = read16(buf, 0xb);
219 if (vol->bytes_per_sector != 0x200 && vol->bytes_per_sector != 0x400
220 && vol->bytes_per_sector != 0x800 && vol->bytes_per_sector != 0x1000) {
222 vol->bytes_per_sector);
294 if (vol->root_entries_count % (vol->bytes_per_sector / 0x20)) {
330 / vol->bytes_per_sector;
333 vol->root_vnode.st_size = vol->root_sectors * vol->bytes_per_sector;
705 uint32 bytes_per_sector; member in struct:identify_cookie
716 uint32 bytes_per_sector; local
[all...]
H A Dfat.c45 memcpy(blockData, buffer, vol->bytes_per_sector);
69 for (i = 0; i < vol->bytes_per_sector; i += sizeof(uint32)) {
136 offset / vol->bytes_per_sector;
137 offset %= vol->bytes_per_sector;
155 % vol->bytes_per_sector));
158 if (offset == vol->bytes_per_sector - 1) {
177 if (offset == vol->bytes_per_sector - 1)
204 if (offset == vol->bytes_per_sector - 1) {
214 if (offset == vol->bytes_per_sector - 1) {
301 if (offset >= vol->bytes_per_sector) {
[all...]
H A Dfile.c237 uint32 clusters = (st->st_size + vol->bytes_per_sector
238 * vol->sectors_per_cluster - 1) / vol->bytes_per_sector
441 uint32 clusters = (pos + *len + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster;
442 if (node->st_size <= (clusters - 1) * vol->sectors_per_cluster * vol->bytes_per_sector) {
703 dummy.st_size = vol->bytes_per_sector*vol->sectors_per_cluster;
720 buffer = malloc(vol->bytes_per_sector);
732 memset(buffer, 0, vol->bytes_per_sector);
776 memset(buffer, 0, vol->bytes_per_sector);
1359 skipSectors = position / vol->bytes_per_sector;
[all...]
H A Dmkdos.cpp165 biosGeometry.bytes_per_sector);
175 deviceGeometry.bytes_per_sector);
201 if ((hasBiosGeometry && biosGeometry.bytes_per_sector != 512)
202 || (hasDeviceGeometry && deviceGeometry.bytes_per_sector != 512)) {
224 size = uint64(deviceGeometry.bytes_per_sector) * deviceGeometry.sectors_per_track * deviceGeometry.cylinder_count * deviceGeometry.head_count;
226 size = uint64(biosGeometry.bytes_per_sector) * biosGeometry.sectors_per_track * biosGeometry.cylinder_count * biosGeometry.head_count;
H A Ddir.c80 % (iter->csi.vol->bytes_per_sector / 0x20)) * 0x20;
521 uint32 clusters = (last + vol->bytes_per_sector / 0x20
522 * vol->sectors_per_cluster - 1) / (vol->bytes_per_sector / 0x20)
531 if (clusters * vol->bytes_per_sector * vol->sectors_per_cluster
536 dir->st_size = clusters * vol->bytes_per_sector
695 vol->bytes_per_sector*vol->sectors_per_cluster - 1) /
696 vol->bytes_per_sector / vol->sectors_per_cluster;
699 " clusters\n", dir->st_size / vol->bytes_per_sector
706 dir->st_size = vol->bytes_per_sector*vol->sectors_per_cluster*clusters_needed;
1037 * vol->sectors_per_cluster * vol->bytes_per_sector;
[all...]
H A Ddosfs.h122 uint32 bytes_per_sector; member in struct:_nspace
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dbootsect.c74 if (le16_to_cpu(b->bpb.bytes_per_sector) < 256 ||
75 le16_to_cpu(b->bpb.bytes_per_sector) > 4096) {
77 le16_to_cpu(b->bpb.bytes_per_sector));
92 i = (u32)le16_to_cpu(b->bpb.bytes_per_sector) *
180 vol->sector_size = le16_to_cpu(bs->bpb.bytes_per_sector);
/haiku/src/tools/fs_shell/
H A Dunistd.cpp154 geometry->bytes_per_sector
155 = systemGeometry.bytes_per_sector;
205 geometry->bytes_per_sector = blockSize;
249 geometry->bytes_per_sector = disklabel.d_secsize;
300 &geometry->bytes_per_sector) != 0) {
/haiku/src/tests/add-ons/kernel/partitioning_systems/
H A DPartitioningSystemsTest.cpp69 device->geometry.bytes_per_sector = blockSize;
82 * device->geometry.bytes_per_sector;
83 partition->block_size = device->geometry.bytes_per_sector;
103 printf(" bytes per sector %lu\n", data->geometry.bytes_per_sector);
109 * data->geometry.bytes_per_sector);
/haiku/src/add-ons/kernel/partitioning_systems/atari/
H A Datari.h80 uint16 bytes_per_sector; /* LE */ member in struct:atari_boot_block
/haiku/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp51 uint16 bytes_per_sector; member in struct:drive_parameters
230 parameters->bytes_per_sector = 512;
730 TRACE((" cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
732 fParameters.bytes_per_sector));
744 TRACE(("cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
746 fParameters.bytes_per_sector));
749 fBlockSize = fParameters.bytes_per_sector;
901 TRACE((" cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
903 fParameters.bytes_per_sector));
915 TRACE(("cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector
[all...]
/haiku/src/bin/mkdos/
H A Dmkdos.cpp185 biosGeometry.bytes_per_sector);
195 deviceGeometry.bytes_per_sector);
221 if ((hasBiosGeometry && biosGeometry.bytes_per_sector != 512)
222 || (hasDeviceGeometry && deviceGeometry.bytes_per_sector != 512)) {
247 size = uint64(deviceGeometry.bytes_per_sector) * deviceGeometry.sectors_per_track * deviceGeometry.cylinder_count * deviceGeometry.head_count;
249 size = uint64(biosGeometry.bytes_per_sector) * biosGeometry.sectors_per_track * biosGeometry.cylinder_count * biosGeometry.head_count;
/haiku/headers/build/os/drivers/
H A DDrivers.h139 uint32 bytes_per_sector; /* sector size in bytes */ member in struct:__anon26
/haiku/headers/os/drivers/
H A DDrivers.h125 uint32 bytes_per_sector; /* sector size in bytes */ member in struct:__anon3
/haiku/headers/private/fs_shell/
H A Dfssh_drivers.h146 uint32_t bytes_per_sector; /* sector size in bytes */ member in struct:__anon21
/haiku/src/bin/
H A Ddriveinfo.c62 printf("bytes_per_sector:\t%" B_PRIu32 "\n", geom.bytes_per_sector);
/haiku/src/tests/kits/storage/virtualdrive/
H A Dvirtualdrive.cpp206 size = (off_t)info.geometry.bytes_per_sector
229 info.geometry.bytes_per_sector = blockSize;
237 size = (off_t)info.geometry.bytes_per_sector
643 dg->bytes_per_sector = 512;
H A Dmkvirtualdrive.cpp125 info.geometry.bytes_per_sector = blockSize;
198 off_t size = (off_t)info.geometry.bytes_per_sector
/haiku/src/system/kernel/disk_device_manager/
H A DKDiskDevice.cpp393 fPartitionData.block_size = fDeviceData.geometry.bytes_per_sector;
410 fDeviceData.geometry.bytes_per_sector = 0;
H A DKFileDiskDevice.cpp168 geometry->bytes_per_sector = blockSize;
/haiku/src/add-ons/kernel/drivers/disk/floppy/pc_floppy/
H A Dfloppy.c401 sectsize = geom->bytes_per_sector;
403 disk_size = (geom->bytes_per_sector)
511 *(size_t *)data = (flp->bgeom.bytes_per_sector)
521 geom->bytes_per_sector = flp->bgeom.bytes_per_sector;
H A Dfloppy_ctrl.c352 flp->bgeom.bytes_per_sector = 255;
458 flp->bgeom.bytes_per_sector = geom->g.bytes_per_sector;
668 if (flp->geometry == NULL || !flp->bgeom.bytes_per_sector || !flp->bgeom.sectors_per_track) {
712 flp->master->buffer_index = (lba % (flp->bgeom.sectors_per_track/* * flp->bgeom.head_count*/)) * flp->bgeom.bytes_per_sector;
774 if (flp->geometry == NULL || !flp->bgeom.bytes_per_sector || !flp->bgeom.sectors_per_track) {
815 flp->master->buffer_index = 0;//(lba % (flp->bgeom.sectors_per_track * flp->bgeom.head_count)) * flp->bgeom.bytes_per_sector;
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DVolume.cpp201 * geometry.sectors_per_track * geometry.bytes_per_sector;
204 *_blockSize = geometry.bytes_per_sector;
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp66 uint16 bytes_per_sector; member in struct:drive_parameters
263 parameters->bytes_per_sector = 512;
587 TRACE((" cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
589 fParameters.bytes_per_sector));
601 TRACE(("cylinders: %lu, heads: %lu, sectors: %lu, bytes_per_sector: %u\n",
603 fParameters.bytes_per_sector));
606 fBlockSize = fParameters.bytes_per_sector;

Completed in 278 milliseconds

12