Lines Matching refs:wl_wrk
580 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
598 struct ubi_work *wl_wrk; in schedule_erase() local
605 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in schedule_erase()
606 if (!wl_wrk) in schedule_erase()
609 wl_wrk->func = &erase_worker; in schedule_erase()
610 wl_wrk->e = e; in schedule_erase()
611 wl_wrk->vol_id = vol_id; in schedule_erase()
612 wl_wrk->lnum = lnum; in schedule_erase()
613 wl_wrk->torture = torture; in schedule_erase()
616 __schedule_ubi_work(ubi, wl_wrk); in schedule_erase()
618 schedule_ubi_work(ubi, wl_wrk); in schedule_erase()
622 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk);
635 struct ubi_work wl_wrk; in do_sync_erase() local
639 wl_wrk.e = e; in do_sync_erase()
640 wl_wrk.vol_id = vol_id; in do_sync_erase()
641 wl_wrk.lnum = lnum; in do_sync_erase()
642 wl_wrk.torture = torture; in do_sync_erase()
644 return __erase_worker(ubi, &wl_wrk); in do_sync_erase()
1098 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk) argument
1100 struct ubi_wl_entry *e = wl_wrk->e;
1102 int vol_id = wl_wrk->vol_id;
1103 int lnum = wl_wrk->lnum;
1107 pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum);
1109 err = ubi_sync_erase(ubi, e, wl_wrk->torture);
1228 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk, argument
1234 struct ubi_wl_entry *e = wl_wrk->e;
1237 kfree(wl_wrk);
1242 ret = __erase_worker(ubi, wl_wrk);
1243 kfree(wl_wrk);