Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/ubi/
A Deba.c1297 int **scan_eba, **fm_eba; in self_check_eba() local
1309 fm_eba = kmalloc(sizeof(*fm_eba) * num_volumes, GFP_KERNEL); in self_check_eba()
1310 if (!fm_eba) { in self_check_eba()
1327 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba()
1329 if (!fm_eba[i]) { in self_check_eba()
1349 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1352 if (scan_eba[i][j] != fm_eba[i][j]) { in self_check_eba()
1354 fm_eba[i][j] == UBI_LEB_UNMAPPED) in self_check_eba()
1358 vol->vol_id, i, fm_eba[i][j], in self_check_eba()
1371 kfree(fm_eba[i]); in self_check_eba()
[all …]
A Dfastmap.c621 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local
775 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap()
776 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap()
777 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
781 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
783 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
787 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
788 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
790 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
/u-boot/drivers/mtd/ubispl/
A Dubispl.c483 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local
606 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap()
607 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap()
608 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
612 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
615 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
619 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()
622 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
624 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()

Completed in 10 milliseconds