Searched refs:scn (Results 1 - 20 of 20) sorted by relevance

/system/bt/bta/include/
H A Dbta_mce_api.h54 uint8_t scn; member in struct:__anon461
H A Dbta_jv_api.h178 int scn; /* channel # */ member in struct:__anon437
346 uint8_t scn; /* BTA_JV_GET_SCN_EVT */ member in union:__anon459
/system/bt/btif/src/
H A Dbtif_sock_rfc.cc81 int scn; // Server channel number member in struct:__anon675
121 rfc_slots[i].scn = -1;
215 slot->scn = channel;
243 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false);
356 BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr,
395 if (slot->scn == 0) {
399 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn);
404 if (slot->scn <= 0) return;
411 if (slot->f.server) BTM_FreeSCN(slot->scn);
412 slot->scn
[all...]
H A Dbtif_mce.cc61 insts[i].scn = evt_data->mas[i].scn;
/system/bt/bta/hf_client/
H A Dbta_hf_client_sdp.cc86 bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn, argument
108 proto_elem_list[1].params[0] = scn;
174 client_cb_arr->scn = BTM_AllocateSCN();
175 bta_hf_client_add_record(p_service_name, client_cb_arr->scn,
199 BTM_FreeSCN(client_cb->scn);
232 /* get scn from proto desc list if initiator */
H A Dbta_hf_client_rfc.cc178 BTM_SEC_PROTO_RFCOMM, bta_hf_client_cb_arr.scn);
181 UUID_SERVCLASS_HF_HANDSFREE, bta_hf_client_cb_arr.scn, true,
H A Dbta_hf_client_int.h172 uint8_t peer_scn; /* peer scn */
189 uint8_t scn; member in struct:__anon191
233 extern bool bta_hf_client_add_record(char* p_service_name, uint8_t scn,
/system/bt/btif/include/
H A Dbtif_sock_sdp.h47 int add_rfc_sdp_rec(const char* name, const uint8_t* uuid, int scn);
/system/bt/bta/ag/
H A Dbta_ag_sdp.cc122 bool bta_ag_add_record(uint16_t service_uuid, char* p_service_name, uint8_t scn, argument
144 proto_elem_list[1].params[0] = scn;
217 bta_ag_cb.profile[i].scn = BTM_AllocateSCN();
219 bta_ag_cb.profile[i].scn,
269 BTM_FreeSCN(bta_ag_cb.profile[i].scn);
321 /* get scn from proto desc list if initiator */
H A Dbta_ag_rfc.cc273 bta_ag_cb.profile[i].scn);
276 bta_ag_uuid[i], bta_ag_cb.profile[i].scn, true, BTA_AG_MTU,
H A Dbta_ag_int.h215 uint8_t scn; member in struct:__anon25
250 uint8_t peer_scn; /* peer scn */
339 uint8_t scn, tBTA_AG_FEAT features,
/system/bt/bta/jv/
H A Dbta_jv_act.cc280 "scn:%d, p_pcb:%p, user_data:%p",
281 p_pcb->state, p_cb->scn, p_pcb, p_pcb->rfcomm_slot_id);
287 "bta_jv_free_sr_rfc_cb: state: %d, scn:%d,"
289 p_pcb->state, p_cb->scn, p_pcb->rfcomm_slot_id);
296 "bta_jv_free_sr_rfc_cb: state: BTA_JV_ST_SR_LISTEN, scn:%d,"
298 p_cb->scn, p_pcb->rfcomm_slot_id);
303 "bta_jv_free_sr_rfc_cb: state: BTA_JV_ST_SR_OPEN, scn:%d,"
305 p_cb->scn, p_pcb->rfcomm_slot_id);
309 "bta_jv_free_sr_rfc_cb():failed, ignore port state:%d, scn:"
311 p_pcb->state, p_cb->scn, p_pc
706 uint8_t scn = 0; local
762 uint16_t scn = p_data->free_channel.scn; local
[all...]
H A Dbta_jv_int.h149 uint8_t scn; /* the scn of the server */ member in struct:__anon483
312 uint16_t scn; member in struct:__anon500
360 bool scn[BTA_JV_MAX_SCN]; /* SCN allocated by java */ member in struct:__anon503
H A Dbta_jv_api.cc195 p_msg->scn = channel;
/system/bt/stack/rfcomm/
H A Dport_api.cc93 * Parameters: scn - Service Channel Number as registered with
106 * Server can call this function with the same scn parameter multiple times if
109 * DLCI for the connection is (scn * 2 + 1) if client originates connection on
110 * existing none initiator multiplexer channel. Otherwise it is (scn * 2).
112 * (scn * 2 + 1) dlci.
115 int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server, argument
127 if ((scn == 0) || (scn >= PORT_MAX_RFC_PORTS)) {
136 dlci = (scn << 1) + 1;
138 dlci = (scn <<
[all...]
H A Dport_int.h152 uint8_t scn; /* Service channel number */ member in struct:__anon1234
/system/bt/bta/mce/
H A Dbta_mce_act.cc88 evt_data.mas[found].scn = pe.params[0];
/system/bt/stack/btm/
H A Dbtm_acl.cc1535 // stack reserves scn 1 for HFP, HSP we still do the correct way
1556 bool BTM_TryAllocateSCN(uint8_t scn) { argument
1558 * Stack reserves scn 1 for HFP, HSP we still do the correct way.
1560 if ((scn >= BTM_MAX_SCN) || (scn == 1)) return false;
1563 if (!btm_cb.btm_scn[scn - 1]) {
1564 btm_cb.btm_scn[scn - 1] = true;
1580 bool BTM_FreeSCN(uint8_t scn) { argument
1582 if (scn <= BTM_MAX_SCN) {
1583 btm_cb.btm_scn[scn
[all...]
/system/bt/stack/include/
H A Dbtm_api.h209 extern bool BTM_TryAllocateSCN(uint8_t scn);
220 extern bool BTM_FreeSCN(uint8_t scn);
H A Dport_api.h194 * Parameters: scn - Service Channel Number as registered with
207 * Server can call this function with the same scn parameter multiple times if
210 * DLCI for the connection is (scn * 2 + 1) if client originates connection on
211 * existing none initiator multiplexer channel. Otherwise it is (scn * 2).
213 * (scn * 2 + 1) dlci.
216 extern int RFCOMM_CreateConnection(uint16_t uuid, uint8_t scn, bool is_server,

Completed in 1166 milliseconds