Lines Matching defs:ent
166 is_unused(struct gpt_ent *ent)
170 return (memcmp(ent->ent_type, &unused, sizeof(unused)) == 0);
174 is_bootable(struct gpt_ent *ent)
186 if (memcmp(ent->ent_type, &bootable[i],
201 struct gpt_ent *ent;
274 ent = (struct gpt_ent *)&buf[j * entsz];
276 if (is_unused(ent))
280 if (ent->ent_attr & GPT_ENT_ATTR_BOOTME) {
281 bootme_lba = le64toh(ent->ent_lba_start);
286 firstpart_lba = le64toh(ent->ent_lba_start);
288 if (is_bootable(ent) && bootable_lba == 0)
289 bootable_lba = le64toh(ent->ent_lba_start);