Home
last modified time | relevance | path

Searched refs:filesz (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/drivers/remoteproc/
Dremoteproc_elf_loader.c178 u64 filesz = elf_phdr_get_p_filesz(class, phdr); local
188 type, da, memsz, filesz);
190 if (filesz > memsz) {
192 filesz, memsz);
197 if (offset + filesz > fw->size) {
199 offset + filesz, fw->size);
221 if (filesz) {
223 memcpy_toio((void __iomem *)ptr, elf_data + offset, filesz);
225 memcpy(ptr, elf_data + offset, filesz);
235 if (memsz > filesz) {
[all …]
Dimx_dsp_rproc.c862 u64 filesz = elf_phdr_get_p_filesz(class, phdr); in imx_dsp_rproc_elf_load_segments() local
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()
880 if (offset + filesz > fw->size) { in imx_dsp_rproc_elf_load_segments()
882 offset + filesz, fw->size); in imx_dsp_rproc_elf_load_segments()
904 if (filesz) { in imx_dsp_rproc_elf_load_segments()
905 ret = imx_dsp_rproc_memcpy(ptr, elf_data + offset, filesz); in imx_dsp_rproc_elf_load_segments()
914 if (memsz > filesz) { in imx_dsp_rproc_elf_load_segments()
915 ret = imx_dsp_rproc_memset(ptr + filesz, 0, memsz - filesz); in imx_dsp_rproc_elf_load_segments()
Dpru_rproc.c817 u32 filesz = phdr->p_filesz; in pru_rproc_load_elf_segments() local
822 if (phdr->p_type != PT_LOAD || !filesz) in pru_rproc_load_elf_segments()
826 phdr->p_type, da, memsz, filesz); in pru_rproc_load_elf_segments()
828 if (filesz > memsz) { in pru_rproc_load_elf_segments()
830 filesz, memsz); in pru_rproc_load_elf_segments()
835 if (offset + filesz > fw->size) { in pru_rproc_load_elf_segments()
837 offset + filesz, fw->size); in pru_rproc_load_elf_segments()
853 filesz); in pru_rproc_load_elf_segments()
860 memcpy(ptr, elf_data + phdr->p_offset, filesz); in pru_rproc_load_elf_segments()
Dmtk_scp.c248 u32 filesz = phdr->p_filesz; in scp_elf_load_segments() local
253 phdr->p_type, da, memsz, filesz); in scp_elf_load_segments()
257 if (!filesz) in scp_elf_load_segments()
260 if (filesz > memsz) { in scp_elf_load_segments()
262 filesz, memsz); in scp_elf_load_segments()
267 if (offset + filesz > fw->size) { in scp_elf_load_segments()
269 offset + filesz, fw->size); in scp_elf_load_segments()
283 scp_memcpy_aligned(ptr, elf_data + phdr->p_offset, filesz); in scp_elf_load_segments()
/linux-6.6.21/arch/x86/um/
Delfcore.c54 size_t filesz = phdrp[i].p_filesz; in elf_core_write_extra_data() local
55 if (!dump_emit(cprm, addr, filesz)) in elf_core_write_extra_data()