Lines Matching refs:le32_to_cpu
441 if (le32_to_cpu(gbh->version) != 1 || in mtk_image_verify_gen_header()
442 le32_to_cpu(gbh->size) != sizeof(union gen_boot_header)) in mtk_image_verify_gen_header()
445 bh = (struct brom_layout_header *)(ptr + le32_to_cpu(gbh->size)); in mtk_image_verify_gen_header()
450 if (le32_to_cpu(bh->magic) != BRLYT_MAGIC || in mtk_image_verify_gen_header()
451 (le32_to_cpu(bh->type) != BRLYT_TYPE_NOR && in mtk_image_verify_gen_header()
452 le32_to_cpu(bh->type) != BRLYT_TYPE_EMMC && in mtk_image_verify_gen_header()
453 le32_to_cpu(bh->type) != BRLYT_TYPE_SDMMC)) in mtk_image_verify_gen_header()
456 gfh = (struct gfh_header *)(ptr + le32_to_cpu(bh->header_size)); in mtk_image_verify_gen_header()
461 if (le32_to_cpu(gfh->file_info.flash_type) != GFH_FLASH_TYPE_GEN) in mtk_image_verify_gen_header()
466 le32_to_cpu(gfh->file_info.load_addr) + in mtk_image_verify_gen_header()
467 le32_to_cpu(gfh->file_info.jump_offset)); in mtk_image_verify_gen_header()
491 if (le32_to_cpu(bh->magic) != BRLYT_MAGIC) { in mtk_image_verify_nand_header()
494 if (le32_to_cpu(bh->type) == BRLYT_TYPE_NAND) in mtk_image_verify_nand_header()
496 else if (le32_to_cpu(bh->type) == BRLYT_TYPE_SNAND) in mtk_image_verify_nand_header()
505 if (le32_to_cpu(bh->type) == BRLYT_TYPE_NAND) { in mtk_image_verify_nand_header()
529 if (le32_to_cpu(gfh->file_info.flash_type) != GFH_FLASH_TYPE_NAND) in mtk_image_verify_nand_header()
534 le32_to_cpu(gfh->file_info.load_addr) + in mtk_image_verify_nand_header()
535 le32_to_cpu(gfh->file_info.jump_offset)); in mtk_image_verify_nand_header()
549 if (le32_to_cpu(lk->magic) == LK_PART_MAGIC) in mtk_image_verify_header()
564 if (le32_to_cpu(lk->magic) == LK_PART_MAGIC) { in mtk_image_print_header()
566 printf("Load Address: %08x\n", le32_to_cpu(lk->loadaddr)); in mtk_image_print_header()