Lines Matching refs:ent
85 check_entry(grub_entry_t *ent)
90 const grub_line_t * const lend = ent->ge_end->gl_next;
93 for (i = 0, lp = ent->ge_start; lend != lp; lp = lp->gl_next, ++i) {
94 lp->gl_entry_num = ent->ge_entry_num;
102 if ((ent->ge_emask = emask) == 0)
103 ent->ge_flags |= GRBM_VALID_FLAG;
109 grub_entry_t *ent;
111 if ((ent = calloc(1, sizeof (*ent))) == NULL)
114 ent->ge_start = start;
115 ent->ge_end = end;
118 mp->gm_ent_start = ent;
120 mp->gm_ent_end->ge_next = ent;
121 ent->ge_prev = mp->gm_ent_end;
123 mp->gm_ent_end = ent;
124 ent->ge_entry_num = mp->gm_entry_num++;
125 ent->ge_menu = mp;
134 grub_entry_t *ent;
146 for (ent = mp->gm_ent_start; ent != NULL && defent != ent->ge_entry_num;
147 ent = ent->ge_next)
150 mp->gm_ent_default = ent;
184 grub_entry_t *ent, *tmp;
189 for (ent = mp->gm_ent_start; (tmp = ent) != NULL;
190 ent = tmp->ge_next, free(tmp))
264 grub_entry_t *ent;
299 for (ent = mp->gm_ent_start; NULL != ent; ent = ent->ge_next)
300 check_entry(ent);
482 grub_entry_t *ent;
485 if ((ent = grub_menu_get_entry(mp, num)) == NULL)
488 return (grub_entry_get_cmdline(ent, cmdl, size));
492 grub_menu_next_entry(const grub_menu_t *mp, const grub_entry_t *ent)
495 if (ent == NULL) {
498 assert(mp == ent->ge_menu);
499 return (ent->ge_next);
504 grub_menu_prev_entry(const grub_menu_t *mp, const grub_entry_t *ent)
507 if (ent == NULL) {
510 assert(mp == ent->ge_menu);
511 return (ent->ge_prev);
518 grub_entry_t *ent;
522 ent = mp->gm_ent_default;
524 ent = NULL;
526 for (ent = mp->gm_ent_start;
527 ent != NULL && num != ent->ge_entry_num;
528 ent = ent->ge_next)
531 return (ent);