Home
last modified time | relevance | path

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

/system/bt/stack/rfcomm/
Drfc_utils.c146 i, rfc_cb.port.rfc_mcb[i].state); in rfc_alloc_multiplexer_channel()
148rfc_cb.port.rfc_mcb[i].bd_addr[0], rfc_cb.port.rfc_mcb[i].bd_addr[1], in rfc_alloc_multiplexer_channel()
149rfc_cb.port.rfc_mcb[i].bd_addr[2], rfc_cb.port.rfc_mcb[i].bd_addr[3], in rfc_alloc_multiplexer_channel()
150rfc_cb.port.rfc_mcb[i].bd_addr[4], rfc_cb.port.rfc_mcb[i].bd_addr[5]); in rfc_alloc_multiplexer_channel()
152 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in rfc_alloc_multiplexer_channel()
153 && (!memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN))) in rfc_alloc_multiplexer_channel()
157 if (rfc_cb.port.rfc_mcb[i].state == RFC_MX_STATE_CONNECTED) in rfc_alloc_multiplexer_channel()
158 rfc_timer_stop (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
160 … is_initiator, rfc_cb.port.rfc_mcb[i].state, &rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
161 return (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
[all …]
Drfc_l2cap_if.c63 tL2CAP_APPL_INFO *p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init()
183 rfc_cb.port.port[idx - 1].dlci += 1; in RFCOMM_ConnectCnf()
184 … RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in RFCOMM_ConnectCnf()
320 event = rfc_parse_data (p_mcb, &rfc_cb.rfc.rx_frame, p_buf); in RFCOMM_BufDataInd()
329 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) in RFCOMM_BufDataInd()
345 if (((p_port = port_find_mcb_dlci_port (p_mcb, rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd()
351 if (( p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) in RFCOMM_BufDataInd()
352 || (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) in RFCOMM_BufDataInd()
353 rfc_send_dm (p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd()
358 if ((p_port = port_find_dlci_port (rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd()
[all …]
Dport_api.c257 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveConnection()
293 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveServer()
338 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_SetDataCallback()
437 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCOCallback()
471 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventMask()
507 p_port = &rfc_cb.port.port[handle - 1]; in PORT_CheckConnection()
549 if ((rfc_cb.port.rfc_mcb[xx].state > RFC_MX_STATE_IDLE) && in PORT_IsOpening()
550 (rfc_cb.port.rfc_mcb[xx].state < RFC_MX_STATE_CONNECTED)) in PORT_IsOpening()
[all …]
Dport_utils.c67 tPORT *p_port = &rfc_cb.port.port[0]; in port_allocate_port()
70 for (xx = 0, yy = rfc_cb.rfc.last_port + 1; xx < MAX_RFC_PORTS; xx++, yy++) in port_allocate_port()
75 p_port = &rfc_cb.port.port[yy]; in port_allocate_port()
87 rfc_cb.rfc.last_port = yy; in port_allocate_port()
92 …M_TRACE_DEBUG("rfc_cb.port.port[%d]:%p allocated, last_port:%d", yy, p_port, rfc_cb.rfc.last_port); in port_allocate_port()
293 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in port_find_mcb()
294 && !memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN)) in port_find_mcb()
300 i, &rfc_cb.port.rfc_mcb[i], rfc_cb.port.rfc_mcb[i].lcid); in port_find_mcb()
301 return (&rfc_cb.port.rfc_mcb[i]); in port_find_mcb()
339 return (&rfc_cb.port.port[inx - 1]); in port_find_mcb_dlci_port()
[all …]
Dport_rfc.c210 p_port = &rfc_cb.port.port[0]; in PORT_StartCnf()
270 p_port = &rfc_cb.port.port[0]; in PORT_StartInd()
784 p_port = &rfc_cb.port.port[0]; in PORT_CloseInd()
810 p_port = &rfc_cb.port.port[0]; in Port_TimeOutCloseMux()
955 p_port = &rfc_cb.port.port[i]; in PORT_FlowInd()
Drfc_ts_frames.c240 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
402 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc()
403 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc()
404 rfc_cb.rfc.rx_frame.type; in rfc_send_nsc()
668 MX_FRAME *p_rx_frame = &rfc_cb.rfc.rx_frame; in rfc_process_mx_message()
Drfc_int.h236 extern tRFC_CB rfc_cb;
239 #define rfc_cb (*rfc_cb_ptr) macro
Drfc_mx_fsm.c241 rfc_cb.port.port[idx - 1].dlci += 1; in rfc_mx_sm_state_wait_conn_cnf()
242 … RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in rfc_mx_sm_state_wait_conn_cnf()
Drfc_port_fsm.c830 rfc_cb.rfc.peer_rx_disabled = FALSE; in rfc_process_fcon()
851 rfc_cb.rfc.peer_rx_disabled = TRUE; in rfc_process_fcoff()
877 if (!rfc_cb.rfc.peer_rx_disabled) in rfc_process_l2cap_congestion()
Drfc_port_if.c37 tRFC_CB rfc_cb; variable
/system/bt/bta/jv/
Dbta_jv_api.c812 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommClose()
813 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommClose()
818 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommClose()
918 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommGetPortHdl()
919 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
943 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommWrite()
944 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommWrite()
950 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommWrite()
Dbta_jv_act.c149 if(bta_jv_cb.rfc_cb[i].handle ) in get_rfc_cb_used()
194 if (0 == bta_jv_cb.rfc_cb[i].handle ) in bta_jv_alloc_rfc_cb()
196 p_cb = &bta_jv_cb.rfc_cb[i]; in bta_jv_alloc_rfc_cb()
267 p_cb = &bta_jv_cb.rfc_cb[handle - 1]; in bta_jv_rfc_port_to_cb()
477 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && si in bta_jv_free_set_pm_profile_cb()
478 < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in bta_jv_free_set_pm_profile_cb()
480 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(bta_jv_cb.rfc_cb[hi].rfc_hdl[si]); in bta_jv_free_set_pm_profile_cb()
1654 *cb = &bta_jv_cb.rfc_cb[rfc_handle - 1]; in find_rfc_pcb()
Dbta_jv_int.h380 tBTA_JV_RFC_CB rfc_cb[BTA_JV_MAX_RFC_CONN]; member
/system/bt/include/
Dbt_trace.h259 #define RFCOMM_TRACE_ERROR(...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) B…
260 #define RFCOMM_TRACE_WARNING(...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING)…
261 #define RFCOMM_TRACE_API(...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_…
262 #define RFCOMM_TRACE_EVENT(...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) B…
263 #define RFCOMM_TRACE_DEBUG(...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) B…