Home
last modified time | relevance | path

Searched refs:memsz (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.6.21/arch/s390/kernel/
Dmachine_kexec_file.c135 data->memsz = ALIGN(data->memsz, PAGE_SIZE); in kexec_file_add_purgatory()
136 buf.mem = data->memsz; in kexec_file_add_purgatory()
143 data->memsz += buf.memsz; in kexec_file_add_purgatory()
159 data->memsz = ALIGN(data->memsz, PAGE_SIZE); in kexec_file_add_initrd()
160 buf.mem = data->memsz; in kexec_file_add_initrd()
163 buf.memsz = buf.bufsz; in kexec_file_add_initrd()
165 data->parm->initrd_start = data->memsz; in kexec_file_add_initrd()
166 data->parm->initrd_size = buf.memsz; in kexec_file_add_initrd()
167 data->memsz += buf.memsz; in kexec_file_add_initrd()
188 data->memsz = ALIGN(data->memsz, PAGE_SIZE); in kexec_file_add_ipl_report()
[all …]
Dkexec_elf.c45 buf.memsz = phdr->p_memsz; in kexec_file_add_kernel_elf()
46 data->memsz = ALIGN(data->memsz, phdr->p_align) + buf.memsz; in kexec_file_add_kernel_elf()
63 return data->memsz ? 0 : -EINVAL; in kexec_file_add_kernel_elf()
Dkexec_image.c29 buf.memsz = buf.bufsz; in kexec_file_add_kernel_image()
34 data->memsz += buf.memsz; in kexec_file_add_kernel_image()
/linux-6.6.21/drivers/remoteproc/
Dremoteproc_elf_loader.c177 u64 memsz = elf_phdr_get_p_memsz(class, phdr); local
184 if (type != PT_LOAD || !memsz)
188 type, da, memsz, filesz);
190 if (filesz > memsz) {
192 filesz, memsz);
204 if (!rproc_u64_fit_in_size_t(memsz)) {
206 memsz);
212 ptr = rproc_da_to_va(rproc, da, memsz, &is_iomem);
215 memsz);
235 if (memsz > filesz) {
[all …]
Dimx_dsp_rproc.c861 u64 memsz = elf_phdr_get_p_memsz(class, phdr); in imx_dsp_rproc_elf_load_segments() local
867 if (type != PT_LOAD || !memsz) in imx_dsp_rproc_elf_load_segments()
871 type, da, memsz, filesz); in imx_dsp_rproc_elf_load_segments()
873 if (filesz > memsz) { in imx_dsp_rproc_elf_load_segments()
875 filesz, memsz); in imx_dsp_rproc_elf_load_segments()
887 if (!rproc_u64_fit_in_size_t(memsz)) { in imx_dsp_rproc_elf_load_segments()
889 memsz); in imx_dsp_rproc_elf_load_segments()
895 ptr = rproc_da_to_va(rproc, da, memsz, NULL); in imx_dsp_rproc_elf_load_segments()
898 memsz); in imx_dsp_rproc_elf_load_segments()
908 da, memsz); in imx_dsp_rproc_elf_load_segments()
[all …]
/linux-6.6.21/arch/arm64/kernel/
Dkexec_image.c83 kbuf.memsz = le64_to_cpu(h->image_size); in image_load()
88 kbuf.memsz += text_offset; in image_load()
101 kernel_segment->memsz, initrd, in image_load()
111 kbuf.buf_min = kernel_segment->mem + kernel_segment->memsz; in image_load()
122 kernel_segment->memsz -= text_offset; in image_load()
127 kernel_segment->memsz); in image_load()
Dmachine_kexec.c51 kimage->segment[i].mem + kimage->segment[i].memsz, in _kexec_image_info()
52 kimage->segment[i].memsz, in _kexec_image_info()
53 kimage->segment[i].memsz / PAGE_SIZE); in _kexec_image_info()
92 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_segment_flush()
93 kimage->segment[i].memsz, in kexec_segment_flush()
94 kimage->segment[i].memsz / PAGE_SIZE); in kexec_segment_flush()
99 kimage->segment[i].memsz); in kexec_segment_flush()
328 kexec_crash_image->segment[i].memsz)) in crash_is_nosave()
Dmachine_kexec_file.c116 kbuf.memsz = headers_sz; in load_other_segments()
131 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments()
139 kbuf.memsz = initrd_len; in load_other_segments()
152 initrd_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments()
170 kbuf.memsz = dtb_len; in load_other_segments()
183 kbuf.mem, kbuf.bufsz, kbuf.memsz); in load_other_segments()
/linux-6.6.21/arch/x86/kernel/
Dcrash.c358 kbuf.memsz = kbuf.bufsz; in crash_load_segments()
371 kbuf.memsz = pnum * sizeof(Elf64_Phdr); in crash_load_segments()
372 kbuf.memsz += sizeof(Elf64_Ehdr); in crash_load_segments()
377 image->elf_headers_sz = kbuf.memsz; in crash_load_segments()
390 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
438 unsigned long mem, memsz; in arch_crash_handle_hotplug_event() local
465 memsz = image->segment[image->elfcorehdr_index].memsz; in arch_crash_handle_hotplug_event()
466 if (elfsz > memsz) { in arch_crash_handle_hotplug_event()
468 elfsz, memsz); in arch_crash_handle_hotplug_event()
Dkexec-bzimage64.c486 kbuf.memsz = kbuf.bufsz; in bzImage64_load()
499 kbuf.memsz = PAGE_ALIGN(header->init_size); in bzImage64_load()
509 kernel_load_addr, kbuf.bufsz, kbuf.memsz); in bzImage64_load()
514 kbuf.bufsz = kbuf.memsz = initrd_len; in bzImage64_load()
/linux-6.6.21/arch/mips/cobalt/
Dsetup.c102 unsigned long memsz; in prom_init() local
106 memsz = fw_arg0 & 0x7fff0000; in prom_init()
116 memblock_add(0, memsz); in prom_init()
/linux-6.6.21/arch/mips/kernel/
Dmachine_kexec.c47 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_image_info()
48 (unsigned long)kimage->segment[i].memsz, in kexec_image_info()
49 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
67 if (kimage->segment[i].memsz <= sizeof(fdt)) in uhi_machine_kexec_prepare()
/linux-6.6.21/arch/riscv/kernel/
Dmachine_kexec.c38 image->segment[i].mem + image->segment[i].memsz); in kexec_image_info()
40 (unsigned long) image->segment[i].memsz, in kexec_image_info()
41 (unsigned long) image->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
67 if (image->segment[i].memsz <= sizeof(fdt)) in machine_kexec_prepare()
Delf_kexec.c61 kbuf.memsz = phdr->p_memsz; in riscv_kexec_elf_load()
109 kbuf.memsz = ALIGN(kernel_len, PAGE_SIZE); in elf_find_pbase()
242 kbuf.memsz = headers_sz; in elf_kexec_load()
256 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in elf_kexec_load()
288 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_kexec_load()
310 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf_kexec_load()
/linux-6.6.21/arch/parisc/kernel/
Dkexec.c28 kimage->segment[n].mem + kimage->segment[n].memsz, in kexec_show_segment_info()
29 (unsigned long)kimage->segment[n].memsz, in kexec_show_segment_info()
30 (unsigned long)kimage->segment[n].memsz / PAGE_SIZE); in kexec_show_segment_info()
Dkexec_file.c46 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_load()
61 kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); in elf_load()
/linux-6.6.21/kernel/
Dkexec_file.c393 ksegment->memsz); in SYSCALL_DEFINE5()
429 temp_start = temp_end - kbuf->memsz; in locate_mem_hole_top_down()
438 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_top_down()
470 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_bottom_up()
506 if (sz < kbuf->memsz) in locate_mem_hole_callback()
658 kbuf->memsz = ALIGN(kbuf->memsz, PAGE_SIZE); in kexec_add_buffer()
671 ksegment->memsz = kbuf->memsz; in kexec_add_buffer()
752 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests()
768 sha_regions[j].len = ksegment->memsz; in kexec_calculate_store_digests()
841 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf()
Dkexec_core.c171 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
190 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
195 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
208 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
218 if (PAGE_COUNT(image->segment[i].memsz) > nr_pages / 2) in sanity_check_segment_list()
221 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
242 mend = mstart + image->segment[i].memsz - 1; in sanity_check_segment_list()
296 mend = mstart + image->segment[i].memsz; in kimage_is_destination_range()
464 mend = mstart + image->segment[i].memsz - 1; in kimage_alloc_crash_control_pages()
788 mbytes = segment->memsz; in kimage_load_normal_segment()
[all …]
/linux-6.6.21/drivers/net/ethernet/tehuti/
Dtehuti.c156 u16 memsz = FIFO_SIZE * (1 << fsz_type); in bdx_fifo_init() local
160 f->va = dma_alloc_coherent(&priv->pdev->dev, memsz + FIFO_EXTRA_SPACE, in bdx_fifo_init()
172 f->memsz = memsz; in bdx_fifo_init()
173 f->size_mask = memsz - 1; in bdx_fifo_init()
190 f->memsz + FIFO_EXTRA_SPACE, f->va, f->da); in bdx_fifo_free()
1000 priv->rxdb = bdx_rxdb_create(priv->rxf_fifo0.m.memsz / in bdx_rx_init()
1110 delta = f->m.wptr - f->m.memsz; in bdx_rx_alloc_skbs()
1114 memcpy(f->m.va, f->m.va + f->m.memsz, delta); in bdx_rx_alloc_skbs()
1165 delta = f->m.wptr - f->m.memsz; in bdx_recycle_skb()
1169 memcpy(f->m.va, f->m.va + f->m.memsz, delta); in bdx_recycle_skb()
[all …]
/linux-6.6.21/arch/ia64/kernel/
Delfcore.c53 size_t memsz = PAGE_ALIGN(gate_phdrs[i].p_memsz); in elf_core_write_extra_data() local
55 if (!dump_emit(cprm, addr, memsz)) in elf_core_write_extra_data()
/linux-6.6.21/arch/loongarch/kernel/
Dmachine_kexec.c55 kimage->segment[i].mem + kimage->segment[i].memsz); in kexec_image_info()
57 (unsigned long)kimage->segment[i].memsz, in kexec_image_info()
58 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
/linux-6.6.21/arch/powerpc/kexec/
Dfile_load_64.c279 if (start < end && (end - start + 1) >= kbuf->memsz) { in __locate_mem_hole_top_down()
281 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1, in __locate_mem_hole_top_down()
378 if (start < end && (end - start + 1) >= kbuf->memsz) { in __locate_mem_hole_bottom_up()
745 kbuf->bufsz = kbuf->memsz = BACKUP_SRC_SIZE; in load_backup_segment()
817 kbuf->bufsz = kbuf->memsz = headers_sz; in load_elfcorehdr_segment()
862 image->elf_load_addr, kbuf->bufsz, kbuf->memsz); in load_crashdump_segments_ppc64()
1298 add_mem_range(emem, kbuf->mem, kbuf->memsz); in arch_kexec_locate_mem_hole()
1302 kbuf->memsz); in arch_kexec_locate_mem_hole()
Delf_64.c93 kbuf.bufsz = kbuf.memsz = initrd_len; in elf64_load()
122 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf64_load()
/linux-6.6.21/arch/sh/kernel/
Dmachine_kexec.c59 image->segment[i].memsz, in kexec_info()
60 (unsigned int)image->segment[i].memsz); in kexec_info()
/linux-6.6.21/include/linux/
Dkexec.h97 size_t memsz; member
105 compat_size_t memsz; member
182 unsigned long memsz; member

12