Searched refs:fm_eba (Results 1 – 5 of 5) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/mtd/ubi/ |
| H A D | eba.c | 1295 int **scan_eba, **fm_eba; in self_check_eba() local 1307 fm_eba = kmalloc(sizeof(*fm_eba) * num_volumes, GFP_KERNEL); in self_check_eba() 1308 if (!fm_eba) { in self_check_eba() 1325 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba() 1327 if (!fm_eba[i]) { in self_check_eba() 1333 scan_eba[i][j] = fm_eba[i][j] = UBI_LEB_UNMAPPED; in self_check_eba() 1347 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba() 1350 if (scan_eba[i][j] != fm_eba[i][j]) { in self_check_eba() 1352 fm_eba[i][j] == UBI_LEB_UNMAPPED) in self_check_eba() 1356 vol->vol_id, i, fm_eba[i][j], in self_check_eba() [all …]
|
| H A D | fastmap.c | 617 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local 771 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap() 772 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap() 773 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap() 777 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap() 779 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap() 783 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap() 784 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap() 786 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ubi/ |
| H A D | eba.c | 1518 int **scan_eba, **fm_eba; in self_check_eba() local 1530 fm_eba = kmalloc_array(num_volumes, sizeof(*fm_eba), GFP_KERNEL); in self_check_eba() 1531 if (!fm_eba) { in self_check_eba() 1549 fm_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba() 1550 sizeof(**fm_eba), in self_check_eba() 1552 if (!fm_eba[i]) { in self_check_eba() 1558 scan_eba[i][j] = fm_eba[i][j] = UBI_LEB_UNMAPPED; in self_check_eba() 1572 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba() 1575 if (scan_eba[i][j] != fm_eba[i][j]) { in self_check_eba() 1577 fm_eba[i][j] == UBI_LEB_UNMAPPED) in self_check_eba() [all …]
|
| H A D | fastmap.c | 560 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()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ubispl/ |
| H A D | ubispl.c | 290 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local 413 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap() 414 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap() 415 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap() 419 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap() 422 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap() 426 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap() 429 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap() 431 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
|