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

1 2 3 4 5 6 7 8 910

  /external/syslinux/com32/hdt/floppy/
mtools.conf 2 drive a: file="hdt.img"
  /external/vboot_reference/cgpt/
cgpt_repair.c 13 struct drive drive; local
18 if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR,
22 int gpt_retval = GptSanityCheck(&drive.gpt);
27 GptRepair(&drive.gpt);
28 if (drive.gpt.modified & GPT_MODIFIED_HEADER1)
30 if (drive.gpt.modified & GPT_MODIFIED_ENTRIES1)
32 if (drive.gpt.modified & GPT_MODIFIED_ENTRIES2)
34 if (drive.gpt.modified & GPT_MODIFIED_HEADER2)
37 return DriveClose(&drive, 1)
    [all...]
cgpt_boot.c 16 struct drive drive; local
23 if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDONLY,
27 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) {
34 if (CGPT_OK != ReadPMBR(&drive)) {
41 GuidToStr(&drive.pmbr.boot_guid, buf, sizeof(buf));
43 int numEntries = GetNumberOfEntries(&drive);
46 GptEntry *entry = GetEntry(&drive.gpt, ANY_VALID, i);
48 if (GuidEqual(&entry->unique, &drive.pmbr.boot_guid)) {
60 (void) DriveClose(&drive, 1)
66 struct drive drive; local
    [all...]
cgpt_create.c 24 static int GptCreate(struct drive *drive, CgptCreateParams *params) {
28 AllocAndClear(&drive->gpt.primary_header,
29 drive->gpt.sector_bytes * GPT_HEADER_SECTORS);
30 AllocAndClear(&drive->gpt.secondary_header,
31 drive->gpt.sector_bytes * GPT_HEADER_SECTORS);
33 drive->gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 |
38 GptHeader *h = (GptHeader *)drive->gpt.primary_header;
42 h->my_lba = GPT_PMBR_SECTORS; /* The second sector on drive. */
43 h->alternate_lba = drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS
106 struct drive drive; local
    [all...]
cgpt.h 44 // Handle to the drive storing the GPT.
45 struct drive { struct
60 // Returns CGPT_OK if success and information are stored in 'drive'. */
61 int DriveOpen(const char *drive_path, struct drive *drive, int mode,
63 int DriveClose(struct drive *drive, int update_as_needed);
64 int CheckValid(const struct drive *drive);
66 /* Loads sectors from 'drive'
    [all...]
cgpt_legacy.c 12 struct drive drive; local
18 if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR,
22 h1 = (GptHeader *)drive.gpt.primary_header;
23 h2 = (GptHeader *)drive.gpt.secondary_header;
27 RepairEntries(&drive.gpt, MASK_SECONDARY);
28 drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 |
33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes);
34 drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1
    [all...]
cgpt_add.c 68 static int GptSetEntryAttributes(struct drive *drive,
73 entry = GetEntry(&drive->gpt, PRIMARY, index);
100 static int SetEntryAttributes(struct drive *drive,
104 SetRaw(drive, PRIMARY, index, params->raw_value);
107 SetSuccessful(drive, PRIMARY, index, params->successful);
109 SetTries(drive, PRIMARY, index, params->tries);
111 SetPriority(drive, PRIMARY, index, params->priority);
115 if (IsUnused(drive, PRIMARY, index))
173 struct drive drive; local
209 struct drive drive; local
297 struct drive drive; local
    [all...]
cgpt_common.c 54 int CheckValid(const struct drive *drive) {
55 if ((drive->gpt.valid_headers != MASK_BOTH) ||
56 (drive->gpt.valid_entries != MASK_BOTH)) {
63 int Load(struct drive *drive, uint8_t **buf,
86 if (-1 == lseek(drive->fd, sector * sector_bytes, SEEK_SET)) {
91 nread = read(drive->fd, *buf, count);
106 int ReadPMBR(struct drive *drive) {
968 struct drive drive; local
    [all...]
cgpt_show.c 144 void EntriesDetails(struct drive *drive, const int secondary, int raw) {
147 for (i = 0; i < GetNumberOfEntries(drive); ++i) {
149 entry = GetEntry(&drive->gpt, secondary, i);
158 static int GptShow(struct drive *drive, CgptShowParams *params) {
160 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive->gpt))) {
168 if (params->partition > GetNumberOfEntries(drive)) {
174 GptEntry *entry = GetEntry(&drive->gpt, ANY_VALID, index);
204 printf("%d\n", GetSuccessful(drive, ANY_VALID, index))
335 struct drive drive; local
    [all...]
  /external/syslinux/gpxe/src/arch/i386/include/
bootsector.h 12 unsigned int drive );
bios_disks.h 22 uint8_t drive; member in struct:bios_disk_loc
31 uint8_t drive; member in struct:bios_disk_device
41 void ( *fill_drive_name ) ( char *buf, uint8_t drive );
  /external/syslinux/gpxe/src/arch/i386/interface/pcbios/
aoeboot.c 17 struct int13_drive *drive; local
25 drive = zalloc ( sizeof ( *drive ) );
26 if ( ! drive ) {
50 drive->blockdev = &ata->blockdev;
52 register_int13_drive ( drive );
53 printf ( "Registered as BIOS drive %#02x\n", drive->drive );
54 printf ( "Booting from BIOS drive %#02x\n", drive->drive )
    [all...]
ib_srpboot.c 15 struct int13_drive *drive; local
23 drive = zalloc ( sizeof ( *drive ) );
24 if ( ! drive ) {
40 drive->blockdev = &scsi->blockdev;
47 register_int13_drive ( drive );
48 printf ( "Registered as BIOS drive %#02x\n", drive->drive );
49 printf ( "Booting from BIOS drive %#02x\n", drive->drive )
    [all...]
iscsiboot.c 16 struct int13_drive *drive; local
24 drive = zalloc ( sizeof ( *drive ) );
25 if ( ! drive ) {
41 drive->blockdev = &scsi->blockdev;
49 register_int13_drive ( drive );
50 printf ( "Registered as BIOS drive %#02x\n", drive->drive );
51 printf ( "Booting from BIOS drive %#02x\n", drive->drive )
    [all...]
int13.c 64 * Update BIOS drive count
67 struct int13_drive *drive; local
69 /* Get current drive count */
73 list_for_each_entry ( drive, &drives, list ) {
74 if ( num_drives <= ( drive->drive & 0x7f ) )
75 num_drives = ( ( drive->drive & 0x7f ) + 1 );
78 /* Update current drive count */
99 * @v drive Emulated driv
382 struct int13_drive *drive; local
    [all...]
  /external/syslinux/memdisk/
dskprobe.c 42 /* We will probe a BIOS drive number using INT 0x13, AH == func */
43 static void probe_any(uint8_t func, uint8_t drive, com32sys_t * regs)
46 regs->edx.b[0] = drive; /* DL == drive number to probe */
71 static int probe_int13h_01h(uint8_t drive)
77 probe_any(0x01, drive, &regs);
84 * INT 0x13, AH == 0x08: Get drive parameters.
86 static int probe_int13h_08h(uint8_t drive, com32sys_t * regs)
92 probe_any(0x08, drive, regs);
97 status = probe_int13h_01h(drive);
201 uint8_t drive = start; local
    [all...]
  /external/syslinux/gpxe/src/include/
fs.h 9 int ide_probe(int drive);
10 int ide_read(int drive, sector_t sector, void *buffer);
14 int usb_probe(int drive);
15 int usb_read(int drive, sector_t sector, void *buffer);
  /external/syslinux/com32/hdt/
hdt-cli-disk.c 43 * @drive_info: driveinfo struct describing the drive on which the partition
102 int drive = strtol(argv[0], (char **)NULL, 16); local
104 if (drive < 0x80 || drive >= 0xff) {
105 more_printf("Invalid disk: %d.\n", drive);
109 int i = drive - 0x80;
165 for (int drive = 0x80; drive < 0xff; drive++) {
166 if (hardware->disk_info[drive - 0x80].cbios)
    [all...]
  /external/syslinux/gpxe/src/arch/i386/image/
bootsector.c 55 * @v drive Drive number to pass to boot sector
59 unsigned int drive ) {
102 "d" ( drive )
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
nturl2path.py 14 # No drive specifier, just convert slashes
27 drive = comp[0][-1].upper()
28 path = drive + ':'
47 # No drive specifier, just convert slashes and quote the name
60 drive = urllib.quote(comp[0].upper())
62 path = '///' + drive + ':'
  /external/python/cpython2/Lib/
nturl2path.py 16 # No drive specifier, just convert slashes
29 drive = comp[0][-1].upper()
30 path = drive + ':'
49 # No drive specifier, just convert slashes and quote the name
62 drive = urllib.quote(comp[0].upper())
64 path = '///' + drive + ':'
  /prebuilts/gdb/darwin-x86/lib/python2.7/
nturl2path.py 14 # No drive specifier, just convert slashes
27 drive = comp[0][-1].upper()
28 path = drive + ':'
47 # No drive specifier, just convert slashes and quote the name
60 drive = urllib.quote(comp[0].upper())
62 path = '///' + drive + ':'
  /prebuilts/gdb/linux-x86/lib/python2.7/
nturl2path.py 14 # No drive specifier, just convert slashes
27 drive = comp[0][-1].upper()
28 path = drive + ':'
47 # No drive specifier, just convert slashes and quote the name
60 drive = urllib.quote(comp[0].upper())
62 path = '///' + drive + ':'
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
nturl2path.py 14 # No drive specifier, just convert slashes
27 drive = comp[0][-1].upper()
28 path = drive + ':'
47 # No drive specifier, just convert slashes and quote the name
60 drive = urllib.quote(comp[0].upper())
62 path = '///' + drive + ':'
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
nturl2path.py 14 # No drive specifier, just convert slashes
27 drive = comp[0][-1].upper()
28 path = drive + ':'
47 # No drive specifier, just convert slashes and quote the name
60 drive = urllib.quote(comp[0].upper())
62 path = '///' + drive + ':'

Completed in 1299 milliseconds

1 2 3 4 5 6 7 8 910