Lines Matching refs:pagesize
410 tparams->header_size = 2 * le16_to_cpu(hdr_nand->pagesize); in mtk_image_vrec_header()
486 bh = (struct brom_layout_header *)(ptr + le16_to_cpu(nh->pagesize)); in mtk_image_verify_nand_header()
509 (uint64_t)le16_to_cpu(nh->pagesize) * 8; in mtk_image_verify_nand_header()
514 if (le16_to_cpu(nh->pagesize) >= 1024) in mtk_image_verify_nand_header()
516 le16_to_cpu(nh->pagesize) >> 10); in mtk_image_verify_nand_header()
519 le16_to_cpu(nh->pagesize)); in mtk_image_verify_nand_header()
524 gfh = (struct gfh_header *)(ptr + 2 * le16_to_cpu(nh->pagesize)); in mtk_image_verify_nand_header()
714 payload_pages = (filesize + le16_to_cpu(hdr_nand->pagesize) - 1) / in mtk_image_set_nand_header()
715 le16_to_cpu(hdr_nand->pagesize); in mtk_image_set_nand_header()
717 (ptr + le16_to_cpu(hdr_nand->pagesize)); in mtk_image_set_nand_header()
726 gfh = (struct gfh_header *)(ptr + 2 * le16_to_cpu(hdr_nand->pagesize)); in mtk_image_set_nand_header()
727 put_ghf_header(gfh, filesize, 2 * le16_to_cpu(hdr_nand->pagesize), in mtk_image_set_nand_header()
732 filesize - 2 * le16_to_cpu(hdr_nand->pagesize) - SHA256_SUM_LEN); in mtk_image_set_nand_header()