Home
last modified time | relevance | path

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

/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/
Drfc_utils.c143 i, rfc_cb.port.rfc_mcb[i].state); in rfc_alloc_multiplexer_channel()
145 rfc_cb.port.rfc_mcb[i].bd_addr[0], rfc_cb.port.rfc_mcb[i].bd_addr[1], in rfc_alloc_multiplexer_channel()
146 rfc_cb.port.rfc_mcb[i].bd_addr[2], rfc_cb.port.rfc_mcb[i].bd_addr[3], in rfc_alloc_multiplexer_channel()
147 rfc_cb.port.rfc_mcb[i].bd_addr[4], rfc_cb.port.rfc_mcb[i].bd_addr[5]); in rfc_alloc_multiplexer_channel()
149 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in rfc_alloc_multiplexer_channel()
150 && (!memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN))) { in rfc_alloc_multiplexer_channel()
153 if (rfc_cb.port.rfc_mcb[i].state == RFC_MX_STATE_CONNECTED) { in rfc_alloc_multiplexer_channel()
154 rfc_timer_stop (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
157 is_initiator, rfc_cb.port.rfc_mcb[i].state, &rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
158 return (&rfc_cb.port.rfc_mcb[i]); in rfc_alloc_multiplexer_channel()
[all …]
Drfc_l2cap_if.c73 tL2CAP_APPL_INFO *p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init()
131 tL2CAP_ERTM_INFO *ertm_opt = rfc_cb.port.enable_l2cap_ertm ? &rfc_l2c_etm_opt : NULL; in RFCOMM_ConnectInd()
182 rfc_cb.port.port[idx - 1].dlci += 1; in RFCOMM_ConnectCnf()
183 … RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in RFCOMM_ConnectCnf()
192 tL2CAP_ERTM_INFO *ertm_opt = rfc_cb.port.enable_l2cap_ertm ? &rfc_l2c_etm_opt : NULL; in RFCOMM_ConnectCnf()
313 event = rfc_parse_data (p_mcb, &rfc_cb.rfc.rx_frame, p_buf); in RFCOMM_BufDataInd()
321 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) { in RFCOMM_BufDataInd()
335 if (((p_port = port_find_mcb_dlci_port (p_mcb, rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd()
339 if (( p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) in RFCOMM_BufDataInd()
340 || (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) { in RFCOMM_BufDataInd()
[all …]
Dport_api.c242 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveConnection()
276 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveServer()
319 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback()
350 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag()
379 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCallback()
413 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCOCallback()
447 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventMask()
483 p_port = &rfc_cb.port.port[handle - 1]; in PORT_CheckConnection()
522 if ((rfc_cb.port.rfc_mcb[xx].state > RFC_MX_STATE_IDLE) && in PORT_IsOpening()
523 (rfc_cb.port.rfc_mcb[xx].state < RFC_MX_STATE_CONNECTED)) { in PORT_IsOpening()
[all …]
Dport_utils.c66 tPORT *p_port = &rfc_cb.port.port[0]; in port_allocate_port()
69 for (xx = 0, yy = rfc_cb.rfc.last_port + 1; xx < MAX_RFC_PORTS; xx++, yy++) { in port_allocate_port()
74 p_port = &rfc_cb.port.port[yy]; in port_allocate_port()
87 rfc_cb.rfc.last_port = yy; in port_allocate_port()
88 …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()
290 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in port_find_mcb()
291 && !memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN)) { in port_find_mcb()
296 i, &rfc_cb.port.rfc_mcb[i], rfc_cb.port.rfc_mcb[i].lcid); in port_find_mcb()
297 return (&rfc_cb.port.rfc_mcb[i]); in port_find_mcb()
335 return (&rfc_cb.port.port[inx - 1]); in port_find_mcb_dlci_port()
[all …]
Drfc_mx_fsm.c149 ertm_opt = rfc_cb.port.enable_l2cap_ertm ? &rfc_l2c_etm_opt : NULL; in rfc_mx_sm_state_idle()
172 ertm_opt = rfc_cb.port.enable_l2cap_ertm ? &rfc_l2c_etm_opt : NULL; in rfc_mx_sm_state_idle()
261 rfc_cb.port.port[idx - 1].dlci += 1; in rfc_mx_sm_state_wait_conn_cnf()
262 … RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in rfc_mx_sm_state_wait_conn_cnf()
510 tL2CAP_ERTM_INFO *ertm_opt = rfc_cb.port.enable_l2cap_ertm ? &rfc_l2c_etm_opt : NULL; in rfc_mx_sm_state_disc_wait_ua()
586 if (rfc_cb.port.enable_l2cap_ertm) { in rfc_mx_send_config_req()
Drfc_ts_frames.c259 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
442 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc()
443 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc()
444 rfc_cb.rfc.rx_frame.type; in rfc_send_nsc()
531 p_port = &rfc_cb.port.port[i]; in rfc_bqb_send_msc_cmd()
747 MX_FRAME *p_rx_frame = &rfc_cb.rfc.rx_frame; in rfc_process_mx_message()
Dport_rfc.c206 p_port = &rfc_cb.port.port[0]; in PORT_StartCnf()
266 p_port = &rfc_cb.port.port[0]; in PORT_StartInd()
802 p_port = &rfc_cb.port.port[0]; in PORT_CloseInd()
826 p_port = &rfc_cb.port.port[0]; in Port_TimeOutCloseMux()
963 p_port = &rfc_cb.port.port[i]; in PORT_FlowInd()
Drfc_port_fsm.c811 rfc_cb.rfc.peer_rx_disabled = FALSE; in rfc_process_fcon()
832 rfc_cb.rfc.peer_rx_disabled = TRUE; in rfc_process_fcoff()
858 if (!rfc_cb.rfc.peer_rx_disabled) { in rfc_process_l2cap_congestion()
Drfc_port_if.c38 tRFC_CB rfc_cb; variable
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/
Dbta_jv_api.c955 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommClose()
956 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si] && in BTA_JvRfcommClose()
960 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommClose()
1062 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommRead()
1063 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si] && in BTA_JvRfcommRead()
1070 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommRead()
1095 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommGetPortHdl()
1096 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
1122 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommReady()
1123 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in BTA_JvRfcommReady()
[all …]
Dbta_jv_act.c171 if (bta_jv_cb.rfc_cb[i].handle ) { in get_rfc_cb_used()
218 if (0 == bta_jv_cb.rfc_cb[i].handle ) { in bta_jv_alloc_rfc_cb()
219 p_cb = &bta_jv_cb.rfc_cb[i]; in bta_jv_alloc_rfc_cb()
288 p_cb = &bta_jv_cb.rfc_cb[handle - 1]; in bta_jv_rfc_port_to_cb()
541 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && si in bta_jv_free_set_pm_profile_cb()
542 < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) { in bta_jv_free_set_pm_profile_cb()
543 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()
1916 *cb = &bta_jv_cb.rfc_cb[rfc_handle - 1]; in find_rfc_pcb()
/hal_espressif-latest/components/bt/host/bluedroid/common/include/common/
Dbt_trace.h244 #define RFCOMM_TRACE_ERROR(fmt, args...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR && BT_L…
245 #define RFCOMM_TRACE_WARNING(fmt, args...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING && BT…
246 #define RFCOMM_TRACE_API(fmt, args...) {if (rfc_cb.trace_level >=BT_TRACE_LEVEL_API && BT_LOG_…
247 #define RFCOMM_TRACE_EVENT(fmt, args...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT && BT_L…
248 #define RFCOMM_TRACE_DEBUG(fmt, args...) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG && BT_L…
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/include/
Drfc_int.h228 extern tRFC_CB rfc_cb;
231 #define rfc_cb (*rfc_cb_ptr) macro
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/include/
Dbta_jv_int.h425 tBTA_JV_RFC_CB rfc_cb[BTA_JV_MAX_RFC_CONN]; member