Lines Matching refs:sco_handle
62 uint16_t sco_handle; member
72 static sco_socket_t* sco_socket_find_locked(uint16_t sco_handle);
75 static void connect_completed_cb(uint16_t sco_handle);
76 static void disconnect_completed_cb(uint16_t sco_handle);
113 BTM_RegForEScoEvts(sco_socket->sco_handle, connection_request_cb); in btsock_sco_listen()
154 &sco_socket->sco_handle, connect_completed_cb, 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
207 if (sco_socket->sco_handle == sco_handle) return sco_socket; in sco_socket_find_locked()
249 temp = sco_socket->sco_handle; in connection_request_cb()
250 sco_socket->sco_handle = new_sco_socket->sco_handle; in connection_request_cb()
251 new_sco_socket->sco_handle = temp; in connection_request_cb()
268 BTM_RegForEScoEvts(listen_sco_socket->sco_handle, connection_request_cb); in connection_request_cb()
278 static void connect_completed_cb(uint16_t sco_handle) { in connect_completed_cb() argument
281 sco_socket_t* sco_socket = sco_socket_find_locked(sco_handle); in connect_completed_cb()
284 __func__, sco_handle); in connect_completed_cb()
292 BTM_RemoveSco(sco_socket->sco_handle); in connect_completed_cb()
300 static void disconnect_completed_cb(uint16_t sco_handle) { in disconnect_completed_cb() argument
303 sco_socket_t* sco_socket = sco_socket_find_locked(sco_handle); in disconnect_completed_cb()
306 __func__, sco_handle); in disconnect_completed_cb()
327 if (BTM_RemoveSco(sco_socket->sco_handle) == BTM_SUCCESS) in socket_read_ready_cb()