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);
1011 struct ubi_work *wrk;
1045 wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS);
1046 if (!wrk) {
1051 wrk->func = &wear_leveling_worker;
1053 __schedule_ubi_work(ubi, wrk);
1055 schedule_ubi_work(ubi, wrk);
1420 struct ubi_work *wrk, *tmp;
1425 list_for_each_entry_safe(wrk, tmp, &ubi->works, list) {
1426 if ((vol_id == UBI_ALL || wrk->vol_id == vol_id) &&
1427 (lnum == UBI_ALL || wrk->lnum == lnum)) {
1428 list_del(&wrk->list);
1433 err = wrk->func(ubi, wrk, 0);
1712 struct ubi_work *wrk;
1714 wrk = list_entry(ubi->works.next, struct ubi_work, list);
1715 list_del(&wrk->list);
1716 wrk->func(ubi, wrk, 1);