Lines Matching refs:wrk
191 struct ubi_work *wrk; in do_work() local
209 wrk = list_entry(ubi->works.next, struct ubi_work, list); in do_work()
210 list_del(&wrk->list); in do_work()
220 err = wrk->func(ubi, wrk, 0); in do_work()
542 static void __schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in __schedule_ubi_work() argument
545 list_add_tail(&wrk->list, &ubi->works); in __schedule_ubi_work()
561 static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk) in schedule_ubi_work() argument
564 __schedule_ubi_work(ubi, wrk); in schedule_ubi_work()
647 static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk, argument
657 kfree(wrk);
1013 struct ubi_work *wrk; local
1055 wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS);
1056 if (!wrk) {
1061 wrk->func = &wear_leveling_worker;
1063 __schedule_ubi_work(ubi, wrk);
1065 schedule_ubi_work(ubi, wrk);
1430 struct ubi_work *wrk, *tmp; local
1435 list_for_each_entry_safe(wrk, tmp, &ubi->works, list) {
1436 if ((vol_id == UBI_ALL || wrk->vol_id == vol_id) &&
1437 (lnum == UBI_ALL || wrk->lnum == lnum)) {
1438 list_del(&wrk->list);
1443 err = wrk->func(ubi, wrk, 0);
1722 struct ubi_work *wrk; local
1724 wrk = list_entry(ubi->works.next, struct ubi_work, list);
1725 list_del(&wrk->list);
1726 wrk->func(ubi, wrk, 1);