/device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/ |
D | uniphier_usb.c | 52 static int (*__uniphier_usb_read)(int lba, uintptr_t buf, size_t size); 63 static int uniphier_ld11_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_ld11_usb_read() argument 65 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba, in uniphier_ld11_usb_read() 72 return rom_usb_read(UNIPHIER_LD11_USB_DESC_BASE, lba, size, buf); in uniphier_ld11_usb_read() 84 static int uniphier_ld20_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_ld20_usb_read() argument 86 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba, in uniphier_ld20_usb_read() 95 ret = rom_usb_read(UNIPHIER_LD20_USB_DESC_BASE, lba, size, buf); in uniphier_ld20_usb_read() 111 static int uniphier_pxs3_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_pxs3_usb_read() argument 113 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba, in uniphier_pxs3_usb_read() 120 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()
|
D | uniphier_emmc.c | 209 static size_t uniphier_emmc_read(int lba, uintptr_t buf, size_t size) in uniphier_emmc_read() argument 217 lba *= 512; in uniphier_emmc_read() 219 ret = uniphier_emmc_load_image(host_base, lba, buf, size / 512); in uniphier_emmc_read()
|
/device/linaro/bootloader/arm-trusted-firmware/include/drivers/ |
D | emmc.h | 104 int (*prepare)(int lba, uintptr_t buf, size_t size); 105 int (*read)(int lba, uintptr_t buf, size_t size); 106 int (*write)(int lba, const uintptr_t buf, size_t size); 153 size_t emmc_read_blocks(int lba, uintptr_t buf, size_t size); 154 size_t emmc_write_blocks(int lba, const uintptr_t buf, size_t size); 155 size_t emmc_erase_blocks(int lba, size_t size); 156 size_t emmc_rpmb_read_blocks(int lba, uintptr_t buf, size_t size); 157 size_t emmc_rpmb_write_blocks(int lba, const uintptr_t buf, size_t size); 158 size_t emmc_rpmb_erase_blocks(int lba, size_t size);
|
D | ufs.h | 469 int lba; member 525 size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size); 526 size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size);
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/emmc/ |
D | emmc.c | 146 size_t emmc_read_blocks(int lba, uintptr_t buf, size_t size) in emmc_read_blocks() argument 157 ret = ops->prepare(lba, buf, size); in emmc_read_blocks() 178 cmd.cmd_arg = lba * EMMC_BLOCK_SIZE; in emmc_read_blocks() 180 cmd.cmd_arg = lba; in emmc_read_blocks() 185 ret = ops->read(lba, buf, size); in emmc_read_blocks() 204 size_t emmc_write_blocks(int lba, const uintptr_t buf, size_t size) in emmc_write_blocks() argument 215 ret = ops->prepare(lba, buf, size); in emmc_write_blocks() 237 cmd.cmd_arg = lba * EMMC_BLOCK_SIZE; in emmc_write_blocks() 239 cmd.cmd_arg = lba; in emmc_write_blocks() 244 ret = ops->write(lba, buf, size); in emmc_write_blocks() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/ |
D | io_block.c | 177 int lba; in block_read() local 206 lba = (cur->file_pos + cur->base) / block_size; in block_read() 221 count = ops->read(lba, buf->offset, in block_read() 224 count = ops->read(lba, buffer, buf->length); in block_read() 251 count = ops->read(lba, buf->offset, left); in block_read() 253 count = ops->read(lba, buffer, left); in block_read() 283 int lba; in block_write() local 313 lba = (cur->file_pos + cur->base) / block_size; in block_write() 323 count = ops->read(lba, buf->offset, in block_write() 329 count = ops->write(lba, buf->offset, in block_write() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/ |
D | hikey960_io_storage.c | 34 size_t ufs_read_lun3_blks(int lba, uintptr_t buf, size_t size); 35 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size); 209 size_t ufs_read_lun3_blks(int lba, uintptr_t buf, size_t size) in ufs_read_lun3_blks() argument 211 return ufs_read_blocks(3, lba, buf, size); in ufs_read_lun3_blks() 214 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size) in ufs_write_lun3_blks() argument 216 return ufs_write_blocks(3, lba, buf, size); in ufs_write_lun3_blks()
|
/device/linaro/bootloader/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);
|
/device/linaro/hikey/l-loader/ |
D | gen_loader.py | 92 d0,lba,d2,name = struct.unpack("32sQ16s72s", fptable.read(128)) 95 print 'bl1_lba: ', lba 96 self.bl1_lba = lba 101 def add(self, lba, fname): argument 141 print 'lba: ', lba, 'blocks: ', blocks, 'bootp: ', bootp, 'fname: ', fname 163 … byte = struct.pack('8s8siii', 'ENTRYHDR', self.s1_entry_name[self.idx], lba, blocks, bootp) 165 … byte = struct.pack('8s8siii', 'ENTRYHDR', self.s2_entry_name[self.idx], lba, blocks, bootp)
|
D | gen_loader_hikey.py | 59 def add(self, lba, fname): argument 77 if (self.p_file < (lba * self.block_size - 2048)): 78 self.p_file = lba * self.block_size - 2048 91 print 'lba: ', lba, 'blocks: ', blocks, 'bootp: ', bootp, 'fname: ', fname 113 … byte = struct.pack('8s8siii', 'ENTRYHDR', self.s1_entry_name[self.idx], lba, blocks, bootp)
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/synopsys/emmc/ |
D | dw_mmc.c | 122 static int dw_prepare(int lba, uintptr_t buf, size_t size); 123 static int dw_read(int lba, uintptr_t buf, size_t size); 124 static int dw_write(int lba, uintptr_t buf, size_t size); 329 static int dw_prepare(int lba, uintptr_t buf, size_t size) in dw_prepare() argument 375 static int dw_read(int lba, uintptr_t buf, size_t size) in dw_read() argument 380 static int dw_write(int lba, uintptr_t buf, size_t size) in dw_write() argument
|
/device/linaro/bootloader/arm-trusted-firmware/drivers/ufs/ |
D | ufs.c | 209 int lba, uintptr_t buf, size_t length) in ufs_prepare_cmd() argument 234 ulba = (unsigned int)lba; in ufs_prepare_cmd() 635 size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size) in ufs_read_blocks() argument 647 ufs_prepare_cmd(&utrd, CDBCMD_READ_10, lun, lba, buf, size); in ufs_read_blocks() 659 size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size) in ufs_write_blocks() argument 671 ufs_prepare_cmd(&utrd, CDBCMD_WRITE_10, lun, lba, buf, size); in ufs_write_blocks()
|
/device/google/cuttlefish/host/commands/assemble_cvd/ |
D | cf_bpttool.py | 1016 def _lba_to_chs(self, lba): argument 1031 if lba > max_lba: 1033 c = lba / (num_heads*num_sectors) 1034 h = (lba / num_sectors) % num_heads 1035 s = lba % num_sectors
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | UefiShellDebug1CommandsLib.uni | 1094 "DBLK device [lba] [blocks] [-b]\r\n" 1099 " lba - Specifies the index of the first block to be displayed (a hexadecimal number).\r\n" 1107 " device. Enter a hexidecimal value for the lba and blocks variables. If lba is not\r\n"
|