Lines Matching refs:wrk
191 struct ubi_work *wrk;
209 wrk = list_entry(ubi->works.next, struct ubi_work, list);
210 list_del(&wrk->list);
220 err = wrk->func(ubi, wrk, 0);
537 * @wrk: the work to schedule
539 * This function adds a work defined by @wrk to the tail of the pending works
542 static void __schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk)
545 list_add_tail(&wrk->list, &ubi->works);
556 * @wrk: the work to schedule
558 * This function adds a work defined by @wrk to the tail of the pending works
561 static void schedule_ubi_work(struct ubi_device *ubi, struct ubi_work *wrk)
564 __schedule_ubi_work(ubi, wrk);
639 * @wrk: the work object
647 static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
657 kfree(wrk);
1013 struct ubi_work *wrk;
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;
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;
1724 wrk = list_entry(ubi->works.next, struct ubi_work, list);
1725 list_del(&wrk->list);
1726 wrk->func(ubi, wrk, 1);