• Home
  • Raw
  • Download

Lines Matching refs:entry

265 	image->entry = &image->head;  in do_kimage_alloc_init()
535 static int kimage_add_entry(struct kimage *image, kimage_entry_t entry) in kimage_add_entry() argument
537 if (*image->entry != 0) in kimage_add_entry()
538 image->entry++; in kimage_add_entry()
540 if (image->entry == image->last_entry) { in kimage_add_entry()
549 *image->entry = virt_to_boot_phys(ind_page) | IND_INDIRECTION; in kimage_add_entry()
550 image->entry = ind_page; in kimage_add_entry()
554 *image->entry = entry; in kimage_add_entry()
555 image->entry++; in kimage_add_entry()
556 *image->entry = 0; in kimage_add_entry()
596 if (*image->entry != 0) in kimage_terminate()
597 image->entry++; in kimage_terminate()
599 *image->entry = IND_DONE; in kimage_terminate()
602 #define for_each_kimage_entry(image, ptr, entry) \ argument
603 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); \
604 ptr = (entry & IND_INDIRECTION) ? \
605 boot_phys_to_virt((entry & PAGE_MASK)) : ptr + 1)
607 static void kimage_free_entry(kimage_entry_t entry) in kimage_free_entry() argument
611 page = boot_pfn_to_page(entry >> PAGE_SHIFT); in kimage_free_entry()
617 kimage_entry_t *ptr, entry; in kimage_free() local
629 for_each_kimage_entry(image, ptr, entry) { in kimage_free()
630 if (entry & IND_INDIRECTION) { in kimage_free()
637 ind = entry; in kimage_free()
638 } else if (entry & IND_SOURCE) in kimage_free()
639 kimage_free_entry(entry); in kimage_free()
664 kimage_entry_t *ptr, entry; in kimage_dst_used() local
667 for_each_kimage_entry(image, ptr, entry) { in kimage_dst_used()
668 if (entry & IND_DESTINATION) in kimage_dst_used()
669 destination = entry & PAGE_MASK; in kimage_dst_used()
670 else if (entry & IND_SOURCE) { in kimage_dst_used()