Lines Matching refs:new_pnum
809 int new_pnum, err, vol_id = vol->vol_id, data_size; in try_recover_peb() local
814 new_pnum = ubi_wl_get_peb(ubi); in try_recover_peb()
815 if (new_pnum < 0) { in try_recover_peb()
816 err = new_pnum; in try_recover_peb()
821 pnum, new_pnum); in try_recover_peb()
853 err = ubi_io_write_vid_hdr(ubi, new_pnum, vidb); in try_recover_peb()
857 err = ubi_io_write_data(ubi, ubi->peb_buf, new_pnum, 0, data_size); in try_recover_peb()
863 vol->eba_tbl->entries[lnum].pnum = new_pnum; in try_recover_peb()
871 } else if (new_pnum >= 0) { in try_recover_peb()
876 ubi_wl_put_peb(ubi, vol_id, lnum, new_pnum, 1); in try_recover_peb()
877 ubi_warn(ubi, "failed to write to PEB %d", new_pnum); in try_recover_peb()