Searched refs:fm_eba (Results 1 – 2 of 2) sorted by relevance
1317 int **scan_eba, **fm_eba; in self_check_eba() local1329 fm_eba = kmalloc(sizeof(*fm_eba) * num_volumes, GFP_KERNEL); in self_check_eba()1330 if (!fm_eba) { in self_check_eba()1347 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba()1349 if (!fm_eba[i]) { in self_check_eba()1355 scan_eba[i][j] = fm_eba[i][j] = UBI_LEB_UNMAPPED; in self_check_eba()1369 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()1372 if (scan_eba[i][j] != fm_eba[i][j]) { in self_check_eba()1374 fm_eba[i][j] == UBI_LEB_UNMAPPED) in self_check_eba()1378 vol->vol_id, i, fm_eba[i][j], in self_check_eba()[all …]
607 struct ubi_fm_eba *fm_eba; in ubi_attach_fastmap() local756 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos); in ubi_attach_fastmap()757 fm_pos += sizeof(*fm_eba); in ubi_attach_fastmap()758 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()762 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()764 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()768 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()769 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()771 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()