Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/ubi/
H A Dfastmap.c274 struct ubi_ainf_peb *new_aeb) in update_vol() argument
297 if (aeb->pnum == new_aeb->pnum) { in update_vol()
298 ubi_assert(aeb->lnum == new_aeb->lnum); in update_vol()
299 kmem_cache_free(ai->aeb_slab_cache, new_aeb); in update_vol()
304 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
324 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
326 aeb->ec = new_aeb->ec; in update_vol()
327 aeb->pnum = new_aeb->pnum; in update_vol()
329 aeb->scrub = new_aeb->scrub; in update_vol()
330 kmem_cache_free(ai->aeb_slab_cache, new_aeb); in update_vol()
[all …]
H A Dvtbl.c300 struct ubi_ainf_peb *new_aeb; local
309 new_aeb = ubi_early_get_peb(ubi, ai);
310 if (IS_ERR(new_aeb)) {
311 err = PTR_ERR(new_aeb);
324 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vid_hdr);
329 err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size);
337 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0);
338 kmem_cache_free(ai->aeb_slab_cache, new_aeb);
348 list_add(&new_aeb->u.list, &ai->erase);
351 kmem_cache_free(ai->aeb_slab_cache, new_aeb);
/openbmc/linux/drivers/mtd/ubi/
H A Dfastmap.c244 struct ubi_ainf_peb *new_aeb) in update_vol() argument
267 if (aeb->pnum == new_aeb->pnum) { in update_vol()
268 ubi_assert(aeb->lnum == new_aeb->lnum); in update_vol()
269 ubi_free_aeb(ai, new_aeb); in update_vol()
274 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
291 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
293 aeb->ec = new_aeb->ec; in update_vol()
294 aeb->pnum = new_aeb->pnum; in update_vol()
296 aeb->scrub = new_aeb->scrub; in update_vol()
297 aeb->sqnum = new_aeb->sqnum; in update_vol()
[all …]
H A Dvtbl.c291 struct ubi_ainf_peb *new_aeb; in create_vtbl() local
302 new_aeb = ubi_early_get_peb(ubi, ai); in create_vtbl()
303 if (IS_ERR(new_aeb)) { in create_vtbl()
304 err = PTR_ERR(new_aeb); in create_vtbl()
317 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vidb); in create_vtbl()
322 err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size); in create_vtbl()
330 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); in create_vtbl()
331 ubi_free_aeb(ai, new_aeb); in create_vtbl()
341 list_add(&new_aeb->u.list, &ai->erase); in create_vtbl()
344 ubi_free_aeb(ai, new_aeb); in create_vtbl()