Home | History | Annotate | Download | only in cgpt

Lines Matching refs:drive

44 // Handle to the drive storing the GPT.
45 struct drive {
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'.
70 * drive -- open drive.
78 int Load(struct drive *drive, uint8_t **buf,
83 /* Saves sectors to 'drive'.
85 * drive -- open drive
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);