Lines Matching refs:mgr
101 typedef void (*onoff_notify_fn)(struct onoff_manager *mgr,
129 typedef void (*onoff_transition_fn)(struct onoff_manager *mgr,
221 int onoff_manager_init(struct onoff_manager *mgr,
252 typedef void (*onoff_client_callback)(struct onoff_manager *mgr,
315 static inline bool onoff_has_error(const struct onoff_manager *mgr) in onoff_has_error() argument
317 return (mgr->flags & ONOFF_FLAG_ERROR) != 0; in onoff_has_error()
347 int onoff_request(struct onoff_manager *mgr,
368 int onoff_release(struct onoff_manager *mgr);
401 int onoff_cancel(struct onoff_manager *mgr,
435 static inline int onoff_cancel_or_release(struct onoff_manager *mgr, in onoff_cancel_or_release() argument
438 int rv = onoff_cancel(mgr, cli); in onoff_cancel_or_release()
441 rv = onoff_release(mgr); in onoff_cancel_or_release()
481 int onoff_reset(struct onoff_manager *mgr,
512 typedef void (*onoff_monitor_callback)(struct onoff_manager *mgr,
549 int onoff_monitor_register(struct onoff_manager *mgr,
563 int onoff_monitor_unregister(struct onoff_manager *mgr,