Lines Matching refs:sco_handle

59   uint16_t sco_handle;  member
79 static sco_socket_t *sco_socket_find_locked(uint16_t sco_handle);
81 static void connect_completed_cb(uint16_t sco_handle);
82 static void disconnect_completed_cb(uint16_t sco_handle);
121 BTM_RegForEScoEvts(sco_socket->sco_handle, connection_request_cb); in btsock_sco_listen()
157 …_t *)bd_addr, !is_listening, sco_parameters.packet_types, &sco_socket->sco_handle, connect_complet… in sco_socket_establish_locked()
188 sco_socket->sco_handle = BTM_INVALID_SCO_INDEX; in sco_socket_new()
198 if (sco_socket->sco_handle != BTM_INVALID_SCO_INDEX) in sco_socket_free_locked()
199 BTM_RemoveSco(sco_socket->sco_handle); in sco_socket_free_locked()
205 static sco_socket_t *sco_socket_find_locked(uint16_t sco_handle) { in sco_socket_find_locked() argument
208 if (sco_socket->sco_handle == sco_handle) in sco_socket_find_locked()
244 uint16_t temp = sco_socket->sco_handle; in connection_request_cb()
245 sco_socket->sco_handle = new_sco_socket->sco_handle; in connection_request_cb()
246 new_sco_socket->sco_handle = temp; in connection_request_cb()
259 BTM_RegForEScoEvts(listen_sco_socket->sco_handle, connection_request_cb); in connection_request_cb()
273 static void connect_completed_cb(uint16_t sco_handle) { in connect_completed_cb() argument
276 sco_socket_t *sco_socket = sco_socket_find_locked(sco_handle); in connect_completed_cb()
278 LOG_ERROR(LOG_TAG, "%s SCO socket not found on connect for handle: %hu", __func__, sco_handle); in connect_completed_cb()
285 BTM_RemoveSco(sco_socket->sco_handle); in connect_completed_cb()
296 static void disconnect_completed_cb(uint16_t sco_handle) { in disconnect_completed_cb() argument
299 sco_socket_t *sco_socket = sco_socket_find_locked(sco_handle); in disconnect_completed_cb()
301 … LOG_ERROR(LOG_TAG, "%s SCO socket not found on disconnect for handle: %hu", __func__, sco_handle); in disconnect_completed_cb()
325 if (BTM_RemoveSco(sco_socket->sco_handle) == BTM_SUCCESS) in socket_read_ready_cb()