/external/arm-trusted-firmware/plat/socionext/uniphier/ |
D | uniphier_usb.c | 54 static int (*__uniphier_usb_read)(int lba, uintptr_t buf, size_t size); 65 static int uniphier_ld11_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_ld11_usb_read() argument 67 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba, in uniphier_ld11_usb_read() 74 return rom_usb_read(UNIPHIER_LD11_USB_DESC_BASE, lba, size, buf); in uniphier_ld11_usb_read() 86 static int uniphier_ld20_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_ld20_usb_read() argument 88 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba, in uniphier_ld20_usb_read() 97 ret = rom_usb_read(UNIPHIER_LD20_USB_DESC_BASE, lba, size, buf); in uniphier_ld20_usb_read() 113 static int uniphier_pxs3_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_pxs3_usb_read() argument 115 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba, in uniphier_pxs3_usb_read() 122 ret = rom_usb_read(UNIPHIER_PXS3_USB_DESC_BASE, lba, size, buf); in uniphier_pxs3_usb_read() [all …]
|
D | uniphier_nand.c | 161 static size_t __uniphier_nand_read(struct uniphier_nand *nand, int lba, in __uniphier_nand_read() argument 166 int blocks_to_skip = lba / pages_per_block; in __uniphier_nand_read() 168 int page = lba % pages_per_block; in __uniphier_nand_read() 213 static size_t uniphier_nand_read(int lba, uintptr_t buf, size_t size) in uniphier_nand_read() argument 219 count = __uniphier_nand_read(&uniphier_nand, lba, buf, size); in uniphier_nand_read()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | childmain.c | 72 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 …]
|
D | io.c | 99 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()
|
/external/u-boot/lib/efi_loader/ |
D | efi_disk.c | 73 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 …]
|
/external/arm-trusted-firmware/drivers/mmc/ |
D | mmc.c | 500 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size) in mmc_read_blocks() argument 510 ret = ops->prepare(lba, buf, size); in mmc_read_blocks() 534 cmd_arg = lba * MMC_BLOCK_SIZE; in mmc_read_blocks() 536 cmd_arg = lba; in mmc_read_blocks() 544 ret = ops->read(lba, buf, size); in mmc_read_blocks() 567 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size) in mmc_write_blocks() argument 578 ret = ops->prepare(lba, buf, size); in mmc_write_blocks() 601 cmd_arg = lba * MMC_BLOCK_SIZE; in mmc_write_blocks() 603 cmd_arg = lba; in mmc_write_blocks() 611 ret = ops->write(lba, buf, size); in mmc_write_blocks() [all …]
|
/external/u-boot/disk/ |
D | part_efi.c | 50 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 …]
|
D | part.c | 188 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()
|
/external/arm-trusted-firmware/include/drivers/ |
D | mmc.h | 125 int (*prepare)(int lba, uintptr_t buf, size_t size); 126 int (*read)(int lba, uintptr_t buf, size_t size); 127 int (*write)(int lba, const uintptr_t buf, size_t size); 227 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size); 228 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size); 229 size_t mmc_erase_blocks(int lba, size_t size); 230 size_t mmc_rpmb_read_blocks(int lba, uintptr_t buf, size_t size); 231 size_t mmc_rpmb_write_blocks(int lba, const uintptr_t buf, size_t size); 232 size_t mmc_rpmb_erase_blocks(int lba, size_t size);
|
/external/arm-trusted-firmware/plat/hisilicon/hikey960/ |
D | hikey960_io_storage.c | 37 size_t ufs_read_lun3_blks(int lba, uintptr_t buf, size_t size); 38 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size); 303 size_t ufs_read_lun3_blks(int lba, uintptr_t buf, size_t size) in ufs_read_lun3_blks() argument 305 return ufs_read_blocks(3, lba, buf, size); in ufs_read_lun3_blks() 308 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size) in ufs_write_lun3_blks() argument 310 return ufs_write_blocks(3, lba, buf, size); in ufs_write_lun3_blks()
|
/external/arm-trusted-firmware/drivers/imx/usdhc/ |
D | imx_usdhc.c | 23 static int imx_usdhc_prepare(int lba, uintptr_t buf, size_t size); 24 static int imx_usdhc_read(int lba, uintptr_t buf, size_t size); 25 static int imx_usdhc_write(int lba, uintptr_t buf, size_t size); 268 static int imx_usdhc_prepare(int lba, uintptr_t buf, size_t size) in imx_usdhc_prepare() argument 279 static int imx_usdhc_read(int lba, uintptr_t buf, size_t size) in imx_usdhc_read() argument 284 static int imx_usdhc_write(int lba, uintptr_t buf, size_t size) in imx_usdhc_write() argument
|
/external/arm-trusted-firmware/drivers/io/ |
D | io_block.c | 250 int lba; in block_read() local 297 lba = (cur->file_pos + cur->base) / block_size; in block_read() 317 request = ops->read(lba, buf->offset, request); in block_read() 362 int lba; in block_write() local 410 lba = (cur->file_pos + cur->base) / block_size; in block_write() 446 request = ops->read(lba, buf->offset, request); in block_write() 471 request = ops->write(lba, buf->offset, request); in block_write()
|
/external/u-boot/drivers/usb/gadget/ |
D | f_rockusb.c | 459 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 …]
|
D | f_mass_storage.c | 686 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 …]
|
/external/gptfdisk/ |
D | mbrpart.cc | 260 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/arm-trusted-firmware/include/drivers/io/ |
D | io_block.h | 14 size_t (*read)(int lba, uintptr_t buf, size_t size); 15 size_t (*write)(int lba, const uintptr_t buf, size_t size);
|
/external/u-boot/drivers/ata/ |
D | ahci.c | 758 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 …]
|
/external/u-boot/lib/efi_selftest/ |
D | efi_selftest_block_device.c | 79 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/arm-trusted-firmware/drivers/synopsys/emmc/ |
D | dw_mmc.c | 126 static int dw_prepare(int lba, uintptr_t buf, size_t size); 127 static int dw_read(int lba, uintptr_t buf, size_t size); 128 static int dw_write(int lba, uintptr_t buf, size_t size); 342 static int dw_prepare(int lba, uintptr_t buf, size_t size) in dw_prepare() argument 396 static int dw_read(int lba, uintptr_t buf, size_t size) in dw_read() argument 411 static int dw_write(int lba, uintptr_t buf, size_t size) in dw_write() argument
|
/external/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_cmds_extra.h | 132 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,
|
/external/u-boot/drivers/usb/emul/ |
D | sandbox_flash.c | 92 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/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/ufs/ufshcd_command/ |
D | format | 15 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/arm-trusted-firmware/drivers/rpi3/sdhost/ |
D | rpi3_sdhost.c | 23 static int rpi3_sdhost_prepare(int lba, uintptr_t buf, size_t size); 24 static int rpi3_sdhost_read(int lba, uintptr_t buf, size_t size); 25 static int rpi3_sdhost_write(int lba, uintptr_t buf, size_t size); 452 static int rpi3_sdhost_prepare(int lba, uintptr_t buf, size_t size) in rpi3_sdhost_prepare() argument 476 static int rpi3_sdhost_read(int lba, uintptr_t buf, size_t size) in rpi3_sdhost_read() argument 541 static int rpi3_sdhost_write(int lba, uintptr_t buf, size_t size) in rpi3_sdhost_write() argument
|
/external/vboot_reference/host/arch/arm/lib/ |
D | crossystem_arch.c | 387 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/arm-trusted-firmware/drivers/st/mmc/ |
D | stm32_sdmmc2.c | 125 static int stm32_sdmmc2_prepare(int lba, uintptr_t buf, size_t size); 126 static int stm32_sdmmc2_read(int lba, uintptr_t buf, size_t size); 127 static int stm32_sdmmc2_write(int lba, uintptr_t buf, size_t size); 455 static int stm32_sdmmc2_prepare(int lba, uintptr_t buf, size_t size) in stm32_sdmmc2_prepare() argument 518 static int stm32_sdmmc2_read(int lba, uintptr_t buf, size_t size) in stm32_sdmmc2_read() argument 608 static int stm32_sdmmc2_write(int lba, uintptr_t buf, size_t size) in stm32_sdmmc2_write() argument
|