Searched refs:lba (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.5.0/subsys/usb/device_next/class/ |
D | usbd_msc_scsi.c | 289 uint32_t lba; in SCSI_CMD_STRUCT() local 298 uint32_t lba; in SCSI_CMD_STRUCT() local 688 validate_transfer_length(struct scsi_ctx *ctx, uint32_t lba, uint16_t length) in validate_transfer_length() argument 690 uint32_t last_lba = lba + length - 1; in validate_transfer_length() 692 if (lba >= ctx->sector_count) { in validate_transfer_length() 693 LOG_WRN("LBA %d is out of range", lba); in validate_transfer_length() 702 if ((last_lba >= ctx->sector_count) || (last_lba < lba)) { in validate_transfer_length() 703 LOG_WRN("%d blocks starting at %d go out of bounds", length, lba); in validate_transfer_length() 716 if (disk_access_read(ctx->disk, buf, ctx->lba, sectors) != 0) { in fill_read_10() 720 ctx->lba += sectors; in fill_read_10() [all …]
|
D | usbd_msc_scsi.h | 73 uint32_t lba; member
|
/Zephyr-Core-3.5.0/drivers/disk/nvme/ |
D | nvme_cmd.h | 501 uint32_t nsid, uint64_t lba, uint32_t count) in nvme_namespace_rw_cmd() argument 505 cmd->cdw10 = sys_cpu_to_le32(lba & 0xffffffffu); in nvme_namespace_rw_cmd() 506 cmd->cdw11 = sys_cpu_to_le32(lba >> 32); in nvme_namespace_rw_cmd() 512 uint64_t lba, uint32_t count) in nvme_namespace_write_cmd() argument 514 nvme_namespace_rw_cmd(cmd, NVME_OPC_WRITE, nsid, lba, count); in nvme_namespace_write_cmd() 519 uint64_t lba, uint32_t count) in nvme_namespace_read_cmd() argument 521 nvme_namespace_rw_cmd(cmd, NVME_OPC_READ, nsid, lba, count); in nvme_namespace_read_cmd()
|
/Zephyr-Core-3.5.0/drivers/disk/ |
D | ramdisk.c | 32 static void *lba_to_address(const struct device *dev, uint32_t lba) in lba_to_address() argument 36 return &config->buf[lba * config->sector_size]; in lba_to_address()
|