Lines Matching refs:le64_to_cpu
556 shdr = (void *)(elf + le64_to_cpu(ehdr->e_shoff)); in elf2flat64()
559 for (i = 0; i < le64_to_cpu(ehdr->e_shnum); i++, shdr++) { in elf2flat64()
565 if (le64_to_cpu(shdr->sh_addr) < min_addr) in elf2flat64()
566 min_addr = le64_to_cpu(shdr->sh_addr); in elf2flat64()
567 if ((le64_to_cpu(shdr->sh_addr) + le64_to_cpu(shdr->sh_size)) > in elf2flat64()
569 max_addr = le64_to_cpu(shdr->sh_addr) + in elf2flat64()
570 le64_to_cpu(shdr->sh_size); in elf2flat64()
579 shdr = (void *)(elf + le64_to_cpu(ehdr->e_shoff)); in elf2flat64()
580 for (i = 0; i < le64_to_cpu(ehdr->e_shnum); i++, shdr++) { in elf2flat64()
581 char *dst = flat + le64_to_cpu(shdr->sh_addr) - min_addr; in elf2flat64()
582 char *src = elf + le64_to_cpu(shdr->sh_offset); in elf2flat64()
589 memcpy(dst, src, le64_to_cpu(shdr->sh_size)); in elf2flat64()
668 bf->entry = le64_to_cpu(ehdr64->e_entry); in bif_add_elf()