Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/ubi/
A Dfastmap.c616 struct ubi_fm_sb *fmsb; in ubi_attach_fastmap() local
897 fmsb = kmalloc(sizeof(*fmsb), GFP_KERNEL); in ubi_scan_fastmap()
898 if (!fmsb) { in ubi_scan_fastmap()
906 kfree(fmsb); in ubi_scan_fastmap()
910 ret = ubi_io_read(ubi, fmsb, fm_anchor, ubi->leb_start, sizeof(*fmsb)); in ubi_scan_fastmap()
1030 kfree(fmsb); in ubi_scan_fastmap()
1031 fmsb = NULL; in ubi_scan_fastmap()
1094 kfree(fmsb); in ubi_scan_fastmap()
1111 struct ubi_fm_sb *fmsb; in ubi_write_fastmap() local
1162 fmsb->sqnum = 0; in ubi_write_fastmap()
[all …]
/u-boot/drivers/mtd/ubispl/
A Dubispl.c689 struct ubi_fm_sb *fmsb, *fmsb2; in ubi_scan_fastmap() local
697 fmsb = &ubi->fm_sb; in ubi_scan_fastmap()
700 ret = ubi_io_read(ubi, fmsb, fm_anchor, ubi->leb_start, sizeof(*fmsb)); in ubi_scan_fastmap()
706 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
708 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
713 if (fmsb->version != UBI_FM_FMT_VERSION) { in ubi_scan_fastmap()
715 fmsb->version, UBI_FM_FMT_VERSION); in ubi_scan_fastmap()
720 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
738 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()

Completed in 6 milliseconds