Lines Matching refs:peer
89 classic_peer_t *peer = hash_map_get(peers_by_address, address); in classic_peer_by_address() local
91 if (!peer) { in classic_peer_by_address()
95 peer = hash_map_get(peers_by_address, address); in classic_peer_by_address()
96 if (peer) in classic_peer_by_address()
100 peer = osi_calloc(sizeof(classic_peer_t)); in classic_peer_by_address()
101 peer->address = *address; in classic_peer_by_address()
102 hash_map_set(peers_by_address, &peer->address, peer); in classic_peer_by_address()
108 return peer; in classic_peer_by_address()
111 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer) { in classic_peer_get_address() argument
112 assert(peer != NULL); in classic_peer_get_address()
113 return &peer->address; in classic_peer_get_address()