Searched refs:sector (Results 1 - 11 of 11) sorted by relevance

/haiku/src/tools/fixup_tos_boot_checksum/
H A Dfixup_tos_boot_checksum.c6 uint8_t sector[512]; variable
12 uint8_t *p = sector;
17 if (read(fd, sector, 512-2) < 512-2) {
33 write(fd, &sector[512-2], 2);
/haiku/src/add-ons/kernel/file_systems/fat/
H A Diter.cpp20 _validate_cs_(nspace *vol, uint32 cluster, uint32 sector) argument
22 if (sector < 0) return -1;
25 if (sector >= vol->root_sectors)
30 if (sector >= vol->sectors_per_cluster) return -1;
42 ASSERT(_validate_cs_(csi->vol, csi->cluster, csi->sector) == 0);
43 if (_validate_cs_(csi->vol, csi->cluster, csi->sector) != 0)
47 return csi->vol->root_start + csi->sector;
51 csi->sector;
56 init_csi(nspace *vol, uint32 cluster, uint32 sector, struct csi *csi) argument
59 if ((ret = _validate_cs_(vol,cluster,sector)) !
[all...]
H A Dfat.cpp24 mirror_fats(nspace *vol, uint32 sector, uint8 *buffer) argument
31 sector -= vol->active_fat * vol->sectors_per_fat;
40 sector + i * vol->sectors_per_fat, 0, 1, -1,
46 block_cache_put(vol->fBlockCache, sector + i * vol->sectors_per_fat);
100 uint32 sector; local
135 sector = vol->reserved_sectors + vol->active_fat * vol->sectors_per_fat +
140 block1 = (uint8 *)block_cache_get(vol->fBlockCache, sector);
142 block1 = (uint8 *)block_cache_get_writable(vol->fBlockCache, sector,
147 DPRINTF(0, ("_fat_ioctl_: error reading fat (sector %" B_PRIu32 ")\n",
148 sector));
[all...]
H A Diter.h18 /* csi keeps track of current cluster and sector info */
22 uint32 sector; member in struct:csi
26 int init_csi(struct _nspace *vol, uint32 cluster, uint32 sector, struct csi *csi);
H A Dmkdos.cpp26 create_volume_label_sector(void *sector, const char *label) argument
28 // create a volume name directory entry in the 512 byte sector
33 fatdirent *d = (fatdirent *)sector;
150 "%" B_PRIu32 " bytes/sector\n",
160 "%" B_PRIu32 " bytes/sector\n",
313 dprintf("dosfs Error: failed to determine sector per cluster value, "
467 dprintf("dosfs Error: write error near sector %" B_PRId64 "\n",
477 //write boot sector
481 dprintf("dosfs Error: write error at sector %d\n", BOOT_SECTOR_NUM);
488 dprintf("dosfs Error: write error at sector
[all...]
H A Ddir.cpp73 "\n", iter->csi.cluster, iter->csi.sector, iter->current_index));
/haiku/src/add-ons/kernel/drivers/disk/virtual/virtio_block/
H A Dvirtio_blk.h115 uint64_t sector; member in struct:virtio_blk_outhdr
H A Dvirtio_block.cpp202 header->sector = operation->Offset() / 512;
/haiku/src/add-ons/kernel/partitioning_systems/amiga/
H A Damiga_rdb.cpp109 for (int32 sector = 0; sector < RDB_LOCATION_LIMIT; sector++) {
111 ssize_t bytesRead = read_pos(fd, sector * 512, buffer, sizeof(buffer));
/haiku/src/apps/bootmanager/
H A Dbootman.S63 ; sector (1 - 17)
64 ; al - sector count
250 .offset nstruc quadword ; LBA of start start sector
549 mov di, bootSectorDAP+AddressPacket.offset ; Copy start sector
556 mov ah, EXTENDED_READ ; Now read start sector from HD
560 jc printAndHalt ; Failed to read sector
607 mov si, list ; Search address of start sector
699 ; quadword start sector
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp671 uint32 sector = pos % fParameters.sectors_per_track + 1; local
691 regs.ecx = sector | ((cylinder >> 2) & 0xc0) | ((cylinder & 0xff) << 8);

Completed in 70 milliseconds