Lines Matching refs:sco_handle

56   uint16_t sco_handle;  member
76 static sco_socket_t *sco_socket_find_locked(uint16_t sco_handle);
78 static void connect_completed_cb(uint16_t sco_handle);
79 static void disconnect_completed_cb(uint16_t sco_handle);
118 BTM_RegForEScoEvts(sco_socket->sco_handle, connection_request_cb); in btsock_sco_listen()
154 …_t *)bd_addr, !is_listening, sco_parameters.packet_types, &sco_socket->sco_handle, connect_complet… in sco_socket_establish_locked()
186 sco_socket->sco_handle = BTM_INVALID_SCO_INDEX; in sco_socket_new()
196 if (sco_socket->sco_handle != BTM_INVALID_SCO_INDEX) in sco_socket_free_locked()
197 BTM_RemoveSco(sco_socket->sco_handle); in sco_socket_free_locked()
203 static sco_socket_t *sco_socket_find_locked(uint16_t sco_handle) { in sco_socket_find_locked() argument
206 if (sco_socket->sco_handle == sco_handle) in sco_socket_find_locked()
242 uint16_t temp = sco_socket->sco_handle; in connection_request_cb()
243 sco_socket->sco_handle = new_sco_socket->sco_handle; in connection_request_cb()
244 new_sco_socket->sco_handle = temp; in connection_request_cb()
257 BTM_RegForEScoEvts(listen_sco_socket->sco_handle, connection_request_cb); in connection_request_cb()
271 static void connect_completed_cb(uint16_t sco_handle) { in connect_completed_cb() argument
274 sco_socket_t *sco_socket = sco_socket_find_locked(sco_handle); in connect_completed_cb()
276 LOG_ERROR("%s SCO socket not found on connect for handle: %hu", __func__, sco_handle); in connect_completed_cb()
283 BTM_RemoveSco(sco_socket->sco_handle); in connect_completed_cb()
294 static void disconnect_completed_cb(uint16_t sco_handle) { in disconnect_completed_cb() argument
297 sco_socket_t *sco_socket = sco_socket_find_locked(sco_handle); in disconnect_completed_cb()
299 LOG_ERROR("%s SCO socket not found on disconnect for handle: %hu", __func__, sco_handle); in disconnect_completed_cb()
323 if (BTM_RemoveSco(sco_socket->sco_handle) == BTM_SUCCESS) in socket_read_ready_cb()