/haiku/src/add-ons/kernel/busses/scsi/ahci/ |
H A D | sata_request.cpp | 68 sata_request::SetATA28Command(uint8 command, uint32 lba, uint8 sectorCount) in SetATA28Command() argument 71 fFis[4] = lba & 0xff; in SetATA28Command() 72 fFis[5] = (lba >> 8) & 0xff; in SetATA28Command() 73 fFis[6] = (lba >> 16) & 0xff; in SetATA28Command() 74 fFis[7] = 0x40 | ((lba >> 24) & 0x0f); in SetATA28Command() 81 sata_request::SetATA48Command(uint8 command, uint64 lba, uint16 sectorCount) in SetATA48Command() argument 84 fFis[4] = lba & 0xff; in SetATA48Command() 85 fFis[5] = (lba >> 8) & 0xff; in SetATA48Command() 86 fFis[6] = (lba >> 16) & 0xff; in SetATA48Command() 89 fFis[8] = (lba >> 24) & 0xff; in SetATA48Command() [all …]
|
H A D | sata_request.h | 22 void SetATA28Command(uint8 command, uint32 lba, 24 void SetATA48Command(uint8 command, uint64 lba,
|
H A D | ahci_port.cpp | 902 if (cmd->pmi || cmd->lba || request->data_length < sizeof(scsiData)) { in ScsiReadCapacity() 917 scsiData.lba = B_HOST_TO_BENDIAN_INT32(fSectorCount - 1); in ScsiReadCapacity() 919 scsiData.lba = 0xffffffff; in ScsiReadCapacity() 944 if (cmd->pmi || cmd->lba || request->data_length < copySize) { in ScsiReadCapacity16() 957 scsiData.lba = B_HOST_TO_BENDIAN_INT64(fSectorCount - 1); in ScsiReadCapacity16() 978 AHCIPort::ScsiReadWrite(scsi_ccb* request, uint64 lba, size_t sectorCount, in ScsiReadWrite() argument 982 system_time(), find_thread(NULL), lba * 512, sectorCount * 512, in ScsiReadWrite() 1009 if (lba > MAX_SECTOR_LBA_48) in ScsiReadWrite() 1013 lba, sectorCount); in ScsiReadWrite() 1019 if (lba > MAX_SECTOR_LBA_28) in ScsiReadWrite() [all …]
|
H A D | ahci_port.h | 43 void ScsiReadWrite(scsi_ccb *request, uint64 lba, size_t sectorCount, bool isWrite);
|
/haiku/src/add-ons/kernel/generic/scsi_periph/ |
H A D | block.cpp | 136 = (uint32)B_BENDIAN_TO_HOST_INT32(capacityResult.lba); in read_capacity_10() 179 = B_BENDIAN_TO_HOST_INT64(capacityLongResult.lba); in read_capacity_16() 499 uint64 lba = ranges[i].lba; in trim_unmap() local 505 if (lba > UNMAP_MAX_LBA_VALUE) { in trim_unmap() 520 unmapList->blocks[descriptorIndex].lba in trim_unmap() 521 = B_HOST_TO_BENDIAN_INT64(lba); in trim_unmap() 558 unmapList->blocks[0].lba); in trim_unmap() 579 unmapList->blocks[i].lba), in trim_unmap() 610 lba += trimLength; in trim_unmap() 626 uint64 lba = ranges[i].lba; in trim_writesame16() local [all …]
|
H A D | io.cpp | 310 cmd->lba = B_HOST_TO_BENDIAN_INT32(pos); in read_write() 322 cmd->lba = B_HOST_TO_BENDIAN_INT32(pos); in read_write() 334 cmd->lba = B_HOST_TO_BENDIAN_INT64(offset); in read_write()
|
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/ |
H A D | nvme_ns.c | 226 const struct nvme_payload *payload, uint64_t lba, 235 uint64_t lba, uint32_t lba_count, in _nvme_ns_split_request() argument 261 lba_count = sectors_per_max_io - (lba & sector_mask); in _nvme_ns_split_request() 264 child = _nvme_ns_rw(ns, qpair, payload, lba, lba_count, cb_fn, in _nvme_ns_split_request() 287 lba += lba_count; in _nvme_ns_split_request() 299 uint64_t lba, uint32_t lba_count, in _nvme_ns_rw() argument 339 (((lba & (sectors_per_stripe - 1)) + lba_count) > sectors_per_stripe)) in _nvme_ns_rw() 340 return _nvme_ns_split_request(ns, qpair, payload, lba, in _nvme_ns_rw() 347 return _nvme_ns_split_request(ns, qpair, payload, lba, in _nvme_ns_rw() 357 *tmp_lba = lba; in _nvme_ns_rw() [all …]
|
H A D | nvme.h | 841 uint64_t lba, uint32_t lba_count, 861 uint64_t lba, uint32_t lba_count, 886 uint64_t lba, uint32_t lba_count, 905 uint64_t lba, uint32_t lba_count, 925 uint64_t lba, uint32_t lba_count, 945 uint64_t lba, uint32_t lba_count, 970 uint64_t lba, uint32_t lba_count,
|
H A D | nvme_spec.h | 1861 uint64_t lba; member
|
/haiku/src/add-ons/kernel/bus_managers/ata/ |
H A D | ATADevice.cpp | 70 fTaskFile.lba.command in SynchronizeCache() 91 fTaskFile.lba.command = ATA_COMMAND_MEDIA_EJECT; in Eject() 174 if (command->pmi || command->lba) { in ReadCapacity() 186 data.lba = B_HOST_TO_BENDIAN_INT32(lastBlock); in ReadCapacity() 188 data.lba = UINT_MAX; in ReadCapacity() 190 B_BENDIAN_TO_HOST_INT32(data.lba)); in ReadCapacity() 206 if (command->pmi || command->lba) { in ReadCapacity16() 219 data.lba = B_HOST_TO_BENDIAN_INT64(lastBlock); in ReadCapacity16() 221 B_BENDIAN_TO_HOST_INT64(data.lba)); in ReadCapacity16() 321 uint32 address = B_BENDIAN_TO_HOST_INT32(command->lba); in ExecuteIO() [all …]
|
H A D | ATAChannel.cpp | 215 uint16 signature = taskFile.lba.lba_8_15 in ScanBus() 216 | (((uint16)taskFile.lba.lba_16_23) << 8); in ScanBus() 353 taskFile.lba.lba_24_27 = 0; in SelectDevice() 354 taskFile.lba.mode = ATA_MODE_LBA; in SelectDevice() 355 taskFile.lba.device = device; in SelectDevice() 383 return taskFile.lba.device; in SelectedDevice()
|
/haiku/headers/private/drivers/ |
H A D | scsi_cmds.h | 409 uint32 lba; member 419 uint32 lba; // big endian member 428 uint64 lba; member 438 uint64 lba; // big endian member 489 uint32 lba; // big endian member 507 uint32 lba; // big endian member 526 uint64 lba; // big endian member 549 uint32 lba; member 571 uint64 lba; member 599 uint64 lba; member [all …]
|
H A D | scsi_periph.h | 77 uint64 lba; member
|
H A D | ata_types.h | 46 } lba; member
|
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_disk/ |
H A D | scsi_disk.cpp | 189 blockRanges[i].lba = startBytes / blockSize; in trim_device() 192 blockRanges[i].lba = startBytes / blockSize + 1; in trim_device() 200 if (blockRanges[i].lba >= device->capacity) { in trim_device() 203 blockRanges[i].lba, device->capacity); in trim_device() 206 uint64 maxSize = device->capacity - blockRanges[i].lba; in trim_device()
|
/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | emulation.cpp | 125 cdb->lba = B_HOST_TO_BENDIAN_INT32((uint32)cmd->low_lba in scsi_read_write_6() 140 uint32 currentLBA = B_BENDIAN_TO_HOST_INT32(cdb->lba); in scsi_read_write_6() 153 B_BENDIAN_TO_HOST_INT32(cdb->lba), in scsi_read_write_6()
|
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/ |
H A D | scsi_cd.cpp | 605 uint32 lba, length; in read_cd() local 623 lba = (readCD->start_m * 60 + readCD->start_s) * 75 + readCD->start_f in read_cd() 627 cmd->lba = B_HOST_TO_BENDIAN_INT32(lba); in read_cd() 642 ccb->sort = lba; in read_cd()
|
/haiku/src/add-ons/kernel/busses/scsi/usb/ |
H A D | scsi_commands.h | 203 uint32 lba; // big endian member
|
H A D | transform_procs.c | 51 to->lba = B_HOST_TO_BENDIAN_INT32(((from->addr[0] & 0x1f) << 16) in transform_6_to_10()
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | devices.cpp | 50 uint64 lba; member 653 packet->lba = pos; in ReadAt() 781 packet->lba = pos; in WriteAt()
|