HomeSort by relevance Sort by last modified time
    Searched refs:lba (Results 1 - 25 of 71) sorted by null

1 2 3

  /device/linaro/bootloader/arm-trusted-firmware/include/drivers/io/
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/syslinux/diag/geodsp/
mk-lba-img.c 14 * mk-lba-img.c
16 * Makes an image that contains the LBA in every *word of every sector
37 unsigned int lba, b[SECT_INT]; local
69 lba = 0;
74 lba++;
79 while (lba < NUM_SECT) {
81 b[0] = lba;
84 b[i] = lba;
87 lba++;
Makefile 35 %.img.xz: %.bin mk-lba-img.pl
36 $(PERL) $(SRC)/mk-lba-img.pl $< | $(XZ) -0 > $@ || ( rm -f $@ ; false )
38 %.img.gz: %.bin mk-lba-img.pl
39 $(PERL) $(SRC)/mk-lba-img.pl $< | $(GZIPPROG) -9 > $@ || ( rm -f $@ ; false )
42 %.img: %.bin mk-lba-img.pl
43 $(PERL) $(SRC)/mk-lba-img.pl $< > $@ || ( rm -f $@ ; false )
48 mk-lba-img: mk-lba-img.c
53 rm -f mk-lba-img
  /external/syslinux/com32/gplinclude/disk/
common.h 30 uint64_t lba; member in struct:ebios_dapa
  /external/syslinux/com32/gpllib/disk/
write.c 28 * @lba: Position to write
35 int write_sectors(const struct driveinfo *drive_info, const unsigned int lba,
59 dapa->lba = lba;
70 if (lba)
77 lba_to_chs(drive_info, lba, &s, &h, &c);
106 * @lba: Position to write
110 const unsigned int lba, const void *data)
112 return write_verify_sectors(drive_info, lba, data, SECTOR);
118 * @lba: Position to writ
    [all...]
read.c 42 /* MBR: lba = 0, 1 sector */
50 * @lba: Position to start reading from
57 int dev_read(int drive, void *buf, unsigned int lba, int sectors)
62 return read_sectors(&drive_info, buf, lba, sectors);
69 * @lba: Position to read
76 const unsigned int lba, const int sectors)
102 dapa->lba = lba;
113 if (lba)
120 lba_to_chs(drive_info, lba, &s, &h, &c)
    [all...]
geom.c 23 * lba_to_chs - split given lba into cylinders/heads/sectors
25 void lba_to_chs(const struct driveinfo *drive_info, const int lba,
34 *cylinder = (lba % drive_info->edd_params.sectors_per_track) + 1;
35 track = lba / drive_info->edd_params.sectors_per_track;
39 *cylinder = (lba % drive_info->legacy_sectors_per_track) + 1;
40 track = lba / drive_info->legacy_sectors_per_track;
  /system/core/libdiskconfig/
config_mbr.c 28 /* start and len are in LBA units */
57 uint64_t lba; local
59 lba = (uint64_t)len_kb * 1024;
60 /* bump it up to the next LBA boundary just in case */
61 lba = (lba + (uint64_t)sect_size - 1) & ~((uint64_t)sect_size - 1);
62 lba /= (uint64_t)sect_size;
63 if (lba >= 0xffffffffULL)
64 ALOGE("Error converting kb -> lba. 32bit overflow, expect weirdness");
65 return (uint32_t)(lba & 0xffffffffULL)
113 pinfo->type, *lba, (uint32_t)len_lba); local
    [all...]
  /device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/
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)
65 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba,
72 return rom_usb_read(UNIPHIER_LD11_USB_DESC_BASE, lba, size, buf);
84 static int uniphier_ld20_usb_read(int lba, uintptr_t buf, size_t size)
86 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba,
95 ret = rom_usb_read(UNIPHIER_LD20_USB_DESC_BASE, lba, size, buf);
111 static int uniphier_pxs3_usb_read(int lba, uintptr_t buf, size_t size)
113 static int (*rom_usb_read)(uintptr_t desc, unsigned int lba,
120 ret = rom_usb_read(UNIPHIER_PXS3_USB_DESC_BASE, lba, size, buf)
    [all...]
  /device/linaro/bootloader/arm-trusted-firmware/include/drivers/
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);
  /external/syslinux/efi/
diskio.c 12 sector_t lba, UINTN bytes, void *buf)
14 return uefi_call_wrapper(bio->ReadBlocks, 5, bio, id, lba, bytes, buf);
18 sector_t lba, UINTN bytes, void *buf)
20 return uefi_call_wrapper(bio->WriteBlocks, 5, bio, id, lba, bytes, buf);
24 sector_t lba, size_t count, bool is_write)
32 status = write_blocks(bio, disk->disk_number, lba, bytes, buf);
34 status = read_blocks(bio, disk->disk_number, lba, bytes, buf);
  /device/linaro/bootloader/arm-trusted-firmware/drivers/emmc/
emmc.c 146 size_t emmc_read_blocks(int lba, uintptr_t buf, size_t size)
157 ret = ops->prepare(lba, buf, size);
178 cmd.cmd_arg = lba * EMMC_BLOCK_SIZE;
180 cmd.cmd_arg = lba;
185 ret = ops->read(lba, buf, size);
204 size_t emmc_write_blocks(int lba, const uintptr_t buf, size_t size)
215 ret = ops->prepare(lba, buf, size);
237 cmd.cmd_arg = lba * EMMC_BLOCK_SIZE;
239 cmd.cmd_arg = lba;
244 ret = ops->write(lba, buf, size)
    [all...]
  /external/syslinux/gpxe/src/include/gpxe/
scsi.h 58 uint32_t lba; member in struct:scsi_cdb_read_10
80 uint64_t lba; member in struct:scsi_cdb_read_16
102 uint32_t lba; member in struct:scsi_cdb_write_10
124 uint64_t lba; member in struct:scsi_cdb_write_16
146 uint32_t lba; member in struct:scsi_cdb_read_capacity_10
156 uint32_t lba; member in struct:scsi_capacity_10
171 uint64_t lba; member in struct:scsi_cdb_read_capacity_16
186 uint64_t lba; member in struct:scsi_capacity_16
  /external/syslinux/libinstaller/
syslxmod.c 40 sector_t sect, lba; local
44 len = lba = 0;
54 if (sect == lba + len && xbytes < 65536 &&
61 set_64_sl(&ex->lba, lba);
67 lba = sect;
76 set_64_sl(&ex->lba, lba);
  /external/syslinux/win/
ntfstest.c 48 LARGE_INTEGER vcn, lba; local
103 &lba
106 printf(" LBA #%lld -", lba.QuadPart);
109 lba.QuadPart + len * vol_info.SectorsPerCluster
  /external/fio/os/
os-hpux.h 54 unsigned long long lba; local
56 lba = ((uint64_t) dext.maxsva_high << 32) | dext.maxsva_low;
57 *bytes = lba * dext.lgblksz;
  /external/ltp/testcases/kernel/io/disktest/
childmain.c 65 * thread from any other thread performing an action on that lba.
72 if ((target.lba == env->action_list[i].lba) /* attempting same transfer start lba */
73 ||((target.lba < env->action_list[i].lba) && (target.lba + target.trsiz - 1) >= env->action_list[i].lba) /* attempting transfer over an lba in use */
76 * The lba(s) we want to do IO to are in use by another thread
    [all...]
  /external/syslinux/com32/chain/
utility.c 95 void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, int mode)
125 if (lba >= cs*hs*ss) {
130 s = (lba % ss) + 1;
131 t = lba / ss;
144 uint32_t lba = 0; local
159 /* Since the first member is the LBA, we simply cast */
160 lba = *((uint32_t *) MK_PTR(0, fd.handle));
167 return lba;
  /external/syslinux/com32/lib/syslinux/
disk.c 166 * @v lba The logical block address to begin reading at
172 uint64_t lba, uint8_t count, uint8_t op_code)
191 dapa->lba = lba;
206 * @v lba The logical block address to begin reading at
212 uint64_t lba, uint8_t count, uint8_t op_code)
222 * if we passed lba + count check and we get here, that means that
227 s = lba % diskinfo->spt;
228 t = lba / diskinfo->spt;
249 * @v lba The logical block address to begin reading a
    [all...]
  /device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/
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)
211 return ufs_read_blocks(3, lba, buf, size);
214 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size)
216 return ufs_write_blocks(3, lba, buf, size);
  /device/linaro/bootloader/arm-trusted-firmware/drivers/io/
io_block.c 177 int lba; local
206 lba = (cur->file_pos + cur->base) / block_size;
221 count = ops->read(lba, buf->offset,
224 count = ops->read(lba, buffer, buf->length);
251 count = ops->read(lba, buf->offset, left);
253 count = ops->read(lba, buffer, left);
283 int lba; local
313 lba = (cur->file_pos + cur->base) / block_size;
323 count = ops->read(lba, buf->offset,
329 count = ops->write(lba, buf->offset
    [all...]
  /device/linaro/hikey/l-loader/
gen_loader_hikey.py 59 def add(self, lba, fname):
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)
gen_loader.py 79 # get lba of both primary partition table and secondary partition table
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):
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)
  /external/syslinux/gpxe/src/drivers/block/
ata.c 52 DBG ( "ATA cmd %02x dev %02x LBA%s %llx count %04x\n",
55 ( unsigned long long ) command->cb.lba.native,
84 * @v block LBA block number
95 command.cb.lba.native = block;
100 command.cb.device |= command.cb.lba.bytes.low_prev;
110 * @v block LBA block number
121 command.cb.lba.native = block;
126 command.cb.device |= command.cb.lba.bytes.low_prev;
  /external/syslinux/core/fs/
diskio_bios.c 17 uint64_t lba; member in struct:edd_rdwr_packet
46 sector_t lba, size_t count, bool is_write)
52 uint32_t xlba = lba + disk->part_start; /* Truncated LBA (CHS is << 2 TB) */
61 if (lba + disk->part_start >= chs_max(disk))
142 lba, c, h, s+1);
164 sector_t lba, size_t count, bool is_write)
186 lba += disk->part_start;
216 pkt.lba = lba;
    [all...]

Completed in 533 milliseconds

1 2 3