/external/syslinux/diag/geodsp/ |
D | 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
|
D | mk-lba-img.c | 37 unsigned int lba, b[SECT_INT]; in main() local 69 lba = 0; in main() 74 lba++; in main() 79 while (lba < NUM_SECT) { in main() 81 b[0] = lba; in main() 84 b[i] = lba; in main() 87 lba++; in main()
|
D | geodspms.asm | 31 ; # dd skip=1 seek=1 if=../dbg/lba-img/lba-img.bin of=$OF 36 ; # (dd if=core/geodsp.bin; dd skip=1 if=../dbg/lba-img/lba-img.bin; dd count=$((2*255*63 - 256*63 … 38 ; # (dd if=core/geodsp.bin; dd skip=1 if=../dbg/lba-img/lba-img.bin; dd count=$((40*16*63 - 256*63 …
|
D | geodsp1s.asm | 31 ; # dd skip=1 seek=1 if=../dbg/lba-img/lba-img.bin of=$OF 36 ; # (dd if=core/geodsp.bin; dd skip=1 if=../dbg/lba-img/lba-img.bin; dd count=$((2*255*63 - 256*63 … 38 ; # (dd if=core/geodsp.bin; dd skip=1 if=../dbg/lba-img/lba-img.bin; dd count=$((40*16*63 - 256*63 …
|
/external/syslinux/com32/gpllib/disk/ |
D | write.c | 35 int write_sectors(const struct driveinfo *drive_info, const unsigned int lba, in write_sectors() argument 59 dapa->lba = lba; in write_sectors() 70 if (lba) in write_sectors() 77 lba_to_chs(drive_info, lba, &s, &h, &c); in write_sectors() 110 const unsigned int lba, const void *data) in write_verify_sector() argument 112 return write_verify_sectors(drive_info, lba, data, SECTOR); in write_verify_sector() 123 const unsigned int lba, in write_verify_sectors() argument 129 if (write_sectors(drive_info, lba, data, size) == -1) in write_verify_sectors() 132 if (read_sectors(drive_info, rb, lba, size) == -1) in write_verify_sectors()
|
D | read.c | 57 int dev_read(int drive, void *buf, unsigned int lba, int sectors) in dev_read() argument 62 return read_sectors(&drive_info, buf, lba, sectors); in dev_read() 76 const unsigned int lba, const int sectors) in read_sectors() argument 102 dapa->lba = lba; in read_sectors() 113 if (lba) in read_sectors() 120 lba_to_chs(drive_info, lba, &s, &h, &c); in read_sectors()
|
D | geom.c | 25 void lba_to_chs(const struct driveinfo *drive_info, const int lba, in lba_to_chs() argument 34 *cylinder = (lba % drive_info->edd_params.sectors_per_track) + 1; in lba_to_chs() 35 track = lba / drive_info->edd_params.sectors_per_track; in lba_to_chs() 39 *cylinder = (lba % drive_info->legacy_sectors_per_track) + 1; in lba_to_chs() 40 track = lba / drive_info->legacy_sectors_per_track; in lba_to_chs()
|
/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/syslinux/com32/lib/syslinux/ |
D | disk.c | 172 uint64_t lba, uint8_t count, uint8_t op_code) in ebios_setup() argument 191 dapa->lba = lba; in ebios_setup() 212 uint64_t lba, uint8_t count, uint8_t op_code) in chs_setup() argument 227 s = lba % diskinfo->spt; in chs_setup() 228 t = lba / diskinfo->spt; in chs_setup() 256 void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, in disk_read_sectors() argument 266 if (!count || count > maxcnt || lba + count > diskinfo->lbacnt) in disk_read_sectors() 272 buf = ebios_setup(diskinfo, &inreg, lba, count, EBIOS_READ_CODE); in disk_read_sectors() 274 buf = chs_setup(diskinfo, &inreg, lba, count, CHS_READ_CODE); in disk_read_sectors() 302 int disk_write_sectors(const struct disk_info *const diskinfo, uint64_t lba, in disk_write_sectors() argument [all …]
|
/external/syslinux/gpxe/src/include/gpxe/ |
D | scsi.h | 58 uint32_t lba; member 80 uint64_t lba; member 102 uint32_t lba; member 124 uint64_t lba; member 146 uint32_t lba; member 156 uint32_t lba; member 171 uint64_t lba; member 186 uint64_t lba; member
|
/external/syslinux/efi/ |
D | diskio.c | 12 sector_t lba, UINTN bytes, void *buf) in read_blocks() argument 14 return uefi_call_wrapper(bio->ReadBlocks, 5, bio, id, lba, bytes, buf); in read_blocks() 18 sector_t lba, UINTN bytes, void *buf) in write_blocks() argument 20 return uefi_call_wrapper(bio->WriteBlocks, 5, bio, id, lba, bytes, buf); in write_blocks() 24 sector_t lba, size_t count, bool is_write) in efi_rdwr_sectors() argument 32 status = write_blocks(bio, disk->disk_number, lba, bytes, buf); in efi_rdwr_sectors() 34 status = read_blocks(bio, disk->disk_number, lba, bytes, buf); in efi_rdwr_sectors()
|
/external/syslinux/libinstaller/ |
D | syslxmod.c | 40 sector_t sect, lba; in generate_extents() local 44 len = lba = 0; in generate_extents() 54 if (sect == lba + len && xbytes < 65536 && in generate_extents() 61 set_64_sl(&ex->lba, lba); in generate_extents() 67 lba = sect; in generate_extents() 76 set_64_sl(&ex->lba, lba); in generate_extents()
|
/external/syslinux/com32/chain/ |
D | utility.c | 95 void lba2chs(disk_chs *dst, const struct disk_info *di, uint64_t lba, int mode) in lba2chs() argument 125 if (lba >= cs*hs*ss) { in lba2chs() 130 s = (lba % ss) + 1; in lba2chs() 131 t = lba / ss; in lba2chs() 144 uint32_t lba = 0; in get_file_lba() local 160 lba = *((uint32_t *) MK_PTR(0, fd.handle)); in get_file_lba() 167 return lba; in get_file_lba()
|
/external/syslinux/core/fs/ |
D | diskio_bios.c | 17 uint64_t lba; member 46 sector_t lba, size_t count, bool is_write) in chs_rdwr_sectors() argument 52 uint32_t xlba = lba + disk->part_start; /* Truncated LBA (CHS is << 2 TB) */ in chs_rdwr_sectors() 61 if (lba + disk->part_start >= chs_max(disk)) in chs_rdwr_sectors() 142 lba, c, h, s+1); in chs_rdwr_sectors() 164 sector_t lba, size_t count, bool is_write) in edd_rdwr_sectors() argument 186 lba += disk->part_start; in edd_rdwr_sectors() 216 pkt.lba = lba; in edd_rdwr_sectors() 219 ireg.edx.b[0], pkt.blocks, pkt.lba, in edd_rdwr_sectors() 258 done = chs_rdwr_sectors(disk, buf, lba - disk->part_start, in edd_rdwr_sectors() [all …]
|
/external/syslinux/gpxe/src/drivers/block/ |
D | ata.c | 55 ( unsigned long long ) command->cb.lba.native, in ata_command() 95 command.cb.lba.native = block; in ata_read() 100 command.cb.device |= command.cb.lba.bytes.low_prev; in ata_read() 121 command.cb.lba.native = block; in ata_write() 126 command.cb.device |= command.cb.lba.bytes.low_prev; in ata_write()
|
D | scsi.c | 127 cdb->lba = cpu_to_be32 ( block ); in scsi_read_10() 152 cdb->lba = cpu_to_be64 ( block ); in scsi_read_16() 177 cdb->lba = cpu_to_be32 ( block ); in scsi_write_10() 202 cdb->lba = cpu_to_be64 ( block ); in scsi_write_16() 233 blockdev->blocks = ( be32_to_cpu ( capacity.lba ) + 1 ); in scsi_read_capacity_10() 264 blockdev->blocks = ( be64_to_cpu ( capacity.lba ) + 1 ); in scsi_read_capacity_16()
|
/external/syslinux/win/ |
D | ntfstest.c | 48 LARGE_INTEGER vcn, lba; in main() local 103 &lba in main() 106 printf(" LBA #%lld -", lba.QuadPart); in main() 109 lba.QuadPart + len * vol_info.SectorsPerCluster in main()
|
/external/syslinux/gpxe/src/arch/i386/interface/pcbios/ |
D | int13.c | 142 unsigned long lba; in int13_rw_sectors() local 161 lba = ( ( ( ( cylinder * drive->heads ) + head ) in int13_rw_sectors() 167 head, sector, lba, ix86->segs.es, ix86->regs.bx, count ); in int13_rw_sectors() 170 if ( ( rc = io ( blockdev, lba, count, buffer ) ) != 0 ) { in int13_rw_sectors() 299 uint64_t lba; in int13_extended_rw() local 306 lba = addr.lba; in int13_extended_rw() 310 DBG ( "LBA %#llx <-> %04x:%04x (count %ld)\n", (unsigned long long)lba, in int13_extended_rw() 314 if ( ( rc = io ( blockdev, lba, count, buffer ) ) != 0 ) { in int13_extended_rw()
|
/external/fio/os/ |
D | os-hpux.h | 55 unsigned long long lba; in blockdev_size() local 57 lba = ((uint64_t) dext.maxsva_high << 32) | dext.maxsva_low; in blockdev_size() 58 *bytes = lba * dext.lgblksz; in blockdev_size()
|
/external/syslinux/com32/include/syslinux/ |
D | disk.h | 67 uint64_t lba; member 175 uint64_t lba, uint8_t count); 177 uint64_t lba, const void *data, uint8_t count); 179 uint64_t lba, const void *buf, uint8_t count);
|
/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/fio/engines/ |
D | sg.c | 209 int nr_blocks, lba; in fio_sgio_prep() local 235 lba = io_u->offset / sd->bs; in fio_sgio_prep() 236 hdr->cmdp[2] = (unsigned char) ((lba >> 24) & 0xff); in fio_sgio_prep() 237 hdr->cmdp[3] = (unsigned char) ((lba >> 16) & 0xff); in fio_sgio_prep() 238 hdr->cmdp[4] = (unsigned char) ((lba >> 8) & 0xff); in fio_sgio_prep() 239 hdr->cmdp[5] = (unsigned char) (lba & 0xff); in fio_sgio_prep()
|
/external/syslinux/core/fs/iso9660/ |
D | susp_rr.c | 75 static char *dummy_get_cache(struct device *fs_dev, block_t lba) in dummy_get_cache() argument 80 ret = fs_dev->src->read_block(fs_dev->src, lba, buf); in dummy_get_cache() 439 block_t lba; in susp_rr_check_signatures() local 459 lba = susp_rr_read_lsb32(((uint8_t *) &(sbi->root)) + 2); in susp_rr_check_signatures() 460 dir_rec = (char *) get_cache(fs->fs_dev, lba); in susp_rr_check_signatures()
|
/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()
|