Searched refs:fm_eba (Results 1 - 2 of 2) sorted by relevance

/linux-master/drivers/mtd/ubi/
H A Deba.c1531 int **scan_eba, **fm_eba; local
1543 fm_eba = kmalloc_array(num_volumes, sizeof(*fm_eba), GFP_KERNEL);
1544 if (!fm_eba) {
1562 fm_eba[i] = kmalloc_array(vol->reserved_pebs,
1563 sizeof(**fm_eba),
1565 if (!fm_eba[i]) {
1571 scan_eba[i][j] = fm_eba[i][j] = UBI_LEB_UNMAPPED;
1585 fm_eba[i][aeb->lnum] = aeb->pnum;
1588 if (scan_eba[i][j] != fm_eba[
[all...]
H A Dfastmap.c560 struct ubi_fm_eba *fm_eba; local
722 fm_eba = (struct ubi_fm_eba *)(fm_raw + fm_pos);
723 fm_pos += sizeof(*fm_eba);
724 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs));
728 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) {
730 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC);
734 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) {
735 int pnum = be32_to_cpu(fm_eba->pnum[j]);

Completed in 131 milliseconds