Home
last modified time | relevance | path

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

1234

/external/libtraceevent/plugins/
Dplugin_scsi.c160 sector_t lba = 0, txlen = 0; in scsi_trace_rw6() local
162 lba |= ((cdb[1] & 0x1F) << 16); in scsi_trace_rw6()
163 lba |= (cdb[2] << 8); in scsi_trace_rw6()
164 lba |= cdb[3]; in scsi_trace_rw6()
168 (unsigned long long)lba, (unsigned long long)txlen); in scsi_trace_rw6()
177 sector_t lba = 0, txlen = 0; in scsi_trace_rw10() local
179 lba |= (cdb[2] << 24); in scsi_trace_rw10()
180 lba |= (cdb[3] << 16); in scsi_trace_rw10()
181 lba |= (cdb[4] << 8); in scsi_trace_rw10()
182 lba |= cdb[5]; in scsi_trace_rw10()
[all …]
/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()
/external/sg3_utils/testing/
Dsg_scat_gath.cpp48 return ((sgl.size() == 1) && (sgl[0].lba == 0) && (sgl[0].num == 0)); in empty_or_00()
100 sge.lba = prev_lba + (uint64_t)max_nbs; in load_from_cli()
103 prev_lba = sge.lba; in load_from_cli()
120 sge.lba = (uint64_t)ll; in load_from_cli()
142 prev_lba = sge.lba; in load_from_cli()
290 prev_lba = sge.lba; in file2sgl_helper()
292 sge.lba = prev_lba + (uint64_t)max_nbs; in file2sgl_helper()
306 sge.lba = (uint64_t)ll; in file2sgl_helper()
443 sge.lba, sge.num); in dbg_print()
444 if (sge.lba > 0) in dbg_print()
[all …]
Dsg_tst_excl.cpp184 do_rd_inc_wr_twice_v3(const char * dev_name, unsigned int lba, int block, in do_rd_inc_wr_twice_v3() argument
199 sg_put_unaligned_be64(lba, r16CmdBlk + 2); in do_rd_inc_wr_twice_v3()
200 sg_put_unaligned_be64(lba, w16CmdBlk + 2); in do_rd_inc_wr_twice_v3()
429 do_rd_inc_wr_twice_v4(const char * dev_name, unsigned int lba, int block, in do_rd_inc_wr_twice_v4() argument
444 sg_put_unaligned_be64(lba, r16CmdBlk + 2); in do_rd_inc_wr_twice_v4()
445 sg_put_unaligned_be64(lba, w16CmdBlk + 2); in do_rd_inc_wr_twice_v4()
777 work_thread(const char * dev_name, unsigned int lba, int id, int block, in work_thread() argument
793 res = do_rd_inc_wr_twice_v3(dev_name, lba, block, excl, wait_ms, in work_thread()
796 res = do_rd_inc_wr_twice_v4(dev_name, lba, block, excl, wait_ms, in work_thread()
834 unsigned int lba = DEF_LBA; in main() local
[all …]
Dsg_tst_excl2.cpp190 do_rd_inc_wr_twice(const char * dev_name, unsigned int lba, int block, in do_rd_inc_wr_twice() argument
206 sg_put_unaligned_be64(lba, r16CmdBlk + 2); in do_rd_inc_wr_twice()
207 sg_put_unaligned_be64(lba, w16CmdBlk + 2); in do_rd_inc_wr_twice()
393 work_thread(const char * dev_name, unsigned int lba, int id, int block, in work_thread() argument
407 res = do_rd_inc_wr_twice(dev_name, lba, block, excl, wait_ms, in work_thread()
439 unsigned int lba = DEF_LBA; in main() local
458 lba = (unsigned int)atoi(argv[k]); in main()
518 lba); in main()
528 thread * tp = new thread {work_thread, dev_name, lba, k, block, in main()
Dsg_tst_excl3.cpp196 do_rd_inc_wr_twice(const char * dev_name, int read_only, unsigned int lba, in do_rd_inc_wr_twice() argument
212 sg_put_unaligned_be64(lba, r16CmdBlk + 2); in do_rd_inc_wr_twice()
213 sg_put_unaligned_be64(lba, w16CmdBlk + 2); in do_rd_inc_wr_twice()
393 work_thread(const char * dev_name, unsigned int lba, int id, int block, in work_thread() argument
408 res = do_rd_inc_wr_twice(dev_name, reader, lba, block, excl, in work_thread()
440 unsigned int lba = DEF_LBA; in main() local
460 lba = (unsigned int)atoi(argv[k]); in main()
522 lba); in main()
532 thread * tp = new thread {work_thread, dev_name, lba, k, block, in main()
Dsg_tst_async.cpp207 uint64_t lba; member
458 start_sg3_cmd(int sg_fd, command2execute cmd2exe, int pack_id, uint64_t lba, in start_sg3_cmd() argument
490 if (lba > 0xffffffff) in start_sg3_cmd()
491 sg_put_unaligned_be32(lba >> 32, &r16CmdBlk[2]); in start_sg3_cmd()
492 sg_put_unaligned_be32(lba & 0xffffffff, &r16CmdBlk[6]); in start_sg3_cmd()
501 if (lba > 0xffffffff) in start_sg3_cmd()
502 sg_put_unaligned_be32(lba >> 32, &w16CmdBlk[2]); in start_sg3_cmd()
503 sg_put_unaligned_be32(lba & 0xffffffff, &w16CmdBlk[6]); in start_sg3_cmd()
644 start_sg4_cmd(int sg_fd, command2execute cmd2exe, int pack_id, uint64_t lba, in start_sg4_cmd() argument
673 if (lba > 0xffffffff) in start_sg4_cmd()
[all …]
Dsg_scat_gath.h32 uint64_t lba; // of start block
35 void make_bad() { lba = UINT64_MAX; num = UINT32_MAX; } in make_bad()
36 bool is_bad() const { return (lba == UINT64_MAX && num == UINT32_MAX); } in is_bad()
/external/sg3_utils/src/
Dsg_sat_set_features.c111 do_set_features(int sg_fd, int feature, int count, uint64_t lba, in do_set_features() argument
143 apt_cdb[8] = lba & 0xff; in do_set_features()
144 apt_cdb[10] = (lba >> 8) & 0xff; in do_set_features()
145 apt_cdb[12] = (lba >> 16) & 0xff; in do_set_features()
146 apt_cdb[7] = (lba >> 24) & 0xff; in do_set_features()
147 apt_cdb[9] = (lba >> 32) & 0xff; in do_set_features()
148 apt_cdb[11] = (lba >> 40) & 0xff; in do_set_features()
170 apt12_cdb[5] = lba & 0xff; in do_set_features()
171 apt12_cdb[6] = (lba >> 8) & 0xff; in do_set_features()
172 apt12_cdb[7] = (lba >> 16) & 0xff; in do_set_features()
[all …]
Dsg_verify.c159 uint64_t lba = 0; in main() local
228 lba = (uint64_t)ll; in main()
338 if (((lba + count - 1) > 0xffffffffLLU) && (! verify16)) { in main()
347 orig_lba = lba; in main()
406 for (; count > 0; count -= bpc, lba += bpc) { in main()
410 lba, num, group, ref_data, in main()
414 (unsigned int)lba, num, ref_data, in main()
423 lba); in main()
427 vc, lba); in main()
440 vc, lba); in main()
[all …]
Dsg_sync.c97 uint64_t lba, unsigned int num_lb, int to_secs, in sg_ll_sync_cache_16() argument
111 sg_put_unaligned_be64(lba, sc_cdb + 2); in sg_ll_sync_cache_16()
170 int64_t lba = 0; in main() local
205 lba = sg_get_llnum(optarg); in main()
206 if (lba < 0) { in main()
286 res = sg_ll_sync_cache_16(sg_fd, sync_nv, immed, group, lba, num_lb, in main()
290 (unsigned int)lba, num_lb, true, verbose); in main()
Dsg_seek.c162 uint64_t lba = 0; in main() local
213 lba = (uint64_t)ll; in main()
341 for (k = 0, lba_n = lba; k < count; ++k, lba_n += skip) { in main()
342 if (wrap_offs && (lba_n > lba) && ((lba_n - lba) > wrap_offs)) in main()
343 lba_n = lba; in main()
Dsg_rep_zones.c389 uint64_t lba, len, wp; in prt_a_zn_desc() local
410 lba = sg_get_unaligned_be64(bp + 16); in prt_a_zn_desc()
411 sgj_pr_hr(jsp, " Zone start LBA: 0x%" PRIx64 "\n", lba); in prt_a_zn_desc()
412 sgj_js_nv_ihex(jsp, jop, "zone_start_lba", (int64_t)lba); in prt_a_zn_desc()
419 return lba + len; in prt_a_zn_desc()
614 uint64_t lba; in decode_rep_realms() local
620 lba = sg_get_unaligned_be64(zp + 0); in decode_rep_realms()
621 sgj_pr_hr(jsp, " starting_lba=0x%" PRIx64 "\n", lba); in decode_rep_realms()
622 sgj_js_nv_ihex(jsp, jo3p, "realm_starting_lba", (int64_t)lba); in decode_rep_realms()
623 lba = sg_get_unaligned_be64(zp + 8); in decode_rep_realms()
[all …]
Dsg_compare_and_write.c112 uint64_t lba; member
235 op->lba = (uint64_t)ll; in parse_args()
350 int64_t lba, int xfer_len, struct caw_flags flags, in sg_ll_compare_and_write() argument
360 if (sg_build_scsi_cdb(cawCmd, blocks, lba, flags)) { in sg_ll_compare_and_write()
362 lba, blocks); in sg_ll_compare_and_write()
525 op->lba, op->numblocks, op->xfer_len, op->timeout); in main()
591 res = sg_ll_compare_and_write(devfd, wrkBuff, op->numblocks, op->lba, in main()
/external/arm-trusted-firmware/drivers/mmc/
Dmmc.c530 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size) in mmc_read_blocks() argument
540 ret = ops->prepare(lba, buf, size); in mmc_read_blocks()
564 cmd_arg = lba * MMC_BLOCK_SIZE; in mmc_read_blocks()
566 cmd_arg = lba; in mmc_read_blocks()
574 ret = ops->read(lba, buf, size); in mmc_read_blocks()
597 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size) in mmc_write_blocks() argument
608 ret = ops->prepare(lba, buf, size); in mmc_write_blocks()
631 cmd_arg = lba * MMC_BLOCK_SIZE; in mmc_write_blocks()
633 cmd_arg = lba; in mmc_write_blocks()
641 ret = ops->write(lba, buf, size); in mmc_write_blocks()
[all …]
/external/arm-trusted-firmware/include/drivers/
Dmmc.h131 int (*prepare)(int lba, uintptr_t buf, size_t size);
132 int (*read)(int lba, uintptr_t buf, size_t size);
133 int (*write)(int lba, const uintptr_t buf, size_t size);
233 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size);
234 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size);
235 size_t mmc_erase_blocks(int lba, size_t size);
236 size_t mmc_rpmb_read_blocks(int lba, uintptr_t buf, size_t size);
237 size_t mmc_rpmb_write_blocks(int lba, const uintptr_t buf, size_t size);
238 size_t mmc_rpmb_erase_blocks(int lba, size_t size);
239 size_t mmc_boot_part_read_blocks(int lba, uintptr_t buf, size_t size);
/external/sg3_utils/examples/
Dsg__sat_set_features.c112 int lba = 0; in main() local
154 lba = sg_get_num(optarg); in main()
155 if ((lba < 0) || (lba > 255)) { in main()
207 apt_cdb[8] = lba & 0xff; in main()
208 apt_cdb[10] = (lba >> 8) & 0xff; in main()
209 apt_cdb[12] = (lba >> 16) & 0xff; in main()
/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.cc258 int MBRPart::LBAtoCHS(uint32_t lba, uint8_t * chs) { in LBAtoCHS() argument
266 if (lba == 0) { in LBAtoCHS()
271 if ((!done) && (lba >= (numHeads * numSecspTrack * MAX_CYLINDERS))) { in LBAtoCHS()
279 cylinder = lba / (numHeads * numSecspTrack); in LBAtoCHS()
280 remainder = lba - (cylinder * numHeads * numSecspTrack); in LBAtoCHS()
/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/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/sg3_utils/include/
Dsg_cmds_extra.h145 int sg_ll_read_long10(int sg_fd, bool pblock, bool correct, unsigned int lba,
281 unsigned int lba, int veri_len, void * data_out,
329 unsigned int lba, void * data_out, int xfer_len,
384 uint64_t lba, uint32_t num_blocks, int group_num,

1234