Lines Matching refs: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.
197 * it in read mode, so many of them may be doing works at a time. But
198 * the queue flush code has to be sure the whole queue of works is
203 if (list_empty(&ubi->works)) {
209 wrk = list_entry(ubi->works.next, struct ubi_work, list);
539 * This function adds a work defined by @wrk to the tail of the pending works
545 list_add_tail(&wrk->list, &ubi->works);
558 * This function adds a work defined by @wrk to the tail of the pending works
1396 * ubi_wl_flush - flush all pending works.
1401 * This function executes all pending works for a particular volume id /
1413 * Erase while the pending works queue is not empty, but not more than
1414 * the number of currently pending works.
1416 dbg_wl("flush pending work for LEB %d:%d (%d pending works)",
1425 list_for_each_entry_safe(wrk, tmp, &ubi->works, list) {
1449 * Make sure all the works which have been done in parallel are
1657 if (list_empty(&ubi->works) || ubi->ro_mode ||
1706 * shutdown_work - shutdown all pending works.
1711 while (!list_empty(&ubi->works)) {
1714 wrk = list_entry(ubi->works.next, struct ubi_work, list);
1783 INIT_LIST_HEAD(&ubi->works);
2078 * pending works. This may be needed if, for example the background thread is
2119 ubi_assert(list_empty(&ubi->works));