Lines Matching refs:wl_wrk
568 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,
585 struct ubi_work *wl_wrk; in schedule_erase() local
592 wl_wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in schedule_erase()
593 if (!wl_wrk) in schedule_erase()
596 wl_wrk->func = &erase_worker; in schedule_erase()
597 wl_wrk->e = e; in schedule_erase()
598 wl_wrk->vol_id = vol_id; in schedule_erase()
599 wl_wrk->lnum = lnum; in schedule_erase()
600 wl_wrk->torture = torture; in schedule_erase()
603 __schedule_ubi_work(ubi, wl_wrk); in schedule_erase()
605 schedule_ubi_work(ubi, wl_wrk); in schedule_erase()
609 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk);
622 struct ubi_work wl_wrk; in do_sync_erase() local
626 wl_wrk.e = e; in do_sync_erase()
627 wl_wrk.vol_id = vol_id; in do_sync_erase()
628 wl_wrk.lnum = lnum; in do_sync_erase()
629 wl_wrk.torture = torture; in do_sync_erase()
631 return __erase_worker(ubi, &wl_wrk); in do_sync_erase()
1074 static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk) argument
1076 struct ubi_wl_entry *e = wl_wrk->e;
1078 int vol_id = wl_wrk->vol_id;
1079 int lnum = wl_wrk->lnum;
1083 pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum);
1085 err = sync_erase(ubi, e, wl_wrk->torture);
1199 static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk, argument
1205 struct ubi_wl_entry *e = wl_wrk->e;
1208 kfree(wl_wrk);
1213 ret = __erase_worker(ubi, wl_wrk);
1214 kfree(wl_wrk);