Searched refs:new_aeb (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/mtd/ubi/
H A Dfastmap.c266 * @new_vh: the volume header derived from new_aeb
267 * @new_aeb: the AEB to be examined
273 struct ubi_ainf_peb *new_aeb) update_vol()
296 if (aeb->pnum == new_aeb->pnum) { update_vol()
297 ubi_assert(aeb->lnum == new_aeb->lnum); update_vol()
298 kmem_cache_free(ai->aeb_slab_cache, new_aeb); update_vol()
303 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); update_vol()
307 /* new_aeb is newer */ update_vol()
323 av->vol_id, aeb->lnum, new_aeb->pnum); update_vol()
325 aeb->ec = new_aeb->ec; update_vol()
326 aeb->pnum = new_aeb->pnum; update_vol()
328 aeb->scrub = new_aeb->scrub; update_vol()
329 kmem_cache_free(ai->aeb_slab_cache, new_aeb); update_vol()
331 /* new_aeb is older */ update_vol()
334 av->vol_id, aeb->lnum, new_aeb->pnum); update_vol()
335 list_add_tail(&new_aeb->u.list, &ai->erase); update_vol()
352 rb_link_node(&new_aeb->u.rb, parent, p); update_vol()
353 rb_insert_color(&new_aeb->u.rb, &av->root); update_vol()
362 * @new_vh: the volume header derived from new_aeb
363 * @new_aeb: the AEB to be examined
369 struct ubi_ainf_peb *new_aeb) process_pool_aeb()
377 kmem_cache_free(ai->aeb_slab_cache, new_aeb); process_pool_aeb()
401 kmem_cache_free(ai->aeb_slab_cache, new_aeb); process_pool_aeb()
407 return update_vol(ubi, ai, av, new_vh, new_aeb); process_pool_aeb()
458 struct ubi_ainf_peb *new_aeb; scan_pool() local
527 new_aeb = kmem_cache_alloc(ai->aeb_slab_cache, scan_pool()
529 if (!new_aeb) { scan_pool()
534 new_aeb->ec = be64_to_cpu(ech->ec); scan_pool()
535 new_aeb->pnum = pnum; scan_pool()
536 new_aeb->lnum = be32_to_cpu(vh->lnum); scan_pool()
537 new_aeb->sqnum = be64_to_cpu(vh->sqnum); scan_pool()
538 new_aeb->copy_flag = vh->copy_flag; scan_pool()
539 new_aeb->scrub = scrub; scan_pool()
541 if (*max_sqnum < new_aeb->sqnum) scan_pool()
542 *max_sqnum = new_aeb->sqnum; scan_pool()
544 err = process_pool_aeb(ubi, ai, vh, new_aeb); scan_pool()
271 update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, struct ubi_ainf_volume *av, struct ubi_vid_hdr *new_vh, struct ubi_ainf_peb *new_aeb) update_vol() argument
367 process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, struct ubi_vid_hdr *new_vh, struct ubi_ainf_peb *new_aeb) process_pool_aeb() argument
H A Dvtbl.c303 struct ubi_ainf_peb *new_aeb; create_vtbl() local
312 new_aeb = ubi_early_get_peb(ubi, ai); create_vtbl()
313 if (IS_ERR(new_aeb)) { create_vtbl()
314 err = PTR_ERR(new_aeb); create_vtbl()
327 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vid_hdr); create_vtbl()
332 err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size); create_vtbl()
340 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); create_vtbl()
341 kmem_cache_free(ai->aeb_slab_cache, new_aeb); create_vtbl()
351 list_add(&new_aeb->u.list, &ai->erase); create_vtbl()
354 kmem_cache_free(ai->aeb_slab_cache, new_aeb); create_vtbl()

Completed in 204 milliseconds