Lines Matching refs:drive
42 static int match_content(CgptFindParams *params, struct drive *drive, in match_content() argument
57 drive->fd, in match_content()
110 static int gpt_search(CgptFindParams *params, struct drive *drive, in gpt_search() argument
117 if (GPT_SUCCESS != GptSanityCheck(&drive->gpt)) { in gpt_search()
121 for (i = 0; i < GetNumberOfEntries(drive); ++i) { in gpt_search()
122 entry = GetEntry(&drive->gpt, ANY_VALID, i); in gpt_search()
141 if (found && match_content(params, drive, entry)) { in gpt_search()
155 struct drive drive; in do_search() local
157 if (CGPT_OK != DriveOpen(fileName, &drive, O_RDONLY, params->drive_size)) in do_search()
160 retval = gpt_search(params, &drive, fileName); in do_search()
162 (void) DriveClose(&drive, 0); in do_search()