Lines Matching refs:net_idx
38 uint16_t net_idx; member
41 .net_idx = BT_MESH_KEY_UNUSED,
47 static struct bt_mesh_proxy_server *find_proxy_srv(uint16_t net_idx, in find_proxy_srv() argument
59 if (servers[i].net_idx == net_idx) { in find_proxy_srv()
165 srv = find_proxy_srv(sub->net_idx, true, true); in proxy_srv_check_and_get()
305 int bt_mesh_proxy_connect(uint16_t net_idx) in bt_mesh_proxy_connect() argument
309 if (net_idx == BT_MESH_KEY_ANY) { in bt_mesh_proxy_connect()
319 srv = find_proxy_srv(net_idx, true, true); in bt_mesh_proxy_connect()
329 srv->net_idx = net_idx; in bt_mesh_proxy_connect()
334 int bt_mesh_proxy_disconnect(uint16_t net_idx) in bt_mesh_proxy_disconnect() argument
339 if (net_idx != BT_MESH_KEY_ANY) { in bt_mesh_proxy_disconnect()
340 srv = find_proxy_srv(net_idx, true, true); in bt_mesh_proxy_disconnect()
345 srv->net_idx = BT_MESH_KEY_UNUSED; in bt_mesh_proxy_disconnect()
362 servers[i].net_idx = BT_MESH_KEY_UNUSED; in bt_mesh_proxy_disconnect()
382 (void)bt_mesh_proxy_disconnect(sub->net_idx); in subnet_evt()
394 bool bt_mesh_proxy_cli_is_connected(uint16_t net_idx) in bt_mesh_proxy_cli_is_connected() argument
396 if (find_proxy_srv(net_idx, true, false)) { in bt_mesh_proxy_cli_is_connected()