Home | History | Annotate | Download | only in stage2

Lines Matching defs:partition

96 /* The register ESI should contain the address of the partition to be
115 /* these are the translated numbers for the open partition */
297 * Check partition boundaries
308 * Get the read to the beginning of a partition.
373 embed a Stage 1.5 into a partition instead of a MBR, use system
439 /* Turn on the active flag for the partition SAVED_PARTITION in the
452 /* If the partition is not a primary partition, the active flag is
464 /* If the partition is an extended partition, setting the active
516 /* The partition must be a PC slice. */
524 /* Look for the partition. */
564 /* Get the information on next partition on the drive DRIVE.
566 iterating this function. The partition representation in GRUB will
567 be stored in *PARTITION. Likewise, the partition type in *TYPE, the
569 partition table in *OFFSET, the entry number in the table in *ENTRY,
570 the offset of the extended partition in *EXT_OFFSET.
571 BUF is used to store a MBR, the boot sector of a partition, or
573 When calling this function first, *PARTITION must be initialized to
577 unsigned long *partition, int *type,
586 /* Get next BSD partition in current PC slice. */
590 int bsd_part_no = (*partition & 0xFF00) >> 8;
617 /* Search next valid BSD partition. */
622 /* Note that *TYPE and *PARTITION were set
627 *partition = (*partition & 0xFF00FF) | (i << 8);
644 partition whose type is zero) as well. */
647 int pc_slice_no = (*partition & 0xFF0000) >> 16;
658 /* Read the MBR or the boot sector of the extended partition. */
672 /* If this is out of current partition table... */
677 /* Search the first extended partition in current table. */
709 *partition = (pc_slice_no << 16) | 0xFFFF;
720 /* If previous partition is a BSD partition or a PC slice which
722 if ((*partition != 0xFFFFFF && IS_PC_SLICE_TYPE_BSD (*type & 0xff))
728 /* Get next BSD partition, if any. */
732 /* If the destination partition is a BSD partition and current
733 BSD partition has any error, abort the operation. */
736 || (dest & 0xFF0000) == (*partition & 0xFF0000)))
751 /* Open a partition. */
820 /* If this is a valid partition... */
824 /* Display partition information. */
830 grub_printf (" Partition num: %d, ",
851 grub_printf (" BSD Partition num: \'%c\', ",
857 grub_printf (" No BSD sub-partition found, partition type 0x%x\n",
896 /* Check if this is the destination partition. */
949 int partition = dev & 0xFFFFFF;
957 /* The `partition' part must always have a valid number. */
958 current_partition = partition;
1041 /* Either an absolute PC or BSD partition. */
1107 * This performs a "mount" on the current device, both drive and partition
1130 /* Copy the boot partition information to 0x7be-0x7fd for chain-loading. */
1138 /* Need only the partition table.
1146 /* Set the active flag of the booted partition. */
1219 /* allow for the error case of "no filesystem" after the partition
1265 printf ("partition type 0x%x\n", current_slice & 0xFF);
1447 /* partition completions */