Lines Matching refs:wl_wrk
590 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
607 struct ubi_work *wl_wrk; in schedule_erase() local
614 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in schedule_erase()
615 if (!wl_wrk) in schedule_erase()
618 wl_wrk->func = &erase_worker; in schedule_erase()
619 wl_wrk->e = e; in schedule_erase()
620 wl_wrk->vol_id = vol_id; in schedule_erase()
621 wl_wrk->lnum = lnum; in schedule_erase()
622 wl_wrk->torture = torture; in schedule_erase()
624 schedule_ubi_work(ubi, wl_wrk); in schedule_erase()
644 struct ubi_work *wl_wrk; in do_sync_erase() local
648 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in do_sync_erase()
649 if (!wl_wrk) in do_sync_erase()
652 wl_wrk->e = e; in do_sync_erase()
653 wl_wrk->vol_id = vol_id; in do_sync_erase()
654 wl_wrk->lnum = lnum; in do_sync_erase()
655 wl_wrk->torture = torture; in do_sync_erase()
657 return erase_worker(ubi, wl_wrk, 0); in do_sync_erase()
1061 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk, argument
1064 struct ubi_wl_entry *e = wl_wrk->e;
1066 int vol_id = wl_wrk->vol_id;
1067 int lnum = wl_wrk->lnum;
1072 kfree(wl_wrk);
1078 pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum);
1080 err = sync_erase(ubi, e, wl_wrk->torture);
1083 kfree(wl_wrk);
1102 kfree(wl_wrk);