Lines Matching refs:dwork

48 static inline QDF_STATUS qdf_dwork_dbg_track(struct qdf_delayed_work *dwork,  in qdf_dwork_dbg_track()  argument
51 return qdf_tracker_track(&qdf_dwork_tracker, dwork, func, line); in qdf_dwork_dbg_track()
54 static inline void qdf_dwork_dbg_untrack(struct qdf_delayed_work *dwork, in qdf_dwork_dbg_untrack() argument
57 qdf_tracker_untrack(&qdf_dwork_tracker, dwork, func, line); in qdf_dwork_dbg_untrack()
60 static inline QDF_STATUS qdf_dwork_dbg_track(struct qdf_delayed_work *dwork, in qdf_dwork_dbg_track() argument
66 static inline void qdf_dwork_dbg_untrack(struct qdf_delayed_work *dwork, in qdf_dwork_dbg_untrack() argument
73 struct qdf_delayed_work *dwork = in __qdf_delayed_work_handler() local
74 container_of(work, struct qdf_delayed_work, dwork.work); in __qdf_delayed_work_handler()
76 dwork->callback(dwork->context); in __qdf_delayed_work_handler()
79 QDF_STATUS __qdf_delayed_work_create(struct qdf_delayed_work *dwork, in __qdf_delayed_work_create() argument
86 QDF_BUG(dwork); in __qdf_delayed_work_create()
88 if (!dwork || !callback) in __qdf_delayed_work_create()
91 status = qdf_dwork_dbg_track(dwork, func, line); in __qdf_delayed_work_create()
95 INIT_DELAYED_WORK(&dwork->dwork, __qdf_delayed_work_handler); in __qdf_delayed_work_create()
96 dwork->callback = callback; in __qdf_delayed_work_create()
97 dwork->context = context; in __qdf_delayed_work_create()
104 void __qdf_delayed_work_destroy(struct qdf_delayed_work *dwork, in __qdf_delayed_work_destroy() argument
107 qdf_delayed_work_stop_sync(dwork); in __qdf_delayed_work_destroy()
108 qdf_dwork_dbg_untrack(dwork, func, line); in __qdf_delayed_work_destroy()
113 bool __qdf_delayed_work_start(struct qdf_delayed_work *dwork, uint32_t msec) in __qdf_delayed_work_start() argument
115 return schedule_delayed_work(&dwork->dwork, msecs_to_jiffies(msec)); in __qdf_delayed_work_start()
120 bool __qdf_delayed_work_stop_sync(struct qdf_delayed_work *dwork) in __qdf_delayed_work_stop_sync() argument
122 return cancel_delayed_work_sync(&dwork->dwork); in __qdf_delayed_work_stop_sync()
127 bool __qdf_delayed_work_stop(struct qdf_delayed_work *dwork) in __qdf_delayed_work_stop() argument
129 return cancel_delayed_work(&dwork->dwork); in __qdf_delayed_work_stop()