Lines Matching defs:list
22 static partition_entry_list_t list;
32 len = snprintf(name, EFI_NAMELEN, "%s", list.list[i].name);
37 VERBOSE("%d: %s %" PRIx64 "-%" PRIx64 "\n", i + 1, name, list.list[i].start,
38 list.list[i].start + list.list[i].length - 4);
142 list.entry_count = header.list_num;
143 if (list.entry_count > PLAT_PARTITION_MAX_ENTRIES) {
144 list.entry_count = PLAT_PARTITION_MAX_ENTRIES;
197 list.entry_count = MBR_PRIMARY_ENTRY_NUMBER;
199 for (i = 0; i < list.entry_count; i++) {
201 list.list[i].start = mbr_entry.first_lba * 512;
202 list.list[i].length = mbr_entry.sector_nums * 512;
203 list.list[i].name[0] = mbr_entry.type;
232 * entry and store them in the list of partition table entries.
248 for (i = 0; i < list.entry_count; i++) {
256 result = parse_gpt_entry(&entry, &list.list[i]);
269 list.entry_count = i;
270 dump_entries(list.entry_count);
339 * if its corrupted try loading backup GPT header and then retrieve list
410 for (i = 0; i < list.entry_count; i++) {
411 if (strcmp(name, list.list[i].name) == 0) {
412 return &list.list[i];
425 for (i = 0; i < list.entry_count; i++) {
426 if (guidcmp(type_uuid, &list.list[i].type_guid) == 0) {
427 return &list.list[i];
441 for (i = 0; i < list.entry_count; i++) {
442 if (guidcmp(part_uuid, &list.list[i].part_guid) == 0) {
443 return &list.list[i];
451 * Return entry to the list of partition table entries.
455 return &list;