Lines Matching refs:wl_wrk
589 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
606 struct ubi_work *wl_wrk; in schedule_erase() local
613 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in schedule_erase()
614 if (!wl_wrk) in schedule_erase()
617 wl_wrk->func = &erase_worker; in schedule_erase()
618 wl_wrk->e = e; in schedule_erase()
619 wl_wrk->vol_id = vol_id; in schedule_erase()
620 wl_wrk->lnum = lnum; in schedule_erase()
621 wl_wrk->torture = torture; in schedule_erase()
623 schedule_ubi_work(ubi, wl_wrk); in schedule_erase()
643 struct ubi_work *wl_wrk; in do_sync_erase() local
647 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in do_sync_erase()
648 if (!wl_wrk) in do_sync_erase()
651 wl_wrk->e = e; in do_sync_erase()
652 wl_wrk->vol_id = vol_id; in do_sync_erase()
653 wl_wrk->lnum = lnum; in do_sync_erase()
654 wl_wrk->torture = torture; in do_sync_erase()
656 return erase_worker(ubi, wl_wrk, 0); in do_sync_erase()
1060 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk, argument
1063 struct ubi_wl_entry *e = wl_wrk->e;
1065 int vol_id = wl_wrk->vol_id;
1066 int lnum = wl_wrk->lnum;
1071 kfree(wl_wrk);
1077 pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum);
1079 err = sync_erase(ubi, e, wl_wrk->torture);
1082 kfree(wl_wrk);
1101 kfree(wl_wrk);