Searched refs:fmsb (Results 1 – 3 of 3) sorted by relevance
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | fastmap.c | 611 struct ubi_fm_sb *fmsb; in ubi_attach_fastmap() local 626 fmsb = (struct ubi_fm_sb *)(fm_raw); in ubi_attach_fastmap() 627 ai->max_sqnum = fmsb->sqnum; in ubi_attach_fastmap() 880 struct ubi_fm_sb *fmsb, *fmsb2; in ubi_scan_fastmap() local 892 fmsb = kmalloc(sizeof(*fmsb), GFP_KERNEL); in ubi_scan_fastmap() 893 if (!fmsb) { in ubi_scan_fastmap() 901 kfree(fmsb); in ubi_scan_fastmap() 905 ret = ubi_io_read(ubi, fmsb, fm_anchor, ubi->leb_start, sizeof(*fmsb)); in ubi_scan_fastmap() 911 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap() 913 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap() [all …]
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | fastmap.c | 555 struct ubi_fm_sb *fmsb; in ubi_attach_fastmap() local 570 fmsb = (struct ubi_fm_sb *)(fm_raw); in ubi_attach_fastmap() 571 ai->max_sqnum = fmsb->sqnum; in ubi_attach_fastmap() 863 struct ubi_fm_sb *fmsb, *fmsb2; in ubi_scan_fastmap() local 892 fmsb = kmalloc(sizeof(*fmsb), GFP_KERNEL); in ubi_scan_fastmap() 893 if (!fmsb) { in ubi_scan_fastmap() 901 kfree(fmsb); in ubi_scan_fastmap() 905 ret = ubi_io_read_data(ubi, fmsb, fm_anchor, 0, sizeof(*fmsb)); in ubi_scan_fastmap() 911 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap() 913 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap() [all …]
|
/openbmc/u-boot/drivers/mtd/ubispl/ |
H A D | ubispl.c | 495 struct ubi_fm_sb *fmsb, *fmsb2; in ubi_scan_fastmap() local 503 fmsb = &ubi->fm_sb; in ubi_scan_fastmap() 506 ret = ubi_io_read(ubi, fmsb, fm_anchor, ubi->leb_start, sizeof(*fmsb)); in ubi_scan_fastmap() 512 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap() 514 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap() 519 if (fmsb->version != UBI_FM_FMT_VERSION) { in ubi_scan_fastmap() 521 fmsb->version, UBI_FM_FMT_VERSION); in ubi_scan_fastmap() 526 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap() 544 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
|