/system/bt/stack/rfcomm/ |
D | rfc_port_fsm.cc | 78 << ", STATE=" << std::to_string(p_port->rfc.state) in rfc_port_sm_execute() 80 switch (p_port->rfc.state) { in rfc_port_sm_execute() 121 p_port->rfc.state = RFC_STATE_ORIG_WAIT_SEC_CHECK; in rfc_port_sm_state_closed() 123 p_port->rfc.p_mcb->bd_addr, BT_PSM_RFCOMM, true, BTM_SEC_PROTO_RFCOMM, in rfc_port_sm_state_closed() 140 rfc_timer_stop(p_port->rfc.p_mcb); in rfc_port_sm_state_closed() 143 p_port->rfc.state = RFC_STATE_TERM_WAIT_SEC_CHECK; in rfc_port_sm_state_closed() 144 btm_sec_mx_access_request(p_port->rfc.p_mcb->bd_addr, BT_PSM_RFCOMM, in rfc_port_sm_state_closed() 161 rfc_send_dm(p_port->rfc.p_mcb, p_port->dlci, false); in rfc_port_sm_state_closed() 165 rfc_send_dm(p_port->rfc.p_mcb, p_port->dlci, false); in rfc_port_sm_state_closed() 169 Port_TimeOutCloseMux(p_port->rfc.p_mcb); in rfc_port_sm_state_closed() [all …]
|
D | rfc_l2cap_if.cc | 63 tL2CAP_APPL_INFO* p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init() 294 uint8_t event = rfc_parse_data(p_mcb, &rfc_cb.rfc.rx_frame, p_buf); in RFCOMM_BufDataInd() 304 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) { in RFCOMM_BufDataInd() 320 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, rfc_cb.rfc.rx_frame.dlci); in RFCOMM_BufDataInd() 321 if (p_port == nullptr || !p_port->rfc.p_mcb) { in RFCOMM_BufDataInd() 327 if ((p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) || in RFCOMM_BufDataInd() 328 (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) { in RFCOMM_BufDataInd() 332 rfc_send_dm(p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd() 338 p_port = port_find_dlci_port(rfc_cb.rfc.rx_frame.dlci); in RFCOMM_BufDataInd() 341 << +rfc_cb.rfc.rx_frame.dlci << ", lcid=" << loghex(lcid) in RFCOMM_BufDataInd() [all …]
|
D | port_utils.cc | 64 uint8_t port_index = rfc_cb.rfc.last_port_index + static_cast<uint8_t>(1); in port_allocate_port() 80 p_port->rfc.port_timer = alarm_new("rfcomm_port.port_timer"); in port_allocate_port() 83 rfc_cb.rfc.last_port_index = port_index; in port_allocate_port() 87 __func__, port_index, p_port, rfc_cb.rfc.last_port_index, in port_allocate_port() 205 p_port, p_port->rfc.state, p_port->keep_port_handle); in port_release_port() 222 alarm_cancel(p_port->rfc.port_timer); in port_release_port() 226 if (p_port->rfc.state == RFC_STATE_CLOSED) { in port_release_port() 227 if (p_port->rfc.p_mcb) { in port_release_port() 228 p_port->rfc.p_mcb->port_handles[p_port->dlci] = 0; in port_release_port() 231 rfc_check_mcb_active(p_port->rfc.p_mcb); in port_release_port() [all …]
|
D | rfc_utils.cc | 163 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) { in rfc_alloc_multiplexer_channel() 185 rfc_cb.rfc.last_mux = (uint8_t)j; in rfc_alloc_multiplexer_channel() 205 if (rfc_cb.port.port[i].rfc.p_mcb == p_mcb) in rfc_release_multiplexer_channel() 206 rfc_cb.port.port[i].rfc.p_mcb = NULL; in rfc_release_multiplexer_channel() 257 alarm_set_on_mloop(p_port->rfc.port_timer, interval_ms, in rfc_port_timer_start() 271 alarm_cancel(p_port->rfc.port_timer); in rfc_port_timer_stop() 331 ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK) && in rfc_sec_check_complete() 332 (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK))) in rfc_sec_check_complete() 350 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in rfc_port_closed() 352 p_port->rfc.state = RFC_STATE_CLOSED; in rfc_port_closed() [all …]
|
D | rfc_port_if.cc | 161 p_port->rfc.expected_rsp |= RFC_RSP_PN; in RFCOMM_ParameterNegotiationRequest() 210 p_port->rfc.expected_rsp |= RFC_RSP_RPN_REPLY; in RFCOMM_PortParameterNegotiationRequest() 212 p_port->rfc.expected_rsp |= RFC_RSP_RPN; in RFCOMM_PortParameterNegotiationRequest() 250 (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_ControlReq() 255 p_port->rfc.expected_rsp |= RFC_RSP_MSC; in RFCOMM_ControlReq() 278 (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_FlowReq() 283 p_port->rfc.expected_rsp |= RFC_RSP_MSC; in RFCOMM_FlowReq() 305 (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_LineStatusReq() 308 p_port->rfc.expected_rsp |= RFC_RSP_RLS; in RFCOMM_LineStatusReq()
|
D | port_api.cc | 139 << ", RFC_state=" << static_cast<int>(p_port->rfc.state) in RFCOMM_CreateConnection() 141 << (p_port->rfc.p_mcb ? p_port->rfc.p_mcb->state : 0) in RFCOMM_CreateConnection() 448 __func__, handle, p_port->in_use, p_port->state, p_port->rfc.p_mcb, in PORT_CheckConnection() 449 (p_port->rfc.p_mcb ? p_port->rfc.p_mcb->peer_ready : -1), in PORT_CheckConnection() 450 p_port->rfc.state); in PORT_CheckConnection() 456 if (!p_port->rfc.p_mcb || !p_port->rfc.p_mcb->peer_ready || in PORT_CheckConnection() 457 (p_port->rfc.state != RFC_STATE_OPENED)) { in PORT_CheckConnection() 461 *bd_addr = p_port->rfc.p_mcb->bd_addr; in PORT_CheckConnection() 462 if (p_lcid) *p_lcid = p_port->rfc.p_mcb->lcid; in PORT_CheckConnection() 492 if (port.rfc.p_mcb == &multiplexer_cb) { in PORT_IsOpening() [all …]
|
D | port_rfc.cc | 69 p_port->rfc.p_mcb = p_mcb; in port_open_continue() 105 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in port_start_control() 123 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in port_start_par_neg() 142 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in port_start_close() 165 if ((p_mcb == NULL) || (p_port->rfc.state == RFC_STATE_CLOSED)) { in port_start_close() 194 if (p_port->rfc.p_mcb == p_mcb) { in PORT_StartCnf() 252 if ((p_port->rfc.p_mcb == NULL) || (p_port->rfc.p_mcb == p_mcb)) { in PORT_StartInd() 301 p_port->rfc.p_mcb = p_mcb; in PORT_ParNegInd() 501 RFCOMM_PortParameterNegotiationRequest(p_port->rfc.p_mcb, p_port->dlci, in PORT_DlcEstablishCnf() 504 RFCOMM_ControlReq(p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl); in PORT_DlcEstablishCnf() [all …]
|
D | rfc_ts_frames.cc | 230 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn() 381 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc() 382 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc() 383 rfc_cb.rfc.rx_frame.type; in rfc_send_nsc() 635 MX_FRAME* p_rx_frame = &rfc_cb.rfc.rx_frame; in rfc_process_mx_message()
|
D | port_int.h | 169 tRFC_PORT rfc; /* RFCOMM port control block */ member
|
D | rfc_int.h | 234 tRFCOMM_CB rfc; member
|
/system/bt/bta/ag/ |
D | bta_ag_act.cc | 525 int status = PORT_CheckConnection(data.rfc.port_handle, &dev_addr, &lcid); in bta_ag_rfc_acp_open() 571 p_scb->serv_handle[i], data.rfc.port_handle); in bta_ag_rfc_acp_open() 573 if (p_scb->serv_handle[i] == data.rfc.port_handle) { in bta_ag_rfc_acp_open() 575 p_scb->conn_handle = data.rfc.port_handle; in bta_ag_rfc_acp_open()
|
D | bta_ag_rfc.cc | 157 data.rfc.port_handle = port_handle; in bta_ag_mgmt_cback()
|
D | bta_ag_int.h | 160 tBTA_AG_RFC rfc; member
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_int.h | 142 tBTA_HF_CLIENT_RFC rfc; member
|