Home
last modified time | relevance | path

Searched refs:fmhdr (Results 1 – 2 of 2) sorted by relevance

/u-boot/drivers/mtd/ubispl/
A Dubispl.c479 struct ubi_fm_hdr *fmhdr; in ubi_attach_fastmap() local
494 fmhdr = (struct ubi_fm_hdr *)(fm_raw + fm_pos); in ubi_attach_fastmap()
495 fm_pos += sizeof(*fmhdr); in ubi_attach_fastmap()
499 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
501 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
553 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
561 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
571 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
579 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
587 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
/u-boot/drivers/mtd/ubi/
A Dfastmap.c617 struct ubi_fm_hdr *fmhdr; in ubi_attach_fastmap() local
637 fmhdr = (struct ubi_fm_hdr *)(fm_raw + fm_pos); in ubi_attach_fastmap()
638 fm_pos += sizeof(*fmhdr); in ubi_attach_fastmap()
642 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
644 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
698 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
709 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
720 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
731 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
742 ai->bad_peb_count = be32_to_cpu(fmhdr->bad_peb_count); in ubi_attach_fastmap()
[all …]

Completed in 6 milliseconds