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

1 2 3 4 5 6

  /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...]
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_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...]
  /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 + ':'
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_py_compile.py 19 # on different drives. Therefore we need to switch to the drive where
21 drive = os.path.splitdrive(self.source_path)[0]
22 if drive:
23 os.chdir(drive)
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_py_compile.py 19 # on different drives. Therefore we need to switch to the drive where
21 drive = os.path.splitdrive(self.source_path)[0]
22 if drive:
23 os.chdir(drive)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_py_compile.py 19 # on different drives. Therefore we need to switch to the drive where
21 drive = os.path.splitdrive(self.source_path)[0]
22 if drive:
23 os.chdir(drive)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_py_compile.py 19 # on different drives. Therefore we need to switch to the drive where
21 drive = os.path.splitdrive(self.source_path)[0]
22 if drive:
23 os.chdir(drive)
  /external/webrtc/webrtc/base/
pathutils.cc 228 bool Pathname::GetDrive(char* drive, uint32_t bytes) const {
229 return GetDrive(drive, bytes, folder_);
233 bool Pathname::GetDrive(char* drive,
241 memcpy(drive, pathname.c_str(), 3);
242 drive[3] = 0;
244 return (isalpha(drive[0]) &&
245 drive[1] == ':' &&
246 drive[2] == '\\');
  /sdk/files/proguard/bin/
proguard.bat 6 rem Change current directory and drive to where the script is, to avoid
proguardgui.bat 6 rem Change current directory and drive to where the script is, to avoid
  /external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/_setup/py2/
data.py 37 drive, path = '', _os.path.normpath(path)
43 drive, path = splitunc(path)
44 if not drive:
45 drive, path = _os.path.splitdrive(path)
55 drive = _os.path.join(drive, prefix)
59 return drive, elems
  /external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/_setup/py3/
data.py 37 drive, path = '', _os.path.normpath(path)
43 drive, path = splitunc(path)
44 if not drive:
45 drive, path = _os.path.splitdrive(path)
55 drive = _os.path.join(drive, prefix)
59 return drive, elems
  /external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rjsmin/_setup/py2/
data.py 37 drive, path = '', _os.path.normpath(path)
43 drive, path = splitunc(path)
44 if not drive:
45 drive, path = _os.path.splitdrive(path)
55 drive = _os.path.join(drive, prefix)
59 return drive, elems
  /external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rjsmin/_setup/py3/
data.py 37 drive, path = '', _os.path.normpath(path)
43 drive, path = splitunc(path)
44 if not drive:
45 drive, path = _os.path.splitdrive(path)
55 drive = _os.path.join(drive, prefix)
59 return drive, elems

Completed in 826 milliseconds

1 2 3 4 5 6