Lines Matching defs:work
148 struct wiphy_work work;
164 struct wiphy_work *work)
166 struct debugfs_read_work *w = container_of(work, typeof(*w), work);
177 wiphy_work_cancel(w->wiphy, &w->work);
192 struct debugfs_read_work work = {
200 .completion = COMPLETION_INITIALIZER_ONSTACK(work.completion),
204 .cancel_data = &work,
210 wiphy_work_init(&work.work, wiphy_locked_debugfs_read_work);
211 wiphy_work_queue(wiphy, &work.work);
214 wait_for_completion(&work.completion);
217 if (work.ret < 0)
218 return work.ret;
220 if (WARN_ON(work.ret > bufsize))
223 return simple_read_from_buffer(userbuf, count, ppos, buf, work.ret);
228 struct wiphy_work work;
244 struct wiphy_work *work)
246 struct debugfs_write_work *w = container_of(work, typeof(*w), work);
257 wiphy_work_cancel(w->wiphy, &w->work);
271 struct debugfs_write_work work = {
279 .completion = COMPLETION_INITIALIZER_ONSTACK(work.completion),
283 .cancel_data = &work,
295 wiphy_work_init(&work.work, wiphy_locked_debugfs_write_work);
296 wiphy_work_queue(wiphy, &work.work);
299 wait_for_completion(&work.completion);
302 return work.ret;