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

1 2 3

  /external/vboot_reference/cgpt/
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_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_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_prioritize.c 95 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, PRIMARY
    [all...]
cgpt_find.c 42 static int match_content(CgptFindParams *params, struct drive *drive,
57 drive->fd,
110 static int gpt_search(CgptFindParams *params, struct drive *drive,
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 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...]
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...]
  /external/v8/tools/gyp/test/module/src/
program.c 32 char drive[_MAX_DRIVE]; local
35 if (_splitpath_s(bin_path, drive, _MAX_DRIVE, dir, _MAX_DIR,
40 if (_makepath_s(module_path, MAX_PATH, drive, dir, module, MODULE_SUFFIX)) {
  /hardware/bsp/intel/peripheral/libmraa/src/x86/
intel_galileo_rev_g.c 162 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/drive", pullup_map[dev->phy_pin]);
164 int drive = open(filepath, O_WRONLY); local
165 if (drive == -1) {
166 syslog(LOG_ERR, "galileo2: Failed to open drive for writing");
186 close(drive);
190 close(drive);
193 if (write(drive, bu, length * sizeof(char)) == -1) {
194 syslog(LOG_ERR, "galileo2: Failed to write to drive mode");
195 close(drive);
204 close(drive);
    [all...]
intel_edison_fab_c.c 545 int drive = open(filepath, O_WRONLY); local
547 if (drive == -1) {
549 drive = open(filepath, O_WRONLY);
552 if (drive == -1) {
553 syslog(LOG_ERR, "edison: Failed to open drive for writing");
563 close(drive);
576 close(drive);
579 if (write(drive, bu, length * sizeof(char)) == -1) {
580 syslog(LOG_ERR, "edison: Failed to write to drive mode");
582 close(drive);
    [all...]
  /ndk/build/core/
definitions-host.mk 170 # On Windows, we need to take care drive prefix in file paths, e.g.:
171 # /foo -> top-level 'foo' directory on current drive.
173 # c:/foo -> top-level 'foo' directory on C drive.
174 # c:foo -> 'foo' subdirectory on C drive's current directory.
181 ndk-windows-drive-letters := a b c d e f g h i j k l m n o p q r s t u v w x y z \
184 ndk-windows-drive-patterns := $(foreach _drive,$(ndk-windows-drive-letters),$(_drive):%)
186 windows-path-is-absolute = $(if $(filter /% $(ndk-windows-drive-patterns),$(subst \,/,$1)),true)
  /dalvik/libdex/
sha1.cpp 429 char drive[MAXDRIVE]; local
461 fnsplit(argv[i], drive, dir, name, ext);
466 sprintf(path, "%s%s%s", drive, dir, f.ff_name);
  /external/lzma/CPP/Windows/
FileFind.cpp 330 FChar drive[4] = { path[4], ':', '\\', 0 }; local
332 if (NSystem::MyGetDiskFreeSpace(drive, clusterSize, totalSize, freeSize))
  /external/webrtc/webrtc/base/
win32filesystem.cc 387 char drive[4]; local
390 if (path.GetDrive(drive, sizeof(drive))) {
391 drive16 = ToUtf16(drive);
399 // use the current drive if NULL is passed as the drive name.
405 LOG(LS_VERBOSE) << "Remote or unknown drive: " << drive;
  /external/gptfdisk/
gptcurses.cc 738 string drive="Disk Drive: "; local
739 drive += device;
747 move(2, (COLS - drive.length()) / 2);
748 printw(drive.c_str());
  /hardware/bsp/intel/peripheral/libmraa/src/gpio/
gpio.c 548 snprintf(filepath, MAX_SIZE, SYSFS_CLASS_GPIO "/gpio%d/drive", dev->pin);
550 int drive = open(filepath, O_WRONLY); local
551 if (drive == -1) {
552 syslog(LOG_ERR, "gpio: Failed to open drive for writing");
572 close(drive);
575 if (write(drive, bu, length * sizeof(char)) == -1) {
576 syslog(LOG_ERR, "gpio: Failed to write to drive mode");
577 close(drive);
581 close(drive);
  /external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
FactoryProvider2Test.java 110 public void drive() {} method in class:FactoryProvider2Test.Mustang
778 mustang.drive();
    [all...]
  /development/ndk/platforms/android-3/include/linux/
msdos_fs.h 138 __u8 drive; member in struct:fat_boot_bsx
  /prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/linux/
msdos_fs.h 138 __u8 drive; member in struct:fat_boot_bsx
  /prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/linux/
msdos_fs.h 138 __u8 drive; member in struct:fat_boot_bsx
  /prebuilts/ndk/current/platforms/android-12/arch-x86/usr/include/linux/
msdos_fs.h 138 __u8 drive; member in struct:fat_boot_bsx
  /prebuilts/ndk/current/platforms/android-13/arch-arm/usr/include/linux/
msdos_fs.h 138 __u8 drive; member in struct:fat_boot_bsx

Completed in 1745 milliseconds

1 2 3