Searched defs:drive (Results 1 - 25 of 38) sorted by relevance

12

/external/vboot_reference/cgpt/
H A Dcgpt_repair.c13 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,
[all...]
H A Dcgpt_legacy.c12 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
[all...]
H A Dcgpt_boot.c16 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,
66 struct drive drive; local
[all...]
H A Dcgpt_create.c24 static int GptCreate(struct drive *drive, CgptCreateParams *params) { argument
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
106 struct drive drive; local
[all...]
H A Dcgpt.h44 // 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...]
H A Dcgpt_add.c68 static int GptSetEntryAttributes(struct drive *drive, argument
73 entry = GetEntry(&drive->gpt, PRIMARY, index);
100 static int SetEntryAttributes(struct drive *drive, argument
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, PRIMAR
129 CgptCheckAddValidity(struct drive *drive) argument
147 CgptGetUnusedPartition(struct drive *drive, uint32_t *index, CgptAddParams *params) argument
173 struct drive drive; local
209 struct drive drive; local
267 GptAdd(struct drive *drive, CgptAddParams *params, uint32_t index) argument
297 struct drive drive; local
[all...]
H A Dcgpt_prioritize.c95 struct drive drive; local
109 if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR,
113 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) {
119 max_part = GetNumberOfEntries(&drive);
129 if (!IsKernel(&drive, PRIMARY, index)) {
138 if (IsKernel(&drive, PRIMARY, i))
146 if (!IsKernel(&drive, PRIMARY, i))
149 priority = GetPriority(&drive, PRIMARY, i);
194 SetPriority(&drive, PRIMAR
[all...]
H A Dcgpt_find.c42 static int match_content(CgptFindParams *params, struct drive *drive, argument
57 drive->fd,
110 static int gpt_search(CgptFindParams *params, struct drive *drive, argument
117 if (GPT_SUCCESS != GptSanityCheck(&drive->gpt)) {
121 for (i = 0; i < GetNumberOfEntries(drive); ++i) {
122 entry = GetEntry(&drive->gpt, ANY_VALID, i);
141 if (found && match_content(params, drive, entry)) {
155 struct drive driv local
[all...]
H A Dcgpt_show.c144 void EntriesDetails(struct drive *drive, const int secondary, int raw) { argument
147 for (i = 0; i < GetNumberOfEntries(drive); ++i) {
149 entry = GetEntry(&drive->gpt, secondary, i);
158 static int GptShow(struct drive *drive, CgptShowParams *params) { argument
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_VALI
335 struct drive drive; local
[all...]
/external/syslinux/com32/modules/
H A Ddisk.c24 struct driveinfo drive; local
25 struct driveinfo *d = &drive;
35 /* Do not print output when drive does not exists */
H A Difmemdsk.c28 --no-sequential Suppresses probing all drive numbers\n\
162 static const s_mdi * installation_check(int drive) { argument
169 params.edx.w[0] = drive;
195 int found, drive; local
198 for (found = drive = 0; drive <= 0xFF; ++drive) {
199 mdi = installation_check(drive);
/external/syslinux/gpxe/src/arch/i386/interface/pcbios/
H A Dib_srpboot.c15 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
[all...]
H A Daoeboot.c17 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
[all...]
H A Discsiboot.c16 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
[all...]
H A Dint13.c64 * 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 Emulate
114 int13_get_last_status( struct int13_drive *drive, struct i386_all_regs *ix86 __unused ) argument
134 int13_rw_sectors( struct int13_drive *drive, struct i386_all_regs *ix86, int ( * io ) ( struct block_device *blockdev, uint64_t block, unsigned long count, userptr_t buffer ) ) argument
191 int13_read_sectors( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
210 int13_write_sectors( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
227 int13_get_parameters( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
250 int13_get_disk_type( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
291 int13_extended_rw( struct int13_drive *drive, struct i386_all_regs *ix86, int ( * io ) ( struct block_device *blockdev, uint64_t block, unsigned long count, userptr_t buffer ) ) argument
329 int13_extended_read( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
342 int13_extended_write( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
355 int13_get_extended_parameters( struct int13_drive *drive, struct i386_all_regs *ix86 ) argument
382 struct int13_drive *drive; local
[all...]
/external/syslinux/gpxe/src/arch/i386/include/
H A Dbios_disks.h22 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/com32/gpllib/disk/
H A Dread.c31 * @drive: Drive number
37 int read_mbr(int drive, void *buf) argument
40 drive_info.disk = drive;
47 * dev_read - read from a drive
48 * @drive: Drive number
53 * High-level routine to read from a hard drive.
57 int dev_read(int drive, void *buf, unsigned int lba, int sectors) argument
60 drive_info.disk = drive;
/external/syslinux/com32/hdt/
H A Dhdt-cli-disk.c43 * @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
[all...]
H A Dhdt-dump-disks.c77 void show_disk(struct s_hardware *hardware, ZZJSON_CONFIG *conf, ZZJSON **it, int drive) { argument
80 int i = drive - 0x80;
128 for (int drive = 0x80; drive < 0xff; drive++) {
129 if (hardware->disk_info[drive - 0x80].cbios) {
135 show_disk(hardware, config, item, drive);
/external/syslinux/memdisk/
H A Ddskprobe.c42 /* 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) argument
46 regs->edx.b[0] = drive; /* DL == drive number to probe */
71 static int probe_int13h_01h(uint8_t drive) argument
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) argument
92 probe_any(0x08, drive, regs);
97 status = probe_int13h_01h(drive);
106 probe_int13h_15h(uint8_t drive, com32sys_t * regs) argument
126 probe_int13h_41h(uint8_t drive, com32sys_t * regs) argument
152 probe_bda_drive(uint8_t drive) argument
176 multi_probe_drive(uint8_t drive) argument
201 uint8_t drive = start; local
[all...]
/external/webrtc/webrtc/base/
H A Dpathutils.cc228 bool Pathname::GetDrive(char* drive, uint32_t bytes) const { argument
229 return GetDrive(drive, bytes, folder_);
233 bool Pathname::GetDrive(char* drive, argument
241 memcpy(drive, pathname.c_str(), 3);
242 drive[3] = 0;
244 return (isalpha(drive[0]) &&
245 drive[1] == ':' &&
246 drive[2] == '\\');
/external/mockito/src/test/java/org/mockitousage/customization/
H A DBDDMockitoTest.java344 person.drive(car);
349 then(person).should(inOrder).drive(car);
359 person.drive(car);
360 person.drive(car);
364 then(person).should(inOrder, times(2)).drive(car);
373 void drive(Car car) { method in class:BDDMockitoTest.Person
/external/syslinux/com32/chain/
H A Dchain.c61 * Search for a specific drive, based on the MBR signature.
62 * Return drive and iterator at 0th position.
69 int drive; local
71 for (drive = 0x80; drive < 0x80 + fixed_cnt; drive++) {
72 if (disk_get_params(drive, &diskinfo))
81 drive = -1;
84 return drive;
88 * Search for a specific drive/partitio
96 int drive; local
125 int drive; local
279 int drive, hd, partition; local
[all...]
H A Dmangle.c143 /* 0x20b: BIOS drive number (must be 0) */
144 uint8_t drive; member in struct:grub_stage2_patch_area::__anon23556
192 * 0x20b = drive: BIOS drive number (must be 0)
194 * GRUB Legacy doesn't store the BIOS drive number at 0x20b, but at
202 * -1: whole drive (default) (-1 = 0xFF)
311 /* BPB: drive */
443 /* DOS kernels want the drive number in BL instead of DL. Indulge them. */
471 * -1: whole drive (default)
/external/syslinux/dosutil/
H A Dmdiskchk.c46 struct memdiskinfo *query_memdisk(int drive) argument
51 unsigned char _dl = drive;
200 " --no-sequential Suppresses probing all drive numbers\n");

Completed in 492 milliseconds

12