Lines Matching refs:scn
85 int scn; // Server channel number member
129 rfc_slots[i].scn = -1; in btsock_rfc_init()
222 slot->scn = channel; in alloc_rfc_slot()
250 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
364 BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr, in btsock_rfc_connect()
398 if (slot->scn == 0) { in create_server_sdp_record()
402 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn); in create_server_sdp_record()
407 if (slot->scn <= 0) return; in free_rfc_slot_scn()
414 if (slot->f.server) BTM_FreeSCN(slot->scn); in free_rfc_slot_scn()
415 slot->scn = 0; in free_rfc_slot_scn()
425 slot->tx_bytes, slot->rx_bytes, slot->app_uid, slot->scn, in cleanup_rfc_slot()
463 return sock_send_all(slot->fd, (const uint8_t*)&slot->scn, in send_app_scn()
464 sizeof(slot->scn)) == sizeof(slot->scn); in send_app_scn()
507 0, 0, slot->app_uid, slot->scn, in on_srv_rfc_listen_started()
529 accept_rs->app_uid, accept_rs->scn, in on_srv_rfc_connect()
538 send_app_connect_signal(srv_rs->fd, &accept_rs->addr, srv_rs->scn, 0, in on_srv_rfc_connect()
561 slot->app_uid, slot->scn, in on_cli_rfc_connect()
565 if (send_app_connect_signal(slot->fd, &slot->addr, slot->scn, 0, -1)) { in on_cli_rfc_connect()
583 slot->app_uid, slot->scn, in on_rfc_close()
681 int new_scn = p_data->scn; in jv_dm_cback()
684 rs->scn = new_scn; in jv_dm_cback()
712 BTA_JvRfcommStartServer(rs->security, rs->role, rs->scn, in jv_dm_cback()
718 "jv_dm_cback: Error: allocate channel %d, slot found:%p", rs->scn, in jv_dm_cback()
735 BTA_JvRfcommStartServer(slot->security, slot->role, slot->scn, in jv_dm_cback()
748 if (p_data->disc_comp.status == BTA_JV_SUCCESS && p_data->disc_comp.scn) { in jv_dm_cback()
753 p_data->disc_comp.scn, slot->addr, in jv_dm_cback()
755 slot->scn = p_data->disc_comp.scn; in jv_dm_cback()
868 __func__, slot->id, slot->scn); in btsock_rfc_signaled()
879 __func__, slot->id, slot->scn); in btsock_rfc_signaled()