Lines Matching refs:role
36 struct bt_mesh_proxy_role *role; member
51 if (!servers[i].role) { in find_proxy_srv()
70 if (!servers[i].role || in find_proxy_srv_by_conn()
71 servers[i].role->conn != conn) { in find_proxy_srv_by_conn()
93 if (bt_mesh_proxy_relay_send(server->role->conn, adv)) { in bt_mesh_proxy_cli_relay()
103 static void proxy_msg_recv(struct bt_mesh_proxy_role *role) in proxy_msg_recv() argument
105 switch (role->msg_type) { in proxy_msg_recv()
108 bt_mesh_net_recv(&role->buf, 0, BT_MESH_NET_IF_PROXY); in proxy_msg_recv()
112 bt_mesh_beacon_recv(&role->buf); in proxy_msg_recv()
119 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
128 srv->role = bt_mesh_proxy_role_setup(conn, bt_mesh_gatt_send, in proxy_connected()
143 bt_mesh_proxy_role_cleanup(srv->role); in proxy_disconnected()
145 srv->role = NULL; in proxy_disconnected()
167 if (srv->role) { in proxy_srv_check_and_get()
347 if (!srv->role) { in bt_mesh_proxy_disconnect()
351 return bt_conn_disconnect(srv->role->conn, in bt_mesh_proxy_disconnect()
364 if (!servers[i].role) { in bt_mesh_proxy_disconnect()
368 err = bt_conn_disconnect(servers[i].role->conn, in bt_mesh_proxy_disconnect()