Lines Matching refs:drive
45 struct drive { struct
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);
78 int Load(struct drive *drive, uint8_t **buf,
93 int Save(struct drive *drive, const uint8_t *buf,
121 int ReadPMBR(struct drive *drive);
122 int WritePMBR(struct drive *drive);
149 uint32_t GetNumberOfEntries(const struct drive *drive);
152 void SetPriority(struct drive *drive, int secondary, uint32_t entry_index,
154 int GetPriority(struct drive *drive, int secondary, uint32_t entry_index);
155 void SetTries(struct drive *drive, int secondary, uint32_t entry_index,
157 int GetTries(struct drive *drive, int secondary, uint32_t entry_index);
158 void SetSuccessful(struct drive *drive, int secondary, uint32_t entry_index,
160 int GetSuccessful(struct drive *drive, int secondary, uint32_t entry_index);
162 void SetRaw(struct drive *drive, int secondary, uint32_t entry_index,
165 void UpdateAllEntries(struct drive *drive);
172 int IsUnused(struct drive *drive, int secondary, uint32_t index);
173 int IsKernel(struct drive *drive, int secondary, uint32_t index);