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 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() 1025 kfree(fmsb); in ubi_scan_fastmap() 1026 fmsb = NULL; in ubi_scan_fastmap() 1089 kfree(fmsb); in ubi_scan_fastmap() 1106 struct ubi_fm_sb *fmsb; in ubi_write_fastmap() local 1157 fmsb->sqnum = 0; in ubi_write_fastmap() [all …]
|
/openbmc/linux/drivers/mtd/ubi/ |
H A D | fastmap.c | 555 struct ubi_fm_sb *fmsb; in ubi_attach_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() 1034 kfree(fmsb); in ubi_scan_fastmap() 1035 fmsb = NULL; in ubi_scan_fastmap() 1099 kfree(fmsb); in ubi_scan_fastmap() 1135 struct ubi_fm_sb *fmsb; in ubi_write_fastmap() local 1190 fmsb->sqnum = 0; in ubi_write_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()
|