Lines Matching refs:partition
20 snprintf(tmp, sizeof(tmp), "-i %d ", params->partition); in DumpCgptAddParams()
151 if (params->partition) { in CgptGetUnusedPartition()
152 if (params->partition > max_part) { in CgptGetUnusedPartition()
153 Error("invalid partition number: %d\n", params->partition); in CgptGetUnusedPartition()
156 *index = params->partition - 1; in CgptGetUnusedPartition()
162 params->partition = i + 1; in CgptGetUnusedPartition()
186 if (params->partition == 0 || in CgptSetAttributes()
187 params->partition >= GetNumberOfEntries(&drive)) { in CgptSetAttributes()
188 Error("invalid partition number: %d\n", params->partition); in CgptSetAttributes()
192 SetEntryAttributes(&drive, params->partition - 1, params); in CgptSetAttributes()
225 if (params->partition > 0) { in CgptGetPartitionDetails()
226 if (params->partition >= max_part) { in CgptGetPartitionDetails()
227 Error("invalid partition number: %d\n", params->partition); in CgptGetPartitionDetails()
238 params->partition = index + 1; in CgptGetPartitionDetails()
247 index = params->partition - 1; in CgptGetPartitionDetails()