Lines Matching refs:kho_scratch

383 static struct kho_scratch *kho_scratch;  variable
517 size = kho_scratch_cnt * sizeof(*kho_scratch); in kho_reserve_scratch()
518 kho_scratch = memblock_alloc(size, PAGE_SIZE); in kho_reserve_scratch()
519 if (!kho_scratch) in kho_reserve_scratch()
532 kho_scratch[i].addr = addr; in kho_reserve_scratch()
533 kho_scratch[i].size = size; in kho_reserve_scratch()
542 kho_scratch[i].addr = addr; in kho_reserve_scratch()
543 kho_scratch[i].size = size; in kho_reserve_scratch()
554 kho_scratch[i].addr = addr; in kho_reserve_scratch()
555 kho_scratch[i].size = size; in kho_reserve_scratch()
563 memblock_phys_free(kho_scratch[i].addr, kho_scratch[i].size); in kho_reserve_scratch()
565 memblock_free(kho_scratch, kho_scratch_cnt * sizeof(*kho_scratch)); in kho_reserve_scratch()
887 seq_printf(m, "0x%llx\n", kho_scratch[i].addr); in scratch_phys_show()
896 seq_printf(m, "0x%llx\n", kho_scratch[i].size); in scratch_len_show()
1079 unsigned long base_pfn = PHYS_PFN(kho_scratch[i].addr); in kho_init()
1080 unsigned long count = kho_scratch[i].size >> PAGE_SHIFT; in kho_init()
1095 void *start = __va(kho_scratch[i].addr); in kho_init()
1096 void *end = start + kho_scratch[i].size; in kho_init()
1134 kho_scratch = phys_to_virt(kho_in.scratch_phys); in kho_memory_init()
1150 struct kho_scratch *scratch = NULL; in kho_populate()
1152 unsigned int scratch_cnt = scratch_len / sizeof(*kho_scratch); in kho_populate()
1190 struct kho_scratch *area = &scratch[i]; in kho_populate()
1241 scratch_size = sizeof(*kho_scratch) * kho_scratch_cnt; in kho_fill_kimage()
1244 .buffer = kho_scratch, in kho_fill_kimage()
1268 .start = kho_scratch[i].addr, in kho_walk_scratch()
1269 .end = kho_scratch[i].addr + kho_scratch[i].size - 1, in kho_walk_scratch()