Home
last modified time | relevance | path

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

12

/external/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_usb.c54 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 …]
Duniphier_nand.c162 static size_t __uniphier_nand_read(struct uniphier_nand *nand, int lba, in __uniphier_nand_read() argument
167 int blocks_to_skip = lba / pages_per_block; in __uniphier_nand_read()
169 int page = lba % pages_per_block; in __uniphier_nand_read()
214 static size_t uniphier_nand_read(int lba, uintptr_t buf, size_t size) in uniphier_nand_read() argument
220 count = __uniphier_nand_read(&uniphier_nand, lba, buf, size); in uniphier_nand_read()
Duniphier_emmc.c220 static size_t uniphier_emmc_read(int lba, uintptr_t buf, size_t size) in uniphier_emmc_read() argument
227 lba *= 512; in uniphier_emmc_read()
230 lba, buf, size / 512); in uniphier_emmc_read()
/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/arm-trusted-firmware/drivers/mmc/
Dmmc.c500 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/arm-trusted-firmware/include/drivers/
Dmmc.h125 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);
Dufs.h488 int lba; member
544 size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size);
545 size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size);
/external/arm-trusted-firmware/plat/hisilicon/hikey960/
Dhikey960_io_storage.c37 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/
Dimx_usdhc.c23 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/
Dio_block.c250 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/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()
Dmbrpart.h106 int LBAtoCHS(uint32_t lba, uint8_t * chs);
/external/arm-trusted-firmware/include/drivers/io/
Dio_block.h14 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/arm-trusted-firmware/drivers/synopsys/emmc/
Ddw_mmc.c126 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/
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/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/llvm-project/lldb/test/API/lang/cpp/bitfields/
Dmain.cpp6 } lba; in main() local
85 lba.a = 2; in main()
/external/arm-trusted-firmware/drivers/rpi3/sdhost/
Drpi3_sdhost.c23 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/
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/arm-trusted-firmware/drivers/st/mmc/
Dstm32_sdmmc2.c126 static int stm32_sdmmc2_prepare(int lba, uintptr_t buf, size_t size);
127 static int stm32_sdmmc2_read(int lba, uintptr_t buf, size_t size);
128 static int stm32_sdmmc2_write(int lba, uintptr_t buf, size_t size);
468 static int stm32_sdmmc2_prepare(int lba, uintptr_t buf, size_t size) in stm32_sdmmc2_prepare() argument
531 static int stm32_sdmmc2_read(int lba, uintptr_t buf, size_t size) in stm32_sdmmc2_read() argument
621 static int stm32_sdmmc2_write(int lba, uintptr_t buf, size_t size) in stm32_sdmmc2_write() argument
/external/arm-trusted-firmware/drivers/ufs/
Dufs.c211 int lba, uintptr_t buf, size_t length) in ufs_prepare_cmd() argument
236 ulba = (unsigned int)lba; in ufs_prepare_cmd()
645 size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size) in ufs_read_blocks() argument
657 ufs_prepare_cmd(&utrd, CDBCMD_READ_10, lun, lba, buf, size); in ufs_read_blocks()
669 size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size) in ufs_write_blocks() argument
681 ufs_prepare_cmd(&utrd, CDBCMD_WRITE_10, lun, lba, buf, size); in ufs_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 …]

12