Lines Matching refs:cli
123 struct onoff_client *cli) in validate_args() argument
125 if ((mgr == NULL) || (cli == NULL)) { in validate_args()
129 int rv = sys_notify_validate(&cli->notify); in validate_args()
132 && ((cli->notify.flags in validate_args()
169 struct onoff_client *cli, in notify_one() argument
174 (onoff_client_callback)sys_notify_finalize(&cli->notify, res); in notify_one()
177 cb(mgr, cli, state, res); in notify_one()
188 struct onoff_client *cli = in notify_all() local
193 notify_one(mgr, cli, state, res); in notify_all()
422 struct onoff_client *cli) in onoff_request() argument
427 int rv = validate_args(mgr, cli); in onoff_request()
462 sys_slist_append(&mgr->clients, &cli->node); in onoff_request()
471 notify_one(mgr, cli, state, 0); in onoff_request()
510 struct onoff_client *cli) in onoff_reset() argument
513 int rv = validate_args(mgr, cli); in onoff_reset()
533 sys_slist_append(&mgr->clients, &cli->node); in onoff_reset()
546 struct onoff_client *cli) in onoff_cancel() argument
548 if ((mgr == NULL) || (cli == NULL)) { in onoff_cancel()
556 if (sys_slist_find_and_remove(&mgr->clients, &cli->node)) { in onoff_cancel()
616 struct onoff_client *cli, in onoff_sync_finalize() argument
646 if (cli != NULL) { in onoff_sync_finalize()
651 notify_one(NULL, cli, state, res); in onoff_sync_finalize()