Lines Matching refs:peer

2304 struct bt_conn *bt_conn_create_br(const bt_addr_t *peer,  in bt_conn_create_br()  argument
2311 conn = bt_conn_lookup_addr_br(peer); in bt_conn_create_br()
2323 conn = bt_conn_add_br(peer); in bt_conn_create_br()
2338 memcpy(&cp->bdaddr, peer, sizeof(cp->bdaddr)); in bt_conn_create_br()
2355 struct bt_conn *bt_conn_lookup_addr_sco(const bt_addr_t *peer) in bt_conn_lookup_addr_sco() argument
2371 if (!bt_addr_eq(peer, &conn->sco.acl->br.dst)) { in bt_conn_lookup_addr_sco()
2382 struct bt_conn *bt_conn_lookup_addr_br(const bt_addr_t *peer) in bt_conn_lookup_addr_br() argument
2398 if (!bt_addr_eq(peer, &conn->br.dst)) { in bt_conn_lookup_addr_br()
2409 struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type) in bt_conn_add_sco() argument
2417 sco_conn->sco.acl = bt_conn_lookup_addr_br(peer); in bt_conn_add_sco()
2441 struct bt_conn *bt_conn_add_br(const bt_addr_t *peer) in bt_conn_add_br() argument
2449 bt_addr_copy(&conn->br.dst, peer); in bt_conn_add_br()
2750 bool bt_conn_exists_le(uint8_t id, const bt_addr_le_t *peer) in bt_conn_exists_le() argument
2752 struct bt_conn *conn = bt_conn_lookup_addr_le(id, peer); in bt_conn_exists_le()
2763 bt_addr_le_str(peer), state2str(conn->state)); in bt_conn_exists_le()
2771 struct bt_conn *bt_conn_add_le(uint8_t id, const bt_addr_le_t *peer) in bt_conn_add_le() argument
2780 bt_addr_le_copy(&conn->le.dst, peer); in bt_conn_add_le()
2796 const bt_addr_le_t *peer) in bt_conn_is_peer_addr_le() argument
2803 if (bt_addr_le_eq(peer, &conn->le.dst)) { in bt_conn_is_peer_addr_le()
2809 return bt_addr_le_eq(peer, &conn->le.resp_addr); in bt_conn_is_peer_addr_le()
2812 return bt_addr_le_eq(peer, &conn->le.init_addr); in bt_conn_is_peer_addr_le()
2815 struct bt_conn *bt_conn_lookup_addr_le(uint8_t id, const bt_addr_le_t *peer) in bt_conn_lookup_addr_le() argument
2831 if (!bt_conn_is_peer_addr_le(conn, id, peer)) { in bt_conn_lookup_addr_le()
2842 struct bt_conn *bt_conn_lookup_state_le(uint8_t id, const bt_addr_le_t *peer, in bt_conn_lookup_state_le() argument
2859 if (peer && !bt_conn_is_peer_addr_le(conn, id, peer)) { in bt_conn_lookup_state_le()
3647 static int conn_le_create_common_checks(const bt_addr_le_t *peer, in conn_le_create_common_checks() argument
3676 if (bt_conn_exists_le(BT_ID_DEFAULT, peer)) { in conn_le_create_common_checks()
3684 static struct bt_conn *conn_le_create_helper(const bt_addr_le_t *peer, in conn_le_create_helper() argument
3690 if (bt_addr_le_is_resolved(peer)) { in conn_le_create_helper()
3691 bt_addr_le_copy_resolved(&dst, peer); in conn_le_create_helper()
3693 bt_addr_le_copy(&dst, bt_lookup_id_addr(BT_ID_DEFAULT, peer)); in conn_le_create_helper()
3707 int bt_conn_le_create(const bt_addr_le_t *peer, const struct bt_conn_le_create_param *create_param, in bt_conn_le_create() argument
3730 err = conn_le_create_common_checks(peer, conn_param); in bt_conn_le_create()
3735 conn = conn_le_create_helper(peer, conn_param); in bt_conn_le_create()
3812 err = conn_le_create_common_checks(synced_param->peer, conn_param); in bt_conn_le_create_synced()
3829 conn = conn_le_create_helper(synced_param->peer, conn_param); in bt_conn_le_create_synced()