Lines Matching defs:entry
519 int entry, type, gpt_count, gpt_size;
539 &start, &len, &offset, &entry,
553 PC_SLICE_TYPE (mbr, entry) |= PC_SLICE_TYPE_HIDDEN_FLAG;
555 PC_SLICE_TYPE (mbr, entry) &= ~PC_SLICE_TYPE_HIDDEN_FLAG;
589 partition table in *OFFSET, the entry number in the table in *ENTRY,
599 unsigned long long *offset, int *entry,
728 *entry = -1;
744 if (*entry == -1 && *offset == 0 && PC_SLICE_TYPE (buf, 0) == PC_SLICE_TYPE_GPT)
754 /* Let gpt_offset point to the first entry in the GPT
756 next_partition to determine if a entry comes from a
777 /* Increase the entry number. */
778 (*entry)++;
781 if (*entry == PC_SLICE_MAX)
790 /* Found. Set the new offset and the entry number,
795 *entry = -1;
804 *type = PC_SLICE_TYPE (buf, *entry);
805 *start = *offset + PC_SLICE_START (buf, *entry);
806 *len = PC_SLICE_LENGTH (buf, *entry);
832 *entry = -1;
836 (*entry)++;
838 if (*entry >= *gpt_count)
843 /* Read in the GPT Partition table entry. */
844 if (! rawread (drive, (*gpt_offset) + GPT_ENTRY_SECTOR (*gpt_size, *entry), GPT_ENTRY_INDEX (*gpt_size, *entry), *gpt_size, buf))
852 *entry = pc_slice_no;
853 *partition = (*entry << 16) | 0xFFFF;
917 int entry;
928 &part_offset, &entry, &ext_offset,
978 cur_part_addr = BOOT_PART_TABLE + (entry << 4);