Home
last modified time | relevance | path

Searched refs:rfc_cb (Results 1 – 15 of 15) sorted by relevance

/system/bt/stack/rfcomm/
Drfc_l2cap_if.cc63 tL2CAP_APPL_INFO* p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init()
75 L2CA_Register(BT_PSM_RFCOMM, rfc_cb.rfc.reg_info, true /* enable_snoop */, in rfcomm_l2cap_if_init()
260 uint8_t event = rfc_parse_data(p_mcb, &rfc_cb.rfc.rx_frame, p_buf); in RFCOMM_BufDataInd()
270 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) { in RFCOMM_BufDataInd()
286 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, rfc_cb.rfc.rx_frame.dlci); in RFCOMM_BufDataInd()
293 if ((p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) || in RFCOMM_BufDataInd()
294 (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) { in RFCOMM_BufDataInd()
298 rfc_send_dm(p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd()
304 p_port = port_find_dlci_port(rfc_cb.rfc.rx_frame.dlci); in RFCOMM_BufDataInd()
307 << +rfc_cb.rfc.rx_frame.dlci << ", lcid=" << loghex(lcid) in RFCOMM_BufDataInd()
[all …]
Drfc_utils.cc143 rfc_cb.port.rfc_mcb[i].state); in rfc_alloc_multiplexer_channel()
145 << rfc_cb.port.rfc_mcb[i].bd_addr; in rfc_alloc_multiplexer_channel()
147 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) && in rfc_alloc_multiplexer_channel()
148 rfc_cb.port.rfc_mcb[i].bd_addr == bd_addr) { in rfc_alloc_multiplexer_channel()
151 if (rfc_cb.port.rfc_mcb[i].state == RFC_MX_STATE_CONNECTED) in rfc_alloc_multiplexer_channel()
152 rfc_timer_stop(&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
156 is_initiator, rfc_cb.port.rfc_mcb[i].state, &rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
157 return (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
162 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) { in rfc_alloc_multiplexer_channel()
165 p_mcb = &rfc_cb.port.rfc_mcb[j]; in rfc_alloc_multiplexer_channel()
[all …]
Dport_api.cc269 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveConnection()
298 tPORT* p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveServer()
341 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback()
371 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag()
401 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCOCallback()
433 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventMask()
462 tPORT* p_port = &rfc_cb.port.port[handle - 1]; in PORT_CheckConnection()
498 for (auto& multiplexer_cb : rfc_cb.port.rfc_mcb) { in PORT_IsOpening()
509 for (tPORT& port : rfc_cb.port.port) { in PORT_IsOpening()
553 p_port = &rfc_cb.port.port[handle - 1]; in PORT_SetState()
[all …]
Dport_utils.cc65 uint8_t port_index = rfc_cb.rfc.last_port_index + static_cast<uint8_t>(1); in port_allocate_port()
72 tPORT* p_port = &rfc_cb.port.port[port_index]; in port_allocate_port()
84 rfc_cb.rfc.last_port_index = port_index; in port_allocate_port()
88 __func__, port_index, p_port, rfc_cb.rfc.last_port_index, in port_allocate_port()
285 for (tRFC_MCB& mcb : rfc_cb.port.rfc_mcb) { in port_find_mcb()
329 return &rfc_cb.port.port[handle - 1]; in port_find_mcb_dlci_port()
342 for (tPORT& port : rfc_cb.port.port) { in port_find_dlci_port()
365 for (tPORT& port : rfc_cb.port.port) { in port_find_port()
Drfc_mx_fsm.cc246 rfc_cb.port.port[handle - 1].dlci += 1; in rfc_mx_sm_state_wait_conn_cnf()
248 rfc_cb.port.port[handle - 1].dlci); in rfc_mx_sm_state_wait_conn_cnf()
589 rfc_cb.port.port[handle - 1].dlci += 1; in rfc_on_l2cap_error()
591 i, rfc_cb.port.port[handle - 1].dlci); in rfc_on_l2cap_error()
Dport_rfc.cc191 tPORT* p_port = &rfc_cb.port.port[0]; in PORT_StartCnf()
249 p_port = &rfc_cb.port.port[0]; in PORT_StartInd()
716 p_port = &rfc_cb.port.port[0]; in PORT_CloseInd()
739 p_port = &rfc_cb.port.port[0]; in Port_TimeOutCloseMux()
865 p_port = &rfc_cb.port.port[i]; in PORT_FlowInd()
Drfc_ts_frames.cc231 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
382 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc()
383 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc()
384 rfc_cb.rfc.rx_frame.type; in rfc_send_nsc()
636 MX_FRAME* p_rx_frame = &rfc_cb.rfc.rx_frame; in rfc_process_mx_message()
Drfc_port_if.cc37 tRFC_CB rfc_cb; variable
Drfc_port_fsm.cc854 rfc_cb.rfc.peer_rx_disabled = false; in rfc_process_fcon()
872 rfc_cb.rfc.peer_rx_disabled = true; in rfc_process_fcoff()
894 if (!rfc_cb.rfc.peer_rx_disabled) { in rfc_process_l2cap_congestion()
Drfc_int.h251 extern tRFC_CB rfc_cb;
/system/bt/bta/jv/
Dbta_jv_api.cc446 if (hi >= BTA_JV_MAX_RFC_CONN || !bta_jv_cb.rfc_cb[hi].p_cback || in BTA_JvRfcommClose()
447 si >= BTA_JV_MAX_RFC_SR_SESSION || !bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommClose()
526 bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommGetPortHdl()
527 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
550 if (hi >= BTA_JV_MAX_RFC_CONN || !bta_jv_cb.rfc_cb[hi].p_cback || in BTA_JvRfcommWrite()
551 si >= BTA_JV_MAX_RFC_SR_SESSION || !bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommWrite()
557 tBTA_JV_RFC_CB* p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommWrite()
Dbta_jv_act.cc93 if (bta_jv_cb.rfc_cb[i].handle) used++; in get_rfc_cb_used()
134 if (0 == bta_jv_cb.rfc_cb[i].handle) { in bta_jv_alloc_rfc_cb()
135 p_cb = &bta_jv_cb.rfc_cb[i]; in bta_jv_alloc_rfc_cb()
200 if (handle) p_cb = &bta_jv_cb.rfc_cb[handle - 1]; in bta_jv_rfc_port_to_cb()
398 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in bta_jv_free_set_pm_profile_cb()
400 bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in bta_jv_free_set_pm_profile_cb()
402 bta_jv_rfc_port_to_pcb(bta_jv_cb.rfc_cb[hi].rfc_hdl[si]); in bta_jv_free_set_pm_profile_cb()
1341 *cb = &bta_jv_cb.rfc_cb[rfc_handle - 1]; in find_rfc_pcb()
Dbta_jv_int.h116 tBTA_JV_RFC_CB rfc_cb[BTA_JV_MAX_RFC_CONN]; member
/system/bt/internal_include/
Dbt_trace.h355 if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) \
360 if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) \
365 if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) \
370 if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) \
375 if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) \
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test.cc458 rfc_cb.trace_level = BT_TRACE_LEVEL_DEBUG; in SetUp()