Lines Matching full:clients
78 * * a start from OFF when there are clients;
79 * * a stop from ON when there are no clients;
80 * * a reset from ERROR when there are clients.
217 && !sys_slist_is_empty(&mgr->clients)) { in process_recheck()
223 && !sys_slist_is_empty(&mgr->clients)) { in process_recheck()
234 * If the completion requires notifying clients, the clients are moved
238 sys_slist_t *clients, in process_complete() argument
244 /* Enter ERROR state and notify all clients. */ in process_complete()
245 *clients = mgr->clients; in process_complete()
246 sys_slist_init(&mgr->clients); in process_complete()
250 *clients = mgr->clients; in process_complete()
251 sys_slist_init(&mgr->clients); in process_complete()
257 * clients and enter ON state. in process_complete()
259 SYS_SLIST_FOR_EACH_CONTAINER(clients, cp, node) { in process_complete()
273 /* Any active clients are requests waiting for this in process_complete()
302 sys_slist_t clients; in process_event() local
324 sys_slist_init(&clients); in process_event()
339 process_complete(mgr, &clients, res); in process_event()
343 __ASSERT_NO_MSG(!sys_slist_is_empty(&mgr->clients)); in process_event()
357 __ASSERT_NO_MSG(!sys_slist_is_empty(&mgr->clients)); in process_event()
368 * * We completed a transition and there are clients to notify; in process_event()
376 || !sys_slist_is_empty(&clients) in process_event()
389 if (!sys_slist_is_empty(&clients)) { in process_event()
390 notify_all(mgr, &clients, state, res); in process_event()
462 sys_slist_append(&mgr->clients, &cli->node); in onoff_request()
533 sys_slist_append(&mgr->clients, &cli->node); in onoff_reset()
556 if (sys_slist_find_and_remove(&mgr->clients, &cli->node)) { in onoff_cancel()