/Linux-v6.1/arch/s390/kernel/ |
D | machine_kexec_file.c | 135 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 …]
|
D | kexec_elf.c | 45 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()
|
D | kexec_image.c | 29 buf.memsz = buf.bufsz; in kexec_file_add_kernel_image() 34 data->memsz += buf.memsz; in kexec_file_add_kernel_image()
|
/Linux-v6.1/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 177 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 …]
|
D | pru_rproc.c | 594 u32 memsz = phdr->p_memsz; in pru_rproc_load_elf_segments() local 604 phdr->p_type, da, memsz, filesz); in pru_rproc_load_elf_segments() 606 if (filesz > memsz) { in pru_rproc_load_elf_segments() 608 filesz, memsz); in pru_rproc_load_elf_segments() 622 ptr = pru_da_to_va(rproc, da, memsz, is_iram); in pru_rproc_load_elf_segments() 624 dev_err(dev, "bad phdr da 0x%x mem 0x%x\n", da, memsz); in pru_rproc_load_elf_segments() 634 da, memsz); in pru_rproc_load_elf_segments()
|
/Linux-v6.1/arch/arm64/kernel/ |
D | kexec_image.c | 83 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()
|
D | machine_kexec.c | 50 kimage->segment[i].mem + kimage->segment[i].memsz, in _kexec_image_info() 51 kimage->segment[i].memsz, in _kexec_image_info() 52 kimage->segment[i].memsz / PAGE_SIZE); in _kexec_image_info() 91 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_segment_flush() 92 kimage->segment[i].memsz, in kexec_segment_flush() 93 kimage->segment[i].memsz / PAGE_SIZE); in kexec_segment_flush() 98 kimage->segment[i].memsz); in kexec_segment_flush() 278 kexec_crash_image->segment[i].memsz >> PAGE_SHIFT, 0); in arch_kexec_protect_crashkres() 288 kexec_crash_image->segment[i].memsz >> PAGE_SHIFT, 1); in arch_kexec_unprotect_crashkres() 347 kexec_crash_image->segment[i].memsz)) in crash_is_nosave()
|
D | machine_kexec_file.c | 116 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-v6.1/drivers/tty/serial/cpm_uart/ |
D | cpm_uart_cpm1.c | 63 int dpmemsz, memsz; in cpm_uart_allocbuf() local 80 memsz = L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize) + in cpm_uart_allocbuf() 85 mem_addr = (u8 *) cpm_dpram_addr(cpm_dpalloc(memsz, 8)); in cpm_uart_allocbuf() 88 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 101 pinfo->mem_size = memsz; in cpm_uart_allocbuf()
|
D | cpm_uart_cpm2.c | 97 int dpmemsz, memsz; in cpm_uart_allocbuf() local 115 memsz = L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize) + in cpm_uart_allocbuf() 118 mem_addr = kzalloc(memsz, GFP_NOWAIT); in cpm_uart_allocbuf() 122 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 135 pinfo->mem_size = memsz; in cpm_uart_allocbuf()
|
/Linux-v6.1/arch/mips/cobalt/ |
D | setup.c | 102 unsigned long memsz; in prom_init() local 106 memsz = fw_arg0 & 0x7fff0000; in prom_init() 116 memblock_add(0, memsz); in prom_init()
|
/Linux-v6.1/arch/riscv/kernel/ |
D | machine_kexec.c | 38 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()
|
D | elf_kexec.c | 49 kbuf.memsz = phdr->p_memsz; in riscv_kexec_elf_load() 91 kbuf.memsz = ALIGN(kernel_len, PAGE_SIZE); in elf_find_pbase() 224 kbuf.memsz = headers_sz; in elf_kexec_load() 238 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in elf_kexec_load() 270 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_kexec_load() 292 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf_kexec_load()
|
/Linux-v6.1/arch/mips/kernel/ |
D | machine_kexec.c | 47 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-v6.1/arch/parisc/kernel/ |
D | kexec.c | 26 kimage->segment[n].mem + kimage->segment[n].memsz, in kexec_show_segment_info() 27 (unsigned long)kimage->segment[n].memsz, in kexec_show_segment_info() 28 (unsigned long)kimage->segment[n].memsz / PAGE_SIZE); in kexec_show_segment_info()
|
D | kexec_file.c | 46 kbuf.bufsz = kbuf.memsz = initrd_len; in elf_load() 61 kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); in elf_load()
|
/Linux-v6.1/kernel/ |
D | kexec_core.c | 173 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list() 192 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list() 197 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list() 210 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list() 220 if (PAGE_COUNT(image->segment[i].memsz) > nr_pages / 2) in sanity_check_segment_list() 223 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list() 244 mend = mstart + image->segment[i].memsz - 1; in sanity_check_segment_list() 292 mend = mstart + image->segment[i].memsz; in kimage_is_destination_range() 460 mend = mstart + image->segment[i].memsz - 1; in kimage_alloc_crash_control_pages() 790 mbytes = segment->memsz; in kimage_load_normal_segment() [all …]
|
D | kexec_file.c | 390 ksegment->memsz); in SYSCALL_DEFINE5() 426 temp_start = temp_end - kbuf->memsz; in locate_mem_hole_top_down() 435 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_top_down() 467 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_bottom_up() 503 if (sz < kbuf->memsz) in locate_mem_hole_callback() 655 kbuf->memsz = ALIGN(kbuf->memsz, PAGE_SIZE); in kexec_add_buffer() 668 ksegment->memsz = kbuf->memsz; in kexec_add_buffer() 743 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests() 759 sha_regions[j].len = ksegment->memsz; in kexec_calculate_store_digests() 832 kbuf->memsz = kbuf->bufsz + bss_sz; in kexec_purgatory_setup_kbuf()
|
/Linux-v6.1/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 156 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-v6.1/arch/ia64/kernel/ |
D | elfcore.c | 53 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-v6.1/arch/loongarch/kernel/ |
D | machine_kexec.c | 55 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-v6.1/arch/powerpc/kexec/ |
D | file_load_64.c | 275 if (start < end && (end - start + 1) >= kbuf->memsz) { in __locate_mem_hole_top_down() 277 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1, in __locate_mem_hole_top_down() 374 if (start < end && (end - start + 1) >= kbuf->memsz) { in __locate_mem_hole_bottom_up() 740 kbuf->bufsz = kbuf->memsz = BACKUP_SRC_SIZE; in load_backup_segment() 812 kbuf->bufsz = kbuf->memsz = headers_sz; in load_elfcorehdr_segment() 857 image->elf_load_addr, kbuf->bufsz, kbuf->memsz); in load_crashdump_segments_ppc64() 1231 add_mem_range(emem, kbuf->mem, kbuf->memsz); in arch_kexec_locate_mem_hole() 1235 kbuf->memsz); in arch_kexec_locate_mem_hole()
|
D | elf_64.c | 93 kbuf.bufsz = kbuf.memsz = initrd_len; in elf64_load() 122 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf64_load()
|
/Linux-v6.1/arch/sh/kernel/ |
D | machine_kexec.c | 59 image->segment[i].memsz, in kexec_info() 60 (unsigned int)image->segment[i].memsz); in kexec_info()
|
/Linux-v6.1/include/linux/ |
D | kexec.h | 95 size_t memsz; member 103 compat_size_t memsz; member 180 unsigned long memsz; member
|