/system/bt/stack/rfcomm/ |
D | rfc_port_fsm.c | 69 switch (p_port->rfc.state) in rfc_port_sm_execute() 114 p_port->rfc.state = RFC_STATE_ORIG_WAIT_SEC_CHECK; in rfc_port_sm_state_closed() 115 btm_sec_mx_access_request (p_port->rfc.p_mcb->bd_addr, BT_PSM_RFCOMM, TRUE, in rfc_port_sm_state_closed() 132 rfc_timer_stop(p_port->rfc.p_mcb ); in rfc_port_sm_state_closed() 135 p_port->rfc.state = RFC_STATE_TERM_WAIT_SEC_CHECK; in rfc_port_sm_state_closed() 136 btm_sec_mx_access_request (p_port->rfc.p_mcb->bd_addr, BT_PSM_RFCOMM, FALSE, in rfc_port_sm_state_closed() 150 rfc_send_dm (p_port->rfc.p_mcb, p_port->dlci, FALSE); in rfc_port_sm_state_closed() 154 rfc_send_dm (p_port->rfc.p_mcb, p_port->dlci, FALSE); in rfc_port_sm_state_closed() 158 Port_TimeOutCloseMux( p_port->rfc.p_mcb ) ; in rfc_port_sm_state_closed() 159 RFCOMM_TRACE_ERROR ("Port error state %d event %d", p_port->rfc.state, event); in rfc_port_sm_state_closed() [all …]
|
D | rfc_l2cap_if.c | 63 tL2CAP_APPL_INFO *p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init() 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() 346 || (!p_port->rfc.p_mcb)) 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() 360 rfc_send_dm (p_mcb, rfc_cb.rfc.rx_frame.dlci, TRUE); in RFCOMM_BufDataInd() [all …]
|
D | port_utils.c | 70 for (xx = 0, yy = rfc_cb.rfc.last_port + 1; xx < MAX_RFC_PORTS; xx++, yy++) in port_allocate_port() 86 p_port->rfc.port_timer = alarm_new("rfcomm_port.port_timer"); 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() 214 p_port, p_port->rfc.state, p_port->keep_port_handle); in port_release_port() 227 alarm_cancel(p_port->rfc.port_timer); in port_release_port() 231 if (p_port->rfc.state == RFC_STATE_CLOSED) in port_release_port() 233 if (p_port->rfc.p_mcb) in port_release_port() 235 p_port->rfc.p_mcb->port_inx[p_port->dlci] = 0; in port_release_port() 238 rfc_check_mcb_active(p_port->rfc.p_mcb); in port_release_port() [all …]
|
D | rfc_utils.c | 166 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) in rfc_alloc_multiplexer_channel() 189 rfc_cb.rfc.last_mux = (UINT8) j; in rfc_alloc_multiplexer_channel() 211 if (rfc_cb.port.port[i].rfc.p_mcb == p_mcb) in rfc_release_multiplexer_channel() 212 rfc_cb.port.port[i].rfc.p_mcb = NULL; in rfc_release_multiplexer_channel() 270 alarm_set_on_queue(p_port->rfc.port_timer, interval_ms, in rfc_port_timer_start() 286 alarm_cancel(p_port->rfc.port_timer); in rfc_port_timer_stop() 355 || ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK) in rfc_sec_check_complete() 356 && (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK))) in rfc_sec_check_complete() 376 tRFC_MCB *p_mcb = p_port->rfc.p_mcb; in rfc_port_closed() 382 p_port->rfc.state = RFC_STATE_CLOSED; in rfc_port_closed() [all …]
|
D | rfc_port_if.c | 178 p_port->rfc.expected_rsp |= RFC_RSP_PN; in RFCOMM_ParNegReq() 232 p_port->rfc.expected_rsp |= RFC_RSP_RPN_REPLY; in RFCOMM_PortNegReq() 234 p_port->rfc.expected_rsp |= RFC_RSP_RPN; in RFCOMM_PortNegReq() 278 || (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_ControlReq() 283 p_port->rfc.expected_rsp |= RFC_RSP_MSC; in RFCOMM_ControlReq() 310 || (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_FlowReq() 315 p_port->rfc.expected_rsp |= RFC_RSP_MSC; in RFCOMM_FlowReq() 341 || (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_LineStatusReq() 344 p_port->rfc.expected_rsp |= RFC_RSP_RLS; in RFCOMM_LineStatusReq()
|
D | port_rfc.c | 71 p_port->rfc.p_mcb = p_mcb; in port_open_continue() 112 tRFC_MCB *p_mcb = p_port->rfc.p_mcb; in port_start_control() 133 tRFC_MCB *p_mcb = p_port->rfc.p_mcb; in port_start_par_neg() 154 tRFC_MCB *p_mcb = p_port->rfc.p_mcb; in port_start_close() 177 if ((p_mcb == NULL) || (p_port->rfc.state == RFC_STATE_CLOSED)) in port_start_close() 213 if (p_port->rfc.p_mcb == p_mcb) in PORT_StartCnf() 273 if ((p_port->rfc.p_mcb == NULL) in PORT_StartInd() 274 || (p_port->rfc.p_mcb == p_mcb)) in PORT_StartInd() 325 p_port->rfc.p_mcb = p_mcb; in PORT_ParNegInd() 533 RFCOMM_PortNegReq (p_port->rfc.p_mcb, p_port->dlci, NULL); in PORT_DlcEstablishCnf() [all …]
|
D | port_api.c | 152 p_port->state, p_port->rfc.state, p_port->rfc.p_mcb ? p_port->rfc.p_mcb->state : 0); in RFCOMM_CreateConnection() 514 if (!p_port->rfc.p_mcb in PORT_CheckConnection() 515 || !p_port->rfc.p_mcb->peer_ready in PORT_CheckConnection() 516 || (p_port->rfc.state != RFC_STATE_OPENED)) in PORT_CheckConnection() 521 memcpy (bd_addr, p_port->rfc.p_mcb->bd_addr, BD_ADDR_LEN); in PORT_CheckConnection() 523 *p_lcid = p_port->rfc.p_mcb->lcid; in PORT_CheckConnection() 564 if (p_port->rfc.p_mcb == p_mcb) in PORT_IsOpening() 572 (found_port && (p_port->rfc.state < RFC_STATE_OPENED))) in PORT_IsOpening() 836 if (!p_port->rfc.p_mcb) in PORT_FlowControl() 843 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT) in PORT_FlowControl() [all …]
|
D | rfc_ts_frames.c | 240 *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()
|
D | port_int.h | 191 tRFC_PORT rfc; /* RFCOMM port control block */ member
|
D | rfc_int.h | 229 tRFCOMM_CB rfc; member
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_act.c | 274 bta_hf_client_cb.scb.serv_handle, p_data->rfc.port_handle); in bta_hf_client_rfc_acp_open() 277 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_hf_client_rfc_acp_open() 299 bta_hf_client_cb.scb.conn_handle = p_data->rfc.port_handle; in bta_hf_client_rfc_acp_open()
|
D | bta_hf_client_int.h | 133 tBTA_HF_CLIENT_RFC rfc; member
|
/system/bt/bta/ag/ |
D | bta_ag_act.c | 566 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_ag_rfc_acp_open() 607 i, p_scb->serv_handle[i], p_data->rfc.port_handle); in bta_ag_rfc_acp_open() 609 if (p_scb->serv_handle[i] == p_data->rfc.port_handle) in bta_ag_rfc_acp_open() 612 p_scb->conn_handle = p_data->rfc.port_handle; in bta_ag_rfc_acp_open()
|
D | bta_ag_int.h | 217 tBTA_AG_RFC rfc; member
|