Lines Matching refs:e
1037 struct ubi_wl_entry *e; in ubi_scan_fastmap() local
1039 e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL); in ubi_scan_fastmap()
1040 if (!e) { in ubi_scan_fastmap()
1042 kfree(fm->e[i]); in ubi_scan_fastmap()
1048 e->pnum = be32_to_cpu(fmsb2->block_loc[i]); in ubi_scan_fastmap()
1049 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()
1050 fm->e[i] = e; in ubi_scan_fastmap()
1228 wl_e = ubi_wrk->e; in ubi_write_fastmap()
1285 dbg_bld("writing fastmap SB to PEB %i", new_fm->e[0]->pnum); in ubi_write_fastmap()
1286 ret = ubi_io_write_vid_hdr(ubi, new_fm->e[0]->pnum, avhdr); in ubi_write_fastmap()
1293 fmsb->block_loc[i] = cpu_to_be32(new_fm->e[i]->pnum); in ubi_write_fastmap()
1294 set_seen(ubi, new_fm->e[i]->pnum, seen_pebs); in ubi_write_fastmap()
1295 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1306 new_fm->e[i]->pnum, be64_to_cpu(dvhdr->sqnum)); in ubi_write_fastmap()
1307 ret = ubi_io_write_vid_hdr(ubi, new_fm->e[i]->pnum, dvhdr); in ubi_write_fastmap()
1310 new_fm->e[i]->pnum); in ubi_write_fastmap()
1317 new_fm->e[i]->pnum, ubi->leb_start, ubi->leb_size); in ubi_write_fastmap()
1320 new_fm->e[i]->pnum); in ubi_write_fastmap()
1402 struct ubi_wl_entry *e; in invalidate_fastmap() local
1420 e = ubi_wl_get_fm_peb(ubi, 1); in invalidate_fastmap()
1421 if (!e) in invalidate_fastmap()
1429 ret = ubi_io_write_vid_hdr(ubi, e->pnum, vh); in invalidate_fastmap()
1431 ubi_wl_put_fm_peb(ubi, e, 0, 0); in invalidate_fastmap()
1436 fm->e[0] = e; in invalidate_fastmap()
1464 if (fm->e[i]) { in return_fm_pebs()
1465 ubi_wl_put_fm_peb(ubi, fm->e[i], i, in return_fm_pebs()
1467 fm->e[i] = NULL; in return_fm_pebs()
1522 if (old_fm && old_fm->e[i]) { in ubi_update_fastmap()
1523 ret = erase_block(ubi, old_fm->e[i]->pnum); in ubi_update_fastmap()
1528 ubi_wl_put_fm_peb(ubi, new_fm->e[j], in ubi_update_fastmap()
1530 new_fm->e[j] = NULL; in ubi_update_fastmap()
1534 new_fm->e[i] = old_fm->e[i]; in ubi_update_fastmap()
1535 old_fm->e[i] = NULL; in ubi_update_fastmap()
1540 ubi_wl_put_fm_peb(ubi, new_fm->e[j], j, 0); in ubi_update_fastmap()
1541 new_fm->e[j] = NULL; in ubi_update_fastmap()
1548 new_fm->e[i] = tmp_e; in ubi_update_fastmap()
1550 if (old_fm && old_fm->e[i]) { in ubi_update_fastmap()
1551 ubi_wl_put_fm_peb(ubi, old_fm->e[i], i, in ubi_update_fastmap()
1553 old_fm->e[i] = NULL; in ubi_update_fastmap()
1561 ubi_wl_put_fm_peb(ubi, old_fm->e[i], i, in ubi_update_fastmap()
1563 old_fm->e[i] = NULL; in ubi_update_fastmap()
1574 ret = erase_block(ubi, old_fm->e[0]->pnum); in ubi_update_fastmap()
1579 ubi_wl_put_fm_peb(ubi, new_fm->e[i], in ubi_update_fastmap()
1581 new_fm->e[i] = NULL; in ubi_update_fastmap()
1585 new_fm->e[0] = old_fm->e[0]; in ubi_update_fastmap()
1586 new_fm->e[0]->ec = ret; in ubi_update_fastmap()
1587 old_fm->e[0] = NULL; in ubi_update_fastmap()
1590 ubi_wl_put_fm_peb(ubi, old_fm->e[0], 0, in ubi_update_fastmap()
1592 new_fm->e[0] = tmp_e; in ubi_update_fastmap()
1593 old_fm->e[0] = NULL; in ubi_update_fastmap()
1600 ubi_wl_put_fm_peb(ubi, new_fm->e[i], i, 0); in ubi_update_fastmap()
1601 new_fm->e[i] = NULL; in ubi_update_fastmap()
1607 new_fm->e[0] = tmp_e; in ubi_update_fastmap()