Home
last modified time | relevance | path

Searched refs:aeb (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/ubi/
H A Dattach.c168 * ubi_alloc_aeb - allocate an aeb element
173 * Allocate an aeb object and initialize the pnum and ec information.
181 struct ubi_ainf_peb *aeb; in ubi_alloc_aeb() local
183 aeb = kmem_cache_zalloc(ai->aeb_slab_cache, GFP_KERNEL); in ubi_alloc_aeb()
184 if (!aeb) in ubi_alloc_aeb()
187 aeb->pnum = pnum; in ubi_alloc_aeb()
188 aeb->ec = ec; in ubi_alloc_aeb()
189 aeb->vol_id = UBI_UNKNOWN; in ubi_alloc_aeb()
190 aeb->lnum = UBI_UNKNOWN; in ubi_alloc_aeb()
192 return aeb; in ubi_alloc_aeb()
203 ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb) ubi_free_aeb() argument
232 struct ubi_ainf_peb *aeb; add_to_list() local
270 struct ubi_ainf_peb *aeb; add_corrupted() local
299 struct ubi_ainf_peb *aeb; add_fastmap() local
438 ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, int pnum, const struct ubi_vid_hdr *vid_hdr) ubi_compare_lebs() argument
569 struct ubi_ainf_peb *aeb; ubi_add_to_av() local
822 struct ubi_ainf_peb *aeb, *tmp_aeb; ubi_early_get_peb() local
1209 struct ubi_ainf_peb *aeb; late_analysis() local
1280 struct ubi_ainf_peb *aeb; destroy_av() local
1313 struct ubi_ainf_peb *aeb, *aeb_tmp; destroy_ai() local
1380 struct ubi_ainf_peb *aeb; scan_all() local
1665 struct ubi_ainf_peb *aeb, *last_aeb; self_check_ai() local
[all...]
H A Dfastmap.c139 struct ubi_ainf_peb *aeb; in add_aeb() local
141 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_aeb()
142 if (!aeb) in add_aeb()
145 aeb->lnum = -1; in add_aeb()
146 aeb->scrub = scrub; in add_aeb()
147 aeb->copy_flag = aeb->sqnum = 0; in add_aeb()
149 ai->ec_sum += aeb->ec; in add_aeb()
152 if (ai->max_ec < aeb->ec) in add_aeb()
153 ai->max_ec = aeb in add_aeb()
203 assign_aeb_to_av(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb, struct ubi_ainf_volume *av) assign_aeb_to_av() argument
247 struct ubi_ainf_peb *aeb, *victim; update_vol() local
374 struct ubi_ainf_peb *aeb; unmap_peb() local
521 struct ubi_ainf_peb *aeb; count_fastmap_pebs() local
554 struct ubi_ainf_peb *aeb, *tmp_aeb, *_tmp_aeb; ubi_attach_fastmap() local
818 struct ubi_ainf_peb *aeb; find_fm_anchor() local
850 struct ubi_ainf_peb *aeb; ubi_scan_fastmap() local
[all...]
H A Ddebug.c174 * @aeb: the object to dump
177 void ubi_dump_aeb(const struct ubi_ainf_peb *aeb, int type) in ubi_dump_aeb() argument
180 pr_err("\tec %d\n", aeb->ec); in ubi_dump_aeb()
181 pr_err("\tpnum %d\n", aeb->pnum); in ubi_dump_aeb()
183 pr_err("\tlnum %d\n", aeb->lnum); in ubi_dump_aeb()
184 pr_err("\tscrub %d\n", aeb->scrub); in ubi_dump_aeb()
185 pr_err("\tsqnum %llu\n", aeb->sqnum); in ubi_dump_aeb()
H A Dwl.c1725 * @aeb: UBI attach info PEB
1728 static int erase_aeb(struct ubi_device *ubi, struct ubi_ainf_peb *aeb, bool sync) argument
1737 e->pnum = aeb->pnum;
1738 e->ec = aeb->ec;
1749 err = schedule_erase(ubi, e, aeb->vol_id, aeb->lnum, 0, false);
1775 struct ubi_ainf_peb *aeb, *tmp; local
1797 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) {
1800 err = erase_aeb(ubi, aeb, false);
1807 list_for_each_entry(aeb,
[all...]
H A Deba.c1530 struct ubi_ainf_peb *aeb; in self_check_eba() local
1573 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) in self_check_eba()
1574 scan_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1580 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) in self_check_eba()
1581 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1624 struct ubi_ainf_peb *aeb; in ubi_eba_init() local
1657 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { in ubi_eba_init()
1658 if (aeb in ubi_eba_init()
[all...]
H A Dvtbl.c367 struct ubi_ainf_peb *aeb; in process_lvol() local
399 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { in process_lvol()
400 leb[aeb->lnum] = vzalloc(ubi->vtbl_size); in process_lvol()
401 if (!leb[aeb->lnum]) { in process_lvol()
406 err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0, in process_lvol()
414 * aeb->scrub). If the data is not OK, the contents of in process_lvol()
416 * aeb->scrub will be cleared in in process_lvol()
419 aeb->scrub = 1; in process_lvol()
H A Dubi.h826 void ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb);
961 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb,
1052 * @aeb: attaching eraseblock information
1056 struct ubi_ainf_peb *aeb, in ubi_move_aeb_to_list()
1059 rb_erase(&aeb->u.rb, &av->root); in ubi_move_aeb_to_list()
1060 list_add_tail(&aeb->u.list, list); in ubi_move_aeb_to_list()
1055 ubi_move_aeb_to_list(struct ubi_ainf_volume *av, struct ubi_ainf_peb *aeb, struct list_head *list) ubi_move_aeb_to_list() argument
H A Ddebug.h46 void ubi_dump_aeb(const struct ubi_ainf_peb *aeb, int type);
/kernel/linux/linux-6.6/drivers/mtd/ubi/
H A Dattach.c168 * ubi_alloc_aeb - allocate an aeb element
173 * Allocate an aeb object and initialize the pnum and ec information.
181 struct ubi_ainf_peb *aeb; in ubi_alloc_aeb() local
183 aeb = kmem_cache_zalloc(ai->aeb_slab_cache, GFP_KERNEL); in ubi_alloc_aeb()
184 if (!aeb) in ubi_alloc_aeb()
187 aeb->pnum = pnum; in ubi_alloc_aeb()
188 aeb->ec = ec; in ubi_alloc_aeb()
189 aeb->vol_id = UBI_UNKNOWN; in ubi_alloc_aeb()
190 aeb->lnum = UBI_UNKNOWN; in ubi_alloc_aeb()
192 return aeb; in ubi_alloc_aeb()
203 ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb) ubi_free_aeb() argument
232 struct ubi_ainf_peb *aeb; add_to_list() local
270 struct ubi_ainf_peb *aeb; add_corrupted() local
299 struct ubi_ainf_peb *aeb; add_fastmap() local
438 ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, int pnum, const struct ubi_vid_hdr *vid_hdr) ubi_compare_lebs() argument
569 struct ubi_ainf_peb *aeb; ubi_add_to_av() local
822 struct ubi_ainf_peb *aeb, *tmp_aeb; ubi_early_get_peb() local
1209 struct ubi_ainf_peb *aeb; late_analysis() local
1280 struct ubi_ainf_peb *aeb; destroy_av() local
1313 struct ubi_ainf_peb *aeb, *aeb_tmp; destroy_ai() local
1380 struct ubi_ainf_peb *aeb; scan_all() local
1665 struct ubi_ainf_peb *aeb, *last_aeb; self_check_ai() local
[all...]
H A Dfastmap.c139 struct ubi_ainf_peb *aeb; in add_aeb() local
141 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_aeb()
142 if (!aeb) in add_aeb()
145 aeb->lnum = -1; in add_aeb()
146 aeb->scrub = scrub; in add_aeb()
147 aeb->copy_flag = aeb->sqnum = 0; in add_aeb()
149 ai->ec_sum += aeb->ec; in add_aeb()
152 if (ai->max_ec < aeb->ec) in add_aeb()
153 ai->max_ec = aeb in add_aeb()
203 assign_aeb_to_av(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb, struct ubi_ainf_volume *av) assign_aeb_to_av() argument
247 struct ubi_ainf_peb *aeb, *victim; update_vol() local
374 struct ubi_ainf_peb *aeb; unmap_peb() local
521 struct ubi_ainf_peb *aeb; count_fastmap_pebs() local
554 struct ubi_ainf_peb *aeb, *tmp_aeb, *_tmp_aeb; ubi_attach_fastmap() local
818 struct ubi_ainf_peb *aeb; find_fm_anchor() local
868 struct ubi_ainf_peb *aeb; ubi_scan_fastmap() local
[all...]
H A Ddebug.c174 * @aeb: the object to dump
177 void ubi_dump_aeb(const struct ubi_ainf_peb *aeb, int type) in ubi_dump_aeb() argument
180 pr_err("\tec %d\n", aeb->ec); in ubi_dump_aeb()
181 pr_err("\tpnum %d\n", aeb->pnum); in ubi_dump_aeb()
183 pr_err("\tlnum %d\n", aeb->lnum); in ubi_dump_aeb()
184 pr_err("\tscrub %d\n", aeb->scrub); in ubi_dump_aeb()
185 pr_err("\tsqnum %llu\n", aeb->sqnum); in ubi_dump_aeb()
H A Dwl.c1735 * @aeb: UBI attach info PEB
1738 static int erase_aeb(struct ubi_device *ubi, struct ubi_ainf_peb *aeb, bool sync)
1747 e->pnum = aeb->pnum;
1748 e->ec = aeb->ec;
1759 err = schedule_erase(ubi, e, aeb->vol_id, aeb->lnum, 0, false);
1785 struct ubi_ainf_peb *aeb, *tmp;
1807 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) {
1810 err = erase_aeb(ubi, aeb, false);
1817 list_for_each_entry(aeb,
[all...]
H A Deba.c1530 struct ubi_ainf_peb *aeb; in self_check_eba() local
1573 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) in self_check_eba()
1574 scan_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1580 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) in self_check_eba()
1581 fm_eba[i][aeb->lnum] = aeb->pnum; in self_check_eba()
1624 struct ubi_ainf_peb *aeb; in ubi_eba_init() local
1657 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { in ubi_eba_init()
1658 if (aeb in ubi_eba_init()
[all...]
H A Dvtbl.c367 struct ubi_ainf_peb *aeb; in process_lvol() local
399 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { in process_lvol()
400 leb[aeb->lnum] = vzalloc(ubi->vtbl_size); in process_lvol()
401 if (!leb[aeb->lnum]) { in process_lvol()
406 err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0, in process_lvol()
414 * aeb->scrub). If the data is not OK, the contents of in process_lvol()
416 * aeb->scrub will be cleared in in process_lvol()
419 aeb->scrub = 1; in process_lvol()
H A Dubi.h824 void ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb);
960 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb,
1051 * @aeb: attaching eraseblock information
1055 struct ubi_ainf_peb *aeb, in ubi_move_aeb_to_list()
1058 rb_erase(&aeb->u.rb, &av->root); in ubi_move_aeb_to_list()
1059 list_add_tail(&aeb->u.list, list); in ubi_move_aeb_to_list()
1054 ubi_move_aeb_to_list(struct ubi_ainf_volume *av, struct ubi_ainf_peb *aeb, struct list_head *list) ubi_move_aeb_to_list() argument
H A Ddebug.h46 void ubi_dump_aeb(const struct ubi_ainf_peb *aeb, int type);

Completed in 20 milliseconds