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
1406 * ubi_wl_flush - flush all pending works.
1411 * This function executes all pending works for a particular volume id /
1423 * Erase while the pending works queue is not empty, but not more than
1424 * the number of currently pending works.
1426 dbg_wl("flush pending work for LEB %d:%d (%d pending works)",
1435 list_for_each_entry_safe(wrk, tmp, &ubi->works, list) {
1459 * Make sure all the works which have been done in parallel are
1667 if (list_empty(&ubi->works) || ubi->ro_mode ||
1716 * shutdown_work - shutdown all pending works.
1721 while (!list_empty(&ubi->works)) {
1724 wrk = list_entry(ubi->works.next, struct ubi_work, list);
1793 INIT_LIST_HEAD(&ubi->works);
2088 * pending works. This may be needed if, for example the background thread is
2129 ubi_assert(list_empty(&ubi->works));