Lines Matching refs:wl_wrk
568 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
586 struct ubi_work *wl_wrk;
593 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS);
594 if (!wl_wrk)
597 wl_wrk->func = &erase_worker;
598 wl_wrk->e = e;
599 wl_wrk->vol_id = vol_id;
600 wl_wrk->lnum = lnum;
601 wl_wrk->torture = torture;
604 __schedule_ubi_work(ubi, wl_wrk);
606 schedule_ubi_work(ubi, wl_wrk);
610 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk);
623 struct ubi_work wl_wrk;
627 wl_wrk.e = e;
628 wl_wrk.vol_id = vol_id;
629 wl_wrk.lnum = lnum;
630 wl_wrk.torture = torture;
632 return __erase_worker(ubi, &wl_wrk);
1079 * @wl_wrk: the work object
1086 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk)
1088 struct ubi_wl_entry *e = wl_wrk->e;
1090 int vol_id = wl_wrk->vol_id;
1091 int lnum = wl_wrk->lnum;
1095 pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum);
1097 err = sync_erase(ubi, e, wl_wrk->torture);
1216 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
1222 struct ubi_wl_entry *e = wl_wrk->e;
1225 kfree(wl_wrk);
1230 ret = __erase_worker(ubi, wl_wrk);
1231 kfree(wl_wrk);