/external/bluetooth/bluedroid/stack/rfcomm/ |
D | rfc_utils.c | 143 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() 154 if (rfc_cb.port.rfc_mcb[i].state == RFC_MX_STATE_CONNECTED) in rfc_alloc_multiplexer_channel() 155 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 …]
|
D | rfc_l2cap_if.c | 59 tL2CAP_APPL_INFO *p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init() 178 rfc_cb.port.port[idx - 1].dlci += 1; in RFCOMM_ConnectCnf() 179 … RFCOMM_TRACE_DEBUG2 ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in RFCOMM_ConnectCnf() 314 event = rfc_parse_data (p_mcb, &rfc_cb.rfc.rx_frame, p_buf); in RFCOMM_BufDataInd() 323 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) in RFCOMM_BufDataInd() 339 if (((p_port = port_find_mcb_dlci_port (p_mcb, rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd() 345 if (( p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) in RFCOMM_BufDataInd() 346 || (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) in RFCOMM_BufDataInd() 347 rfc_send_dm (p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd() 352 if ((p_port = port_find_dlci_port (rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd() [all …]
|
D | port_api.c | 220 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveConnection() 256 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveServer() 301 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback() 334 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag() 364 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCallback() 400 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetDataCOCallback() 436 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventMask() 473 p_port = &rfc_cb.port.port[handle - 1]; in PORT_CheckConnection() 515 if ((rfc_cb.port.rfc_mcb[xx].state > RFC_MX_STATE_IDLE) && in PORT_IsOpening() 516 (rfc_cb.port.rfc_mcb[xx].state < RFC_MX_STATE_CONNECTED)) in PORT_IsOpening() [all …]
|
D | port_utils.c | 65 tPORT *p_port = &rfc_cb.port.port[0]; in port_allocate_port() 68 for (xx = 0, yy = rfc_cb.rfc.last_port + 1; xx < MAX_RFC_PORTS; xx++, yy++) in port_allocate_port() 73 p_port = &rfc_cb.port.port[yy]; in port_allocate_port() 87 rfc_cb.rfc.last_port = yy; in port_allocate_port() 88 …_TRACE_DEBUG3("rfc_cb.port.port[%d]:%p allocated, last_port:%d", yy, p_port, rfc_cb.rfc.last_port); in port_allocate_port() 288 if ((rfc_cb.port.rfc_mcb[i].state != RFC_MX_STATE_IDLE) in port_find_mcb() 289 && !memcmp (rfc_cb.port.rfc_mcb[i].bd_addr, bd_addr, BD_ADDR_LEN)) in port_find_mcb() 295 i, &rfc_cb.port.rfc_mcb[i], rfc_cb.port.rfc_mcb[i].lcid); in port_find_mcb() 296 return (&rfc_cb.port.rfc_mcb[i]); in port_find_mcb() 334 return (&rfc_cb.port.port[inx - 1]); in port_find_mcb_dlci_port() [all …]
|
D | rfc_ts_frames.c | 254 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn() 431 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc() 432 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc() 433 rfc_cb.rfc.rx_frame.type; in rfc_send_nsc() 700 MX_FRAME *p_rx_frame = &rfc_cb.rfc.rx_frame; in rfc_process_mx_message()
|
D | port_rfc.c | 207 p_port = &rfc_cb.port.port[0]; in PORT_StartCnf() 268 p_port = &rfc_cb.port.port[0]; in PORT_StartInd() 780 p_port = &rfc_cb.port.port[0]; in PORT_CloseInd() 806 p_port = &rfc_cb.port.port[0]; in Port_TimeOutCloseMux() 951 p_port = &rfc_cb.port.port[i]; in PORT_FlowInd()
|
D | rfc_mx_fsm.c | 237 rfc_cb.port.port[idx - 1].dlci += 1; in rfc_mx_sm_state_wait_conn_cnf() 238 … RFCOMM_TRACE_DEBUG2 ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in rfc_mx_sm_state_wait_conn_cnf()
|
D | rfc_int.h | 238 RFC_API extern tRFC_CB rfc_cb; 241 #define rfc_cb (*rfc_cb_ptr) macro
|
D | rfc_port_fsm.c | 827 rfc_cb.rfc.peer_rx_disabled = FALSE; in rfc_process_fcon() 848 rfc_cb.rfc.peer_rx_disabled = TRUE; in rfc_process_fcoff() 874 if (!rfc_cb.rfc.peer_rx_disabled) in rfc_process_l2cap_congestion()
|
D | rfc_port_if.c | 37 tRFC_CB rfc_cb; variable
|
/external/bluetooth/bluedroid/bta/jv/ |
D | bta_jv_api.c | 1378 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommClose() 1379 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si] && in BTA_JvRfcommClose() 1384 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommClose() 1488 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommRead() 1489 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si] && in BTA_JvRfcommRead() 1497 p_msg->p_cb = &bta_jv_cb.rfc_cb[hi]; in BTA_JvRfcommRead() 1522 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommGetPortHdl() 1523 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl() 1548 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && in BTA_JvRfcommReady() 1549 si < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in BTA_JvRfcommReady() [all …]
|
D | bta_jv_act.c | 51 tBTA_JV_RFC_CB *p_cb = &bta_jv_cb.rfc_cb[__hi]; \ 148 if(bta_jv_cb.rfc_cb[i].handle ) in get_rfc_cb_used() 193 if (0 == bta_jv_cb.rfc_cb[i].handle ) in bta_jv_alloc_rfc_cb() 195 p_cb = &bta_jv_cb.rfc_cb[i]; in bta_jv_alloc_rfc_cb() 266 p_cb = &bta_jv_cb.rfc_cb[handle - 1]; in bta_jv_rfc_port_to_cb() 468 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && si in bta_jv_free_set_pm_profile_cb() 469 < BTA_JV_MAX_RFC_SR_SESSION && bta_jv_cb.rfc_cb[hi].rfc_hdl[si]) in bta_jv_free_set_pm_profile_cb() 471 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() 772 bta_jv_free_rfc_cb(&bta_jv_cb.rfc_cb[i]); in bta_jv_disable() 2155 *cb = &bta_jv_cb.rfc_cb[rfc_handle - 1]; in find_rfc_pcb()
|
D | bta_jv_int.h | 444 tBTA_JV_RFC_CB rfc_cb[BTA_JV_MAX_RFC_CONN]; member
|
/external/bluetooth/bluedroid/include/ |
D | bt_trace.h | 856 #define RFCOMM_TRACE_ERROR0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 857 #define RFCOMM_TRACE_ERROR1(m,p1) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 858 #define RFCOMM_TRACE_ERROR2(m,p1,p2) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 859 #define RFCOMM_TRACE_ERROR3(m,p1,p2,p3) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 860 #define RFCOMM_TRACE_ERROR4(m,p1,p2,p3,p4) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 861 #define RFCOMM_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 862 #define RFCOMM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 864 #define RFCOMM_TRACE_WARNING0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNIN… 865 #define RFCOMM_TRACE_WARNING1(m,p1) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNIN… 866 #define RFCOMM_TRACE_WARNING2(m,p1,p2) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNIN… [all …]
|
/external/libnfc-nci/src/include/ |
D | bt_trace.h | 815 #define RFCOMM_TRACE_ERROR0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 816 #define RFCOMM_TRACE_ERROR1(m,p1) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 817 #define RFCOMM_TRACE_ERROR2(m,p1,p2) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 818 #define RFCOMM_TRACE_ERROR3(m,p1,p2,p3) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 819 #define RFCOMM_TRACE_ERROR4(m,p1,p2,p3,p4) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 820 #define RFCOMM_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 821 #define RFCOMM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR)… 823 #define RFCOMM_TRACE_WARNING0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNIN… 824 #define RFCOMM_TRACE_WARNING1(m,p1) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNIN… 825 #define RFCOMM_TRACE_WARNING2(m,p1,p2) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNIN… [all …]
|