Lines Matching refs:leb
375 struct ubi_vtbl_record *leb[UBI_LAYOUT_VOLUME_EBS] = { NULL, NULL }; local
407 leb[aeb->lnum] = vzalloc(ubi->vtbl_size);
408 if (!leb[aeb->lnum]) {
413 err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0,
432 if (leb[0]) {
433 leb_corrupted[0] = vtbl_check(ubi, leb[0]);
440 if (leb[1])
441 leb_corrupted[1] = memcmp(leb[0], leb[1],
445 err = create_vtbl(ubi, ai, 1, leb[0]);
452 vfree(leb[1]);
453 return leb[0];
456 if (leb[1]) {
457 leb_corrupted[1] = vtbl_check(ubi, leb[1]);
468 err = create_vtbl(ubi, ai, 0, leb[1]);
473 vfree(leb[0]);
474 return leb[1];
478 vfree(leb[0]);
479 vfree(leb[1]);