Lines Matching refs:e

1030 		struct ubi_wl_entry *e;  in ubi_scan_fastmap()  local
1032 e = kmem_cache_alloc(ubi_wl_entry_slab, GFP_KERNEL); in ubi_scan_fastmap()
1033 if (!e) { in ubi_scan_fastmap()
1035 kfree(fm->e[i]); in ubi_scan_fastmap()
1041 e->pnum = be32_to_cpu(fmsb2->block_loc[i]); in ubi_scan_fastmap()
1042 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()
1043 fm->e[i] = e; in ubi_scan_fastmap()
1221 wl_e = ubi_wrk->e; in ubi_write_fastmap()
1278 dbg_bld("writing fastmap SB to PEB %i", new_fm->e[0]->pnum); in ubi_write_fastmap()
1279 ret = ubi_io_write_vid_hdr(ubi, new_fm->e[0]->pnum, avhdr); in ubi_write_fastmap()
1286 fmsb->block_loc[i] = cpu_to_be32(new_fm->e[i]->pnum); in ubi_write_fastmap()
1287 set_seen(ubi, new_fm->e[i]->pnum, seen_pebs); in ubi_write_fastmap()
1288 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1299 new_fm->e[i]->pnum, be64_to_cpu(dvhdr->sqnum)); in ubi_write_fastmap()
1300 ret = ubi_io_write_vid_hdr(ubi, new_fm->e[i]->pnum, dvhdr); in ubi_write_fastmap()
1303 new_fm->e[i]->pnum); in ubi_write_fastmap()
1310 new_fm->e[i]->pnum, ubi->leb_start, ubi->leb_size); in ubi_write_fastmap()
1313 new_fm->e[i]->pnum); in ubi_write_fastmap()
1395 struct ubi_wl_entry *e; in invalidate_fastmap() local
1413 e = ubi_wl_get_fm_peb(ubi, 1); in invalidate_fastmap()
1414 if (!e) in invalidate_fastmap()
1422 ret = ubi_io_write_vid_hdr(ubi, e->pnum, vh); in invalidate_fastmap()
1424 ubi_wl_put_fm_peb(ubi, e, 0, 0); in invalidate_fastmap()
1429 fm->e[0] = e; in invalidate_fastmap()
1457 if (fm->e[i]) { in return_fm_pebs()
1458 ubi_wl_put_fm_peb(ubi, fm->e[i], i, in return_fm_pebs()
1460 fm->e[i] = NULL; in return_fm_pebs()
1515 if (old_fm && old_fm->e[i]) { in ubi_update_fastmap()
1516 ret = erase_block(ubi, old_fm->e[i]->pnum); in ubi_update_fastmap()
1521 ubi_wl_put_fm_peb(ubi, new_fm->e[j], in ubi_update_fastmap()
1523 new_fm->e[j] = NULL; in ubi_update_fastmap()
1527 new_fm->e[i] = old_fm->e[i]; in ubi_update_fastmap()
1528 old_fm->e[i] = NULL; in ubi_update_fastmap()
1533 ubi_wl_put_fm_peb(ubi, new_fm->e[j], j, 0); in ubi_update_fastmap()
1534 new_fm->e[j] = NULL; in ubi_update_fastmap()
1541 new_fm->e[i] = tmp_e; in ubi_update_fastmap()
1543 if (old_fm && old_fm->e[i]) { in ubi_update_fastmap()
1544 ubi_wl_put_fm_peb(ubi, old_fm->e[i], i, in ubi_update_fastmap()
1546 old_fm->e[i] = NULL; in ubi_update_fastmap()
1554 ubi_wl_put_fm_peb(ubi, old_fm->e[i], i, in ubi_update_fastmap()
1556 old_fm->e[i] = NULL; in ubi_update_fastmap()
1567 ret = erase_block(ubi, old_fm->e[0]->pnum); in ubi_update_fastmap()
1572 ubi_wl_put_fm_peb(ubi, new_fm->e[i], in ubi_update_fastmap()
1574 new_fm->e[i] = NULL; in ubi_update_fastmap()
1578 new_fm->e[0] = old_fm->e[0]; in ubi_update_fastmap()
1579 new_fm->e[0]->ec = ret; in ubi_update_fastmap()
1580 old_fm->e[0] = NULL; in ubi_update_fastmap()
1583 ubi_wl_put_fm_peb(ubi, old_fm->e[0], 0, in ubi_update_fastmap()
1585 new_fm->e[0] = tmp_e; in ubi_update_fastmap()
1586 old_fm->e[0] = NULL; in ubi_update_fastmap()
1593 ubi_wl_put_fm_peb(ubi, new_fm->e[i], i, 0); in ubi_update_fastmap()
1594 new_fm->e[i] = NULL; in ubi_update_fastmap()
1600 new_fm->e[0] = tmp_e; in ubi_update_fastmap()