Lines Matching full:binding

19 	struct conn_mgr_conn_binding *binding;  in conn_mgr_if_connect()  local
25 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_connect()
26 if (!binding) { in conn_mgr_if_connect()
30 api = binding->impl->api; in conn_mgr_if_connect()
35 conn_mgr_binding_lock(binding); in conn_mgr_if_connect()
44 status = api->connect(binding); in conn_mgr_if_connect()
47 conn_mgr_binding_unlock(binding); in conn_mgr_if_connect()
56 struct conn_mgr_conn_binding *binding; in conn_mgr_if_disconnect() local
62 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_disconnect()
63 if (!binding) { in conn_mgr_if_disconnect()
67 api = binding->impl->api; in conn_mgr_if_disconnect()
72 conn_mgr_binding_lock(binding); in conn_mgr_if_disconnect()
78 status = api->disconnect(binding); in conn_mgr_if_disconnect()
81 conn_mgr_binding_unlock(binding); in conn_mgr_if_disconnect()
98 struct conn_mgr_conn_binding *binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_is_bound() local
100 return binding != NULL; in conn_mgr_if_is_bound()
105 struct conn_mgr_conn_binding *binding; in conn_mgr_if_get_opt() local
118 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_get_opt()
119 if (!binding) { in conn_mgr_if_get_opt()
124 api = binding->impl->api; in conn_mgr_if_get_opt()
130 conn_mgr_binding_lock(binding); in conn_mgr_if_get_opt()
132 status = api->get_opt(binding, optname, optval, optlen); in conn_mgr_if_get_opt()
134 conn_mgr_binding_unlock(binding); in conn_mgr_if_get_opt()
141 struct conn_mgr_conn_binding *binding; in conn_mgr_if_set_opt() local
149 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_set_opt()
150 if (!binding) { in conn_mgr_if_set_opt()
154 api = binding->impl->api; in conn_mgr_if_set_opt()
159 conn_mgr_binding_lock(binding); in conn_mgr_if_set_opt()
161 status = api->set_opt(binding, optname, optval, optlen); in conn_mgr_if_set_opt()
163 conn_mgr_binding_unlock(binding); in conn_mgr_if_set_opt()
170 struct conn_mgr_conn_binding *binding; in conn_mgr_if_set_flag() local
176 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_set_flag()
177 if (!binding) { in conn_mgr_if_set_flag()
181 conn_mgr_binding_set_flag(binding, flag, value); in conn_mgr_if_set_flag()
188 struct conn_mgr_conn_binding *binding; in conn_mgr_if_get_flag() local
194 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_get_flag()
195 if (!binding) { in conn_mgr_if_get_flag()
199 return conn_mgr_binding_get_flag(binding, flag); in conn_mgr_if_get_flag()
204 struct conn_mgr_conn_binding *binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_get_timeout() local
207 if (!binding) { in conn_mgr_if_get_timeout()
211 conn_mgr_binding_lock(binding); in conn_mgr_if_get_timeout()
213 value = binding->timeout; in conn_mgr_if_get_timeout()
215 conn_mgr_binding_unlock(binding); in conn_mgr_if_get_timeout()
222 struct conn_mgr_conn_binding *binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_set_timeout() local
224 if (!binding) { in conn_mgr_if_set_timeout()
228 conn_mgr_binding_lock(binding); in conn_mgr_if_set_timeout()
230 binding->timeout = timeout; in conn_mgr_if_set_timeout()
232 conn_mgr_binding_unlock(binding); in conn_mgr_if_set_timeout()
371 STRUCT_SECTION_FOREACH(conn_mgr_conn_binding, binding) { in conn_mgr_conn_init()
372 if (!(binding->impl->api)) { in conn_mgr_conn_init()
375 } else if (binding->impl->api->init) { in conn_mgr_conn_init()
376 conn_mgr_binding_lock(binding); in conn_mgr_conn_init()
378 /* Set initial default values for binding state */ in conn_mgr_conn_init()
380 binding->timeout = CONN_MGR_IF_NO_TIMEOUT; in conn_mgr_conn_init()
382 /* Call binding initializer */ in conn_mgr_conn_init()
384 binding->impl->api->init(binding); in conn_mgr_conn_init()
386 conn_mgr_binding_unlock(binding); in conn_mgr_conn_init()
400 STRUCT_SECTION_FOREACH(conn_mgr_conn_binding, binding) { in conn_mgr_conn_init()
401 if (binding->impl->api) { in conn_mgr_conn_init()
406 if (net_if_is_admin_up(binding->iface)) { in conn_mgr_conn_init()
407 conn_mgr_conn_handle_iface_admin_up(binding->iface); in conn_mgr_conn_init()