Home
last modified time | relevance | path

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

123

/external/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()
Ddefs.h109 OFF_T lba; member
/external/u-boot/lib/efi_loader/
Defi_disk.c54 u32 media_id, u64 lba, unsigned long buffer_size, in efi_disk_rw_blocks() argument
67 lba += diskobj->offset; in efi_disk_rw_blocks()
70 __LINE__, blocks, lba, blksz, direction); in efi_disk_rw_blocks()
77 n = blk_dread(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
79 n = blk_dwrite(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
93 u32 media_id, u64 lba, efi_uintn_t buffer_size, in efi_disk_read_blocks() argument
101 r = efi_disk_read_blocks(this, media_id, lba, in efi_disk_read_blocks()
105 return efi_disk_read_blocks(this, media_id, lba + in efi_disk_read_blocks()
114 EFI_ENTRY("%p, %x, %" PRIx64 ", %zx, %p", this, media_id, lba, in efi_disk_read_blocks()
117 r = efi_disk_rw_blocks(this, media_id, lba, buffer_size, real_buffer, in efi_disk_read_blocks()
[all …]
/external/u-boot/disk/
Dpart_efi.c50 static int is_gpt_valid(struct blk_desc *dev_desc, u64 lba,
79 static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba, in validate_gpt_header() argument
113 if (le64_to_cpu(gpt_h->my_lba) != lba) { in validate_gpt_header()
116 lba); in validate_gpt_header()
199 if (is_gpt_valid(dev_desc, dev_desc->lba - 1, in get_disk_guid()
228 if (is_gpt_valid(dev_desc, (dev_desc->lba - 1), in part_print_efi()
289 if (is_gpt_valid(dev_desc, (dev_desc->lba - 1), in part_get_info_efi()
377 p_mbr->partition_record[0].nr_sects = (u32) dev_desc->lba - 1; in set_protective_mbr()
396 debug("max lba: %x\n", (u32) dev_desc->lba); in write_gpt_table()
611 gpt_h->alternate_lba = cpu_to_le64(dev_desc->lba - 1); in gpt_fill_header()
[all …]
Dpart.c184 if (dev_desc->lba > 0L && dev_desc->blksz > 0L) { in dev_print()
186 lbaint_t lba; in dev_print() local
188 lba = dev_desc->lba; in dev_print()
190 lba512 = (lba * (dev_desc->blksz/512)); in dev_print()
209 lba, in dev_print()
215 (ulong)lba, in dev_print()
349 info->size = dev_desc->lba; in part_get_info_whole_disk()
537 if (!(*dev_desc)->lba) { in blk_get_device_part_str()
/external/u-boot/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()
/external/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()
/external/u-boot/drivers/ata/
Dahci.c759 lbaint_t lba = 0; in ata_scsiop_read_write() local
767 memcpy(&lba, pccb->cmd + 2, 8); in ata_scsiop_read_write()
768 lba = be64_to_cpu(lba); in ata_scsiop_read_write()
772 lba = be32_to_cpu(temp); in ata_scsiop_read_write()
792 is_write ? "write" : "read", blocks, lba); in ata_scsiop_read_write()
818 fis[4] = (lba >> 0) & 0xff; in ata_scsiop_read_write()
819 fis[5] = (lba >> 8) & 0xff; in ata_scsiop_read_write()
820 fis[6] = (lba >> 16) & 0xff; in ata_scsiop_read_write()
822 fis[8] = ((lba >> 24) & 0xff); in ata_scsiop_read_write()
825 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()
/external/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,
/external/u-boot/doc/
DREADME.rockusb35 use rkdeveloptool wl command to write lba. BeginSec is the lba on device
45 There are plenty of Rockusb command. but wl(write lba) and
/external/u-boot/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()
/external/u-boot/drivers/usb/gadget/
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 …]
Df_rockusb.c448 transfer_size, blkcnt, f_rkusb->lba, f_rkusb->dl_size, in rx_handler_dl_image()
450 blks = blk_dwrite(f_rkusb->desc, f_rkusb->lba, blkcnt, f_rkusb->buf); in rx_handler_dl_image()
458 f_rkusb->lba += blkcnt; in rx_handler_dl_image()
517 f_rkusb->lba = get_unaligned_be32(&cbw->CDB[2]); in cb_write_lba()
522 f_rkusb->dl_size, sector_count, f_rkusb->lba); in cb_write_lba()
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/ufs/ufshcd_command/
Dformat15 field:u64 lba; offset:32; size:8; signed:0;
18 …et_str(dev_name), REC->tag, REC->doorbell, REC->transfer_len, REC->intr, REC->lba, (u32)REC->opcode
/external/vboot_reference/host/arch/arm/lib/
Dcrossystem_arch.c387 int lba = ReadFdtInt("nonvolatile-context-lba"); in VbReadNvStorage_disk() local
404 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET); in VbReadNvStorage_disk()
428 int lba = ReadFdtInt("nonvolatile-context-lba"); in VbWriteNvStorage_disk() local
446 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET); in VbWriteNvStorage_disk()
454 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET); in VbWriteNvStorage_disk()
/external/u-boot/drivers/block/
Dblk-uclass.c546 lbaint_t lba, struct udevice **devp) in blk_create_device() argument
567 desc->lba = lba; in blk_create_device()
578 lbaint_t lba, struct udevice **devp) in blk_create_devicef() argument
589 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()
1203 size = blksz * ide_dev_desc[i].lba; in ide_probe()
/external/u-boot/include/
Dblk.h76 lbaint_t lba; /* number of blocks */ member
340 lbaint_t lba, struct udevice **devp);
357 lbaint_t lba, struct udevice **devp);
/external/u-boot/drivers/mmc/
Dmmc_write.c136 if ((start + blkcnt) > mmc_get_blk_desc(mmc)->lba) { in mmc_write_blocks()
138 start + blkcnt, mmc_get_blk_desc(mmc)->lba); in mmc_write_blocks()
/external/f2fs-tools/tools/sg_write_buffer/
Dsg_cmds_extra.c1198 sg_ll_read_long10(int sg_fd, bool pblock, bool correct, unsigned int lba, in sg_ll_read_long10() argument
1215 sg_put_unaligned_be32((uint32_t)lba, readLong_cdb + 2); in sg_ll_read_long10()
1384 unsigned int lba, void * data_out, int xfer_len, in sg_ll_write_long10() argument
1402 sg_put_unaligned_be32((uint32_t)lba, writeLong_cdb + 2); in sg_ll_write_long10()
1548 unsigned int lba, int veri_len, void * data_out, in sg_ll_verify10() argument
1563 sg_put_unaligned_be32((uint32_t)lba, v_cdb + 2); in sg_ll_verify10()
2428 uint64_t lba, uint32_t num_blocks, int group_num, in sg_ll_pre_fetch_x() argument
2442 if (lba > UINT32_MAX) { in sg_ll_pre_fetch_x()
2451 sg_put_unaligned_be32((uint32_t)lba, preFetchCdb + 2); in sg_ll_pre_fetch_x()
2454 ((lba > UINT32_MAX) || (num_blocks > UINT16_MAX))) { in sg_ll_pre_fetch_x()
[all …]
/external/u-boot/arch/arm/include/asm/arch-rockchip/
Df_rockusb.h120 unsigned int lba; member
/external/u-boot/cmd/
Dsata.c74 if (desc->lba > 0 && desc->blksz > 0) in sata_probe()

123