Home
last modified time | relevance | path

Searched refs:sock_ctx (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c107 static struct lwm2m_ctx *sock_ctx[MAX_POLL_FD]; variable
116 struct lwm2m_ctx **lwm2m_sock_ctx(void) { return sock_ctx; } in lwm2m_sock_ctx()
547 sock_ctx[sock_nfds] = ctx; in lwm2m_socket_add()
560 if (sock_ctx[i] != ctx) { in lwm2m_socket_update()
573 if (sock_ctx[i] != ctx) { in lwm2m_socket_del()
581 sock_ctx[i] = sock_ctx[sock_nfds]; in lwm2m_socket_del()
587 sock_ctx[sock_nfds] = NULL; in lwm2m_socket_del()
772 if (sock_ctx[i] != NULL) { in socket_reset_pollfd_events()
773 lwm2m_client_lock(sock_ctx[i]); in socket_reset_pollfd_events()
774 set_pollout = !sys_slist_is_empty(&sock_ctx[i]->pending_sends); in socket_reset_pollfd_events()
[all …]
Dlwm2m_observation.c361 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in lwm2m_notify_observer_path() local
369 SYS_SLIST_FOR_EACH_CONTAINER(&sock_ctx[i]->observer, obs, node) { in lwm2m_notify_observer_path()
373 sock_ctx[i]->srv_obj_inst); in lwm2m_notify_observer_path()
861 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in engine_remove_observer_by_id() local
865 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&sock_ctx[i]->observer, obs, tmp, node) { in engine_remove_observer_by_id()
866 engine_observe_single_path_id_remove(sock_ctx[i], obs, obj_id, obj_inst_id); in engine_remove_observer_by_id()
869 remove_observer_from_list(sock_ctx[i], prev_node, obs); in engine_remove_observer_by_id()
1373 struct lwm2m_ctx **sock_ctx = lwm2m_sock_ctx(); in lwm2m_path_is_observed() local
1376 SYS_SLIST_FOR_EACH_CONTAINER(&sock_ctx[i]->observer, obs, node) { in lwm2m_path_is_observed()