• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/partitions/

Lines Matching refs:gpt

30  *   AGPT, allow override with 'gpt' kernel command line option.
53 * - Changed gpt structure names and members to be simpler and more Linux-like.
75 * - Added kernel command line option 'gpt' to override valid PMBR test.
102 /* This allows a kernel command line option 'gpt' to override
113 __setup("gpt", force_gpt_fn);
221 * @gpt - GPT header
224 * Allocates space for PTEs based on information found in @gpt.
228 gpt_header *gpt)
233 if (!gpt)
236 count = le32_to_cpu(gpt->num_partition_entries) *
237 le32_to_cpu(gpt->sizeof_partition_entry);
244 if (read_lba(state, le64_to_cpu(gpt->partition_entry_lba),
261 * Note: remember to free gpt when finished with it.
266 gpt_header *gpt;
269 gpt = kzalloc(ssz, GFP_KERNEL);
270 if (!gpt)
273 if (read_lba(state, lba, (u8 *) gpt, ssz) < ssz) {
274 kfree(gpt);
275 gpt=NULL;
279 return gpt;
286 * @gpt is a GPT header ptr, filled on return.
293 gpt_header **gpt, gpt_entry **ptes)
300 if (!(*gpt = alloc_read_gpt_header(state, lba)))
304 if (le64_to_cpu((*gpt)->signature) != GPT_HEADER_SIGNATURE) {
307 (unsigned long long)le64_to_cpu((*gpt)->signature),
313 origcrc = le32_to_cpu((*gpt)->header_crc32);
314 (*gpt)->header_crc32 = 0;
315 crc = efi_crc32((const unsigned char *) (*gpt), le32_to_cpu((*gpt)->header_size));
322 (*gpt)->header_crc32 = cpu_to_le32(origcrc);
326 if (le64_to_cpu((*gpt)->my_lba) != lba) {
328 (unsigned long long)le64_to_cpu((*gpt)->my_lba),
337 if (le64_to_cpu((*gpt)->first_usable_lba) > lastlba) {
339 (unsigned long long)le64_to_cpu((*gpt)->first_usable_lba),
343 if (le64_to_cpu((*gpt)->last_usable_lba) > lastlba) {
345 (unsigned long long)le64_to_cpu((*gpt)->last_usable_lba),
350 if (!(*ptes = alloc_read_gpt_entries(state, *gpt)))
355 le32_to_cpu((*gpt)->num_partition_entries) *
356 le32_to_cpu((*gpt)->sizeof_partition_entry));
358 if (crc != le32_to_cpu((*gpt)->partition_entry_array_crc32)) {
370 kfree(*gpt);
371 *gpt = NULL;
496 * @gpt is a GPT header ptr, filled on return.
501 * 'gpt' kernel command line option) and finding either the Primary
504 * is not checked unless the 'gpt' kernel command line option is passed.
508 static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt,
551 *gpt = pgpt;
563 *gpt = agpt;
577 *gpt = NULL;
603 gpt_header *gpt = NULL;
608 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) {
609 kfree(gpt);
616 for (i = 0; i < le32_to_cpu(gpt->num_partition_entries) && i < state->limit-1; i++) {
632 kfree(gpt);