Lines Matching defs:index
109 int index = 0;
114 if (callback(index, tagp, ctx) == B_TRUE) {
115 return (index + 1);
120 index++;
122 return (index);
139 * Simple callback to index item in set.
143 dboot_multiboot2_iterate_callback(int index, multiboot_tag_t *tagp,
146 if (index == ctx->dboot_iter_index) {
167 dboot_multiboot2_modstart(multiboot2_info_header_t *mbi, int index)
172 .dboot_iter_index = index,
187 dboot_multiboot2_modend(multiboot2_info_header_t *mbi, int index)
192 .dboot_iter_index = index,
207 dboot_multiboot2_modcmdline(multiboot2_info_header_t *mbi, int index)
212 .dboot_iter_index = index,
248 * Return the type of mmap entry referenced by index.
252 multiboot_tag_mmap_t *mb2_mmap_tagp, int index)
262 if (dboot_multiboot2_mmap_nentries(mbi, mb2_mmap_tagp) < index)
266 index * mb2_mmap_tagp->mb_entry_size);
271 * Return the length of mmap entry referenced by index.
275 multiboot_tag_mmap_t *mb2_mmap_tagp, int index)
285 if (dboot_multiboot2_mmap_nentries(mbi, mb2_mmap_tagp) < index)
289 index * mb2_mmap_tagp->mb_entry_size);
294 * Return the address from mmap entry referenced by index.
298 multiboot_tag_mmap_t *mb2_mmap_tagp, int index)
308 if (dboot_multiboot2_mmap_nentries(mbi, mb2_mmap_tagp) < index)
312 index * mb2_mmap_tagp->mb_entry_size);