Home
last modified time | relevance | path

Searched refs:fm_eba (Results 1 – 5 of 5) sorted by relevance

/openbmc/u-boot/drivers/mtd/ubi/
H A Deba.c1294 int **scan_eba, **fm_eba; in self_check_eba() local
1306 fm_eba = kmalloc(sizeof(*fm_eba) * num_volumes, GFP_KERNEL); in self_check_eba()
1307 if (!fm_eba) { in self_check_eba()
1324 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba()
1326 if (!fm_eba[i]) { in self_check_eba()
1346 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1349 if (scan_eba[i][j] != fm_eba[i][j]) { in self_check_eba()
1351 fm_eba[i][j] == UBI_LEB_UNMAPPED) in self_check_eba()
1355 vol->vol_id, i, fm_eba[i][j], in self_check_eba()
1368 kfree(fm_eba[i]); in self_check_eba()
[all …]
H A Dfastmap.c616 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local
770 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap()
771 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap()
772 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
776 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
778 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
782 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
783 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
785 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
/openbmc/linux/drivers/mtd/ubi/
H A Deba.c1527 int **scan_eba, **fm_eba; in self_check_eba() local
1539 fm_eba = kmalloc_array(num_volumes, sizeof(*fm_eba), GFP_KERNEL); in self_check_eba()
1540 if (!fm_eba) { in self_check_eba()
1559 sizeof(**fm_eba), in self_check_eba()
1561 if (!fm_eba[i]) { in self_check_eba()
1581 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1584 if (scan_eba[i][j] != fm_eba[i][j]) { in self_check_eba()
1586 fm_eba[i][j] == UBI_LEB_UNMAPPED) in self_check_eba()
1590 vol->vol_id, j, fm_eba[i][j], in self_check_eba()
1603 kfree(fm_eba[i]); in self_check_eba()
[all …]
H A Dfastmap.c560 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local
722 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap()
723 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap()
724 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
728 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
730 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
734 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
735 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
/openbmc/u-boot/drivers/mtd/ubispl/
H A Dubispl.c289 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local
412 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap()
413 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap()
414 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
418 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
421 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
425 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()
428 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
430 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()