Lines Matching refs:servers
39 } servers[CONFIG_BT_MAX_CONN] = { variable
50 for (int i = 0; i < ARRAY_SIZE(servers); i++) { in find_proxy_srv()
51 if (!servers[i].role) { in find_proxy_srv()
59 if (servers[i].net_idx == net_idx) { in find_proxy_srv()
60 return &servers[i]; in find_proxy_srv()
69 for (int i = 0; i < ARRAY_SIZE(servers); i++) { in find_proxy_srv_by_conn()
70 if (!servers[i].role || in find_proxy_srv_by_conn()
71 servers[i].role->conn != conn) { in find_proxy_srv_by_conn()
75 return &servers[i]; in find_proxy_srv_by_conn()
86 for (i = 0; i < ARRAY_SIZE(servers); i++) { in bt_mesh_proxy_cli_relay()
87 struct bt_mesh_proxy_server *server = &servers[i]; in bt_mesh_proxy_cli_relay()
284 for (int i = 0; i < ARRAY_SIZE(servers); i++) { in bt_mesh_proxy_disconnect()
285 servers[i].net_idx = BT_MESH_KEY_UNUSED; in bt_mesh_proxy_disconnect()
287 if (!servers[i].role) { in bt_mesh_proxy_disconnect()
291 err = bt_conn_disconnect(servers[i].role->conn, in bt_mesh_proxy_disconnect()