Lines Matching full:works
11 * This sub-system is responsible for wear-leveling. It works in terms of
85 * room for future re-works of the WL sub-system.
199 * it in read mode, so many of them may be doing works at a time. But in do_work()
200 * the queue flush code has to be sure the whole queue of works is in do_work()
205 if (list_empty(&ubi->works)) { in do_work()
215 wrk = list_entry(ubi->works.next, struct ubi_work, list); in do_work()
551 * This function adds a work defined by @wrk to the tail of the pending works
557 list_add_tail(&wrk->list, &ubi->works); in __schedule_ubi_work()
570 * This function adds a work defined by @wrk to the tail of the pending works
1425 * ubi_wl_flush - flush all pending works.
1430 * This function executes all pending works for a particular volume id /
1442 * Erase while the pending works queue is not empty, but not more than
1443 * the number of currently pending works.
1445 dbg_wl("flush pending work for LEB %d:%d (%d pending works)",
1454 list_for_each_entry_safe(wrk, tmp, &ubi->works, list) {
1478 * Make sure all the works which have been done in parallel are
1686 if (list_empty(&ubi->works) || ubi->ro_mode ||
1735 * shutdown_work - shutdown all pending works.
1740 while (!list_empty(&ubi->works)) {
1743 wrk = list_entry(ubi->works.next, struct ubi_work, list);
1812 INIT_LIST_HEAD(&ubi->works);
2107 * pending works. This may be needed if, for example the background thread is
2148 ubi_assert(list_empty(&ubi->works));