Lines Matching refs:ptr
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)
617 kimage_entry_t *ptr, entry; in kimage_free() local
629 for_each_kimage_entry(image, ptr, 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()
672 return ptr; in kimage_dst_used()
799 char *ptr; in kimage_load_normal_segment() local
812 ptr = kmap_local_page(page); in kimage_load_normal_segment()
814 clear_page(ptr); in kimage_load_normal_segment()
815 ptr += maddr & ~PAGE_MASK; in kimage_load_normal_segment()
822 memcpy(ptr, kbuf, uchunk); in kimage_load_normal_segment()
824 result = copy_from_user(ptr, buf, uchunk); in kimage_load_normal_segment()
825 kunmap_local(ptr); in kimage_load_normal_segment()
867 char *ptr; in kimage_load_crash_segment() local
876 ptr = kmap_local_page(page); in kimage_load_crash_segment()
877 ptr += maddr & ~PAGE_MASK; in kimage_load_crash_segment()
883 memset(ptr + uchunk, 0, mchunk - uchunk); in kimage_load_crash_segment()
888 memcpy(ptr, kbuf, uchunk); in kimage_load_crash_segment()
890 result = copy_from_user(ptr, buf, uchunk); in kimage_load_crash_segment()
892 kunmap_local(ptr); in kimage_load_crash_segment()