Lines Matching refs:drive
95 struct drive drive; in CgptPrioritize() local
109 if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR, in CgptPrioritize()
113 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) { in CgptPrioritize()
119 max_part = GetNumberOfEntries(&drive); in CgptPrioritize()
129 if (!IsKernel(&drive, PRIMARY, index)) { in CgptPrioritize()
138 if (IsKernel(&drive, PRIMARY, i)) in CgptPrioritize()
146 if (!IsKernel(&drive, PRIMARY, i)) in CgptPrioritize()
149 priority = GetPriority(&drive, PRIMARY, i); in CgptPrioritize()
194 SetPriority(&drive, PRIMARY, in CgptPrioritize()
201 UpdateAllEntries(&drive); in CgptPrioritize()
203 return DriveClose(&drive, 1); in CgptPrioritize()
206 (void) DriveClose(&drive, 0); in CgptPrioritize()