Lines Matching defs:drive
54 int CheckValid(const struct drive *drive) { in CheckValid()
63 int Load(struct drive *drive, uint8_t **buf, in Load()
106 int ReadPMBR(struct drive *drive) { in ReadPMBR()
117 int WritePMBR(struct drive *drive) { in WritePMBR()
128 int Save(struct drive *drive, const uint8_t *buf, in Save()
148 static int GptLoad(struct drive *drive, uint32_t sector_bytes) { in GptLoad()
206 static int GptSave(struct drive *drive) { in GptSave()
289 int DriveOpen(const char *drive_path, struct drive *drive, int mode, in DriveOpen()
340 int DriveClose(struct drive *drive, int update_as_needed) { in DriveClose()
697 uint32_t GetNumberOfEntries(const struct drive *drive) { in GetNumberOfEntries()
729 void SetPriority(struct drive *drive, int secondary, uint32_t entry_index, in SetPriority()
737 int GetPriority(struct drive *drive, int secondary, uint32_t entry_index) { in GetPriority()
743 void SetTries(struct drive *drive, int secondary, uint32_t entry_index, in SetTries()
751 int GetTries(struct drive *drive, int secondary, uint32_t entry_index) { in GetTries()
757 void SetSuccessful(struct drive *drive, int secondary, uint32_t entry_index, in SetSuccessful()
765 int GetSuccessful(struct drive *drive, int secondary, uint32_t entry_index) { in GetSuccessful()
771 void SetRaw(struct drive *drive, int secondary, uint32_t entry_index, in SetRaw()
778 void UpdateAllEntries(struct drive *drive) { in UpdateAllEntries()
787 int IsUnused(struct drive *drive, int secondary, uint32_t index) { in IsUnused()
793 int IsKernel(struct drive *drive, int secondary, uint32_t index) { in IsKernel()
968 struct drive drive; in CgptGetNumNonEmptyPartitions() local