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

/linux-master/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; local
183 aeb = kmem_cache_zalloc(ai->aeb_slab_cache, GFP_KERNEL);
184 if (!aeb)
187 aeb->pnum = pnum;
188 aeb->ec = ec;
189 aeb->vol_id = UBI_UNKNOWN;
190 aeb->lnum = UBI_UNKNOWN;
192 return aeb;
203 ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb) argument
232 struct ubi_ainf_peb *aeb; local
270 struct ubi_ainf_peb *aeb; local
299 struct ubi_ainf_peb *aeb; local
438 ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, int pnum, const struct ubi_vid_hdr *vid_hdr) argument
569 struct ubi_ainf_peb *aeb; local
822 struct ubi_ainf_peb *aeb, *tmp_aeb; local
1209 struct ubi_ainf_peb *aeb; local
1280 struct ubi_ainf_peb *aeb; local
1313 struct ubi_ainf_peb *aeb, *aeb_tmp; local
1380 struct ubi_ainf_peb *aeb; local
1665 struct ubi_ainf_peb *aeb, *last_aeb; local
[all...]
H A Dfastmap.c139 struct ubi_ainf_peb *aeb; local
141 aeb = ubi_alloc_aeb(ai, pnum, ec);
142 if (!aeb)
145 aeb->lnum = -1;
146 aeb->scrub = scrub;
147 aeb->copy_flag = aeb->sqnum = 0;
149 ai->ec_sum += aeb->ec;
152 if (ai->max_ec < aeb->ec)
153 ai->max_ec = aeb
203 assign_aeb_to_av(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb, struct ubi_ainf_volume *av) argument
247 struct ubi_ainf_peb *aeb, *victim; local
374 struct ubi_ainf_peb *aeb; local
521 struct ubi_ainf_peb *aeb; local
554 struct ubi_ainf_peb *aeb, *tmp_aeb, *_tmp_aeb; local
818 struct ubi_ainf_peb *aeb; local
868 struct ubi_ainf_peb *aeb; local
[all...]
H A Dwl.c1747 * @aeb: UBI attach info PEB
1750 static int erase_aeb(struct ubi_device *ubi, struct ubi_ainf_peb *aeb, bool sync)
1759 e->pnum = aeb->pnum;
1760 e->ec = aeb->ec;
1771 err = schedule_erase(ubi, e, aeb->vol_id, aeb->lnum, 0, false);
1797 struct ubi_ainf_peb *aeb, *tmp;
1819 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) {
1822 err = erase_aeb(ubi, aeb, false);
1829 list_for_each_entry(aeb,
[all...]
H A Dvtbl.c367 struct ubi_ainf_peb *aeb; local
399 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) {
400 leb[aeb->lnum] = vzalloc(ubi->vtbl_size);
401 if (!leb[aeb->lnum]) {
406 err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0,
414 * aeb->scrub). If the data is not OK, the contents of
416 * aeb->scrub will be cleared in
419 aeb->scrub = 1;
H A Deba.c1534 struct ubi_ainf_peb *aeb; local
1577 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb)
1578 scan_eba[i][aeb->lnum] = aeb->pnum;
1584 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb)
1585 fm_eba[i][aeb->lnum] = aeb->pnum;
1628 struct ubi_ainf_peb *aeb; local
1661 ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) {
1662 if (aeb
[all...]
H A Ddebug.c204 * @aeb: the object to dump
207 void ubi_dump_aeb(const struct ubi_ainf_peb *aeb, int type) argument
210 pr_err("\tec %d\n", aeb->ec);
211 pr_err("\tpnum %d\n", aeb->pnum);
213 pr_err("\tlnum %d\n", aeb->lnum);
214 pr_err("\tscrub %d\n", aeb->scrub);
215 pr_err("\tsqnum %llu\n", aeb->sqnum);
H A Dubi.h824 void ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb);
962 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb,
1053 * @aeb: attaching eraseblock information
1057 struct ubi_ainf_peb *aeb,
1060 rb_erase(&aeb->u.rb, &av->root);
1061 list_add_tail(&aeb->u.list, list);
1056 ubi_move_aeb_to_list(struct ubi_ainf_volume *av, struct ubi_ainf_peb *aeb, struct list_head *list) argument
H A Ddebug.h46 void ubi_dump_aeb(const struct ubi_ainf_peb *aeb, int type);

Completed in 139 milliseconds