Home
last modified time | relevance | path

Searched refs:lba (Results 1 – 25 of 67) sorted by relevance

123

/third_party/uboot/u-boot-2020.01/drivers/ufs/
Dscsi.c26 void (*func)(uint32_t lba, uint32_t size, uint8_t *cmd);
29 static void scsi_read_10(uint32_t lba, uint32_t size, uint8_t *cmd) in scsi_read_10() argument
33 cmd[2] = (uint8_t)((lba >> 24) & 0xff); /* 2: MSB, shift 24 */ in scsi_read_10()
34 cmd[3] = (uint8_t)((lba >> 16) & 0xff); /* 3: MSB, shift 16 */ in scsi_read_10()
35 cmd[4] = (uint8_t)((lba >> 8) & 0xff); /* 4: LSB, shift 8 */ in scsi_read_10()
36 cmd[5] = (uint8_t)(lba & 0xff); /* 5: LSB */ in scsi_read_10()
43 static void scsi_write_10(uint32_t lba, uint32_t size, uint8_t *cmd) in scsi_write_10() argument
47 cmd[2] = (uint8_t)((lba >> 24) & 0xff); /* 2: MSB, shift 24 */ in scsi_write_10()
48 cmd[3] = (uint8_t)((lba >> 16) & 0xff); /* 3: MSB, shift 16 */ in scsi_write_10()
49 cmd[4] = (uint8_t)((lba >> 8) & 0xff); /* 4: LSB, shift 8 */ in scsi_write_10()
[all …]
/third_party/FatFs/documents/res/
Dapp4.c44 DWORD sz_drv, lba, lba2, sz_eblk, pns = 1; in test_diskio() local
119 lba = 0; in test_diskio()
121 printf(" disk_write(%u, 0x%X, %lu, 1)", pdrv, (UINT)pbuff, lba); in test_diskio()
122 dr = disk_write(pdrv, pbuff, lba, 1); in test_diskio()
138 printf(" disk_read(%u, 0x%X, %lu, 1)", pdrv, (UINT)pbuff, lba); in test_diskio()
139 dr = disk_read(pdrv, pbuff, lba, 1); in test_diskio()
156 lba = 1; ns = sz_buff / sz_sect; in test_diskio()
159 printf(" disk_write(%u, 0x%X, %lu, %u)", pdrv, (UINT)pbuff, lba, ns); in test_diskio()
160 dr = disk_write(pdrv, pbuff, lba, ns); in test_diskio()
176 printf(" disk_read(%u, 0x%X, %lu, %u)", pdrv, (UINT)pbuff, lba, ns); in test_diskio()
[all …]
/third_party/ffmpeg/libavcodec/
Ddvd_nav_parser.c30 uint32_t lba; member
39 pc->lba = 0xFFFFFFFF; in dvd_nav_parse_init()
63 uint32_t lba = AV_RB32(&buf[0x01]); in dvd_nav_parse() local
68 pc1->lba = lba; in dvd_nav_parse()
82 uint32_t lba = AV_RB32(&buf[0x05]); in dvd_nav_parse() local
84 if (lba == pc1->lba) { in dvd_nav_parse()
96 pc1->lba = 0xFFFFFFFF; in dvd_nav_parse()
/third_party/ltp/testcases/kernel/io/disktest/
Dchildmain.c72 if ((target.lba == env->action_list[i].lba) /* attempting same transfer start lba */ in action_in_use()
73 …||((target.lba < env->action_list[i].lba) && (target.lba + target.trsiz - 1) >= env->action_list[i… in action_in_use()
124 while (target.lba != env->action_list[i].lba) { in remove_action()
290 target.lba = args->start_lba + args->offset; in get_next_action()
324 target.lba = *(tmpLBA); in get_next_action()
330 target.lba = env->lastAction.lba; in get_next_action()
333 target.lba = in get_next_action()
335 } while (target.lba > args->stop_lba); in get_next_action()
338 ALIGN(target.lba, target.trsiz) + args->offset; in get_next_action()
340 target.lba = guessLBA = args->stop_lba; in get_next_action()
[all …]
Dio.c99 OFF_T Seek(fd_t fd, OFF_T lba) in Seek() argument
104 return_lba = (OFF_T) FileSeek64(fd, lba, FILE_BEGIN); in Seek()
106 return_lba = (OFF_T) lseek64(fd, lba, SEEK_SET); in Seek()
/third_party/uboot/u-boot-2020.01/lib/efi_loader/
Defi_disk.c73 u32 media_id, u64 lba, unsigned long buffer_size, in efi_disk_rw_blocks() argument
86 lba += diskobj->offset; in efi_disk_rw_blocks()
89 blocks, lba, blksz, direction); in efi_disk_rw_blocks()
96 n = blk_dread(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
98 n = blk_dwrite(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
112 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_read_blocks() argument
128 if (lba * this->media->block_size + buffer_size > in efi_disk_read_blocks()
134 r = efi_disk_read_blocks(this, media_id, lba, in efi_disk_read_blocks()
138 return efi_disk_read_blocks(this, media_id, lba + in efi_disk_read_blocks()
147 EFI_ENTRY("%p, %x, %llx, %zx, %p", this, media_id, lba, in efi_disk_read_blocks()
[all …]
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/hi3559av100/
Dscsi.c23 static int get_cmnd(uint32_t opcode, uint32_t lba, uint32_t size, uint8_t *cmd) in get_cmnd() argument
31 cmd[2] = (uint8_t)((lba & 0xff000000) >> 24); /* MSB Byte */ in get_cmnd()
32 cmd[3] = (uint8_t)((lba & 0x00ff0000) >> 16); in get_cmnd()
33 cmd[4] = (uint8_t)((lba & 0x0000ff00) >> 8); in get_cmnd()
34 cmd[5] = (uint8_t)(lba & 0x000000ff); /* LSB byte */ in get_cmnd()
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/hi3569v100/
Dscsi.c23 static int get_cmnd(uint32_t opcode, uint32_t lba, uint32_t size, uint8_t *cmd) in get_cmnd() argument
31 cmd[2] = (uint8_t)((lba & 0xff000000) >> 24); /* MSB Byte */ in get_cmnd()
32 cmd[3] = (uint8_t)((lba & 0x00ff0000) >> 16); in get_cmnd()
33 cmd[4] = (uint8_t)((lba & 0x0000ff00) >> 8); in get_cmnd()
34 cmd[5] = (uint8_t)(lba & 0x000000ff); /* LSB byte */ in get_cmnd()
/third_party/uboot/u-boot-2020.01/disk/
Dpart_efi.c50 static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba,
81 static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba, in validate_gpt_header() argument
115 if (le64_to_cpu(gpt_h->my_lba) != lba) { in validate_gpt_header()
118 lba); in validate_gpt_header()
348 p_mbr->partition_record[0].nr_sects = (u32) dev_desc->lba - 1; in set_protective_mbr()
367 debug("max lba: %x\n", (u32) dev_desc->lba); in write_gpt_table()
582 gpt_h->alternate_lba = cpu_to_le64(dev_desc->lba - 1); in gpt_fill_header()
583 gpt_h->last_usable_lba = cpu_to_le64(dev_desc->lba - 34); in gpt_fill_header()
684 if (is_gpt_valid(dev_desc, (dev_desc->lba - 1), in gpt_verify_headers()
781 dev_desc->lba)) in is_valid_gpt_buf()
[all …]
Dpart.c188 if (dev_desc->lba > 0L && dev_desc->blksz > 0L) { in dev_print()
190 lbaint_t lba; in dev_print() local
192 lba = dev_desc->lba; in dev_print()
194 lba512 = (lba * (dev_desc->blksz/512)); in dev_print()
213 lba, in dev_print()
219 (ulong)lba, in dev_print()
356 info->size = dev_desc->lba; in part_get_info_whole_disk()
543 if (!(*dev_desc)->lba) { in blk_get_device_part_str()
/third_party/NuttX/include/nuttx/
Dscsi.h866 uint8_t lba[4]; /* 2-5: Logical block address (LBA) */ member
875 uint8_t lba[4]; /* 0-3: Returned logical block address (LBA) */ member
884 uint8_t lba[8]; /* 2-9: Logical block address (LBA) */ member
893 uint8_t lba[8]; /* 0-7: Returned logical block address (LBA) */ member
904 uint8_t lba[8]; /* 2-9: Logical Block Address (LBA) */ member
915 uint8_t lba[8]; /* 2-9: Logical Block Address (LBA) */ member
926 uint8_t lba[4]; /* 2-5: Logical Block Address (LBA) */ member
937 uint8_t lba[4]; /* 2-5: Logical Block Address (LBA) */ member
948 uint8_t lba[4]; /* 2-5: Logical block address (LBA) */ member
959 uint8_t lba[4]; /* 2-5: Logical block address (LBA) */ member
[all …]
/third_party/gptfdisk/
Dmbrpart.cc260 int MBRPart::LBAtoCHS(uint32_t lba, uint8_t * chs) { in LBAtoCHS() argument
268 if (lba == 0) { in LBAtoCHS()
273 if ((!done) && (lba >= (numHeads * numSecspTrack * MAX_CYLINDERS))) { in LBAtoCHS()
281 cylinder = lba / (numHeads * numSecspTrack); in LBAtoCHS()
282 remainder = lba - (cylinder * numHeads * numSecspTrack); in LBAtoCHS()
/third_party/uboot/u-boot-2020.01/drivers/usb/gadget/
Df_rockusb.c459 transfer_size, blkcount, f_rkusb->lba, in tx_handler_ul_image()
462 int blks = blk_dread(f_rkusb->desc, f_rkusb->lba, blkcount, rbuffer); in tx_handler_ul_image()
471 f_rkusb->lba += blkcount; in tx_handler_ul_image()
510 transfer_size, blkcnt, f_rkusb->lba, f_rkusb->dl_size, in rx_handler_dl_image()
512 blks = blk_dwrite(f_rkusb->desc, f_rkusb->lba, blkcnt, f_rkusb->buf); in rx_handler_dl_image()
520 f_rkusb->lba += blkcnt; in rx_handler_dl_image()
641 f_rkusb->lba = get_unaligned_be32(&cbw->CDB[2]); in cb_read_lba()
646 f_rkusb->ul_size, sector_count, f_rkusb->lba); in cb_read_lba()
683 f_rkusb->lba = get_unaligned_be32(&cbw->CDB[2]); in cb_write_lba()
688 f_rkusb->dl_size, sector_count, f_rkusb->lba); in cb_write_lba()
[all …]
Df_mass_storage.c686 u32 lba; in do_read() local
698 lba = get_unaligned_be24(&common->cmnd[1]); in do_read()
700 lba = get_unaligned_be32(&common->cmnd[2]); in do_read()
710 if (lba >= curlun->num_sectors) { in do_read()
714 file_offset = ((loff_t) lba) << 9; in do_read()
813 u32 lba; in do_write() local
831 lba = get_unaligned_be24(&common->cmnd[1]); in do_write()
833 lba = get_unaligned_be32(&common->cmnd[2]); in do_write()
844 if (lba >= curlun->num_sectors) { in do_write()
851 file_offset = usb_offset = ((loff_t) lba) << 9; in do_write()
[all …]
/third_party/uboot/u-boot-2020.01/lib/efi_selftest/
Defi_selftest_block_device.c79 struct efi_block_io *this, u32 media_id, u64 lba, in read_blocks() argument
84 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in read_blocks()
86 start = image + (lba << LB_BLOCK_SIZE); in read_blocks()
104 struct efi_block_io *this, u32 media_id, u64 lba, in write_blocks() argument
109 if ((lba << LB_BLOCK_SIZE) + buffer_size > img.length) in write_blocks()
111 start = image + (lba << LB_BLOCK_SIZE); in write_blocks()
/third_party/uboot/u-boot-2020.01/drivers/ata/
Dahci.c758 lbaint_t lba = 0; in ata_scsiop_read_write() local
766 memcpy(&lba, pccb->cmd + 2, 8); in ata_scsiop_read_write()
767 lba = be64_to_cpu(lba); in ata_scsiop_read_write()
771 lba = be32_to_cpu(temp); in ata_scsiop_read_write()
791 is_write ? "write" : "read", blocks, lba); in ata_scsiop_read_write()
817 fis[4] = (lba >> 0) & 0xff; in ata_scsiop_read_write()
818 fis[5] = (lba >> 8) & 0xff; in ata_scsiop_read_write()
819 fis[6] = (lba >> 16) & 0xff; in ata_scsiop_read_write()
821 fis[8] = ((lba >> 24) & 0xff); in ata_scsiop_read_write()
824 fis[9] = ((lba >> 32) & 0xff); in ata_scsiop_read_write()
[all …]
Dsata.c98 sata_dev_desc[i].lba = 0; in __sata_initialize()
108 if (!rc && sata_dev_desc[i].lba > 0 && in __sata_initialize()
/third_party/f2fs-tools/tools/sg_write_buffer/include/
Dsg_cmds_extra.h132 int sg_ll_read_long10(int sg_fd, bool pblock, bool correct, unsigned int lba,
259 unsigned int lba, int veri_len, void * data_out,
307 unsigned int lba, void * data_out, int xfer_len,
362 uint64_t lba, uint32_t num_blocks, int group_num,
Dsg_cmds_basic.h135 int sg_ll_readcap_10(int sg_fd, bool pmi, unsigned int lba, void * resp,
180 unsigned int lba, unsigned int count, bool noisy,
/third_party/uboot/u-boot-2020.01/drivers/usb/emul/
Dsandbox_flash.c92 u32 lba; member
226 static void handle_read(struct sandbox_flash_priv *priv, ulong lba, in handle_read() argument
229 debug("%s: lba=%lx, transfer_len=%lx\n", __func__, lba, transfer_len); in handle_read()
231 os_lseek(priv->fd, lba * SANDBOX_FLASH_BLOCK_LEN, OS_SEEK_SET); in handle_read()
283 handle_read(priv, be32_to_cpu(req->lba), in handle_ufi_command()
/third_party/NuttX/drivers/usbdev/gadget/
Df_mass_storage.c489 uint32_t lba; in done_scsi_read() local
499 lba = ((((uint32_t)fmass->cmd[1]) << 16) | in done_scsi_read()
504 lba = get_unaligned_be32(&fmass->cmd[2]); in done_scsi_read()
520 if (lba >= num_sectors) in done_scsi_read()
561 doread = fmass_dev_read(fmass, buf, lba, amount); in done_scsi_read()
563 lba += doread; in done_scsi_read()
569 db, buf, lba - doread , doread, amount, amount_left, fmass->residue); in done_scsi_read()
592 uint32_t lba; in done_scsi_write() local
608 lba = ((((uint32_t)fmass->cmd[1]) << 16) | in done_scsi_write()
613 lba = get_unaligned_be32(&fmass->cmd[2]); in done_scsi_write()
[all …]
/third_party/uboot/u-boot-2020.01/include/
Dblk.h77 lbaint_t lba; /* number of blocks */ member
341 lbaint_t lba, struct udevice **devp);
358 lbaint_t lba, struct udevice **devp);
/third_party/uboot/u-boot-2020.01/doc/
DREADME.rockusb35 use rkdeveloptool wl command to write lba. BeginSec is the lba on device
/third_party/uboot/u-boot-2020.01/drivers/block/
Dblk-uclass.c562 lbaint_t lba, struct udevice **devp) in blk_create_device() argument
584 desc->lba = lba; in blk_create_device()
595 lbaint_t lba, struct udevice **devp) in blk_create_devicef() argument
606 blksz, lba, devp); in blk_create_devicef()
Dide.c483 dev_desc->lba = 0; in atapi_inquiry()
524 dev_desc->lba = ((unsigned long) iobuf[0] << 24) + in atapi_inquiry()
663 dev_desc->lba = (iop.lba_capacity << 16) | (iop.lba_capacity >> 16); in ide_ident()
671 dev_desc->lba = iop.lba_capacity; in ide_ident()
677 dev_desc->lba = (unsigned long long) iop.lba48_capacity[0] | in ide_ident()
819 ide_dev_desc[i].lba = 0; in ide_init()
830 if ((ide_dev_desc[i].lba > 0) && (ide_dev_desc[i].blksz > 0)) { in ide_init()
1201 size = blksz * ide_dev_desc[i].lba; in ide_probe()

123