Lines Matching refs:list

22 static partition_entry_list_t list;  variable
32 len = snprintf(name, EFI_NAMELEN, "%s", list.list[i].name); in dump_entries()
37 VERBOSE("%d: %s %" PRIx64 "-%" PRIx64 "\n", i + 1, name, list.list[i].start, in dump_entries()
38 list.list[i].start + list.list[i].length - 4); in dump_entries()
142 list.entry_count = header.list_num; in load_gpt_header()
143 if (list.entry_count > PLAT_PARTITION_MAX_ENTRIES) { in load_gpt_header()
144 list.entry_count = PLAT_PARTITION_MAX_ENTRIES; in load_gpt_header()
197 list.entry_count = MBR_PRIMARY_ENTRY_NUMBER; in load_mbr_entries()
199 for (i = 0; i < list.entry_count; i++) { in load_mbr_entries()
201 list.list[i].start = mbr_entry.first_lba * 512; in load_mbr_entries()
202 list.list[i].length = mbr_entry.sector_nums * 512; in load_mbr_entries()
203 list.list[i].name[0] = mbr_entry.type; in load_mbr_entries()
248 for (i = 0; i < list.entry_count; i++) { in load_partition_gpt()
256 result = parse_gpt_entry(&entry, &list.list[i]); in load_partition_gpt()
269 list.entry_count = i; in load_partition_gpt()
270 dump_entries(list.entry_count); in load_partition_gpt()
410 for (i = 0; i < list.entry_count; i++) { in get_partition_entry()
411 if (strcmp(name, list.list[i].name) == 0) { in get_partition_entry()
412 return &list.list[i]; in get_partition_entry()
425 for (i = 0; i < list.entry_count; i++) { in get_partition_entry_by_type()
426 if (guidcmp(type_uuid, &list.list[i].type_guid) == 0) { in get_partition_entry_by_type()
427 return &list.list[i]; in get_partition_entry_by_type()
441 for (i = 0; i < list.entry_count; i++) { in get_partition_entry_by_uuid()
442 if (guidcmp(part_uuid, &list.list[i].part_guid) == 0) { in get_partition_entry_by_uuid()
443 return &list.list[i]; in get_partition_entry_by_uuid()
455 return &list; in get_partition_entry_list()