Home
last modified time | relevance | path

Searched refs:new_pnum (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/drivers/mtd/ubi/
Deba.c552 int err, idx = vol_id2idx(ubi, vol_id), new_pnum, data_size, tries = 0; in recover_peb() local
561 new_pnum = ubi_wl_get_peb(ubi); in recover_peb()
562 if (new_pnum < 0) { in recover_peb()
565 return new_pnum; in recover_peb()
569 pnum, new_pnum); in recover_peb()
580 err = ubi_io_write_vid_hdr(ubi, new_pnum, vid_hdr); in recover_peb()
601 err = ubi_io_write_data(ubi, ubi->peb_buf, new_pnum, 0, data_size); in recover_peb()
611 vol->eba_tbl[lnum] = new_pnum; in recover_peb()
621 ubi_wl_put_peb(ubi, vol_id, lnum, new_pnum, 1); in recover_peb()
630 ubi_warn(ubi, "failed to write to PEB %d", new_pnum); in recover_peb()
[all …]